@charset "UTF-8";

/* ==========================================================================
   ILLOPASS, S.L. — hoja de estilo única
   Inter autoalojado: sin peticiones a CDN de fuentes y una conexión menos.
   ========================================================================== */

@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------- variables */
:root {
  --primario:      #0F172A;
  --secundario:    #2563EB;
  --secundario-h:  #1D4ED8;
  --acento:        #38BDF8;
  --exito:         #22C55E;

  --fondo:         #FFFFFF;
  --fondo-2:       #F8FAFC;
  --fondo-3:       #F1F5F9;
  --borde:         #E5E7EB;
  --borde-2:       #EEF2F6;
  --texto:         #111827;
  --texto-2:       #6B7280;
  /* Fijado en #64748B (4,76:1 sobre blanco) y no en un gris más claro: con
     #94A3B8 el texto terciario se quedaba en 2,45:1 y no llegaba a AA. */
  --texto-3:       #64748B;

  --r:             14px;
  --r-tarjeta:     20px;
  --r-boton:       12px;
  --r-input:       12px;
  --r-pill:        999px;

  /* Sombras muy suaves: profundidad, no cajas flotando. */
  --s-1: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .04);
  --s-2: 0 2px 4px rgba(15, 23, 42, .03), 0 6px 16px -6px rgba(15, 23, 42, .08);
  --s-3: 0 4px 8px rgba(15, 23, 42, .03), 0 16px 40px -12px rgba(15, 23, 42, .12);
  --s-4: 0 24px 64px -20px rgba(15, 23, 42, .18), 0 8px 20px -12px rgba(15, 23, 42, .10);
  --s-foco: 0 0 0 3px rgba(37, 99, 235, .28);

  --ancho:  1280px;
  --gutter: 24px;
  --t:      120ms cubic-bezier(.4, 0, .2, 1);
  --t-lento: 420ms cubic-bezier(.16, 1, .3, 1);

  --cab-alto: 72px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--cab-alto) + 24px);
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: 'cv05' 1, 'cv11' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--primario);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 1.35rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 1.25rem + 2.2vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + .5vw, 1.4rem); letter-spacing: -.024em; }
h4 { font-size: 1.02rem; letter-spacing: -.018em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--secundario); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--secundario-h); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .35em; }

strong { font-weight: 650; color: var(--primario); }
small { font-size: .84rem; }

hr { border: 0; border-top: 1px solid var(--borde); margin: 2.5rem 0; }

:focus-visible {
  outline: none;
  box-shadow: var(--s-foco);
  border-radius: 6px;
}

::selection { background: rgba(37, 99, 235, .16); }

.ico { width: 20px; height: 20px; flex: none; }

/* Enlace de salto para teclado y lectores de pantalla. */
.saltar {
  position: absolute; left: 16px; top: -100px; z-index: 999;
  background: var(--primario); color: #fff; padding: 12px 18px;
  border-radius: var(--r-boton); font-weight: 550; transition: top var(--t);
}
.saltar:focus { top: 16px; color: #fff; }

.oculto-visual {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- estructura */
.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.contenedor-estrecho { max-width: 800px; }
.contenedor-medio    { max-width: 1040px; }

.seccion    { padding: clamp(64px, 8vw, 116px) 0; }
.seccion-sm { padding: clamp(48px, 6vw, 80px) 0; }
.seccion-gris { background: var(--fondo-2); }
.seccion-borde-sup { border-top: 1px solid var(--borde); }

.encabezado-seccion { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.encabezado-seccion.centrado { margin-inline: auto; text-align: center; }
.encabezado-seccion p {
  font-size: 1.12rem; color: var(--texto-2); margin-bottom: 0;
  text-wrap: pretty;
}

.etiqueta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--secundario);
  margin-bottom: 18px;
}
.etiqueta::before {
  content: ''; width: 20px; height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--acento), var(--secundario));
}
.centrado .etiqueta::before { display: none; }

.rejilla { display: grid; gap: 24px; }
.rejilla-2 { grid-template-columns: repeat(2, 1fr); }
.rejilla-3 { grid-template-columns: repeat(3, 1fr); }
.rejilla-4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-boton);
  font: inherit; font-size: .96rem; font-weight: 550; letter-spacing: -.012em;
  line-height: 1.2;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: background var(--t), border-color var(--t), color var(--t),
              box-shadow var(--t), transform var(--t);
}
.btn .ico { width: 18px; height: 18px; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .55; pointer-events: none; }

.btn-primario {
  background: var(--secundario); color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .10), 0 6px 16px -8px rgba(37, 99, 235, .55);
}
.btn-primario:hover {
  background: var(--secundario-h); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(15, 23, 42, .10), 0 10px 24px -8px rgba(37, 99, 235, .55);
}
.btn-primario:active { transform: translateY(0); }

