/* ══════════════════════════════════════════════════════════════
   MY DATTA · COMPONENTES
   Las piezas de cada sección: hero, marquesina, carruseles,
   pilares, proceso, paquetes, testimonios, FAQ y formulario.
   ══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════
   HERO
   ══════════════════════════════════ */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background: radial-gradient(ellipse at 72% 12%, rgba(37, 99, 235, .14) 0%, transparent 62%);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-insignia {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 16px; border: 1px solid var(--linea); border-radius: var(--r-pill);
  background: var(--papel); box-shadow: var(--sombra-baja);
  font-size: .72rem; font-weight: 600; color: var(--texto-2);
}
.hero-insignia::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); flex-shrink: 0; }
.hero h1 { margin-bottom: 20px; }
.hero-bajada { max-width: 52ch; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-datos { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: 38px; flex-wrap: wrap; }
/* "Métricas positivas, KPIs en crecimiento" van en Growth Green (brandbook 02) */
.hero-dato strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--verde-hondo); line-height: 1.1; }
.hero-dato span { font-family: var(--fuente-et); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3); }
/* El orbe del hero.
   El vídeo de Datto viene de cámara con el fondo gris del estudio quemado
   en la imagen (mp4 1920x1080, sin canal alfa) y con bandas negras a los
   lados. Por eso va recortado en círculo con object-fit:cover: así se
   comen las bandas y el gris pasa por material del propio orbe. Para que
   Datto flote de verdad haría falta un vídeo con transparencia (WebM VP9
   con alfa o HEVC con alfa); con este archivo no se puede. */
.hero-figura {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, #FFFFFF 0%, #EFF4FF 46%, #DCE8FF 100%);
}
html[data-tema="oscuro"] .hero-figura { background: radial-gradient(circle at 38% 28%, #1B2B49 0%, #142138 50%, #0D1728 100%); }
.hero-video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.06) contrast(1.03); }
html[data-tema="oscuro"] .hero-video { filter: saturate(1.1) contrast(1.06) brightness(.84); }
/* Viñeta: funde el borde del disco con el fondo de la página, así el gris
   del vídeo deja de leerse como "una foto pegada" y Datto parece flotar. */
.hero-figura::after {
  content: ''; position: absolute; inset: -1px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 54%, var(--fondo) 93%);
}
/* Aro de neón alrededor de Datto: azul Datta en claro, azul hielo en
   oscuro. Va como borde + sombra del propio orbe y no como pseudo-elemento,
   porque el overflow:hidden que recorta el vídeo se comería un ::before. */
