/* assets/home/css/carrotating-home.css - Ajustes de CARROTATING sobre la plantilla SEOZ.
 *
 * Solo la carga la portada (index.php). Es el mismo trabajo que hizo planiasolutions.com con
 * su planIA.css: rojo corporativo #A52A2A (ya en las variables de main.css), cabecera y pie en
 * rojo con el logo en blanco, y retoques para los textos en español. El resto de la web sigue
 * con css/style.css.
 */

/* Variables que usan el asistente de ayuda y el aviso de cookies (vienen de css/style.css) */
:root {
  --szColorPrimary: #A52A2A;
  --szColorPrimaryDark: #7A1F1F;
  --szColorText: #1E2328;
  --szColorTextLight: #656565;
  --szColorBorder: #F0E4E4;
  --szColorBg: #ffffff;
  --szColorBgAlt: #FBF5F5;
  --szColorBlue900: #1E2328;
  --szRadiusSm: 0.75rem;
}

/* ===== Logo: el de CARROTATING es azul; sobre el rojo, en blanco ===== */
.crr-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--white) !important;
  white-space: nowrap;
}
.crr-logo img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
}
.offcanvas__logo .crr-logo {
  color: var(--theme-color) !important;
}
.offcanvas__logo .crr-logo img {
  filter: none;
}

/* ===== Cabecera en rojo corporativo, compacta ===== */
.header-1.header-4,
.sticky.header-4,
.sticky.header-1 {
  background-color: var(--theme-color);
  box-shadow: 0 6px 20px rgba(122, 31, 31, 0.25);
}
.header-1 .header-main {
  padding: 8px 0;
}
.main-menu ul li > a,
.header-1 .theme-btn {
  white-space: nowrap;
}
.sticky.header-1 .header-main .main-menu ul li a,
.sticky.header-1 .header-main .sidebar__toggle,
.header-1.header-4 .header-main .main-menu ul li a,
.header-1.header-4 .header-main .sidebar__toggle {
  color: var(--white);
}
.header-1.header-4 .header-main .main-menu ul li a:hover,
.sticky.header-1 .header-main .main-menu ul li a:hover {
  color: #FFD9D9 !important;
}
.header-1.header-4 .header-right .header-button .theme-btn {
  padding-top: 4px;
  padding-bottom: 4px;
}
.header-1.header-4 .header-right .header-button .theme-btn i {
  width: 40px;
  height: 40px;
  line-height: 40px;
  background-color: var(--white) !important;
  color: var(--theme-color) !important;
}
/* Idioma y "Entrar" junto al botón */
.crr-header-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-right: 22px;
}
.crr-header-links a {
  color: var(--white) !important;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.crr-header-links a:hover {
  color: #FFD9D9 !important;
}
.crr-flag svg {
  display: block;
  border-radius: 2px;
}
@media (max-width: 1199px) {
  .crr-header-links .crr-login {
    display: none;
  }
}

/* ===== Hero: sin las tarjetas flotantes de la plantilla (métricas en inglés) ===== */
.hero-img .box-shape,
.hero-img .box-shape-2 {
  display: none;
}
.hero-1 .hero-img img.crr-hero-gif {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(122, 31, 31, 0.18);
}
.hero-1 .hero-content h1 {
  text-transform: none;
}

/* Iconos de Font Awesome en las tarjetas donde la plantilla usa flaticon */
.service-card-items-1 .service-icon i,
.icon-items .icon i,
.icon-box .icon i,
.counter-items .icon i {
  line-height: 1;
}
/* Ilustraciones de la marca en las tarjetas oscuras, en lugar de los iconos de la plantilla */
.service-card-items .service-icon img.crr-card-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

/* Lista de funciones (la "franja de marcas" de la plantilla) */
.crr-feature-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--header);
  white-space: nowrap;
}
.crr-feature-text i {
  color: var(--theme-color);
  font-size: 18px;
}

/* Precios de hoy dentro de la sección de gasolineras */
.crr-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0 28px;
}
.crr-price {
  flex: 1;
  min-width: 170px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}
.crr-price span {
  display: block;
  font-size: 14px;
  color: var(--text);
}
.crr-price strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 30px;
  color: var(--theme-color);
  font-variant-numeric: tabular-nums;
}
.crr-price small {
  font-size: 13px;
  color: var(--text);
}
.crr-source {
  font-size: 13px;
  color: var(--text);
  margin-top: 14px;
}