.btn-oscuro { background: var(--primario); color: #fff; box-shadow: var(--s-2); }
.btn-oscuro:hover { background: #1E293B; color: #fff; transform: translateY(-1px); }

.btn-secundario {
  background: #fff; color: var(--primario);
  border-color: var(--borde); box-shadow: var(--s-1);
}
.btn-secundario:hover {
  color: var(--primario); border-color: #CBD5E1;
  transform: translateY(-1px); box-shadow: var(--s-2);
}

.btn-claro { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-claro:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.btn-fantasma { background: transparent; color: var(--texto-2); padding-inline: 12px; }
.btn-fantasma:hover { color: var(--primario); background: var(--fondo-3); }

.btn-bloque { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-sm { padding: 9px 15px; font-size: .875rem; }

.enlace-flecha {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 550; font-size: .95rem;
}
.enlace-flecha .ico { width: 17px; height: 17px; transition: transform var(--t); }
.enlace-flecha:hover .ico { transform: translateX(3px); }

/* -------------------------------------------------------------- cabecera */
.cabecera {
  position: sticky; top: 0; z-index: 100;
  height: var(--cab-alto);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.cabecera[data-scroll='1'] {
  border-bottom-color: var(--borde);
  box-shadow: 0 1px 16px -8px rgba(15, 23, 42, .18);
}
.cabecera-int {
  height: 100%; display: flex; align-items: center; gap: 28px;
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--primario); font-weight: 700; font-size: 1.16rem;
  letter-spacing: -.045em; flex: none;
}
.logo:hover { color: var(--primario); }
.logo-marca {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, var(--primario) 8%, var(--secundario) 62%, var(--acento) 130%);
  position: relative; box-shadow: 0 2px 8px -2px rgba(37, 99, 235, .5);
}
.logo-marca::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 54%, rgba(255, 255, 255, .9) 54%, rgba(255, 255, 255, .9) 62%, transparent 62%),
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, .55) 46%, rgba(255, 255, 255, .55) 53%, transparent 53%);
  border-radius: inherit;
}
.logo small {
  display: block; font-size: .62rem; font-weight: 500; letter-spacing: .05em;
  color: var(--texto-3); text-transform: uppercase; margin-top: -3px;
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
/* :not(.btn) porque `.nav a` es más específico que `.btn-primario` y le robaba
   el color blanco a la llamada a la acción del menú móvil. */
.nav a:not(.btn) {
  padding: 8px 13px; border-radius: 9px;
  color: var(--texto-2); font-size: .935rem; font-weight: 500;
  transition: color var(--t), background var(--t);
}
.nav a:not(.btn):hover { color: var(--primario); background: var(--fondo-3); }
.nav a[aria-current='page'] { color: var(--primario); font-weight: 550; }
/* En escritorio la llamada a la acción vive en .acciones-cab; dentro del menú
   sólo aparece cuando éste se despliega en móvil. */
.nav > .btn { display: none; }

.acciones-cab { display: flex; align-items: center; gap: 10px; flex: none; }

.btn-carrito {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-boton);
  border: 1px solid var(--borde); background: #fff; color: var(--primario);
  box-shadow: var(--s-1); cursor: pointer; transition: all var(--t);
}
.btn-carrito:hover { border-color: #CBD5E1; color: var(--primario); box-shadow: var(--s-2); }
.btn-carrito .ico { width: 19px; height: 19px; }
.contador {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: var(--r-pill);
  background: var(--secundario); color: #fff;
  font-size: .68rem; font-weight: 650; line-height: 19px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.btn-menu {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-boton);
  border: 1px solid var(--borde); background: #fff; color: var(--primario);
  cursor: pointer;
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(56, 189, 248, .16), transparent 62%),
    radial-gradient(880px 460px at 8% 4%, rgba(37, 99, 235, .11), transparent 60%),
    linear-gradient(180deg, #FBFDFF 0%, #FFFFFF 62%);
}
/* Retícula tenue: da profundidad sin ruido visual. */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(760px 500px at 50% 24%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(760px 500px at 50% 24%, #000 15%, transparent 78%);
}

.orbe {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(64px); opacity: .5; z-index: 0;
  will-change: transform;
}
.orbe-1 { width: 460px; height: 460px; top: -170px; right: -120px;
  background: radial-gradient(circle, rgba(56, 189, 248, .55), transparent 68%); }
.orbe-2 { width: 380px; height: 380px; bottom: -180px; left: -140px;
  background: radial-gradient(circle, rgba(37, 99, 235, .40), transparent 68%); }
.orbe-3 { width: 300px; height: 300px; top: 40%; left: 44%;
  background: radial-gradient(circle, rgba(34, 197, 94, .22), transparent 70%); }

.hero-int {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px); align-items: center;
}

.hero-texto h1 { margin-bottom: 22px; }
.hero-texto h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--secundario) 12%, var(--acento) 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  font-size: clamp(1.06rem, .98rem + .38vw, 1.2rem);
  color: var(--texto-2); max-width: 560px; margin-bottom: 32px;
  text-wrap: pretty;
}
.hero-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-nota {
  display: flex; align-items: center; gap: 9px;
  font-size: .875rem; color: var(--texto-2); margin: 0;
}
.hero-nota .ico { width: 16px; height: 16px; color: var(--exito); }