.hero-figura {
  border: 2px solid var(--azul);
  animation: neon-latido 3.6s ease-in-out infinite;
}
html[data-tema="oscuro"] .hero-figura { border-color: #CFEAFF; }
@keyframes neon-latido {
  0%, 100% { box-shadow: 0 0 20px 2px rgba(37, 99, 235, .50), 0 0 54px 10px rgba(37, 99, 235, .26); }
  50%      { box-shadow: 0 0 30px 5px rgba(37, 99, 235, .68), 0 0 76px 16px rgba(37, 99, 235, .34); }
}
html[data-tema="oscuro"] .hero-figura { animation-name: neon-latido-azul-hielo; }
@keyframes neon-latido-azul-hielo {
  0%, 100% { box-shadow: 0 0 20px 2px rgba(207, 234, 255, .66), 0 0 58px 12px rgba(59, 125, 240, .34); }
  50%      { box-shadow: 0 0 32px 6px rgba(235, 248, 255, .82), 0 0 86px 20px rgba(103, 232, 249, .42); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-figura { animation: none; box-shadow: 0 0 22px 3px rgba(37, 99, 235, .5); }
  html[data-tema="oscuro"] .hero-figura { box-shadow: 0 0 24px 4px rgba(207, 234, 255, .66), 0 0 58px 12px rgba(59, 125, 240, .34); }
}
/* El PNG solo se ve si el vídeo no carga o el visitante pidió menos
   movimiento: entonces el JS le pone .sin-video al orbe. */
.hero-respaldo { display: none; width: 84%; height: auto; }
.hero-figura.sin-video .hero-video { display: none; }
.hero-figura.sin-video .hero-respaldo { display: block; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero-insignia, .hero-ctas, .hero-datos { justify-content: center; }
  .hero-bajada { margin-left: auto; margin-right: auto; }
  .hero-figura { max-width: 340px; margin: 0 auto; order: -1; }
}

/* ══════════════════════════════════
   MARQUESINA DE MARCAS
   La animación desplaza la pista de 0 a -50%: eso da por hecho que
   el contenido está DUPLICADO. De eso se encarga js/sitio.js; si se
   toca una cosa hay que tocar la otra.
   ══════════════════════════════════ */
.marcas { padding: clamp(40px, 5vw, 64px) 0; overflow: hidden; }
.marquesina {
  position: relative; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquesina-pista {
  display: flex; align-items: center; gap: clamp(36px, 5vw, 68px);
  width: max-content; padding: 24px 0 12px;
  animation: correr 42s linear infinite;
  will-change: transform;
}
@keyframes correr { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.marquesina:hover .marquesina-pista, .marquesina:focus-within .marquesina-pista { animation-play-state: paused; }
.marca {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  height: 116px; transition: transform .25s var(--curva);
}
.marca:hover { transform: translateY(-4px); }
.marca img {
  max-height: 76px; max-width: 210px; width: auto; height: auto;
  object-fit: contain; filter: grayscale(1); opacity: .55;
  mix-blend-mode: multiply; transition: filter .25s, opacity .25s;
}
.marca:hover img { filter: grayscale(0); opacity: 1; }
html[data-tema="oscuro"] .marca img { mix-blend-mode: normal; filter: grayscale(1) brightness(1.9); }
html[data-tema="oscuro"] .marca:hover img { filter: grayscale(0) brightness(1.15); }
/* Los logos cuadrados (fotos de perfil, isotipos) se recortan en círculo.
   La clase la pone el JS midiendo la proporción real del archivo. */
.marca.cuadrado img { width: 108px; height: 108px; max-width: none; max-height: none; border-radius: 50%; object-fit: cover; mix-blend-mode: normal; }
/* Logotipo tipográfico: solo aparece si la imagen no carga */
.marca-nombre { display: none; font-family: var(--fuente-et); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-2); white-space: nowrap; }
.marca.sin-logo img { display: none; }
.marca.sin-logo .marca-nombre { display: block; }
@media (max-width: 768px) {
  .marquesina-pista { gap: 28px; padding: 18px 0 10px; animation-duration: 32s; }
  .marca { height: 92px; }
  .marca img { max-height: 58px; max-width: 150px; }
  .marca.cuadrado img { width: 84px; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquesina-pista { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .marquesina { -webkit-mask-image: none; mask-image: none; }
}

/* ══════════════════════════════════
   CARRUSEL DE SERVICIOS
   Cabecera editorial a la izquierda, tarjetas deslizables a la
   derecha. Cada tarjeta ya muestra sus planes: no hay que abrir nada.
   ══════════════════════════════════ */
.serv-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 2.15fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
/* En una columna estrecha el titular grande se parte en demasiadas líneas */
.serv-editorial .titular { font-size: clamp(1.45rem, 2.2vw, 1.95rem); }
.serv-editorial { position: sticky; top: calc(var(--alto-header) + 28px); }
.serv-editorial .bajada { margin: 16px 0 24px; }
.carrusel-nav { display: flex; gap: 10px; margin-bottom: 20px; }
.nav-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--linea); border-radius: var(--r-sm);
  background: var(--papel); color: var(--azul); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.nav-btn:hover:not([disabled]) { background: var(--azul); border-color: var(--azul); color: #fff; transform: translateY(-1px); }
.nav-btn[disabled] { opacity: .35; cursor: default; }
/* Si todas las tarjetas ya caben, las flechas no pintan nada */
.sin-controles .carrusel-nav, .sin-controles .test-nav { display: none; }
.nav-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* El viewport recorta lo que sobra por la derecha, pero el JS ajusta el
   ancho de tarjeta para que ahí NUNCA quede media tarjeta asomando. */
.carrusel-viewport { overflow: hidden; }
.carrusel-pista {
  display: flex; gap: 20px;
  transition: transform .55s var(--curva);
  will-change: transform;
}
.carrusel-pista.sin-transicion { transition: none; }

.scard {
  flex: 0 0 var(--ancho-tarjeta, clamp(280px, 30vw, 360px));
  max-width: 100%;
  display: flex; flex-direction: column;
  border: 1px solid var(--linea); border-radius: var(--r-md);
  background: var(--papel); box-shadow: var(--sombra-baja);
  overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.scard:hover { box-shadow: var(--sombra); transform: translateY(-3px); border-color: rgba(37, 99, 235, .28); }
/* Cuadrado, no 4:3. Las imágenes de servicio y de producto son todas 1:1
   (lo comprobé una a una), así que en un marco cuadrado calzan al píxel:
   ni franjas a los lados ni recorte. */
.scard-media {
  aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--linea);
  background: linear-gradient(135deg, #EEF4FF 0%, #DCE8FF 60%, #FFF 100%);
}
html[data-tema="oscuro"] .scard-media { background: linear-gradient(145deg, #17243A, #101A2C); }
.scard-media img { width: 100%; height: 100%; object-fit: cover; }
.scard-cuerpo { display: flex; flex-direction: column; gap: 12px; padding: 22px; flex: 1; }
.scard-cat { font-family: var(--fuente-et); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--azul); }
.scard h3 { font-size: 1.2rem; }
.scard-desc { font-size: .82rem; font-weight: 400; color: var(--texto-3); line-height: 1.7; }
.scard-planes { display: flex; flex-direction: column; gap: 7px; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--linea); }
.scard-plan { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .8rem; }
.scard-plan span { color: var(--texto-2); font-weight: 600; overflow-wrap: anywhere; }
.scard-plan b { color: var(--azul); font-weight: 800; white-space: nowrap; }
.scard-plan b.pendiente { font-size: .72rem; font-weight: 600; color: var(--texto-3); }
.scard-pie { display: flex; align-items: center; gap: 12px; padding: 0 22px 22px; }
.scard-pie .btn { flex: 1; padding-inline: 18px; }

@media (max-width: 1100px) {
  .serv-grid { grid-template-columns: 1fr; }
  .serv-editorial { position: static; }
  .serv-editorial .titular { font-size: clamp(1.8rem, 4vw, 2.8rem); }
  .serv-editorial .bajada { max-width: 62ch; }
  .carrusel-nav { margin-bottom: 0; }
}

/* ══════════════════════════════════
   PILARES
   ══════════════════════════════════ */
.pilares-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pilar {
  padding: 28px 24px; border: 1px solid var(--linea); border-radius: var(--r-md);
  background: var(--papel); box-shadow: var(--sombra-baja);
  transition: transform .25s, box-shadow .25s;
}
.pilar:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.pilar-n {
  display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px;
  border-radius: var(--r-sm); background: var(--hielo); color: var(--azul);
  font-family: var(--fuente-et); font-size: .78rem; font-weight: 700;
}
.pilar h3 { font-size: 1.08rem; margin-bottom: 10px; }
.pilar p { font-size: .82rem; font-weight: 400; color: var(--texto-3); line-height: 1.7; }
@media (max-width: 900px) { .pilares-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pilares-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════
   PROCESO — línea de pasos
   ══════════════════════════════════ */
.pasos { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.pasos::before {
  content: ''; position: absolute; left: 0; right: 0; top: 21px; height: 2px;
  background: linear-gradient(90deg, var(--linea), var(--azul), var(--linea));
  opacity: .55;
}
.paso { position: relative; }
.paso-nodo {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 20px;
  border: 2px solid var(--azul); border-radius: 50%;
  background: var(--fondo); color: var(--azul);
  font-family: var(--fuente-et); font-size: .76rem; font-weight: 700;
}
.paso h3 { font-size: 1rem; margin-bottom: 8px; }
.paso p { font-size: .8rem; font-weight: 400; color: var(--texto-3); line-height: 1.7; margin-bottom: 12px; }
.paso-meta {
  display: inline-block; padding: 5px 12px; border-radius: var(--r-sm);
  background: var(--menta); color: #0F172A;
  font-family: var(--fuente-et); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
}
@media (max-width: 900px) {
  .pasos { grid-template-columns: 1fr; gap: 26px; }
  .pasos::before { left: 21px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--linea), var(--azul), var(--linea)); }
  .paso { padding-left: 64px; }
  .paso-nodo { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ══════════════════════════════════
   NOSOTROS — misión y visión
   ══════════════════════════════════ */
.mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mv-card {
  padding: 32px 30px; border: 1px solid var(--linea); border-radius: var(--r-md);
  background: var(--papel); box-shadow: var(--sombra-baja);
}
.mv-card-et {
  display: inline-block; margin-bottom: 16px; padding: 5px 14px; border-radius: var(--r-pill);
  background: var(--hielo); color: var(--azul);
  font-family: var(--fuente-et); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
}
.mv-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.mv-card p { font-size: .88rem; font-weight: 400; color: var(--texto-3); line-height: 1.8; }
@media (max-width: 760px) { .mv-grid { grid-template-columns: 1fr; } }

/* Lista de razones (el "por qué My Datta") */
.razones-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.razones { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.razon { display: flex; align-items: flex-start; gap: 14px; }
.razon-ico {
  width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: var(--r-sm); background: var(--hielo); color: var(--azul);
}
.razon-ico svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.razon strong { display: block; font-size: .9rem; color: var(--tinta); }
.razon span { font-size: .8rem; font-weight: 400; color: var(--texto-3); line-height: 1.65; }
/* Sin caja: el PNG es transparente, así que Datto va suelto sobre el fondo */
.razones-figura { display: grid; place-items: center; }
.razones-figura img { width: 100%; max-width: 440px; height: auto; }
@media (max-width: 900px) { .razones-grid { grid-template-columns: 1fr; } .razones-figura { order: -1; max-width: 380px; margin: 0 auto; } }

/* ══════════════════════════════════
   PAQUETES
   ══════════════════════════════════ */
.filtros-pack {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: 26px; overflow: visible; padding: 2px;
}
.filtros-pack::-webkit-scrollbar { display: none; }
.filtro-pack {
  flex: 0 0 auto; max-width: 100%; padding: 11px 16px; border: 1px solid var(--linea); border-radius: var(--r-sm);
  background: var(--papel); color: var(--texto-2);
  font-size: .78rem; font-weight: 700; white-space: nowrap; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filtro-pack:hover { border-color: rgba(37, 99, 235, .45); color: var(--azul); }
.filtro-pack.activo { background: var(--degradado-azul); border-color: transparent; color: #fff; box-shadow: var(--sombra-azul); }

@media (max-width: 700px) {
  .filtros-pack {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none;
  }
}

.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 20px; }
.pack {
  display: flex; flex-direction: column; gap: 16px; padding: 28px 26px;
  border: 1px solid var(--linea); border-radius: var(--r-md);
  background: var(--papel); box-shadow: var(--sombra-baja);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pack:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: rgba(37, 99, 235, .3); }
.pack-media {
  aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--linea); border-radius: var(--r-sm);
  background: linear-gradient(145deg, #F8FBFF, #E8F0FF);
}
html[data-tema="oscuro"] .pack-media { background: linear-gradient(145deg, #17243A, #101A2C); }
.pack-media img { width: 100%; height: 100%; object-fit: cover; }
.pack-cat { font-family: var(--fuente-et); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--azul); }
.pack h3 { font-size: 1.08rem; }
.pack-desc { font-size: .8rem; font-weight: 400; color: var(--texto-3); line-height: 1.7; }
.pack-nota {
  padding: 11px 13px; border: 1px solid rgba(37, 99, 235, .3); border-radius: var(--r-sm);
  background: var(--hielo); color: var(--texto-2); font-size: .72rem; line-height: 1.6;
}
.pack-nota strong { color: var(--azul); }
.pack-precio { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--linea); }
.pack-precio-et { display: block; font-family: var(--fuente-et); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-3); }
.pack-precio-val { font-size: 1.55rem; font-weight: 800; color: var(--azul); line-height: 1.2; }
.pack-precio-antes { margin-left: 8px; font-size: .8rem; color: var(--texto-3); text-decoration: line-through; }
.pack .btn { width: 100%; }
.pack .btn.agregado { background: var(--superficie-oscura); background-image: none; color: var(--sobre-oscura); }
.packs-vacio { grid-column: 1 / -1; padding: 40px 20px; border: 1px dashed var(--linea); border-radius: var(--r-md); text-align: center; font-size: .84rem; color: var(--texto-3); }

/* Cargando */
.cargando { grid-column: 1 / -1; display: grid; place-items: center; gap: 14px; padding: 48px 20px; color: var(--texto-3); font-size: .82rem; }
.aro { width: 34px; height: 34px; border: 3px solid var(--linea); border-top-color: var(--azul); border-radius: 50%; animation: girar .9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .aro { animation-duration: 2.4s; } }

/* ══════════════════════════════════
   TESTIMONIOS — carrusel
   ══════════════════════════════════ */
.test-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.test-cab .cab-seccion { margin-bottom: 0; }
.test-viewport { overflow: hidden; }
.test-pista { display: flex; gap: 20px; transition: transform .55s var(--curva); will-change: transform; }
.test {
  flex: 0 0 var(--ancho-tarjeta, clamp(280px, 34vw, 400px));
  max-width: 100%;
  display: flex; flex-direction: column; gap: 18px; padding: 30px 28px;
  border: 1px solid var(--linea); border-radius: var(--r-md);
  background: var(--papel); box-shadow: var(--sombra-baja);
}
.google-reviews-grid {
  align-items: stretch;
}
.google-reviews-grid .test {
  flex: initial;
}
.google-score {
  width: fit-content; max-width: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 0 0 22px; padding: 10px 14px;
  border: 1px solid var(--linea); border-radius: var(--r-pill);
  background: var(--papel); box-shadow: var(--sombra-baja);
  color: var(--texto-2); font-size: .82rem;
}
.test-cab + .google-score,
.test-cab + [data-google-summary] .google-score {
  margin-top: -8px;
}
.google-score strong {
  color: var(--tinta); font-size: .94rem;
}
.google-score a,
.test-link {
  color: var(--azul); font-weight: 800; text-decoration: none;
}
.google-score-marca {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--tinta); font-weight: 800;
}
.google-score-marca::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: #4285F4;
  box-shadow: 10px 0 0 #DB4437, 20px 0 0 #F4B400, 30px 0 0 #0F9D58;
  margin-right: 30px;
}
.test-estrellas { display: flex; gap: 2px; color: #C97A00; }
html[data-tema="oscuro"] .test-estrellas { color: #FFB84D; }
html[data-tema="oscuro"] .google-score {
  background: rgba(255, 255, 255, .06); border-color: rgba(207, 234, 255, .2);
}
html[data-tema="oscuro"] .google-score strong,
html[data-tema="oscuro"] .google-score-marca { color: var(--sobre-oscura); }
html[data-tema="oscuro"] .paso-meta,
html[data-tema="oscuro"] .test-serv { color: #A7F3D0; }
.test-txt { font-size: .88rem; font-weight: 400; color: var(--texto); line-height: 1.8; }
.test-quien { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--linea); }
/* Varias fotos de testimonio son enlaces externos que pueden caerse:
   en ese caso js/sitio.js las cambia por la inicial del nombre. */
.test-av-ini {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; background: var(--hielo); color: var(--azul); font-weight: 800;
}
.test-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.test-nombre { font-size: .88rem; font-weight: 700; color: var(--tinta); }
.test-autor-link { display: inline-block; text-decoration: none; }
.test-autor-link:hover { color: var(--azul); }
.test-lugar { font-family: var(--fuente-et); font-size: .64rem; color: var(--texto-3); }
.test-serv {
  margin-left: auto; padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--menta); color: #0F172A;
  font-family: var(--fuente-et); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
@media (max-width: 560px) { .test-serv { display: none; } }

/* ══════════════════════════════════
   FAQ
   ══════════════════════════════════ */
.faq-lista { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--linea); border-radius: var(--r-md); background: var(--papel); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq-item.abierta { border-color: rgba(37, 99, 235, .35); box-shadow: var(--sombra-baja); }
.faq-p {
  width: 100%; display: flex; align-items: center; gap: 18px; padding: 22px 24px;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-size: .95rem; font-weight: 700; color: var(--tinta);
  transition: background .2s, color .2s;
}
.faq-p:hover { background: var(--hielo); color: var(--azul); }
.faq-item.abierta .faq-p { color: var(--azul); }
.faq-ico {
  width: 34px; height: 34px; flex-shrink: 0; margin-left: auto; display: grid; place-items: center;
  border: 1px solid var(--linea); border-radius: 50%; color: var(--azul);
  transition: transform .35s var(--curva), background .25s, border-color .25s;
}
.faq-item.abierta .faq-ico { background: var(--azul); border-color: var(--azul); color: #fff; transform: rotate(180deg); }
.faq-ico svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.faq-r { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--curva); }
.faq-item.abierta .faq-r { grid-template-rows: 1fr; }
.faq-r-in { overflow: hidden; }
.faq-r-in > div { padding: 20px 24px 26px; font-size: .86rem; font-weight: 400; color: var(--texto-3); line-height: 1.8; }
.faq-item.abierta .faq-p { padding-bottom: 18px; }
.faq-r-in p + p { margin-top: 12px; }
.faq-r-in ol { margin-top: 12px; padding-left: 20px; list-style: decimal; }
.faq-r-in li + li { margin-top: 8px; }
.faq-r-in strong { color: var(--texto-2); font-weight: 600; }

/* ══════════════════════════════════
   CTA FINAL
   ══════════════════════════════════ */
.cta-final {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px);
  border-radius: var(--r-lg); background: var(--superficie-oscura); color: var(--sobre-oscura);
}
.cta-final::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% -20%, rgba(37, 99, 235, .42) 0%, transparent 64%);
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 { color: var(--sobre-oscura); margin-bottom: 14px; }
.cta-final p { max-width: 58ch; margin: 0 auto 28px; font-size: .94rem; font-weight: 400; color: var(--sobre-oscura-2); }
.cta-final .hero-ctas { justify-content: center; }
.cta-final .btn-fantasma { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .32); }
.cta-final .btn-fantasma:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ══════════════════════════════════
   FORMULARIO
   ══════════════════════════════════ */
.form-caja { max-width: 760px; margin: 0 auto; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.campo { display: flex; flex-direction: column; gap: 7px; }
.campo.ancho { grid-column: 1 / -1; }
.campo label { font-size: .8rem; font-weight: 600; color: var(--texto-2); }
.campo .req { color: #E04848; }
.campo input, .campo select, .campo textarea {
  padding: 14px 16px; border: 1px solid var(--linea); border-radius: var(--r-sm);
  background: var(--papel); color: var(--texto); font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.campo textarea { min-height: 128px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
.campo input::placeholder, .campo textarea::placeholder { color: var(--texto-3); opacity: .75; }
.campo-error { display: none; font-size: .74rem; color: #E04848; }
.campo.con-error input, .campo.con-error select { border-color: #E04848; }
.campo.con-error .campo-error { display: block; }
.form-envio { display: flex; flex-direction: row; justify-content: center; margin-top: 6px; }
.form-envio .btn { min-width: 220px; }
.form-aviso { display: none; padding: 14px 18px; border-radius: var(--r-sm); font-size: .84rem; margin-bottom: 18px; }
.form-aviso.error { display: block; background: rgba(224, 72, 72, .1); border: 1px solid rgba(224, 72, 72, .3); color: #C33; }
.form-ok {
  display: none; flex-direction: column; align-items: center; gap: 8px;
  padding: 30px 24px; border: 1px solid rgba(34, 197, 94, .32); border-radius: var(--r-md);
  background: rgba(34, 197, 94, .08); text-align: center;
}
.form-ok.visible { display: flex; }
.form-ok-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--verde); color: #fff; font-size: 1.3rem; font-weight: 800; }
.form-ok strong { font-size: 1.05rem; color: var(--tinta); }
.form-ok span { font-size: .86rem; color: var(--texto-3); }
/* Trampa anti-spam: invisible para personas, visible para bots */
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .campos { grid-template-columns: 1fr; } }

/* ══════════════════════════════════
   CARRITO
   ══════════════════════════════════ */
.carrito-fondo {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(15, 23, 42, .46); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.carrito-fondo.abierto { opacity: 1; visibility: visible; }
.carrito {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 121;
  width: min(400px, 100%); display: flex; flex-direction: column;
  background: var(--fondo); box-shadow: -18px 0 48px rgba(15, 23, 42, .18);
  transform: translateX(100%); transition: transform .35s var(--curva);
}
.carrito.abierto { transform: none; }
.carrito-cab { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--linea); }
.carrito-cab h2 { font-size: 1.1rem; }
.carrito-cerrar { margin-left: auto; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--linea); border-radius: var(--r-sm); background: var(--papel); color: var(--texto-3); cursor: pointer; }
.carrito-cerrar:hover { background: var(--superficie-oscura); color: var(--sobre-oscura); border-color: var(--superficie-oscura); }
.carrito-items { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.carrito-item { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--linea); }
.carrito-item img { width: 54px; height: 54px; object-fit: contain; border: 1px solid var(--linea); border-radius: var(--r-sm); background: var(--hielo); }
.carrito-item strong { display: block; font-size: .84rem; color: var(--tinta); }
.carrito-item-precio { font-size: .8rem; font-weight: 700; color: var(--azul); }
.carrito-quitar { width: 30px; height: 30px; border: 0; background: none; color: var(--texto-3); font-size: 1.1rem; cursor: pointer; }
.carrito-quitar:hover { color: #E04848; }
.carrito-vacio { padding: 40px 10px; text-align: center; color: var(--texto-3); font-size: .86rem; }
.carrito-pie { padding: 20px 24px; border-top: 1px solid var(--linea); display: flex; flex-direction: column; gap: 14px; }
.carrito-total { display: flex; justify-content: space-between; align-items: baseline; font-size: .86rem; color: var(--texto-3); }
.carrito-total b { font-size: 1.3rem; font-weight: 800; color: var(--azul); }
.carrito-pie .btn { width: 100%; }

/* ══════════════════════════════════
   PÁGINAS INTERNAS
   ══════════════════════════════════ */
.intro { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); background: var(--nieve); }
.miga { display: flex; gap: 8px; margin-bottom: 18px; font-family: var(--fuente-et); font-size: .66rem; color: var(--texto-3); flex-wrap: wrap; }
.miga a:hover { color: var(--azul); }
.intro h1 { margin-bottom: 16px; }
.intro .bajada { max-width: 64ch; }

.detalle-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.detalle-figura {
  display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden;
  border: 1px solid var(--linea); border-radius: var(--r-md);
  background: linear-gradient(135deg, #EEF4FF 0%, #DCE8FF 60%, #FFF 100%);
}
html[data-tema="oscuro"] .detalle-figura { background: linear-gradient(145deg, #17243A, #101A2C); }
.detalle-figura img { width: 100%; height: 100%; object-fit: cover; }
.detalle-texto p { font-size: .92rem; font-weight: 400; color: var(--texto-3); line-height: 1.85; }
.detalle-texto p + p { margin-top: 16px; }
.incluye { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.incluye li { display: flex; align-items: flex-start; gap: 11px; font-size: .86rem; color: var(--texto-2); line-height: 1.65; }
.incluye li svg { flex-shrink: 0; margin-top: 3px; color: var(--verde-hondo); }
.ideal {
  margin-top: 26px; padding: 18px 22px;
  border: 1px solid rgba(37, 99, 235, .28); border-radius: var(--r-sm);
  background: var(--hielo); font-size: .86rem; color: var(--texto-2); line-height: 1.7;
}
.ideal strong {
  display: block; margin-bottom: 6px;
  font-family: var(--fuente-et); font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--azul);
}
@media (max-width: 900px) { .detalle-grid { grid-template-columns: 1fr; } }

/* Rejilla de servicios (página servicios.html) */
.servicios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 20px; }
.servicios-grid .scard { flex: 1 1 auto; }

/* Texto legal */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: .88rem; font-weight: 400; color: var(--texto-3); line-height: 1.85; }
.legal p + p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 20px; list-style: disc; }
.legal li + li { margin-top: 8px; }

/* ══════════════════════════════════════════════════════════════
   MÓVIL Y TÁCTIL: CERO ANIMACIÓN
   Va al final de la última hoja a propósito: aquí gana la cascada.
   En el teléfono la página aparece y ya. Nada de entradas, latidos,
   marquesina automática ni transiciones de hover que en táctil no
   significan nada y solo cuestan batería y fotogramas.
   Vale también para quien pide menos movimiento en su sistema.
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 860px), (hover: none), (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .aparece, .aparece.anima {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }
  /* La marquesina deja de correr sola y pasa a deslizarse con el dedo:
     se sigue viendo entera, pero sin un solo fotograma de animación. */
  .marquesina {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .marquesina::-webkit-scrollbar { display: none; }
  .marquesina-pista { width: max-content; }
  .marca { scroll-snap-align: center; }
}
