/* Cuendia · web de presentación. Lenguaje visual de iOS: tipografía del sistema,
   superficies limpias, un único acento (el degradado de marca) y modo oscuro automático. */

:root {
  --azul: #0A84FF;
  --turquesa: #30B0C7;
  --degradado: linear-gradient(135deg, var(--azul), var(--turquesa));
  --fondo: #F5F5F7;
  --superficie: #FFFFFF;
  --superficie-2: #F2F2F7;
  --texto: #1D1D1F;
  --texto-2: #6E6E73;
  --borde: rgba(0, 0, 0, 0.08);
  --sombra: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 30px rgba(0, 0, 0, 0.06);
  --nav: rgba(251, 251, 253, 0.8);
  --verde: #248A3D;
  --rojo: #D70015;
  --naranja: #C93400;
  --radio: 24px;
  --ancho: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #000000;
    --superficie: #1C1C1E;
    --superficie-2: #2C2C2E;
    --texto: #F5F5F7;
    --texto-2: #A1A1A6;
    --borde: rgba(255, 255, 255, 0.1);
    --sombra: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 30px rgba(0, 0, 0, 0.4);
    --nav: rgba(22, 22, 23, 0.8);
    --verde: #30D158;
    --rojo: #FF453A;
    --naranja: #FF9F0A;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 8px; }

.saltar {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--superficie); color: var(--texto); border-radius: 12px; box-shadow: var(--sombra);
}
.saltar:focus { top: 12px; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }

/* ---------- Navegación translúcida ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--borde);
}
.nav .contenedor { display: flex; align-items: center; height: 60px; gap: 24px; }
.nav .logo img { height: 28px; width: auto; }
.nav nav { margin-left: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; }
.nav ul a { color: var(--texto); font-size: 14px; opacity: 0.85; }
.nav ul a:hover { opacity: 1; text-decoration: none; }
.nav ul a { position: relative; transition: color 0.2s, opacity 0.2s; }
.nav ul a.activo { opacity: 1; color: var(--azul); font-weight: 600; }
.nav ul a.activo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -20px; height: 2px; border-radius: 2px; background: var(--degradado); }
.menu-boton {
  display: none; width: 40px; height: 40px; border: 0; background: none; color: var(--texto);
  border-radius: 10px; cursor: pointer; place-items: center;
}
.menu-boton svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }

/* ---------- Botones y enlaces ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 980px; border: 0; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.boton:hover { text-decoration: none; transform: scale(1.02); filter: brightness(1.05); }
.boton-primario { background: var(--degradado); color: #fff; }
.boton-secundario { background: var(--superficie-2); color: var(--azul); }
.boton-pequeno { height: 34px; padding: 0 16px; font-size: 14px; }
.enlace-flecha { font-weight: 500; }
.enlace-flecha::after { content: " ›"; }

/* ---------- Tipografía ---------- */
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.07; letter-spacing: -0.03em; font-weight: 700; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
.degradado-texto { background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; }
.entradilla { font-size: clamp(19px, 2.2vw, 24px); color: var(--texto-2); line-height: 1.4; letter-spacing: -0.01em; }

section { padding: 128px 0; }
.cabecera-seccion { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.cabecera-seccion .entradilla { margin-top: 18px; }

/* Aparición al hacer scroll (solo con JavaScript y sin preferencia de menos movimiento) */
.js .revelar { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .revelar.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .revelar { opacity: 1; transform: none; transition: none; } }

/* ---------- Portada ---------- */
.portada { position: relative; padding: 104px 0 80px; text-align: center; overflow-x: clip; }
.portada > .contenedor { position: relative; z-index: 1; }
.portada h1 { max-width: 920px; margin: 0 auto; }
.portada .entradilla { max-width: 680px; margin: 24px auto 0; }
.acciones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

.fondo-graficas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  opacity: 0.11;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 30%, transparent 75%);
}
@media (prefers-color-scheme: dark) { .fondo-graficas { opacity: 0.2; } }