.pastilla {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 8px; margin-bottom: 26px;
  border: 1px solid var(--borde); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .82rem; font-weight: 500; color: var(--texto-2);
  box-shadow: var(--s-1);
}
.punto {
  width: 7px; height: 7px; border-radius: 50%; background: var(--exito);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .16); margin-left: 5px; flex: none;
}

/* ------------------------------------------------------- panel del hero */
.hero-visual { position: relative; }

.panel {
  position: relative; z-index: 2;
  background: #fff; border: 1px solid var(--borde);
  border-radius: var(--r-tarjeta); box-shadow: var(--s-4);
  padding: 22px; overflow: hidden;
}
.panel::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--secundario), var(--acento), var(--exito));
}
.panel-cab { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.panel-titulo { font-size: 1rem; font-weight: 700; color: var(--primario);
  letter-spacing: -.024em; line-height: 1.2; margin: 0 0 2px; }
.panel-cab span { font-size: .8rem; color: var(--texto-3); }
.panel-puntos { display: flex; gap: 5px; padding-top: 5px; }
.panel-puntos i { width: 8px; height: 8px; border-radius: 50%; background: var(--fondo-3); }
.panel-puntos i:first-child { background: #FDE68A; }
.panel-puntos i:nth-child(2) { background: #BFDBFE; }

.panel-metricas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.metrica {
  background: var(--fondo-2); border: 1px solid var(--borde-2);
  border-radius: var(--r); padding: 12px 13px;
}
.metrica span { display: block; font-size: .72rem; color: var(--texto-2); margin-bottom: 3px; }
.metrica b {
  display: block; font-size: 1.22rem; font-weight: 700; color: var(--primario);
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.metrica i {
  display: inline-flex; align-items: center; gap: 3px;
  font-style: normal; font-size: .72rem; font-weight: 600; color: var(--exito);
}

.grafico { position: relative; border-radius: var(--r); overflow: hidden; background: var(--fondo-2); border: 1px solid var(--borde-2); }
.grafico svg { width: 100%; height: 132px; display: block; }
.grafico-linea {
  fill: none; stroke: url(#degIllo); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 620; stroke-dashoffset: 620;
}
.js .grafico-linea { animation: trazar 1.9s cubic-bezier(.16, 1, .3, 1) .35s forwards; }
@keyframes trazar { to { stroke-dashoffset: 0; } }

.panel-pie { margin: 14px 0 0; font-size: .72rem; color: var(--texto-3); line-height: 1.5; }

/* Tarjetas flotantes: rompen la caja del panel y dan sensación de capas. */
.flotante {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: var(--r);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--borde); box-shadow: var(--s-3);
  font-size: .82rem; font-weight: 550; color: var(--primario); white-space: nowrap;
}
.flotante .ico { width: 16px; height: 16px; color: var(--secundario); }
.flotante-1 { top: -18px; left: -22px; }
.flotante-2 { bottom: 52px; right: -26px; }
.flotante-3 { bottom: -20px; left: 26px; }
.js .flotante { animation: flotar 6s ease-in-out infinite; }
.js .flotante-2 { animation-delay: -2s; }
.js .flotante-3 { animation-delay: -4s; }
@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* --------------------------------------------------------- tira confianza */
.tira { padding: 34px 0; border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); background: var(--fondo-2); }
.tira-titulo { text-align: center; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3); margin-bottom: 20px; }
.tira-lista {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 12px 34px; list-style: none; margin: 0 0 14px; padding: 0;
}
.tira-lista li {
  margin: 0; font-size: 1.02rem; font-weight: 600; letter-spacing: -.026em;
  color: #64748B; opacity: .82; transition: opacity var(--t), color var(--t);
}
.tira-lista li:hover { opacity: 1; color: var(--primario); }
.tira-nota { text-align: center; font-size: .74rem; color: var(--texto-3); margin: 0; max-width: 680px; margin-inline: auto; }

/* -------------------------------------------------------------- tarjetas */
.tarjeta {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--borde);
  border-radius: var(--r-tarjeta); padding: 28px;
  box-shadow: var(--s-1);
  transition: transform var(--t-lento), box-shadow var(--t-lento), border-color var(--t);
}
.tarjeta:hover { transform: translateY(-4px); box-shadow: var(--s-3); border-color: #DDE3EA; }

.tarjeta-icono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--r); margin-bottom: 18px;
  background: linear-gradient(140deg, #EFF6FF, #F0F9FF);
  border: 1px solid #DBEAFE; color: var(--secundario);
  transition: transform var(--t-lento);
}
.tarjeta:hover .tarjeta-icono { transform: scale(1.06) rotate(-3deg); }
.tarjeta-icono .ico { width: 22px; height: 22px; }

.tarjeta p { color: var(--texto-2); font-size: .96rem; }

/* --- tarjeta de servicio --- */
.serv { padding: 0; overflow: hidden; }
.serv-foto { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--fondo-3); }
.serv-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.16, 1, .3, 1); }
.serv:hover .serv-foto img { transform: scale(1.045); }
.serv-foto::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, .30) 0%, rgba(15, 23, 42, .04) 46%, transparent 100%);
}
.serv-chip {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 9px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .74rem; font-weight: 600; color: var(--primario);
  box-shadow: var(--s-1);
}
.serv-chip .ico { width: 15px; height: 15px; color: var(--secundario); }