/* ===== Pie en rojo corporativo ===== */
.footer-section,
.footer-section.footer-bg {
  background-color: #A52A2A !important;
  background-image: none !important;
}
.footer-section .footer-bottom {
  background-color: #7A1F1F;
  border-top: none;
}
.footer-section,
.footer-section p,
.footer-section a,
.footer-section li,
.footer-section h3,
.footer-section h5,
.footer-section span {
  color: var(--white) !important;
}
.footer-section .footer-contect li .icon {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-section .footer-contect li i {
  color: var(--white) !important;
  font-size: 18px;
}
.footer-section .theme-btn {
  background-color: var(--white) !important;
  color: #A52A2A !important;
}
.footer-section .theme-btn i {
  background-color: #A52A2A !important;
  color: var(--white) !important;
}
.footer-section .widget-head h3::before,
.footer-section .widget-head h3::after {
  background-color: var(--white) !important;
}
.footer-section .crr-logo img {
  filter: brightness(0) invert(1);
}

/* El botón de volver arriba sube para no tapar el del asistente */
.back-to-top {
  bottom: 95px;
}

/* Fotos con esquinas redondeadas, a juego con botones y tarjetas */
section img:not(.crr-card-icon) {
  border-radius: 14px;
}
section img[src*="shape"] {
  border-radius: 0;
}

/* ===== Aviso de cookies (el de toda la web, con los colores de la portada) ===== */
.cookieCard {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 100000;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  max-width: 24rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--szColorBorder);
  border-radius: 1.1rem;
  box-shadow: 0 18px 44px rgba(122, 31, 31, 0.18);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.26s ease, transform 0.26s ease;
}
.cookieCardIn { opacity: 1; transform: translateY(0); }
.cookieCardOut { opacity: 0; transform: translateY(14px); }
.cookieCardIcon { width: 40px; height: 40px; flex-shrink: 0; }
.cookieCardTitle {
  margin: 0 0 0.3rem;
  font-weight: 700;
  font-size: 0.975rem;
  color: var(--header);
}
.cookieCardText {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text);
}
.cookieCardActions { display: flex; align-items: center; gap: 1rem; margin-top: 0.9rem; }
.cookieCardBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--theme-color);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}
.cookieCardBtn:hover { background: var(--theme-color-2); }
.cookieCardLink { font-size: 0.8125rem; color: var(--text); text-decoration: underline; }
@media (max-width: 575px) {
  .cookieCard { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cookieCard { transition: none; }
}

/* La plantilla pone En Mayuscula Cada Palabra de botones, preguntas y enlaces: en espanyol
   es incorrecto ("¿Qué Es CARROTATING?"). Solo la primera letra, como en el resto de la web. */
.theme-btn,
.link-btn,
.accordion-button,
.footer-menu a,
.main-menu ul li a,
.faq-items .accordion-button {
  text-transform: none !important;
}

/* Funciones con nombre largo ("Verificación por WhatsApp"): que partan en dos lineas */
.brand-section .brand-img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 12px;
  line-height: 1.25;
}
.crr-feature-text {
  white-space: normal;
  text-align: left;
  line-height: 1.25;
}

/* Logo conjunto "planIA | CARROTATING", en blanco, para la cabecera y el pie rojos */
.crr-brand-logo {
  height: 38px;
  width: auto !important;
  max-width: none;
  border-radius: 0 !important;
}
.footer-section .crr-brand-logo {
  height: 30px;
}
@media (max-width: 575px) {
  .header-1 .crr-brand-logo {
    height: 26px;
  }
}

/* "No hace falta ser de la misma empresa": destacado bajo el texto del hero */
.hero-1 .hero-content p.crr-same-place,
.about-content p.crr-gender {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 16px;
  border-left: 4px solid var(--theme-color);
  background: rgba(165, 42, 42, 0.07);
  border-radius: 0 10px 10px 0;
  color: var(--header);
  font-weight: 600;
}
.crr-same-place i {
  color: var(--theme-color);
  font-size: 20px;
  margin-top: 2px;
}
.about-content p.crr-gender {
  margin: 0 0 28px;
}

/* Grupo: las tres soluciones (copiado de planIA.css de planiasolutions.com) */
.crr-grupo-item { display: block; text-align: center; margin-top: 30px; color: inherit; }
.crr-grupo-item img { width: 100%; height: auto; border-radius: 14px; transition: transform .3s; }
.crr-grupo-item:hover img { transform: translateY(-4px); }
.crr-grupo-item h3 { margin-top: 20px; margin-bottom: 4px; }
.crr-grupo-item span { color: var(--theme-color); font-weight: 600; letter-spacing: 2px; font-size: 14px; }

/* Entre 1200 y 1399 px las cinco opciones del menu no caben y "Contacto" bajaba a otra linea:
   menos hueco entre las opciones y en los enlaces de la derecha, y un margen
   tras el logo, que quedaba pegado a "Inicio" */
@media (min-width: 1200px) and (max-width: 1399px) {
  .header-1 .header-left { margin-right: 24px; flex-shrink: 0; }
  .header-main .main-menu ul li { margin-inline-end: 14px; }
  .header-main .main-menu ul { white-space: nowrap; }
  .crr-header-links { gap: 12px; margin-right: 16px; }
}

/* Selector de idioma de la cabecera roja */
.crr-lang { position: relative; }
.crr-lang > summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--white);
  padding: 4px 10px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 999px;
}
.crr-lang > summary::-webkit-details-marker { display: none; }
.crr-lang > div {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 1000; min-width: 150px; padding: 6px;
  background: #fff; border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.crr-header-links .crr-lang > div a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--header) !important; }
.crr-header-links .crr-lang > div a:hover, .crr-header-links .crr-lang > div a[aria-current] { background: #FBF0F0; color: #A52A2A !important; }