/* Escena 3D: cuadro de mando inclinado, iPhone y notificación delante */
.escena {
  position: relative; max-width: 980px; margin: 72px auto 0; padding-bottom: 110px;
  perspective: 2200px; perspective-origin: 50% 0%;
}
.maqueta {
  max-width: 980px; padding: 20px;
  background: var(--superficie-2); border-radius: 36px; border: 1px solid var(--borde);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left;
  transform: rotateX(var(--rx, 14deg)) rotateY(var(--ry, 0deg));
  transform-origin: 50% 0%;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 50px 100px -30px rgba(0, 20, 60, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
}
.widget {
  background: var(--superficie); border-radius: var(--radio); padding: 20px;
  box-shadow: var(--sombra); min-height: 150px; display: flex; flex-direction: column;
}
.widget .titulo { font-size: 13px; font-weight: 600; color: var(--texto-2); }
.widget .cifra { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-top: auto; font-variant-numeric: tabular-nums; }
.widget .detalle { font-size: 13px; color: var(--texto-2); margin-top: 2px; }
.sube { color: var(--verde); font-weight: 600; }
.baja { color: var(--rojo); font-weight: 600; }
.widget-ancho { grid-column: span 2; }
.widget-destacado { background: var(--degradado); color: #fff; }
.widget-destacado .titulo, .widget-destacado .detalle { color: rgba(255, 255, 255, 0.88); }
.barras { display: grid; gap: 10px; margin-top: 16px; }
.barra { display: grid; grid-template-columns: 110px 1fr 48px; align-items: center; gap: 10px; font-size: 13px; }
.barra .pista, .barra .relleno { display: block; }
.barra .pista { height: 8px; border-radius: 4px; background: var(--superficie-2); overflow: hidden; }
.barra .relleno { height: 100%; border-radius: 4px; background: var(--degradado); }
.barra .relleno.negativo { background: var(--rojo); }
.barra b { text-align: right; font-weight: 600; }
.grafico { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin: 16px 0 6px; }
.grafico span { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--degradado); }
.p10 { width: 10%; } .p34 { width: 34%; } .p52 { width: 52%; } .p78 { width: 78%; }
.h42 { height: 42%; } .h48 { height: 48%; } .h55 { height: 55%; } .h58 { height: 58%; } .h63 { height: 63%; } .h66 { height: 66%; }
.h69 { height: 69%; } .h70 { height: 70%; } .h74 { height: 74%; } .h82 { height: 82%; } .h88 { height: 88%; } .h100 { height: 100%; }

.aviso-ios {
  position: absolute; z-index: 3; left: -28px; top: 18px; width: 340px;
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  padding: 14px 16px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.28);
  transform: rotate(-3deg) translateY(-40px);
  font-size: 13px; line-height: 1.35; color: #1D1D1F;
}
.aviso-ios img { border-radius: 9px; flex: none; }
.aviso-ios div { display: grid; }
.aviso-app { font-size: 11px; letter-spacing: 0.04em; color: #6E6E73; }
.aviso-app em { font-style: normal; float: right; }
.aviso-ios strong { font-size: 14px; }
@media (prefers-color-scheme: dark) {
  .aviso-ios { background: rgba(44, 44, 46, 0.8); border-color: rgba(255, 255, 255, 0.08); color: #F5F5F7; }
  .aviso-app { color: #A1A1A6; }
}

.iphone {
  position: absolute; z-index: 3; right: -36px; bottom: -70px; width: 236px; height: 480px;
  border-radius: 46px; background: #1D1D1F; padding: 9px;
  box-shadow: inset 0 0 0 2px #3A3A3C, 0 40px 80px -20px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.2);
  transform: rotate(5deg);
}
.pantalla {
  height: 100%; border-radius: 38px; background: #F2F2F7; color: #1D1D1F; position: relative;
  padding: 14px 14px 16px; text-align: left; display: flex; flex-direction: column; gap: 8px; overflow: hidden;
}
.isla { position: absolute; top: 10px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 12px; background: #000; }
.barra-estado { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; padding: 2px 8px 6px; }
.volver { color: #0A84FF; font-size: 13px; margin-top: 6px; }
.titulo-app { font-size: 22px; letter-spacing: -0.02em; }
.foto-ticket { height: 150px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #8E7A64, #5B4B3B); }
.ticket {
  width: 116px; padding: 10px 10px 12px; background: #FBFAF6; color: #333; transform: rotate(-4deg);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 8.5px; line-height: 1.5;
  display: grid; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
.ticket i { border-top: 1px dashed #999; margin: 4px 0; }
.campo { display: flex; justify-content: space-between; background: #fff; border-radius: 10px; padding: 8px 10px; font-size: 12px; }
.campo span { color: #6E6E73; }
.boton-app { margin-top: auto; text-align: center; background: linear-gradient(135deg, #0A84FF, #30B0C7); color: #fff; font-weight: 600; font-size: 14px; border-radius: 12px; padding: 10px; }

/* ---------- Carrusel de clientes (oculto hasta tener logos) ---------- */
.clientes { padding: 40px 0 8px; }
.clientes-titulo { text-align: center; font-size: 15px; color: var(--texto-2); margin-bottom: 28px; }
.cinta { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.cinta-pista { display: flex; gap: 72px; width: max-content; animation: cinta 40s linear infinite; }
.cinta-pista img { height: 36px; width: auto; filter: grayscale(1); opacity: 0.6; transition: opacity 0.2s, filter 0.2s; }
.cinta-pista img:hover { filter: none; opacity: 1; }
.cinta:hover .cinta-pista { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cinta-pista { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }
@media (prefers-color-scheme: dark) { .cinta-pista img { filter: grayscale(1) invert(1); } }

/* ---------- Trazabilidad: ventana de la app en tres columnas ---------- */
.traza { padding: 128px 0; overflow: hidden; }
.traza-rejilla { display: grid; gap: 56px; }
.traza-rejilla > div:first-child { max-width: 700px; }
.traza .entradilla { margin-top: 20px; }
.ventana {
  border-radius: 18px; overflow: hidden; background: var(--superficie);
  border: 1px solid var(--borde);
  box-shadow: 0 60px 120px -40px rgba(0, 20, 60, 0.4), 0 20px 50px -25px rgba(0, 0, 0, 0.25);
}
.ventana-barra { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; background: var(--superficie-2); border-bottom: 1px solid var(--borde); }
.ventana-barra i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.ventana-barra i:nth-child(2) { background: #FEBC2E; }
.ventana-barra i:nth-child(3) { background: #28C840; }
.ventana-barra span { margin: 0 auto; padding-right: 52px; font-size: 13px; font-weight: 600; color: var(--texto-2); }
.ventana-cuerpo { display: grid; grid-template-columns: 0.85fr 1.25fr 1fr; min-height: 380px; }
.col { padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.col + .col { border-left: 1px solid var(--borde); }
.col-centros { background: var(--fondo); }
.col-titulo { font-size: 12px; font-weight: 600; color: var(--texto-2); padding: 0 10px 8px; }
.fila, .mov { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border-radius: 10px; font-size: 14px; }
.fila b, .mov b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mov div { display: grid; }
.mov strong { font-weight: 600; font-size: 14px; }
.mov span { font-size: 12px; color: var(--texto-2); }
.fila.activa, .mov.activa { background: var(--azul); color: #fff; }
.fila.activa b, .mov.activa b, .mov.activa span { color: #fff; }
.col-detalle { gap: 8px; padding: 18px; }
.col-detalle .foto-ticket { height: 170px; margin-bottom: 6px; }
.dato { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 2px; border-bottom: 1px solid var(--borde); }
.dato span { color: var(--texto-2); }

/* ---------- Mosaico de funciones (bento) ---------- */
.alterna { background: var(--superficie); }
.mosaico { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.pieza {
  grid-column: span 2; background: var(--fondo); border-radius: 28px; padding: 32px;
  display: flex; flex-direction: column; gap: 10px; overflow: hidden; position: relative; min-height: 300px;
}
.pieza p { color: var(--texto-2); font-size: 16px; }
.pieza-3 { grid-column: span 3; }
.pieza-4 { grid-column: span 4; }
.pieza-oscura { background: #1D1D1F; color: #F5F5F7; }
.pieza-oscura p { color: #A1A1A6; }
@media (prefers-color-scheme: dark) {
  .pieza-oscura { background: linear-gradient(160deg, #0B2742, #071726); border: 1px solid rgba(100, 210, 255, 0.18); }
}
.pieza .visual { margin-top: auto; padding-top: 20px; }

.sparkline { width: 100%; height: 120px; }
.sparkline path { fill: none; stroke: url(#trazo); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sparkline .area { fill: url(#area); stroke: none; }

.anillo {
  width: 132px; height: 132px; border-radius: 50%; margin: 0 auto;
  background: conic-gradient(var(--azul) 0 62%, var(--turquesa) 62% 100%);
  display: grid; place-items: center; position: relative;
}
.anillo::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: var(--fondo); }
.anillo span { position: relative; text-align: center; font-size: 12px; color: var(--texto-2); line-height: 1.2; }
.anillo b { display: block; font-size: 20px; color: var(--texto); letter-spacing: -0.02em; }
.leyenda { display: flex; gap: 16px; justify-content: center; font-size: 13px; color: var(--texto-2); margin-top: 14px; }
.leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.leyenda .l1 { background: var(--azul); } .leyenda .l2 { background: var(--turquesa); }

.lista-ios { background: var(--superficie); border-radius: 16px; overflow: hidden; }
.lista-ios div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; }
.lista-ios div + div { border-top: 1px solid var(--borde); }
.lista-ios b { margin-left: auto; font-variant-numeric: tabular-nums; }
.estado { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 980px; }
.estado-ok { background: rgba(52, 199, 89, 0.15); color: var(--verde); }
.estado-vence { background: rgba(255, 159, 10, 0.18); color: var(--naranja); }
.estado-vencida { background: rgba(255, 59, 48, 0.15); color: var(--rojo); }

.segmentado { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(118, 118, 128, 0.24); font-size: 13px; font-weight: 600; }
.segmentado span { padding: 6px 14px; border-radius: 8px; color: inherit; }
.segmentado .activo { background: #636366; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.empresas { display: grid; gap: 10px; margin-top: 16px; }
.empresa { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); font-size: 14px; }
.empresa .inicial { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--degradado); }
.empresa b { margin-left: auto; font-variant-numeric: tabular-nums; }

.archivo { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--superficie); border-radius: 16px; }
.archivo .doc { width: 40px; height: 48px; border-radius: 8px; background: #1D6F42; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.archivo div { display: grid; font-size: 14px; }
.archivo div span { color: var(--texto-2); font-size: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13px; padding: 7px 12px; border-radius: 980px; background: var(--superficie); border: 1px solid var(--borde); }

.camara { display: grid; place-items: center; height: 120px; border-radius: 18px; background: linear-gradient(160deg, #8E7A64, #5B4B3B); position: relative; }
.camara .ticket { transform: rotate(3deg); }
.camara::after { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 12px; }

/* ---------- Sección oscura a pantalla completa: seguridad ---------- */
.seguridad { background: #000; color: #F5F5F7; }
.seguridad .entradilla { color: #A1A1A6; }
.puntos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.punto h3 { font-size: 19px; margin-top: 16px; }
.punto p { color: #A1A1A6; margin-top: 6px; font-size: 15px; }
.punto svg { width: 34px; height: 34px; stroke: #64D2FF; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tarjetas genéricas ---------- */
.rejilla { display: grid; gap: 20px; }
.rejilla-3 { grid-template-columns: repeat(3, 1fr); }
.tarjeta {
  background: var(--superficie); border-radius: var(--radio); padding: 32px;
  box-shadow: var(--sombra); border: 1px solid var(--borde);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}
.tarjeta:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(0, 20, 60, 0.25); }
.tarjeta p { color: var(--texto-2); margin-top: 8px; font-size: 15px; }
.icono {
  width: 48px; height: 48px; border-radius: 13px; background: var(--degradado);
  display: grid; place-items: center; margin-bottom: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 14px -4px rgba(10, 132, 255, 0.45);
}
.icono svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sector ul { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.sector li { font-size: 15px; padding-left: 26px; position: relative; }
.sector li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--degradado);
  -webkit-mask: radial-gradient(circle, transparent 3px, #000 3.5px); mask: radial-gradient(circle, transparent 3px, #000 3.5px);
}
.proximamente { border: 1px dashed var(--texto-2); background: transparent; box-shadow: none; }

/* ---------- Pasos ---------- */
.paso { text-align: center; padding: 0 12px; }
.paso .numero {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #fff; background: var(--degradado);
}
.paso p { color: var(--texto-2); margin-top: 8px; }

/* ---------- Precios ---------- */
.plan { display: flex; flex-direction: column; }
.plan .precio { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; margin-top: 16px; font-variant-numeric: tabular-nums; }
.plan .precio { line-height: 1.05; }
.plan .precio small { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--texto-2); letter-spacing: 0; line-height: 1.3; }
.plan ul { list-style: none; margin: 24px 0 28px; display: grid; gap: 10px; font-size: 15px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--azul); font-weight: 700; }
.plan .boton { margin-top: auto; }
.plan-destacado { border: 2px solid var(--azul); position: relative; }
.plan-destacado .insignia {
  position: absolute; top: -13px; left: 32px; background: var(--degradado); color: #fff;
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 980px;
}
.nota { text-align: center; color: var(--texto-2); font-size: 14px; margin-top: 28px; }

/* Comparativa de planes */
.comparativa { margin-top: 88px; }
.comparativa-titulo { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; text-align: center; margin-bottom: 32px; }
.tabla-desplazable { overflow-x: auto; border-radius: var(--radio); background: var(--superficie); border: 1px solid var(--borde); box-shadow: var(--sombra); }
.comparativa table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.comparativa th, .comparativa td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--borde); vertical-align: middle; }
.comparativa tbody tr:last-child th, .comparativa tbody tr:last-child td { border-bottom: 0; }
.comparativa tbody th { text-align: left; font-weight: 500; width: 34%; }
.comparativa td { color: var(--texto-2); width: 22%; }
.comparativa thead th { font-size: 17px; font-weight: 700; padding-top: 24px; padding-bottom: 20px; }
.comparativa thead th span { display: block; font-size: 13px; font-weight: 500; color: var(--texto-2); margin-top: 2px; }
.comparativa thead th:nth-child(3), .comparativa td:nth-child(3) { background: rgba(10, 132, 255, 0.06); }
.comparativa .si { color: var(--azul); font-weight: 700; font-size: 18px; }
.comparativa .no { color: var(--texto-2); opacity: 0.5; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Preguntas frecuentes ---------- */
.preguntas { max-width: 820px; margin: 0 auto; }
.preguntas details { border-bottom: 1px solid var(--borde); }
.preguntas summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 300; color: var(--azul); transition: transform 0.25s ease;
}
.preguntas details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.preguntas details p { color: var(--texto-2); padding: 0 40px 24px 0; font-size: 17px; }

/* ---------- Contacto ---------- */
.contacto { background: var(--degradado); color: #fff; border-radius: 36px; padding: 88px 32px; text-align: center; position: relative; overflow: hidden; }
.contacto h2 { position: relative; }
.contacto .entradilla { color: rgba(255, 255, 255, 0.9); margin: 16px auto 0; max-width: 580px; position: relative; }
.contacto .acciones { position: relative; }
.contacto .boton-blanco { background: #fff; color: #0062CC; }
.contacto .boton-borde { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* ---------- Pie ---------- */
footer { padding: 64px 0 48px; border-top: 1px solid var(--borde); font-size: 13px; color: var(--texto-2); }
.pie-rejilla { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.pie-rejilla img { height: 26px; width: auto; margin-bottom: 14px; }
.pie-rejilla h4 { font-size: 13px; font-weight: 600; color: var(--texto); margin-bottom: 12px; }
.pie-rejilla ul { list-style: none; display: grid; gap: 8px; }
footer a { color: var(--texto-2); }
footer a:hover { color: var(--texto); }
.pie-final { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--borde); }

/* ---------- Páginas legales y 404 ---------- */
.legal { padding: 72px 0 96px; }
.legal .contenedor { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 48px); }
.legal .actualizado { color: var(--texto-2); margin-top: 12px; }
.legal h2 { font-size: 24px; margin-top: 44px; letter-spacing: -0.02em; }
.legal p, .legal li { margin-top: 12px; font-size: 16px; color: var(--texto); }
.legal ul { padding-left: 22px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.legal td { padding: 10px 0; border-bottom: 1px solid var(--borde); vertical-align: top; }
.legal td:first-child { color: var(--texto-2); width: 38%; padding-right: 16px; }
.pendiente { background: rgba(255, 159, 10, 0.18); color: #B25000; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .pendiente { color: #FFB340; } }
.error-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.error-404 .cifra-404 { font-size: clamp(96px, 18vw, 180px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin-bottom: 8px; }
.error-404 .entradilla { margin-top: 20px; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .mosaico { grid-template-columns: repeat(2, 1fr); }
  .pieza, .pieza-3, .pieza-4 { grid-column: span 1; }
  .pieza-ancha-movil { grid-column: span 2; }
  .puntos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .maqueta { grid-template-columns: repeat(2, 1fr); transform: none; }
  .escena { padding-bottom: 0; }
  .iphone { display: none; }
  .aviso-ios { position: relative; left: auto; top: auto; margin: 0 auto 20px; transform: none; }
  .rejilla-3 { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .ventana-cuerpo { grid-template-columns: 1.2fr 1fr; }
  .col-centros { display: none; }
  .col-movs { border-left: 0 !important; }
  .pie-rejilla { grid-template-columns: 1fr 1fr; }
  .pie-rejilla > div:first-child { grid-column: span 2; }

  .menu-boton { display: grid; }
  .nav nav {
    position: absolute; left: 0; right: 0; top: 60px; margin: 0; height: calc(100vh - 60px);
    background: var(--fondo); display: none;
  }
  .nav.abierto nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .nav ul a { display: block; padding: 14px 0; font-size: 19px; font-weight: 600; opacity: 1; border-bottom: 1px solid var(--borde); }
  .nav ul a.activo::after { display: none; }
  .nav .boton-pequeno { margin-left: auto; }
}

/* ---------- Móvil ---------- */
@media (max-width: 560px) {
  section { padding: 88px 0; }
  .portada { padding: 64px 0 48px; }
  .contenedor { padding: 0 16px; }
  .escena { margin-top: 48px; }
  .maqueta { grid-template-columns: 1fr; padding: 12px; border-radius: 28px; }
  .widget-ancho { grid-column: auto; }
  .aviso-ios { width: 100%; }
  .barra { grid-template-columns: 90px 1fr 44px; }
  .mosaico { grid-template-columns: 1fr; }
  .pieza-ancha-movil { grid-column: auto; }
  .pieza { padding: 26px; min-height: 0; }
  .puntos { grid-template-columns: 1fr; gap: 28px; }
  .traza { padding: 80px 0; }
  .ventana-cuerpo { grid-template-columns: 1fr; }
  .col-detalle { border-left: 0 !important; border-top: 1px solid var(--borde); }
  .contacto { padding: 64px 20px; border-radius: 28px; }
  .preguntas summary { font-size: 17px; }
  .pie-rejilla { grid-template-columns: 1fr; }
  .pie-rejilla > div:first-child { grid-column: auto; }
}