.serv-cuerpo { padding: 26px 26px 0; flex: 1; }
.serv-cuerpo h3 { margin-bottom: 10px; }
.serv-cuerpo > p { color: var(--texto-2); font-size: .95rem; margin-bottom: 18px; }

.lista-check { list-style: none; margin: 0 0 20px; padding: 0; }
.lista-check li {
  position: relative; padding-left: 26px; margin-bottom: 7px;
  font-size: .9rem; color: var(--texto-2);
}
.lista-check li::before {
  content: ''; position: absolute; left: 0; top: .42em;
  width: 16px; height: 16px; border-radius: 50%;
  background: #ECFDF5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.serv-datos {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  padding: 14px 0; margin-bottom: 4px;
  border-top: 1px solid var(--borde-2);
  font-size: .82rem; color: var(--texto-2);
}
.serv-datos span { display: inline-flex; align-items: center; gap: 6px; }
.serv-datos .ico { width: 15px; height: 15px; color: var(--texto-3); }

.serv-pie {
  margin-top: auto; padding: 20px 26px 26px;
  border-top: 1px solid var(--borde-2); background: var(--fondo-2);
}
.precio-bloque { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.precio {
  font-size: 1.85rem; font-weight: 700; color: var(--primario);
  letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums;
}
.precio-nota { font-size: .8rem; color: var(--texto-2); }
.precio-iva { display: block; font-size: .8rem; color: var(--texto-3); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.serv-acciones { display: flex; gap: 9px; flex-wrap: wrap; }
.serv-acciones .btn { flex: 1 1 auto; }

/* ------------------------------------------------------------- nosotros */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 68px); align-items: center; }
.split-foto { position: relative; }
.split-foto img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-tarjeta); box-shadow: var(--s-3);
}
.split-foto::after {
  content: ''; position: absolute; inset: auto -18px -18px auto;
  width: 62%; height: 62%; z-index: -1; border-radius: var(--r-tarjeta);
  background: linear-gradient(140deg, rgba(37, 99, 235, .12), rgba(56, 189, 248, .12));
}
.sellos { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.sellos li { display: flex; gap: 13px; align-items: flex-start; }
.sellos .ico { width: 20px; height: 20px; color: var(--secundario); margin-top: 3px; }
.sellos b { display: block; color: var(--primario); font-weight: 600; font-size: .95rem; }
.sellos span { font-size: .875rem; color: var(--texto-2); }

/* --------------------------------------------------------------- cifras */
.cifras { background: var(--primario); color: #fff; position: relative; overflow: hidden; }
.cifras::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 340px at 12% 0%, rgba(37, 99, 235, .40), transparent 62%),
    radial-gradient(620px 320px at 88% 100%, rgba(56, 189, 248, .26), transparent 64%);
}
.cifras::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(760px 400px at 50% 50%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(760px 400px at 50% 50%, #000, transparent 76%);
}
.cifras .contenedor { position: relative; z-index: 1; }
.cifras h2 { color: #fff; text-align: center; margin-bottom: 46px; }
.cifra { text-align: center; padding: 10px; }
.cifra b {
  display: block; font-size: clamp(2.5rem, 1.6rem + 3vw, 3.7rem);
  font-weight: 700; letter-spacing: -.05em; line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums; margin-bottom: 10px;
}
.cifra b em {
  font-style: normal;
  background: linear-gradient(100deg, var(--acento), #7DD3FC);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Sólo la etiqueta: el <span data-contador> vive dentro del <b> y debe
   conservar su tamaño grande. */
.cifra > span { font-size: .95rem; color: rgba(255, 255, 255, .68); }
.cifras-nota { text-align: center; font-size: .74rem; color: rgba(255, 255, 255, .58); margin: 40px 0 0; }

/* -------------------------------------------------------------- proceso */
.proceso { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.proceso::before {
  content: ''; position: absolute; left: 23px; top: 22px; bottom: 42px; width: 2px;
  background: linear-gradient(180deg, var(--secundario), var(--acento) 55%, transparent);
  opacity: .35;
}
.proceso li {
  position: relative; display: grid; grid-template-columns: 48px 1fr;
  gap: 22px; padding-bottom: 34px; margin: 0;
}
.proceso li:last-child { padding-bottom: 0; }
.paso-num {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--borde);
  font-weight: 700; font-size: 1.02rem; color: var(--secundario);
  box-shadow: var(--s-2); position: relative; z-index: 1;
  font-variant-numeric: tabular-nums;
  transition: transform var(--t-lento), box-shadow var(--t-lento);
}
.proceso li:hover .paso-num {
  transform: scale(1.06);
  box-shadow: 0 4px 16px -4px rgba(37, 99, 235, .4);
  border-color: #BFDBFE;
}
.paso-cuerpo { padding-top: 4px; }
.paso-cuerpo h3 { margin-bottom: 6px; }
.paso-cuerpo p { color: var(--texto-2); font-size: .96rem; margin: 0; max-width: 62ch; }

/* ----------------------------------------------------------- testimonios */
.opinion { justify-content: space-between; }
.opinion-texto {
  font-size: 1rem; color: var(--texto); line-height: 1.7;
  margin-bottom: 24px; text-wrap: pretty;
}
.opinion-texto::before {
  content: '“'; display: block; font-size: 3rem; line-height: .6;
  color: var(--acento); margin-bottom: 12px; font-weight: 700;
}
.opinion-autor { display: flex; align-items: center; gap: 13px; padding-top: 20px; border-top: 1px solid var(--borde-2); }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--primario), var(--secundario));
  color: #fff; font-weight: 650; font-size: .86rem; letter-spacing: -.02em;
}
.opinion-autor b { display: block; font-size: .93rem; color: var(--primario); font-weight: 600; }
/* Con clase propia, no por descendencia: `.opinion-autor span` también casaba
   con .avatar (mayor especificidad) y dejaba las iniciales grises sobre azul
   oscuro, ilegibles. */
.opinion-rol { display: block; font-size: .81rem; color: var(--texto-2); }

/* ------------------------------------------------------------------ FAQ */
.faq { display: grid; gap: 10px; }
.faq details {
  background: #fff; border: 1px solid var(--borde);
  border-radius: var(--r); overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.faq details[open] { border-color: #DBEAFE; box-shadow: var(--s-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 19px 22px; cursor: pointer; list-style: none;
  font-weight: 550; font-size: 1.01rem; color: var(--primario);
  letter-spacing: -.015em; transition: background var(--t);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--fondo-2); }
.faq summary .ico { width: 19px; height: 19px; color: var(--texto-3); transition: transform var(--t-lento), color var(--t); flex: none; }
.faq details[open] summary .ico { transform: rotate(180deg); color: var(--secundario); }
.faq-r { padding: 0 22px 21px; color: var(--texto-2); font-size: .96rem; max-width: 78ch; }
.js .faq details[open] .faq-r { animation: desplegar 320ms cubic-bezier(.16, 1, .3, 1); }
@keyframes desplegar { from { opacity: 0; transform: translateY(-6px); } }

/* -------------------------------------------------------------- contacto */
.contacto-rejilla { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .82fr); gap: clamp(28px, 4vw, 52px); align-items: start; }

.formulario {
  background: #fff; border: 1px solid var(--borde);
  border-radius: var(--r-tarjeta); padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--s-2);
}
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.campo { display: flex; flex-direction: column; gap: 7px; }
.campo-ancho { grid-column: 1 / -1; }
.campo label { font-size: .855rem; font-weight: 550; color: var(--primario); }
.campo label em { font-style: normal; font-weight: 400; color: var(--texto-3); }

input[type='text'], input[type='email'], input[type='tel'], select, textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: .95rem; color: var(--texto);
  background: #fff; border: 1px solid var(--borde);
  border-radius: var(--r-input);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  appearance: none;
}
textarea { min-height: 124px; resize: vertical; line-height: 1.6; }
select {
  cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 17px;
}
input::placeholder, textarea::placeholder { color: var(--texto-3); }
input:hover, select:hover, textarea:hover { border-color: #CBD5E1; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--secundario); box-shadow: var(--s-foco);
}
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] {
  border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .16);
}

.consentimiento { display: flex; gap: 11px; align-items: flex-start; grid-column: 1 / -1; font-size: .855rem; color: var(--texto-2); }
.consentimiento input { width: 17px; height: 17px; margin-top: 3px; flex: none; accent-color: var(--secundario); }

.aviso-form {
  display: none; align-items: flex-start; gap: 10px; margin-top: 18px;
  padding: 13px 16px; border-radius: var(--r); font-size: .89rem;
}
.aviso-form.visible { display: flex; }
.aviso-form.ok    { background: #ECFDF5; border: 1px solid #A7F3D0; color: #166534; }
.aviso-form.error { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }
.aviso-form .ico { width: 18px; height: 18px; margin-top: 1px; flex: none; }

.datos-contacto { display: grid; gap: 10px; }
.dato {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 18px 20px; background: #fff;
  border: 1px solid var(--borde); border-radius: var(--r);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
a.dato:hover { border-color: #BFDBFE; box-shadow: var(--s-2); transform: translateY(-2px); }
/* Se cualifica con el padre a propósito: `.dato span` (más específico que una
   clase suelta) le robaba el color y el display al icono. */
.dato .dato-icono {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #EFF6FF, #F0F9FF);
  border: 1px solid #DBEAFE; color: var(--secundario);
}
.dato span { display: block; font-size: .78rem; color: var(--texto-2); margin-bottom: 2px; }
.dato b { display: block; font-size: .96rem; color: var(--primario); font-weight: 600; letter-spacing: -.015em; }
.dato b.normal { font-weight: 500; font-size: .92rem; line-height: 1.5; }

/* -------------------------------------------------------- carrito / pago */
.tabla-carrito { width: 100%; border-collapse: collapse; }
.tabla-carrito th {
  text-align: left; font-size: .75rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--texto-3);
  padding: 0 0 12px; border-bottom: 1px solid var(--borde);
}
.tabla-carrito th:last-child, .tabla-carrito td:last-child { text-align: right; }
.tabla-carrito td { padding: 20px 0; border-bottom: 1px solid var(--borde-2); vertical-align: middle; }
.linea-nombre { display: flex; align-items: center; gap: 15px; }
/* Mismo motivo que en .dato .dato-icono: gana a `.linea-nombre span`. */
.linea-nombre .linea-icono {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #EFF6FF, #F0F9FF);
  border: 1px solid #DBEAFE; color: var(--secundario);
}
.linea-nombre b { display: block; font-size: .97rem; color: var(--primario); font-weight: 600; }
.linea-nombre span { display: block; font-size: .82rem; color: var(--texto-2); }

.cantidad { display: inline-flex; align-items: center; border: 1px solid var(--borde); border-radius: var(--r-boton); overflow: hidden; background: #fff; }
.cantidad button {
  width: 34px; height: 36px; border: 0; background: #fff; color: var(--texto-2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--t), color var(--t);
}
.cantidad button:hover { background: var(--fondo-3); color: var(--primario); }
.cantidad button .ico { width: 15px; height: 15px; }
.cantidad span { min-width: 30px; text-align: center; font-weight: 600; font-size: .93rem; font-variant-numeric: tabular-nums; }

.btn-quitar {
  border: 0; background: none; padding: 6px; cursor: pointer; color: var(--texto-3);
  border-radius: 8px; transition: color var(--t), background var(--t);
}
.btn-quitar:hover { color: #DC2626; background: #FEF2F2; }
.btn-quitar .ico { width: 17px; height: 17px; }

.importe { font-weight: 650; color: var(--primario); font-variant-numeric: tabular-nums; white-space: nowrap; }

.resumen {
  position: sticky; top: calc(var(--cab-alto) + 24px);
  background: #fff; border: 1px solid var(--borde);
  border-radius: var(--r-tarjeta); padding: 26px; box-shadow: var(--s-2);
}
.resumen[data-fijo='no'] { position: static; }
.resumen h3 { font-size: 1.08rem; margin-bottom: 20px; }
.resumen-fila { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: .93rem; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.resumen-fila b { color: var(--primario); font-weight: 600; }
.resumen-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--borde);
  font-size: .95rem; color: var(--texto-2);
}
.resumen-total b { font-size: 1.62rem; font-weight: 700; color: var(--primario); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.resumen .btn { margin-top: 20px; }
.resumen-nota { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: .78rem; color: var(--texto-3); }
.resumen-nota .ico { width: 15px; height: 15px; margin-top: 2px; flex: none; }

.mini-linea { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: .89rem; border-bottom: 1px solid var(--borde-2); }
.mini-linea:last-of-type { border-bottom: 0; }
.mini-linea span { color: var(--texto-2); }
.mini-linea b { color: var(--primario); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.vacio { text-align: center; padding: 70px 24px; }
.vacio-icono {
  width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--fondo-2); border: 1px solid var(--borde); color: var(--texto-3);
}
.vacio-icono .ico { width: 30px; height: 30px; }
.vacio p { color: var(--texto-2); max-width: 42ch; margin: 0 auto 26px; }

/* ------------------------------------------------------------ comprobante */
.exito-cab { text-align: center; margin-bottom: 40px; }
.exito-icono {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  background: #ECFDF5; border: 1px solid #A7F3D0; color: #16A34A;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, .08);
}
.exito-icono.pendiente {
  background: #FFFBEB; border-color: #FDE68A; color: #B45309;
  box-shadow: 0 0 0 8px rgba(245, 158, 11, .08);
}
.exito-icono .ico { width: 30px; height: 30px; stroke-width: 2.4; }
.exito-cab p { color: var(--texto-2); max-width: 54ch; margin-inline: auto; }

.comprobante {
  background: #fff; border: 1px solid var(--borde);
  border-radius: var(--r-tarjeta); padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--s-2);
}
.comp-cab { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--borde); margin-bottom: 24px; }
.comp-cab h2 { font-size: 1.3rem; margin-bottom: 4px; }
.comp-meta { text-align: right; font-size: .84rem; color: var(--texto-2); }
.comp-meta b { display: block; font-size: .95rem; color: var(--primario); font-variant-numeric: tabular-nums; }
.marca-estado {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  padding: 4px 11px; border-radius: var(--r-pill);
  background: #ECFDF5; border: 1px solid #A7F3D0; color: #166534;
  font-size: .76rem; font-weight: 600;
}
.marca-estado.pendiente { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }

.comp-partes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 26px; }
.comp-parte h4 { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-3); margin-bottom: 8px; font-weight: 600; }
.comp-parte p { font-size: .87rem; color: var(--texto-2); line-height: 1.6; margin: 0; }
.comp-parte p b { color: var(--primario); font-weight: 600; }

.tabla-comp { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.tabla-comp th {
  text-align: left; font-size: .72rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--texto-3);
  padding: 0 0 10px; border-bottom: 1px solid var(--borde);
}
.tabla-comp th:not(:first-child), .tabla-comp td:not(:first-child) { text-align: right; }
.tabla-comp td { padding: 13px 0; border-bottom: 1px solid var(--borde-2); font-size: .9rem; vertical-align: top; }
.tabla-comp td b { color: var(--primario); font-weight: 600; }
.tabla-comp td span { display: block; font-size: .8rem; color: var(--texto-2); margin-top: 3px; }
.tabla-comp .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.comp-totales { margin-left: auto; max-width: 320px; }
.comp-totales .resumen-fila { padding: 7px 0; }
.comp-totales .resumen-total { margin-top: 8px; padding-top: 14px; }
.comp-totales .resumen-total b { font-size: 1.3rem; }

.comp-detalle { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--borde); display: grid; gap: 18px; }
.comp-detalle h4 { font-size: .95rem; margin-bottom: 8px; }
.comp-pie { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--borde); font-size: .78rem; color: var(--texto-3); line-height: 1.6; }
.comp-pie b { color: var(--texto-2); font-weight: 550; }
.comp-acciones { display: flex; gap: 11px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }

/* ------------------------------------------------------------------- CTA */
.cta-final { position: relative; overflow: hidden; background: var(--primario); color: #fff; }
.cta-final::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(680px 340px at 20% 0%, rgba(37, 99, 235, .48), transparent 62%),
    radial-gradient(560px 300px at 84% 108%, rgba(56, 189, 248, .30), transparent 62%);
}
.cta-final .contenedor { position: relative; z-index: 1; text-align: center; }
.cta-final h2 { color: #fff; margin-bottom: 14px; }
.cta-final p { color: rgba(255, 255, 255, .72); max-width: 54ch; margin: 0 auto 30px; font-size: 1.08rem; }
.cta-botones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-nota { margin: 22px 0 0; font-size: .82rem; color: rgba(255, 255, 255, .6); }

/* ------------------------------------------------------------------- pie */
.pie { background: var(--primario); color: rgba(255, 255, 255, .64); font-size: .91rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.pie-sup { padding: clamp(48px, 6vw, 72px) 0 40px; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.pie .logo, .pie .logo:hover { color: #fff; }
.pie .logo small { color: rgba(255, 255, 255, .58); }
.pie-sobre { margin: 18px 0 22px; max-width: 34ch; line-height: 1.65; }
.pie h2 { color: #fff; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pie li { margin: 0; }
.pie a { color: rgba(255, 255, 255, .64); }
.pie a:hover { color: #fff; }

.pagos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.pagos img { height: 26px; width: auto; border-radius: 4px; }

.pie-inf {
  padding: 22px 0 34px; border-top: 1px solid rgba(255, 255, 255, .09);
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; align-items: center;
  font-size: .82rem; color: rgba(255, 255, 255, .6);
}
.pie-inf p { margin: 0; }

/* ----------------------------------------------------------------- legal */
.legal { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.7rem); margin-bottom: 10px; }
.legal .actualizado { font-size: .86rem; color: var(--texto-3); margin-bottom: 40px; }
.legal h2 { font-size: 1.32rem; margin: 44px 0 14px; letter-spacing: -.025em; }
.legal h3 { font-size: 1.04rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--texto-2); font-size: .97rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: .89rem; }
.legal th, .legal td { text-align: left; padding: 11px 13px; border: 1px solid var(--borde); vertical-align: top; }
.legal th { background: var(--fondo-2); color: var(--primario); font-weight: 600; font-size: .82rem; }
.legal td { color: var(--texto-2); }
.ficha-legal {
  background: var(--fondo-2); border: 1px solid var(--borde);
  border-radius: var(--r); padding: 22px 24px; margin-bottom: 12px;
}
.ficha-legal dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 22px; margin: 0; font-size: .92rem; }
.ficha-legal dt { color: var(--texto-2); }
.ficha-legal dd { margin: 0; color: var(--primario); font-weight: 550; }

/* --------------------------------------------------------------- reveal */
.js .revelar { opacity: 0; transform: translateY(22px); }
.js .revelar.dentro {
  opacity: 1; transform: none;
  transition: opacity 620ms cubic-bezier(.16, 1, .3, 1), transform 620ms cubic-bezier(.16, 1, .3, 1);
}
.js .revelar.dentro[data-r='1'] { transition-delay: 80ms; }
.js .revelar.dentro[data-r='2'] { transition-delay: 160ms; }
.js .revelar.dentro[data-r='3'] { transition-delay: 240ms; }
.js .revelar.dentro[data-r='4'] { transition-delay: 320ms; }
.js .revelar.dentro[data-r='5'] { transition-delay: 400ms; }

/* --------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero-int { grid-template-columns: 1fr; }
  .hero-texto { max-width: 720px; }
  .hero-visual { margin-top: 12px; }
  .flotante-1 { left: 0; }
  .flotante-2 { right: 0; }
  .pie-sup { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
}

@media (max-width: 900px) {
  .rejilla-3, .rejilla-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-foto { order: -1; }
  .contacto-rejilla { grid-template-columns: 1fr; }
  .resumen { position: static; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .nav {
    position: fixed; inset: var(--cab-alto) 0 auto; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 20px 22px; margin: 0;
    /* Fondo sólido, no translúcido: si el navegador ignora backdrop-filter
       (o lo desactiva por ahorro de batería) el menú quedaría ilegible sobre
       el titular del hero. */
    background: #fff;
    border-bottom: 1px solid var(--borde); box-shadow: var(--s-3);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--t), transform var(--t);
  }
  .nav[data-abierto='1'] { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 13px 14px; font-size: 1rem; }
  .nav > .btn { display: inline-flex; margin-top: 8px; }
  .acciones-cab { margin-left: auto; }
  .acciones-cab > .btn { display: none; }
  .comp-partes { grid-template-columns: 1fr; }
  .tabla-carrito thead { display: none; }
  .tabla-carrito, .tabla-carrito tbody, .tabla-carrito tr, .tabla-carrito td { display: block; width: 100%; }
  .tabla-carrito tr { padding: 18px 0; border-bottom: 1px solid var(--borde-2); }
  .tabla-carrito td { border: 0; padding: 5px 0; text-align: left !important; }
  .split-foto::after { display: none; }
}

/* La media query va DESPUÉS de la regla base: con igual especificidad gana la
   última, y si se declara antes el botón de menú reaparece en escritorio. */
@media (max-width: 780px) {
  .btn-menu { display: flex; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .rejilla-2, .rejilla-3, .rejilla-4 { grid-template-columns: 1fr; }
  .campos { grid-template-columns: 1fr; }
  .tarjeta { padding: 22px; }
  .serv-cuerpo { padding: 22px 22px 0; }
  .serv-pie { padding: 18px 22px 22px; }
  .flotante { display: none; }
  .comp-cab { flex-direction: column; }
  .comp-meta { text-align: left; }
  .comp-totales { max-width: none; }
  .hero-botones .btn { width: 100%; }
}

/* ----------------------------------------------------- accesibilidad */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .js .revelar { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- impresión */
@media print {
  .cabecera, .pie, .cta-final, .no-imprimir, .saltar { display: none !important; }
  @page { margin: 14mm; }
  body { font-size: 10pt; line-height: 1.42; color: #000; background: #fff; }
  .seccion { padding: 0 !important; }
  .contenedor { max-width: none; padding: 0; }
  .comprobante {
    border: 1px solid #999; border-radius: 0; box-shadow: none; padding: 6pt 8pt;
    break-inside: avoid;
  }
  .comp-cab { padding-bottom: 6pt; margin-bottom: 8pt; }
  .comp-cab h2 { font-size: 13pt; }
  .comp-partes { gap: 10pt; margin-bottom: 8pt; }
  .comp-detalle { margin-top: 8pt; padding-top: 6pt; gap: 6pt; }
  .comp-pie { margin-top: 8pt; padding-top: 6pt; font-size: 7.5pt; }
  .tabla-comp td, .tabla-comp th { padding: 4pt 0; }
  .tabla-comp { margin-bottom: 8pt; }
  .exito-cab { margin-bottom: 10pt; }
  .exito-cab h1 { font-size: 15pt; }
  .exito-icono { width: 30pt; height: 30pt; box-shadow: none; margin-bottom: 6pt; }
  h1, h2, h3, h4 { color: #000; break-after: avoid; }
  a { color: #000; text-decoration: none; }
}
