/* ==========================================================================
   Skysa Studio — hoja de estilos
   Basada en el Manual de identidad corporativa v1.1 (oct. 2026)
   1. Tokens de marca      7. Portafolio          13. Pie de página
   2. Base                 8. Google / renovar    14. Páginas legales y 404
   3. Componentes          9. Cotizador           15. Animaciones
   4. Cabecera            10. Proceso             16. Utilidades
   5. Portada (hero)      11. Por qué / FAQ       17. Responsive
   6. Servicios           12. Contacto
   ========================================================================== */

/* 1. Tokens de marca ------------------------------------------------------ */
/* Montserrat variable (pesos 400–700), solo caracteres latinos: un único archivo de ~55 KB */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Arial ajustada a las medidas de Montserrat: el texto no salta al cargar la fuente (CLS) */
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 113.95%;
  ascent-override: 84.95%;
  descent-override: 22.03%;
  line-gap-override: 0%;
}
:root {
  /* Paleta principal (manual 03.1) */
  --marino: #1F345F;
  --oceano: #2F6D93;
  --turquesa: #3EA9D7;
  --turquesa-claro: #8DC4DB;
  /* Paleta complementaria (manual 03.3) */
  --noche: #0E1B35;
  --pizarra: #4A5874;
  --gris-azulado: #5C6B85;
  --bruma: #E2E9F1;
  --nube: #F5F8FC;
  --blanco: #FFFFFF;
  /* Mismos colores en formato RGB, para usarlos con transparencia: rgb(var(--x-rgb) / .2) */
  --marino-rgb: 31 52 95;
  --oceano-rgb: 47 109 147;
  --turquesa-rgb: 62 169 215;
  --turquesa-claro-rgb: 141 196 219;
  --noche-rgb: 14 27 53;
  /* Textos sobre fondos oscuros (neutros del manual aclarados para cumplir contraste) */
  --texto-oscuro: #C9D6E8;
  --texto-oscuro-fuerte: #D7E3F1;
  --texto-oscuro-suave: #B9C9DE;
  --texto-oscuro-tenue: #9FB3CF;
  --texto-oscuro-nota: #8EA3C0;
  --texto-sobre-degradado: #E4F1FA;
  /* Interfaz */
  --dispositivo: #0B1730;
  --whatsapp: #25D366;
  --whatsapp-oscuro: #167D45;   /* fondo del botón flotante: texto blanco con contraste 5,2:1 */
  --exito: #7FE3B0;
  --error: #D9534F;
  --error-fondo: #FDECEC;
  --error-texto: #A23431;
  /* Degradado de marca (manual 03.2): Marino 0 % → Océano 48 % → Turquesa 100 %, 120° */
  --degradado: linear-gradient(120deg, #1F345F 0%, #2F6D93 48%, #3EA9D7 100%);
  /* Isotipo negativo: Turquesa → #BFE3F2 */
  --degradado-claro: linear-gradient(120deg, #3EA9D7 0%, #BFE3F2 100%);
  /* Formas (manual 05.3) */
  --r-chip: 12px;
  --r-card: 20px;
  --r-panel: 28px;
  --r-pill: 999px;
  --sombra: 0 18px 40px -8px rgba(31, 52, 95, .16);
  --sombra-oscura: 0 24px 60px -18px rgba(5, 12, 28, .7);
  /* Tipografía (manual 04) */
  --font: "Montserrat", "Montserrat Fallback", Arial, Helvetica, sans-serif;
  --wrap: 1180px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --header-h: 76px;
  /* Espaciado */
  --space-xs: .5rem;
  --space-s: 1rem;
  --space-m: 1.4rem;
  --space-l: 2rem;
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
  /* Retícula de puntos (manual 05.1): cada pieza ajusta solo la opacidad */
  --reticula: radial-gradient(circle, rgb(255 255 255 / var(--reticula-alfa, .14)) 1px, transparent 1.4px);
  color-scheme: light;
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;           /* texto de lectura: nunca menos de 16 px */
  line-height: 1.6;
  color: var(--pizarra);
  background: var(--noche);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; color: var(--marino); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--turquesa); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--turquesa); color: var(--blanco); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--blanco); color: var(--marino); padding: .7em 1.1em; border-radius: var(--r-pill); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* Superficies: oscura (Marino/Noche) y clara (Nube/Blanco) */
.dark { color: var(--texto-oscuro); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--blanco); }
.light { background: var(--nube); color: var(--pizarra); }
.white { background: var(--blanco); color: var(--pizarra); }

section { position: relative; padding-block: var(--section-pad); }

/* Retícula de puntos (manual 05.1): 1 px cada 26 px, máscara radial */
.dots::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: var(--reticula);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 100%);
}
.light.dots::before, .white.dots::before { background-image: radial-gradient(circle, rgb(var(--marino-rgb) / .15) 1px, transparent 1.4px); }
section > .wrap { position: relative; z-index: 1; }

/* Formas curvas suaves de fondo (como en las piezas de Instagram) */
.curves { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.curves span { position: absolute; border-radius: 50%; background: rgb(var(--oceano-rgb) / .16); }

/* 3. Componentes ---------------------------------------------------------- */
/* Antetítulo: SemiBold, mayúsculas, +18 %, Océano, con barra de 28 × 2 px en degradado */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--oceano);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--degradado); flex: none; }
.dark .eyebrow { color: var(--turquesa-claro); }
.dark .eyebrow::before { background: var(--degradado-claro); }

.section-head { display: flex; flex-direction: column; gap: 1.1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.section-head p { font-size: clamp(1.02rem, 1.4vw, 1.14rem); line-height: 1.55; max-width: 40rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.light .section-head p, .white .section-head p { color: var(--pizarra); }

.hl { color: var(--turquesa-claro); }
.light .hl, .white .hl { background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Botones (manual 05.3): píldora, sombra teñida de Marino */
.btn {
  --bg: var(--degradado);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .9em 1.6em;
  border: 0; border-radius: var(--r-pill);
  font-weight: 600; font-size: .98rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer; position: relative; isolation: isolate; overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--degradado); background-size: 140% 100%; background-position: 0 0; color: var(--blanco); box-shadow: 0 14px 30px -10px rgb(var(--oceano-rgb) / .65); }
.btn-primary:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 18px 38px -10px rgb(var(--turquesa-rgb) / .6); }
.btn-primary .arrow { transition: transform .2s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--blanco); box-shadow: inset 0 0 0 1.5px rgb(var(--turquesa-claro-rgb) / .45); }
.btn-ghost:hover { background: rgb(var(--turquesa-claro-rgb) / .1); box-shadow: inset 0 0 0 1.5px var(--turquesa-claro); }
.light .btn-ghost, .white .btn-ghost { color: var(--marino); box-shadow: inset 0 0 0 1.5px var(--bruma); background: var(--blanco); }
.light .btn-ghost:hover, .white .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--turquesa); }
.btn-white { background: var(--blanco); color: var(--marino); box-shadow: var(--sombra); }
.btn-white:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Chips y etiquetas */
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 40px; padding: .55em 1.1em; border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 500; color: var(--blanco);
  background: rgb(var(--oceano-rgb) / .22); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .32);
  text-decoration: none; transition: background .2s, box-shadow .2s;
}
a.chip:hover { background: rgb(var(--turquesa-rgb) / .22); box-shadow: inset 0 0 0 1px var(--turquesa-claro); }
.tag { display: inline-flex; align-items: center; padding: .32em .8em; border-radius: var(--r-pill); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blanco); background: var(--degradado); }

/* Iconos (manual 05.4): lineales, trazo 1,75, contenedor de radio 12 px en Turquesa al 12 % */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-box { width: 52px; height: 52px; flex: none; display: grid !important; place-items: center; line-height: 0; border-radius: var(--r-chip); background: rgb(var(--turquesa-rgb) / .12); color: var(--oceano); }
.dark .icon-box { background: rgb(var(--turquesa-rgb) / .14); color: var(--turquesa-claro); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .18); }

.check-list { display: grid; gap: .7rem; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; line-height: 1.45; }
.check-list li::before {
  content: ""; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: rgb(var(--turquesa-rgb) / .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233EA9D7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Barra de progreso de lectura */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; background: var(--degradado); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* 4. Cabecera ------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled, .site-header.solid {
  background: rgb(var(--noche-rgb) / .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgb(var(--turquesa-claro-rgb) / .12), 0 14px 30px -20px rgba(0,0,0,.6);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 150px; height: auto; } /* versión reducida: ≥ 120 px en pantalla */
.desktop-nav { display: flex; align-items: center; gap: .15rem; flex-wrap: nowrap; }
.desktop-nav a {
  position: relative; padding: .6em .9em; border-radius: var(--r-pill);
  font-size: .92rem; font-weight: 500; line-height: 1.2; white-space: nowrap; color: var(--texto-oscuro); text-decoration: none; transition: color .2s, background .2s;
}
.desktop-nav a:hover { color: var(--blanco); background: rgb(var(--turquesa-claro-rgb) / .08); }
.desktop-nav a.is-active { color: var(--blanco); }
.desktop-nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 16px; height: 2px; margin-left: -8px; border-radius: 2px; background: var(--degradado-claro); }
.header-actions { display: flex; align-items: center; gap: .7rem; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .3); }
.lang-switch a { min-width: 40px; padding: .42em .7em; border-radius: var(--r-pill); text-align: center; font-size: .76rem; font-weight: 600; letter-spacing: .06em; color: var(--texto-oscuro); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--marino); color: var(--blanco); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .25); }
.lang-switch a:not([aria-current="true"]):hover { color: var(--blanco); }
.header-cta { min-height: 44px; padding: .7em 1.25em; font-size: .9rem; white-space: nowrap; }
.header-actions { flex: none; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: var(--r-chip); background: rgb(var(--turquesa-claro-rgb) / .1); color: var(--blanco); cursor: pointer; place-items: center; }
.menu-toggle .bars { position: relative; width: 20px; height: 14px; }
.menu-toggle .bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 6px; }
.menu-toggle .bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 99;
  background: rgb(var(--noche-rgb) / .97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 1.5rem var(--gutter-r) calc(2rem + env(safe-area-inset-bottom, 0px)) var(--gutter);
  display: flex; flex-direction: column; gap: .3rem; overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a.nav-link { padding: .95rem .4rem; font-size: 1.35rem; font-weight: 600; color: var(--blanco); text-decoration: none; border-bottom: 1px solid rgb(var(--turquesa-claro-rgb) / .12); letter-spacing: -.02em; }
.mobile-nav .btn { margin-top: 1.5rem; }
.mobile-nav .lang-switch { align-self: flex-start; margin-top: 1.2rem; }
.mobile-nav .lang-switch a { min-width: 56px; padding: .75em 1em; font-size: .85rem; }

/* 5. Portada (hero) ------------------------------------------------------- */
.hero {
  min-height: min(100vh, 980px);
  min-height: min(100svh, 980px);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(60% 55% at 85% 12%, rgb(var(--turquesa-rgb) / .28) 0%, rgb(var(--turquesa-rgb) / 0) 70%),
    radial-gradient(45% 50% at 8% 95%, rgb(var(--oceano-rgb) / .35) 0%, rgb(var(--oceano-rgb) / 0) 70%),
    linear-gradient(160deg, var(--noche) 0%, #152a52 45%, var(--marino) 100%);
  overflow: hidden; display: flex; align-items: center;
}
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }
.hero h1 { font-size: clamp(2.7rem, 6.6vw, 5.1rem); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 .line { display: block; }
.hero .lede { font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.55; max-width: 34rem; color: var(--texto-oscuro); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .4rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.hero-note { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--texto-oscuro-tenue); }
.hero-note .pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #4ADE9B; flex: none; }
.hero-note .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(74,222,155,.55); animation: pulse 2.4s infinite; }

/* Composición de dispositivos: lo que el estudio entrega */
.hero-visual { position: relative; min-width: 0; aspect-ratio: 1 / .92; max-width: 600px; justify-self: end; width: 100%; }
.device { position: absolute; border-radius: 22px; box-shadow: var(--sombra-oscura); }
.browser {
  left: 0; top: 6%; width: 86%; aspect-ratio: 16 / 11;
  background: linear-gradient(180deg, #13284d, #102244);
  box-shadow: var(--sombra-oscura), inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .2);
  overflow: hidden;
}
.browser-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgb(var(--turquesa-claro-rgb) / .12); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--turquesa-claro-rgb) / .35); }
.browser-bar .url { margin-left: 12px; flex: 1; height: 18px; border-radius: 9px; background: rgb(var(--turquesa-claro-rgb) / .1); display: flex; align-items: center; padding: 0 10px; font-size: .62rem; color: #8DA6C6; font-weight: 500; letter-spacing: .02em; overflow: hidden; white-space: nowrap; }
.browser-body { padding: 7% 7% 0; display: grid; gap: 9%; height: calc(100% - 34px); grid-template-rows: auto 1fr; }
.mock-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6%; align-items: center; }
.mock-lines { display: grid; gap: 9px; }
.mock-lines b { display: block; height: 11px; border-radius: 6px; background: rgba(255,255,255,.88); }
.mock-lines b:nth-child(2) { width: 78%; background: var(--turquesa-claro); }
.mock-lines i { display: block; height: 6px; border-radius: 4px; background: rgb(var(--turquesa-claro-rgb) / .28); }
.mock-lines i:last-of-type { width: 64%; }
.mock-lines .mock-btn { margin-top: 6px; width: 46%; height: 18px; border-radius: 9px; background: var(--degradado); }
.mock-img { aspect-ratio: 1; border-radius: 14px; background: var(--degradado); position: relative; overflow: hidden; }
.mock-img img { position: absolute; width: 56%; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .95; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; align-content: start; }
.mock-cards span { aspect-ratio: 1.1; border-radius: 10px; background: rgb(var(--turquesa-claro-rgb) / .1); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .14); }

.phone {
  right: 2%; bottom: 0; width: 34%; aspect-ratio: 9 / 18.5;
  background: var(--dispositivo); border-radius: 30px; padding: 8px;
  box-shadow: var(--sombra-oscura), inset 0 0 0 1.5px rgb(var(--turquesa-claro-rgb) / .28);
}
.phone-screen { height: 100%; border-radius: 23px; background: linear-gradient(180deg, var(--nube), var(--bruma)); overflow: hidden; display: flex; flex-direction: column; }
.phone-top { padding: 14px 12px 10px; background: var(--marino); display: flex; align-items: center; gap: 8px; }
.phone-top img { width: 26px; }
.phone-top span { height: 7px; flex: 1; border-radius: 4px; background: rgba(255,255,255,.3); }
.phone-search { margin: 10px; height: 20px; border-radius: 10px; background: var(--blanco); box-shadow: 0 2px 6px rgb(var(--marino-rgb) / .08); }
.phone-grid { padding: 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product { background: var(--blanco); border-radius: 10px; padding: 6px; box-shadow: 0 4px 10px -4px rgb(var(--marino-rgb) / .18); display: grid; gap: 5px; }
.product .ph { aspect-ratio: 1; border-radius: 7px; background: linear-gradient(135deg, var(--bruma), #cfe3ef); }
.product:nth-child(2) .ph { background: linear-gradient(135deg, #d6ecf6, var(--turquesa-claro)); }
.product:nth-child(3) .ph { background: linear-gradient(135deg, #cfdcec, #9fb7d6); }
.product b { height: 5px; border-radius: 3px; background: var(--marino); width: 80%; }
.product i { height: 5px; border-radius: 3px; background: var(--turquesa); width: 40%; }
.phone-cta { margin: auto 10px 12px; height: 26px; border-radius: 13px; background: var(--whatsapp); display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--blanco); font-size: .55rem; font-weight: 600; }
.phone-cta svg { width: 10px; height: 10px; }

.bubble {
  position: absolute; left: 4%; bottom: 6%; z-index: 3; width: min(58%, 290px);
  padding: 14px 16px 14px 14px; border-radius: 18px 18px 18px 6px;
  background: rgba(255,255,255,.96); color: var(--marino); box-shadow: var(--sombra-oscura);
  display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start;
}
.bubble .bot { width: 34px; height: 34px; border-radius: 50%; background: var(--degradado); display: grid; place-items: center; }
.bubble .bot img { width: 24px; }
.bubble strong { display: block; font-size: .72rem; font-weight: 600; color: var(--oceano); letter-spacing: .02em; }
.bubble p { font-size: .82rem; line-height: 1.4; color: var(--marino); }
.bubble .typing { display: inline-flex; gap: 3px; margin-top: 4px; }
.bubble .typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--turquesa); animation: typing 1.2s infinite; }
.bubble .typing i:nth-child(2) { animation-delay: .15s; }
.bubble .typing i:nth-child(3) { animation-delay: .3s; }

.badge-float {
  position: absolute; right: 0; top: 0; z-index: 3;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  border-radius: 16px; background: rgb(var(--noche-rgb) / .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--sombra-oscura), inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .22); color: var(--blanco);
}
.badge-float .icon-box { width: 36px; height: 36px; border-radius: 10px; }
.badge-float .icon { width: 18px; height: 18px; }
.badge-float strong { display: block; font-size: .78rem; font-weight: 600; line-height: 1.2; }
.badge-float div > span { display: block; font-size: .68rem; color: var(--texto-oscuro-tenue); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgb(var(--turquesa-claro-rgb) / .4); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--turquesa-claro); animation: cue 1.8s infinite; }

/* Franja de servicios en movimiento */
.ticker { position: relative; z-index: 2; background: var(--marino); border-block: 1px solid rgb(var(--turquesa-claro-rgb) / .12); overflow: hidden; padding: 1.05rem 0; }
.ticker-track { display: flex; width: max-content; gap: 2.6rem; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: .9rem; color: var(--texto-oscuro-fuerte); font-weight: 600; font-size: 1rem; white-space: nowrap; }
.ticker-item img { width: 26px; opacity: .9; }

/* 6. Servicios ------------------------------------------------------------ */
.services { background: linear-gradient(180deg, var(--marino) 0%, #1a2e57 100%); overflow: hidden; }
.services .curves span:nth-child(1) { width: 900px; height: 900px; left: -380px; top: -260px; }
.services .curves span:nth-child(2) { width: 760px; height: 760px; right: -320px; bottom: -380px; background: rgb(var(--oceano-rgb) / .12); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 1.3rem;
  padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r-panel);
  background: linear-gradient(180deg, rgba(20,38,72,.9), rgb(var(--noche-rgb) / .92));
  box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .14), var(--sombra-oscura);
  overflow: hidden; isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.svc::before { /* retícula dentro de la tarjeta */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7;
  --reticula-alfa: .1; background-image: var(--reticula); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 55%); mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
}
.svc::after { /* brillo turquesa que sigue al ratón */
  content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%;
  left: var(--mx, 80%); top: var(--my, 0%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgb(var(--turquesa-rgb) / .22), rgb(var(--turquesa-rgb) / 0) 65%);
  opacity: 0; transition: opacity .35s ease;
}
.svc:hover, .svc.is-active { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .32), var(--sombra-oscura); }
.svc:hover::after, .svc.is-active::after { opacity: 1; }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.svc-num { font-size: .78rem; font-weight: 600; letter-spacing: .18em; color: var(--turquesa-claro); }
.svc h3 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
.svc .tagline { font-size: 1.06rem; color: var(--texto-oscuro); max-width: 30rem; }
.svc .check-list { color: var(--texto-oscuro-fuerte); font-size: .96rem; }
.svc .check-list li::before { background-color: rgb(var(--turquesa-rgb) / .2); }
.svc-plus { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid rgb(var(--turquesa-claro-rgb) / .14); display: grid; gap: .5rem; }
.svc-plus .label { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--turquesa-claro); }
.svc-plus p { font-size: .94rem; color: var(--texto-oscuro-suave); }
.svc-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.svc-actions .btn { min-height: 46px; padding: .75em 1.25em; font-size: .9rem; }
.svc.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
  background: linear-gradient(135deg, rgb(var(--marino-rgb) / .95) 0%, rgb(var(--oceano-rgb) / .55) 100%); }
.svc.wide .svc-main { display: flex; flex-direction: column; gap: 1.3rem; }
.auto-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.auto-plan { padding: 1.15rem 1.2rem; border-radius: var(--r-card); background: rgb(var(--noche-rgb) / .55); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .16); display: grid; gap: .45rem; }
.auto-plan .kicker { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--turquesa-claro); }
.auto-plan h4 { font-size: 1.08rem; letter-spacing: -.02em; }
.auto-plan p { font-size: .9rem; color: var(--texto-oscuro-suave); line-height: 1.45; }
.auto-plan.premium { background: var(--degradado); box-shadow: none; }
.auto-plan.premium .kicker, .auto-plan.premium p { color: var(--texto-sobre-degradado); }

/* 7. Portafolio ----------------------------------------------------------- */
.port-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 1.4rem; align-items: stretch; }
.project { border-radius: var(--r-panel); background: var(--nube); box-shadow: inset 0 0 0 1px var(--bruma), var(--sombra); overflow: hidden; display: grid; }
.project-media { position: relative; padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.2rem) 0; background: radial-gradient(70% 90% at 80% 0%, rgb(var(--turquesa-rgb) / .3), rgb(var(--turquesa-rgb) / 0) 70%), linear-gradient(160deg, var(--noche), var(--marino)); }
.frame-browser { width: 86%; border-radius: 16px 16px 0 0; overflow: hidden; background: var(--dispositivo); box-shadow: var(--sombra-oscura), inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .2); }
.frame-browser img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.frame-phone { position: absolute; right: clamp(1rem, 3vw, 2.2rem); bottom: -1px; width: 24%; max-width: 170px; aspect-ratio: 9 / 19; padding: 6px 6px 0; border-radius: 26px 26px 0 0; background: var(--dispositivo); box-shadow: var(--sombra-oscura), inset 0 0 0 1.5px rgb(var(--turquesa-claro-rgb) / .28); overflow: hidden; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.frame-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 20px 20px 0 0; display: block; }
.project:hover .frame-phone, .project.is-active .frame-phone { transform: translateY(-10px); }
.project-info { padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: .8rem; }
.project-kicker { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--oceano); }
.project-info h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.project-info p { max-width: 42rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.project-tags li { padding: .45em .95em; border-radius: var(--r-pill); font-size: .84rem; font-weight: 500; color: var(--marino); background: var(--blanco); box-shadow: inset 0 0 0 1px var(--bruma); }
.project.next { align-content: center; justify-items: start; gap: 1rem; padding: clamp(1.6rem, 3vw, 2.2rem); background: var(--degradado); box-shadow: var(--sombra); color: var(--texto-sobre-degradado); }
.project.next h3 { color: var(--blanco); font-size: 1.5rem; }
.project.next .icon-box { background: rgba(255,255,255,.16); color: var(--blanco); }
.project.next .btn-primary { background: var(--blanco); color: var(--marino); box-shadow: none; }

/* 8. Aparecer en Google / renovar --------------------------------------- */
.google .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.google-copy { display: flex; flex-direction: column; gap: 1.4rem; }
.google-copy h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.google-copy > p { font-size: 1.1rem; }
.google-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: .5rem; }
.google-point { display: flex; gap: .9rem; align-items: flex-start; }
.google-point strong { display: block; color: var(--marino); font-weight: 600; line-height: 1.3; }
.google-point div > span { display: block; font-size: .92rem; color: var(--gris-azulado); line-height: 1.45; margin-top: .2rem; }
.renew { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; border-radius: var(--r-card); background: var(--blanco); box-shadow: var(--sombra); }
.renew p { font-size: .98rem; color: var(--pizarra); }
.renew strong { color: var(--marino); }

.serp { position: relative; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--r-panel); background: var(--blanco); box-shadow: var(--sombra); display: grid; gap: 1.2rem; }
.serp-search { display: flex; align-items: center; gap: .8rem; padding: .85rem 1.1rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--bruma), 0 4px 14px -8px rgb(var(--marino-rgb) / .2); color: var(--marino); font-weight: 500; }
.serp-search .icon { width: 20px; height: 20px; color: var(--gris-azulado); flex: none; }
.serp-search .typed { white-space: nowrap; overflow: hidden; border-right: 2px solid var(--turquesa); padding-right: 2px; animation: caret 1s steps(1) infinite; }
.serp-result { padding: 1.1rem 1.2rem; border-radius: var(--r-card); background: var(--nube); box-shadow: inset 0 0 0 1px var(--bruma); display: grid; gap: .35rem; }
.serp-result.top { background: linear-gradient(180deg, var(--blanco), #f3f8fc); box-shadow: inset 0 0 0 1.5px rgb(var(--turquesa-rgb) / .55), 0 14px 30px -18px rgb(var(--oceano-rgb) / .45); }
.serp-site { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--gris-azulado); }
.serp-site .fav { width: 36px; height: 36px; border-radius: 50%; background: var(--marino); display: grid; place-items: center; flex: none; }
.serp-site .fav img { width: 24px; }
.serp-title { color: var(--oceano); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.serp-desc { font-size: .88rem; color: var(--gris-azulado); line-height: 1.45; }
.serp-result.ghost .bar { height: 8px; border-radius: 4px; background: var(--bruma); }
.serp-result.ghost .bar:nth-child(1) { width: 40%; }
.serp-result.ghost .bar:nth-child(2) { width: 75%; height: 10px; }
.serp-result.ghost .bar:nth-child(3) { width: 90%; }
.serp .tag { position: absolute; top: -12px; right: 24px; }

/* 9. Cotizador ----------------------------------------------------------- */
.calc-section { background: linear-gradient(180deg, var(--nube) 0%, var(--bruma) 100%); }
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 1.4rem; align-items: start; }
.calc-panel { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-panel); background: var(--blanco); box-shadow: var(--sombra); display: grid; gap: 1.8rem; }
.calc-step { display: grid; gap: .9rem; }
.calc-step > .step-title { display: flex; align-items: center; gap: .75rem; font-weight: 600; color: var(--marino); font-size: 1.05rem; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--degradado); color: var(--blanco); display: grid; place-items: center; font-size: .78rem; font-weight: 600; flex: none; }
.seg { display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: 4px; border-radius: var(--r-pill); background: var(--nube); box-shadow: inset 0 0 0 1px var(--bruma); justify-self: start; }
.seg button { border: 0; background: transparent; padding: .6em 1.15em; border-radius: var(--r-pill); font-weight: 600; font-size: .9rem; color: var(--pizarra); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.seg button[aria-pressed="true"] { background: var(--marino); color: var(--blanco); box-shadow: 0 6px 16px -8px rgb(var(--marino-rgb) / .6); }
.svc-toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.svc-toggle { position: relative; display: flex; align-items: center; gap: .85rem; padding: .95rem 1rem; border-radius: var(--r-card); background: var(--nube); box-shadow: inset 0 0 0 1.5px var(--bruma); cursor: pointer; transition: box-shadow .2s, background .2s; text-align: left; border: 0; width: 100%; }
.svc-toggle .icon-box { width: 42px; height: 42px; border-radius: 11px; }
.svc-toggle .icon { width: 21px; height: 21px; }
.svc-toggle strong { display: block; color: var(--marino); font-size: .95rem; font-weight: 600; line-height: 1.2; }
.svc-toggle span.sub { display: block; font-size: .78rem; color: var(--gris-azulado); line-height: 1.3; margin-top: 2px; }
.svc-toggle .box { margin-left: auto; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px #c3cfde; flex: none; display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.svc-toggle .box svg { width: 14px; height: 14px; stroke: var(--blanco); stroke-width: 3; fill: none; opacity: 0; }
.svc-toggle[aria-pressed="true"] { background: #F1F8FC; box-shadow: inset 0 0 0 1.5px var(--turquesa); }
.svc-toggle[aria-pressed="true"] .box { background: var(--degradado); box-shadow: none; }
.svc-toggle[aria-pressed="true"] .box svg { opacity: 1; }
.svc-config { display: grid; gap: 1rem; padding: 1.3rem; border-radius: var(--r-card); background: var(--nube); box-shadow: inset 0 0 0 1px var(--bruma); }
.svc-config[hidden] { display: none; }
.svc-config h3 { display: flex; align-items: center; gap: .6rem; font-size: 1rem; letter-spacing: -.01em; }
.icon-box.sm { width: 34px; height: 34px; border-radius: 10px; }
.icon-box.sm .icon { width: 18px; height: 18px; }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.plan-opt { border: 0; text-align: left; padding: .85rem 1rem; border-radius: var(--r-chip); background: var(--blanco); box-shadow: inset 0 0 0 1.5px var(--bruma); cursor: pointer; display: grid; gap: .2rem; transition: box-shadow .2s; }
.plan-opt strong { color: var(--marino); font-size: .92rem; }
.plan-opt span { font-size: .76rem; color: var(--gris-azulado); line-height: 1.35; }
.plan-opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--turquesa), 0 8px 18px -12px rgb(var(--oceano-rgb) / .6); }
.field { display: grid; gap: .5rem; }
.field-label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .88rem; font-weight: 500; color: var(--pizarra); }
.field-label output { font-weight: 700; color: var(--marino); font-size: 1rem; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; gap: .3rem; padding: 4px; border-radius: var(--r-pill); background: var(--blanco); box-shadow: inset 0 0 0 1px var(--bruma); justify-self: start; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--nube); color: var(--marino); font-size: 1.2rem; font-weight: 600; cursor: pointer; line-height: 1; }
.stepper button:hover { background: var(--bruma); }
.stepper output { min-width: 56px; text-align: center; font-weight: 700; color: var(--marino); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--oceano) 0%, var(--turquesa) var(--p, 0%), var(--bruma) var(--p, 0%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blanco); box-shadow: 0 0 0 2px var(--turquesa), 0 4px 10px rgb(var(--marino-rgb) / .25); cursor: pointer; }
input[type="range"]::-moz-range-track { height: 6px; background: transparent; border: 0; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--blanco); box-shadow: 0 0 0 2px var(--turquesa), 0 4px 10px rgb(var(--marino-rgb) / .25); cursor: pointer; }
.switch { display: flex; align-items: center; gap: .8rem; cursor: pointer; font-size: .92rem; color: var(--pizarra); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 44px; height: 26px; border-radius: 13px; background: #c9d5e3; position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--blanco); box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .track { background: var(--turquesa); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--turquesa); outline-offset: 2px; }
.calc-hint { font-size: .84rem; color: var(--gris-azulado); }

.calc-result {
  position: sticky; top: calc(var(--header-h) + 20px);
  padding: clamp(1.5rem, 3vw, 2.1rem); border-radius: var(--r-panel);
  background:
    radial-gradient(80% 60% at 100% 0%, rgb(var(--turquesa-rgb) / .35), rgb(var(--turquesa-rgb) / 0) 70%),
    linear-gradient(160deg, var(--noche), var(--marino));
  color: var(--texto-oscuro); box-shadow: var(--sombra-oscura); overflow: hidden; display: grid; gap: 1.3rem; isolation: isolate;
}
.calc-result::before { content: ""; position: absolute; inset: 0; z-index: -1; --reticula-alfa: .12; background-image: var(--reticula); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.calc-result .eyebrow { color: var(--turquesa-claro); }
.calc-result .eyebrow::before { background: var(--degradado-claro); }
.totals { display: grid; gap: .9rem; }
.total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.total-row .lbl { font-size: .9rem; color: var(--texto-oscuro-suave); }
.total-amount { font-size: clamp(2.4rem, 5vw, 3.3rem); font-weight: 700; letter-spacing: -.03em; color: var(--blanco); line-height: 1; font-variant-numeric: tabular-nums; }
.total-amount small, .total-month small { font-size: .38em; font-weight: 600; letter-spacing: .02em; color: var(--turquesa-claro); margin-left: .25em; }
.total-month { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700; color: var(--blanco); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.breakdown { display: grid; gap: .5rem; padding-top: 1.1rem; border-top: 1px solid rgb(var(--turquesa-claro-rgb) / .18); font-size: .88rem; }
.breakdown div { display: flex; justify-content: space-between; gap: 1rem; }
.breakdown div span:last-child { color: var(--blanco); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.breakdown .save span { color: var(--exito) !important; }
.breakdown .muted { color: var(--texto-oscuro-nota); font-size: .82rem; }
.calc-empty { font-size: .95rem; color: var(--texto-oscuro-suave); }
.pack-tip { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--r-chip); background: rgba(127,227,176,.1); box-shadow: inset 0 0 0 1px rgba(127,227,176,.3); font-size: .86rem; color: #CFF5E1; }
.pack-tip[hidden] { display: none; }
.calc-note { font-size: .78rem; color: var(--texto-oscuro-nota); line-height: 1.5; }
.calc-result .btn { width: 100%; }
.bump { animation: bump .35s ease; }


/* Teléfono con prefijo, selección y presupuesto */
.phone-field { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: .6rem; }
.phone-field select { min-width: 0; }
#quote-form { padding-top: 1.6rem; border-top: 1px solid var(--bruma); }
#quote-form .btn { justify-self: start; }
.selection { display: grid; gap: .55rem; }
.selection div { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .9rem; border-radius: var(--r-chip); background: rgb(var(--noche-rgb) / .45); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .16); color: var(--blanco); font-size: .92rem; line-height: 1.4; }
.selection div::before { content: ""; width: 8px; height: 8px; margin-top: .45em; border-radius: 50%; background: var(--turquesa); flex: none; }
.locked { display: grid; gap: .9rem; justify-items: start; padding: 1.2rem; border-radius: var(--r-card); background: rgb(var(--turquesa-rgb) / .1); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .22); }
.locked .lock-icon { width: 40px; height: 40px; border-radius: var(--r-chip); display: grid; place-items: center; background: rgb(var(--turquesa-rgb) / .18); color: var(--turquesa-claro); }
.locked p { color: var(--texto-oscuro-fuerte); font-size: .95rem; }
.locked .btn { min-height: 44px; padding: .65em 1.2em; font-size: .9rem; }
.quote { display: grid; gap: 1.3rem; }
.send-row { display: grid; grid-template-columns: 1fr; gap: .6rem; }
.send-row .btn { width: 100%; padding-inline: 1em; }
.calc-result .btn-ghost .icon { width: 18px; height: 18px; }

/* 10. Proceso ------------------------------------------------------------- */
.route { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; counter-reset: step; }
.route::before, .route::after { content: ""; position: absolute; top: 31px; left: 31px; right: 31px; height: 2px; border-radius: 2px; }
.route::before { background: var(--bruma); }
.route::after { background: var(--degradado); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s cubic-bezier(.65,0,.35,1) .2s; }
.route.is-drawn::after { transform: scaleX(1); }
.route-step { position: relative; display: grid; gap: .8rem; align-content: start; }
.route-stop { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--blanco); color: var(--oceano); box-shadow: inset 0 0 0 2px var(--bruma), var(--sombra); transition: background .4s ease, color .4s ease, box-shadow .4s ease; }
.route.is-drawn .route-stop { background: var(--marino); color: var(--blanco); box-shadow: 0 0 0 6px rgb(var(--turquesa-rgb) / .14), var(--sombra); }
.route.is-drawn .route-step:nth-child(1) .route-stop { transition-delay: .2s; }
.route.is-drawn .route-step:nth-child(2) .route-stop { transition-delay: .7s; }
.route.is-drawn .route-step:nth-child(3) .route-stop { transition-delay: 1.15s; }
.route.is-drawn .route-step:nth-child(4) .route-stop { transition-delay: 1.6s; }
.route-num { font-size: .78rem; font-weight: 600; letter-spacing: .18em; color: var(--oceano); margin-top: .5rem; }
.route-step h3 { font-size: 1.3rem; }
.route-step p { color: var(--pizarra); font-size: .98rem; }

.cta-band { margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(1.8rem, 4vw, 2.8rem); border-radius: var(--r-panel); background: var(--degradado); color: var(--blanco); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; --reticula-alfa: .16; background-image: var(--reticula); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cta-band h3 { color: var(--blanco); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { color: var(--texto-sobre-degradado); margin-top: .4rem; }

/* 11. Por qué / FAQ ------------------------------------------------------- */
.why { background: linear-gradient(180deg, var(--marino) 0%, #1a2e57 100%); overflow: hidden; }
.why .curves span:nth-child(1) { width: 820px; height: 820px; right: -300px; top: -300px; background: rgb(var(--oceano-rgb) / .14); }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.why-card { position: relative; padding: 1.8rem 1.5rem; border-radius: var(--r-card); background: rgb(var(--marino-rgb) / .45); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .14); display: grid; gap: .9rem; align-content: start; transition: transform .3s ease, background .3s ease, box-shadow .3s ease; }
.why-card:hover, .why-card.is-active { transform: translateY(-4px); background: rgb(var(--marino-rgb) / .7); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .3); }
.why-card .n { font-size: .78rem; font-weight: 600; letter-spacing: .18em; color: var(--turquesa-claro); }
.why-card h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.why-card p { font-size: .95rem; color: var(--texto-oscuro-suave); line-height: 1.55; }
.languages { margin-top: 1.4rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--r-panel); background: linear-gradient(120deg, rgb(var(--marino-rgb) / .7), rgb(var(--oceano-rgb) / .4)); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .16); }
.languages h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.languages p { margin-top: .5rem; color: var(--texto-oscuro); max-width: 38rem; }
.lang-cards { display: flex; gap: .8rem; }
.lang-card { padding: 1rem 1.2rem; border-radius: var(--r-card); background: rgb(var(--noche-rgb) / .6); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .2); min-width: 150px; }
.lang-card .k { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--turquesa-claro); }
.lang-card p { margin-top: .4rem; color: var(--blanco); font-weight: 700; font-size: 1.02rem; line-height: 1.2; letter-spacing: -.02em; }

.faq .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--header-h) + 30px); margin-bottom: 0; }
.faq-list { display: grid; gap: .8rem; }
.faq-item { border-radius: var(--r-card); background: var(--blanco); box-shadow: inset 0 0 0 1px var(--bruma); transition: box-shadow .25s ease; }
.faq-item[open] { box-shadow: inset 0 0 0 1.5px rgb(var(--turquesa-rgb) / .5), var(--sombra); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; font-weight: 600; color: var(--marino); font-size: 1.04rem; line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--nube); position: relative; transition: background .25s, transform .3s ease; }
.faq-item summary .pm::before, .faq-item summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--oceano); transition: transform .3s ease; }
.faq-item summary .pm::after { transform: rotate(90deg); }
.faq-item[open] summary .pm { background: var(--degradado); transform: rotate(180deg); }
.faq-item[open] summary .pm::before, .faq-item[open] summary .pm::after { background: var(--blanco); }
.faq-item[open] summary .pm::after { transform: rotate(0); }
.faq-answer { padding: 0 1.4rem 1.3rem; color: var(--pizarra); line-height: 1.6; }
.faq-answer p + p { margin-top: .6rem; }

/* 12. Contacto ------------------------------------------------------------ */
.contact { background: linear-gradient(180deg, #12234a 0%, var(--marino) 100%); overflow: hidden; }
.contact .curves span:nth-child(1) { width: 900px; height: 900px; left: -420px; bottom: -520px; background: rgb(var(--oceano-rgb) / .18); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-copy h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.contact-copy > p { font-size: 1.1rem; }
.contact-list { display: grid; gap: .8rem; margin-top: .6rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--r-card); background: rgb(var(--noche-rgb) / .5); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .16); text-decoration: none; transition: background .25s, box-shadow .25s, transform .25s; }
a.contact-item:hover, a.contact-item.is-active { background: rgb(var(--noche-rgb) / .8); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .4); transform: translateX(4px); }
.contact-item .k { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--turquesa-claro); }
.contact-item .v { display: block; color: var(--blanco); font-weight: 600; font-size: 1.05rem; word-break: break-word; }
.contact-item .go { margin-left: auto; color: var(--turquesa-claro); flex: none; }

.form-card { padding: clamp(1.5rem, 3.5vw, 2.4rem); border-radius: var(--r-panel); background: var(--blanco); box-shadow: var(--sombra-oscura); display: grid; gap: 1.2rem; color: var(--pizarra); }
.form-card h3, .dark .form-card h3 { font-size: 1.45rem; color: var(--marino); }
.form-card > p { font-size: .95rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-field { display: grid; gap: .45rem; }
.form-field label { font-size: .86rem; font-weight: 600; color: var(--marino); }
.form-field label .opt { font-weight: 400; color: var(--gris-azulado); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem; border: 0; border-radius: var(--r-chip);
  background: var(--nube); box-shadow: inset 0 0 0 1.5px var(--bruma); color: var(--marino); font-size: 1rem;
  transition: box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.form-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6D93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 2.6rem; }
.form-field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #6B7A92; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; background: var(--blanco); box-shadow: inset 0 0 0 2px var(--turquesa), 0 0 0 4px rgb(var(--turquesa-rgb) / .14); }
.form-field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--error); background: #FFF6F6; }
.form-error { padding: .8rem 1rem; border-radius: var(--r-chip); background: var(--error-fondo); color: var(--error-texto); font-size: .9rem; font-weight: 500; }
.form-error[hidden] { display: none; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.form-foot small { font-size: .8rem; color: var(--gris-azulado); max-width: 22rem; line-height: 1.45; }
.form-foot small a { color: var(--oceano); }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; z-index: 90; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  display: inline-flex; align-items: center; gap: .6rem; height: 56px; padding: 0 1.2rem 0 1rem; border-radius: var(--r-pill);
  background: var(--whatsapp-oscuro); color: var(--blanco); text-decoration: none; font-weight: 600; font-size: .92rem;
  box-shadow: 0 16px 34px -12px rgba(18,140,74,.7); transform: translateY(120px); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { box-shadow: 0 20px 40px -12px rgba(18,140,74,.85); }

/* 13. Pie de página ------------------------------------------------------- */
.site-footer { position: relative; background: var(--noche); color: var(--texto-oscuro-tenue); padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); }
.pattern-strip { height: 110px; background: url("../logo/Skysa_patron_marino.svg") center / 900px auto repeat-x; opacity: .9; -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-block: 3.5rem 3rem; border-bottom: 1px solid rgb(var(--turquesa-claro-rgb) / .12); }
.footer-brand { display: grid; gap: 1.2rem; align-content: start; }
.footer-brand img { width: 300px; max-width: 100%; } /* con descriptor: mínimo 300 px en pantalla (manual 02.6) */
.footer-brand p { max-width: 22rem; font-size: .95rem; line-height: 1.55; }
.footer-col { display: grid; gap: .65rem; align-content: start; font-size: .94rem; }
.footer-col .k { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--turquesa-claro); margin-bottom: .3rem; }
.footer-col a { display: inline-block; padding-block: .3rem; color: var(--texto-oscuro); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--blanco); }
.socials { display: flex; gap: .6rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--turquesa-claro-rgb) / .08); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .2); color: var(--turquesa-claro); transition: background .2s, color .2s; }
.socials a:hover { background: var(--turquesa); color: var(--blanco); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: .84rem; }
.footer-bottom nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-bottom a { display: inline-block; padding-block: .35rem; color: var(--texto-oscuro-tenue); text-decoration: none; }
.footer-bottom a:hover { color: var(--blanco); }
.footer-descriptor { letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; color: #6F86A8; }

/* 14. Páginas legales y 404 ---------------------------------------------- */
.page-hero { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 4rem); padding-bottom: 3.5rem; background: radial-gradient(60% 80% at 90% 0%, rgb(var(--turquesa-rgb) / .25), rgb(var(--turquesa-rgb) / 0) 70%), linear-gradient(160deg, var(--noche), var(--marino)); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 1rem; }
.page-hero p { margin-top: 1rem; max-width: 40rem; }
.legal { background: var(--blanco); }
.legal .wrap { max-width: 860px; }
.legal-body { display: grid; gap: 1rem; color: var(--pizarra); line-height: 1.7; }
.legal-body h2 { font-size: 1.4rem; margin-top: 1.6rem; letter-spacing: -.02em; }
.legal-body ul { display: grid; gap: .5rem; padding-left: 1.2rem; list-style: disc; }
.legal-body li::marker { color: var(--turquesa); }
.legal-body a { color: var(--oceano); }
.legal-body .updated { font-size: .9rem; color: var(--gris-azulado); }
.legal-box { padding: 1.2rem 1.4rem; border-radius: var(--r-card); background: var(--nube); box-shadow: inset 0 0 0 1px var(--bruma); }
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; background: radial-gradient(50% 50% at 50% 40%, rgb(var(--turquesa-rgb) / .22), rgb(var(--turquesa-rgb) / 0) 70%), linear-gradient(160deg, var(--noche), var(--marino)); padding: 6rem 0; }
.notfound .wrap { display: grid; justify-items: center; gap: 1.3rem; }
.notfound .code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; background: var(--degradado-claro); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound img.iso { width: 110px; animation: float 6s ease-in-out infinite; }

/* 15. Animaciones --------------------------------------------------------- */
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(3.5); opacity: 0; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes caret { 50% { border-color: transparent; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: none; } }

/* Entrada de la portada: un único momento orquestado */
.js .hero-copy > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.js .hero-copy > *:nth-child(1) { animation-delay: .05s; }
.js .hero-copy > *:nth-child(2) { animation-delay: .15s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .3s; }
.js .hero-copy > *:nth-child(4) { animation-delay: .42s; }
.js .hero-copy > *:nth-child(5) { animation-delay: .54s; }
.js .hero-copy > *:nth-child(6) { animation-delay: .66s; }
.js .browser { animation: pop 1s cubic-bezier(.2,.7,.2,1) .35s both; }
.js .phone { animation: pop 1s cubic-bezier(.2,.7,.2,1) .6s both; }
.js .bubble { animation: pop .9s cubic-bezier(.2,.7,.2,1) 1.05s both; }
.js .badge-float { animation: pop .9s cubic-bezier(.2,.7,.2,1) 1.25s both; }
.hero-visual.is-floating .phone { animation: float 7s ease-in-out infinite; }
.hero-visual.is-floating .bubble { animation: float 6s ease-in-out .8s infinite; }
.hero-visual.is-floating .badge-float { animation: float 8s ease-in-out .4s infinite; }

/* Aparición al hacer scroll: solo para lo que está fuera de la primera pantalla */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease var(--d, 0s), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { transform: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* 16. Utilidades ---------------------------------------------------------- */
.mt-s { margin-top: .6rem; }
.tag-inline { vertical-align: middle; margin-left: .4rem; }
.self-start { align-self: flex-start; }
.hero-actions.center { justify-content: center; }
.icon.icon-fill { fill: currentColor; stroke: none; }

/* 17. Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .svc { padding: 1.5rem; }
  .desktop-nav a { padding: .55em .55em; font-size: .86rem; }
  .brand img { width: 136px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .desktop-nav, .header-actions .lang-switch, .header-cta { display: none; }
  .menu-toggle { display: grid; }
  .hero { min-height: 0; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 560px; margin-top: 1rem; }
  .scroll-cue { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc.wide { grid-template-columns: 1fr; }
  .google .wrap, .contact .wrap, .faq .wrap { grid-template-columns: 1fr; }
  .faq .section-head { position: static; margin-bottom: 1rem; }
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: relative; top: 0; }
  .port-grid { grid-template-columns: 1fr; }
  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .route::before, .route::after { display: none; }
  .languages { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand img { width: 136px; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .badge-float { display: none; }
  .bubble { width: 70%; left: 0; }
  .svc-toggles, .auto-plans, .google-points, .form-grid { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; }
  .route-step { grid-template-columns: 64px 1fr; column-gap: 1.1rem; row-gap: .3rem; }
  .route-step .route-stop { grid-row: span 3; }
  .route-num { margin-top: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .lang-cards { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-band .btn { width: 100%; }
  .wa-float span { display: none; }
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .send-row { grid-template-columns: 1fr; }
  .frame-browser { width: 100%; }
  .frame-phone { width: 30%; }
  .seg { width: 100%; }
  .seg button { flex: 1; }
}

/* 18. Ajustes oct. 2026 ---------------------------------------------------- */
/* Fondos: de la portada oscura hacia abajo, cada sección un poco más profunda:
   gris claro → tintes de turquesa → Marino → Noche */
.services.light { background: linear-gradient(180deg, #EEF2F7 0%, #E6EEF5 100%); }
.portfolio.light { background: linear-gradient(180deg, #E6EEF5 0%, #DCE9F2 100%); }
.google.light { background: linear-gradient(180deg, #DCE9F2 0%, #D3E4EF 100%); }
.calc-section.light { background: linear-gradient(180deg, #D3E4EF 0%, #C9DEEB 100%); }
.process.light { background: linear-gradient(180deg, #C9DEEB 0%, #BCD6E6 100%); }
.process .route::before { background: rgb(var(--marino-rgb) / .12); }
.process .route-step p { color: var(--marino); opacity: .85; }
.why { background: linear-gradient(180deg, var(--marino) 0%, #1c3260 100%); }
.faq.dark { background: linear-gradient(180deg, #1c3260 0%, #15284f 100%); }
.contact { background: linear-gradient(180deg, #15284f 0%, #101f3f 100%); }
.light .serp, .light .calc-panel, .light .renew { box-shadow: 0 22px 48px -14px rgb(var(--marino-rgb) / .22); }
.light.dots::before { background-image: radial-gradient(circle, rgb(var(--marino-rgb) / .18) 1px, transparent 1.4px); }

/* Preguntas frecuentes sobre fondo oscuro */
.faq.dark .section-head p { color: var(--texto-oscuro); }
.faq.dark .faq-item { background: rgb(var(--noche-rgb) / .45); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .16); }
.faq.dark .faq-item[open] { background: rgb(var(--noche-rgb) / .7); box-shadow: inset 0 0 0 1.5px rgb(var(--turquesa-rgb) / .55), var(--sombra-oscura); }
.faq.dark .faq-item summary { color: var(--blanco); }
.faq.dark .faq-item summary .pm { background: rgb(var(--turquesa-rgb) / .16); }
.faq.dark .faq-item summary .pm::before, .faq.dark .faq-item summary .pm::after { background: var(--turquesa-claro); }
.faq.dark .faq-item[open] summary .pm::before, .faq.dark .faq-item[open] summary .pm::after { background: var(--blanco); }
.faq.dark .faq-answer { color: var(--texto-oscuro); }
.faq.dark .btn-ghost { color: var(--blanco); background: transparent; }

/* Servicios sobre gris claro; Automatizaciones queda en Marino como acento */
.services.light .curves span { background: rgb(var(--turquesa-rgb) / .08); }
.services.light .curves span:nth-child(2) { background: rgb(var(--oceano-rgb) / .06); }
.services.light .svc:not(.wide) { background: var(--blanco); box-shadow: inset 0 0 0 1px rgb(var(--marino-rgb) / .06), 0 20px 44px -14px rgb(var(--marino-rgb) / .2); }
.services.light .svc:not(.wide)::before { background-image: radial-gradient(circle, rgb(var(--marino-rgb) / .13) 1px, transparent 1.4px); opacity: .8; }
.services.light .svc:not(.wide)::after { background: radial-gradient(circle, rgb(var(--turquesa-rgb) / .14), rgb(var(--turquesa-rgb) / 0) 65%); }
.services.light .svc:not(.wide):hover, .services.light .svc:not(.wide).is-active { box-shadow: inset 0 0 0 1px rgb(var(--turquesa-rgb) / .5), 0 28px 52px -14px rgb(var(--marino-rgb) / .28); }
.services.light .svc:not(.wide) .svc-num { color: var(--oceano); }
.services.light .svc:not(.wide) .tagline { color: var(--pizarra); }
.services.light .svc:not(.wide) .check-list { color: var(--marino); }
.services.light .svc:not(.wide) .svc-plus { border-top-color: var(--bruma); }
.services.light .svc:not(.wide) .svc-plus .label { color: var(--oceano); }
.services.light .svc:not(.wide) .svc-plus p { color: var(--gris-azulado); }
.svc.wide.dark { box-shadow: var(--sombra-oscura); background: linear-gradient(135deg, var(--marino) 0%, #24477a 100%); }
.svc-actions .btn .arrow { width: 16px; height: 16px; }

/* Portafolio en carrusel ----------------------------------------------------- */
.icon.flip { transform: scaleX(-1); }
.carousel { position: relative; display: grid; gap: 1.2rem; }
.carousel-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.carousel-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.carousel-tab {
  min-height: 44px; padding: .6em 1.2em; border: 0; border-radius: var(--r-pill); cursor: pointer;
  font-weight: 600; font-size: .92rem; color: var(--marino); background: rgb(255 255 255 / .7);
  box-shadow: inset 0 0 0 1.5px rgb(var(--marino-rgb) / .1); transition: background .3s, color .3s, box-shadow .3s, transform .2s;
}
.carousel-tab:hover { box-shadow: inset 0 0 0 1.5px var(--turquesa); transform: translateY(-1px); }
.carousel-tab[aria-current="true"] { background: var(--degradado); color: var(--blanco); box-shadow: 0 10px 24px -10px rgb(var(--oceano-rgb) / .7); }
.carousel-nav { display: flex; align-items: center; gap: .6rem; }
.carousel-count { font-size: .85rem; font-weight: 600; letter-spacing: .08em; color: var(--gris-azulado); margin-right: .4rem; font-variant-numeric: tabular-nums; }
.carousel-count b { color: var(--marino); }
.carousel-btn { width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--blanco); background: var(--marino); box-shadow: 0 12px 26px -10px rgb(var(--marino-rgb) / .6); transition: background .2s, transform .2s, opacity .2s; }
.carousel-btn:hover { background: var(--oceano); transform: translateY(-2px); }
.carousel-btn[disabled] { opacity: .35; cursor: default; transform: none; background: var(--marino); }
.carousel-btn .icon { width: 20px; height: 20px; }
.swipe-hint { display: none; }

.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 1.4rem;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; touch-action: pan-x pan-y; scrollbar-width: none; border-radius: var(--r-panel);
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: 6px; }

/* Cada proyecto: una sola pieza oscura, sin corte entre la foto y el texto */
.project.slide {
  scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center;
  background: radial-gradient(60% 80% at 22% 0%, rgb(var(--turquesa-rgb) / .28), rgb(var(--turquesa-rgb) / 0) 70%), linear-gradient(150deg, var(--noche) 0%, var(--marino) 70%, #24477a 100%);
  box-shadow: 0 30px 60px -24px rgb(var(--noche-rgb) / .55); color: var(--texto-oscuro);
}
.project.slide .project-media { background: none; padding: clamp(1.4rem, 3vw, 2.4rem); padding-right: clamp(2.6rem, 6vw, 4.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.project.slide .frame-browser { width: 100%; border-radius: 14px; }
.project.slide .frame-phone { right: clamp(.6rem, 2vw, 1.4rem); bottom: clamp(.8rem, 2vw, 1.4rem); width: 25%; padding: 6px; border-radius: 24px; }
.project.slide .frame-phone img { border-radius: 18px; }
.project.slide:hover .frame-phone, .project.slide.is-active .frame-phone { transform: none; }
.project.slide .project-info { padding: clamp(1.6rem, 3.5vw, 2.6rem); padding-left: clamp(.6rem, 2vw, 1.4rem); align-content: center; }
.project.slide h3 { color: var(--blanco); }
.project.slide .project-info p { color: var(--texto-oscuro); }
.project.slide .project-kicker { color: var(--turquesa-claro); display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.project-status { padding: .35em .8em; border-radius: var(--r-pill); font-size: .68rem; letter-spacing: .14em; color: var(--blanco); background: rgb(var(--turquesa-rgb) / .25); }
.project.slide .project-tags li { color: var(--blanco); background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .25); }

/* Al cambiar de proyecto, los dispositivos entran con un pequeño movimiento */
.js .project.slide .frame-browser, .js .project.slide .frame-phone, .js .project.slide .project-info > * { transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .project.slide:not(.is-current) .frame-browser { opacity: .35; transform: scale(.96); }
.js .project.slide:not(.is-current) .frame-phone { opacity: 0; transform: translate(18px, 24px); }
.js .project.slide:not(.is-current) .project-info > * { opacity: 0; transform: translateY(14px); }
.js .project.slide.is-current .frame-phone { transition-delay: .18s; }
.js .project.slide.is-current .project-info > :nth-child(2) { transition-delay: .08s; }
.js .project.slide.is-current .project-info > :nth-child(3) { transition-delay: .16s; }
.js .project.slide.is-current .project-info > :nth-child(4) { transition-delay: .24s; }

.carousel-cta { justify-self: start; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--oceano); text-decoration: none; }
.carousel-cta .icon { width: 18px; height: 18px; transition: transform .2s; }
.carousel-cta:hover .icon { transform: translateX(4px); }

@media (max-width: 960px) {
  .project.slide { grid-template-columns: 1fr; align-items: start; }
  .project.slide .project-media { padding-bottom: 1.2rem; }
  .project.slide .project-info { padding: 0 clamp(1.4rem, 4vw, 2rem) clamp(1.6rem, 4vw, 2rem); }
}
@media (max-width: 640px) {
  /* En el móvil se ve el borde del siguiente proyecto: invita a deslizar */
  .carousel-track { grid-auto-columns: 86%; gap: .8rem; scroll-padding-left: 0; border-radius: 0; margin-right: calc(-1 * var(--gutter-r)); padding-right: var(--gutter-r); }
  .carousel-top { flex-wrap: nowrap; }
  .carousel-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -4px; }
  .carousel-tabs::-webkit-scrollbar { display: none; }
  .carousel-tab { flex: none; font-size: .86rem; padding: .55em 1em; }
  .carousel-nav .carousel-btn, .carousel-count { display: none; }
  .swipe-hint { display: inline-flex; align-items: center; gap: .5rem; margin-top: -.4rem; font-size: .85rem; font-weight: 600; color: var(--oceano); }
  .swipe-hint .icon { width: 18px; height: 18px; animation: nudge 1.6s ease-in-out infinite; }
  .project.slide .project-media { padding: 1.1rem 1.8rem 1rem 1.1rem; }
  .project.slide .frame-phone { width: 30%; right: .6rem; bottom: .6rem; border-radius: 18px; padding: 4px; }
  .project.slide .frame-phone img { border-radius: 14px; }
  .project.slide .project-info { padding: 0 1.2rem 1.5rem; }
}
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* Más movimiento al bajar ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(40px) scale(.985); filter: blur(4px);
  transition: opacity .8s ease var(--d, 0s), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s), filter .8s ease var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.reveal.from-left { transform: translateX(-48px); }
.reveal.from-right { transform: translateX(48px); }
.reveal.from-left.is-in, .reveal.from-right.is-in { transform: none; }
/* Antetítulo: la barrita se dibuja */
.eyebrow.reveal::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s cubic-bezier(.65,0,.35,1) calc(var(--d, 0s) + .25s); }
.eyebrow.reveal.is-in::before { transform: scaleX(1); }
/* Títulos: suben con un ligero giro que se endereza */
h2.reveal { filter: none; transform: translateY(36px) skewY(2.5deg); transform-origin: 0 100%; transition: transform 1s cubic-bezier(.2,.7,.2,1) var(--d, 0s), opacity .7s ease var(--d, 0s); }
h2.reveal.is-in { transform: none; }
/* Iconos que aparecen con un pequeño giro */
.reveal .icon-box, .reveal .route-stop { transition: transform .7s cubic-bezier(.34,1.56,.64,1) calc(var(--d, 0s) + .25s), opacity .5s ease calc(var(--d, 0s) + .25s); }
.reveal:not(.is-in) .icon-box { transform: scale(.4) rotate(-25deg); opacity: 0; }
/* Fondo: las formas curvas y la retícula se desplazan un poco más lento que la página */
.curves span { translate: 0 var(--py, 0px); }
.dots::before { translate: 0 var(--pd, 0px); }

@media (prefers-reduced-motion: reduce) {
  /* Con "reducir movimiento" no hay desplazamientos, pero sí un fundido suave */
  .reveal, .reveal.from-left, .reveal.from-right, h2.reveal { transform: none !important; filter: none !important; transition: opacity .6s ease var(--d, 0s) !important; }
  .reveal:not(.is-in) .icon-box { transform: none; opacity: 1; }
  .eyebrow.reveal::before { transform: none; }
  .curves span, .dots::before { translate: none; }
  .js .project.slide:not(.is-current) .frame-browser, .js .project.slide:not(.is-current) .frame-phone, .js .project.slide:not(.is-current) .project-info > * { opacity: 1; transform: none; }
  .swipe-hint .icon { animation: none; }
}

/* Cabecera con el logo horizontal en una línea */
.brand img { width: 210px; height: auto; }
@media (max-width: 1100px) { .brand img { width: 196px; } }
@media (max-width: 640px) { .brand img { width: 184px; } }

/* 19. Asistente de la web (chat con IA) ------------------------------------ */
/* Botón redondo encima del de WhatsApp; cuando este aparece, el del chat sube */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.no-js .chat { display: none; }
.chat { --chat-r: max(18px, env(safe-area-inset-right, 0px)); --chat-b: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px)); --chat-lift: 0px; }
.wa-float.is-visible ~ .chat { --chat-lift: 68px; }
.chat-launcher {
  position: fixed; z-index: 91; right: var(--chat-r); bottom: calc(var(--chat-b) + var(--chat-lift));
  display: inline-flex; align-items: center; gap: .6rem; height: 56px; padding: 0 1.25rem 0 1rem; border: 0; border-radius: var(--r-pill);
  background: var(--degradado); background-size: 140% 100%; color: var(--blanco); font-weight: 600; font-size: .92rem; cursor: pointer;
  box-shadow: 0 16px 34px -12px rgb(var(--marino-rgb) / .75), inset 0 0 0 1px rgb(255 255 255 / .12);
  transition: bottom .45s cubic-bezier(.2,.8,.2,1), transform .2s ease, background-position .3s ease, opacity .2s ease;
}
.chat-launcher:hover { background-position: 100% 0; transform: translateY(-2px); }
.chat-launcher .icon { width: 24px; height: 24px; }
.chat-open .chat-launcher { opacity: 0; pointer-events: none; transform: scale(.85); }

.chat-panel {
  position: fixed; z-index: 130; right: var(--chat-r); bottom: calc(var(--chat-b) + var(--chat-lift));
  width: min(392px, calc(100vw - 36px)); height: min(620px, calc(100vh - var(--header-h) - 48px)); height: min(620px, calc(100dvh - var(--header-h) - 48px));
  display: flex; flex-direction: column; overflow: hidden; padding: 0;
  border-radius: var(--r-panel); background: var(--nube); color: var(--pizarra);
  box-shadow: 0 30px 70px -18px rgb(var(--marino-rgb) / .55), 0 0 0 1px rgb(var(--marino-rgb) / .08);
  transform-origin: 100% 100%; animation: chat-in .32s cubic-bezier(.2,.8,.2,1);
}
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

.chat-head {
  position: relative; display: flex; align-items: center; gap: .8rem; padding: 1rem 1rem 1rem 1.15rem; flex: none;
  background: radial-gradient(80% 120% at 100% 0%, rgb(var(--turquesa-rgb) / .35), rgb(var(--turquesa-rgb) / 0) 70%), linear-gradient(160deg, var(--noche), var(--marino));
  color: var(--texto-oscuro);
}
.chat-avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--turquesa-rgb) / .16); box-shadow: inset 0 0 0 1px rgb(var(--turquesa-claro-rgb) / .3); }
.chat-avatar img { width: 26px; }
.chat-head h2 { font-size: 1.02rem; letter-spacing: -.01em; color: var(--blanco); }
.chat-head p { display: flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--texto-oscuro-tenue); }
.chat-head p::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ADE9B; }
.chat-close { margin-left: auto; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--turquesa-claro-rgb) / .1); color: var(--blanco); cursor: pointer; transition: background .2s; }
.chat-close:hover { background: rgb(var(--turquesa-claro-rgb) / .22); }
.chat-close .icon { width: 20px; height: 20px; }

.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.1rem 1rem .6rem; display: flex; flex-direction: column; gap: .7rem; }
.chat-msg { max-width: 88%; padding: .75rem .95rem; border-radius: 18px; font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg p + p, .chat-msg p + ul, .chat-msg ul + p { margin-top: .5rem; }
.chat-msg ul { display: grid; gap: .3rem; padding-left: 1.1rem; list-style: disc; }
.chat-msg li::marker { color: var(--turquesa); }
.chat-msg strong { color: var(--marino); font-weight: 600; }
.chat-msg.bot { align-self: flex-start; background: var(--blanco); color: var(--pizarra); border-bottom-left-radius: 6px; box-shadow: 0 8px 20px -12px rgb(var(--marino-rgb) / .35), inset 0 0 0 1px var(--bruma); }
.chat-msg.user { align-self: flex-end; background: var(--marino); color: var(--blanco); border-bottom-right-radius: 6px; box-shadow: 0 10px 22px -12px rgb(var(--marino-rgb) / .7); white-space: pre-wrap; }
.chat-msg.notice { background: #FFF8EC; box-shadow: inset 0 0 0 1px #F3DDB5; color: #6B4A12; }
.chat-msg .typing { display: inline-flex; gap: 4px; padding: .35rem 0; }
.chat-msg .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--turquesa); animation: typing 1.2s infinite; }
.chat-msg .typing i:nth-child(2) { animation-delay: .15s; }
.chat-msg .typing i:nth-child(3) { animation-delay: .3s; }
.chat-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.chat-actions a { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .5em 1em; border-radius: var(--r-pill); font-size: .84rem; font-weight: 600; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.chat-actions a:hover { transform: translateY(-1px); }
.chat-actions svg { width: 17px; height: 17px; flex: none; }
.chat-actions .act-wa { background: var(--whatsapp-oscuro); color: var(--blanco); box-shadow: 0 10px 20px -10px rgba(18,140,74,.7); }
.chat-actions .act-quote { background: var(--degradado); color: var(--blanco); box-shadow: 0 10px 20px -10px rgb(var(--oceano-rgb) / .7); }

.chat-chips { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; margin-top: .2rem; }
.chat-chip { max-width: 92%; min-height: 40px; padding: .5em 1em; border: 0; border-radius: var(--r-pill); text-align: right; font-size: .86rem; font-weight: 600; line-height: 1.3; color: var(--oceano); background: var(--blanco); box-shadow: inset 0 0 0 1.5px rgb(var(--turquesa-rgb) / .45); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.chat-chip:hover { background: var(--turquesa); color: var(--blanco); box-shadow: inset 0 0 0 1.5px var(--turquesa); }

.chat-form { flex: none; display: flex; align-items: flex-end; gap: .5rem; margin: .3rem .8rem 0; padding: 6px 6px 6px 1rem; border-radius: 26px; background: var(--blanco); box-shadow: inset 0 0 0 1.5px var(--bruma), 0 8px 20px -14px rgb(var(--marino-rgb) / .4); transition: box-shadow .2s; }
.chat-form:focus-within { box-shadow: inset 0 0 0 2px var(--turquesa), 0 0 0 4px rgb(var(--turquesa-rgb) / .14); }
.chat-form textarea { flex: 1; min-width: 0; max-height: 120px; min-height: 44px; padding: .62rem 0; border: 0; outline: none; resize: none; background: transparent; color: var(--marino); font-size: 1rem; line-height: 1.4; }
.chat-form textarea::placeholder { color: #6B7A92; }
.chat-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--degradado); color: var(--blanco); cursor: pointer; box-shadow: 0 8px 18px -8px rgb(var(--oceano-rgb) / .7); transition: transform .2s, opacity .2s; }
.chat-send:hover { transform: translateX(2px); }
.chat-send[disabled] { opacity: .45; cursor: default; transform: none; }
.chat-send .icon { width: 20px; height: 20px; }
.chat-count { flex: none; align-self: center; font-size: .72rem; font-variant-numeric: tabular-nums; color: var(--gris-azulado); }
.chat-count.over { color: var(--error-texto); font-weight: 600; }

.chat-foot { flex: none; display: grid; gap: .55rem; padding: .65rem .9rem calc(.85rem + env(safe-area-inset-bottom, 0px)); }
.chat-privacy { font-size: .72rem; line-height: 1.45; color: var(--gris-azulado); text-align: center; }
.chat-privacy a { color: var(--oceano); font-weight: 600; }
.chat-wa { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; border-radius: var(--r-pill); background: var(--blanco); color: var(--whatsapp-oscuro); font-size: .88rem; font-weight: 600; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgb(22 125 69 / .35); transition: background .2s, color .2s; }
.chat-wa:hover { background: var(--whatsapp-oscuro); color: var(--blanco); }
.chat-wa svg { width: 19px; height: 19px; }

/* Móvil: el chat ocupa toda la pantalla y el botón de WhatsApp se aparta mientras está abierto */
@media (max-width: 640px) {
  .chat-launcher { width: 56px; padding: 0; justify-content: center; }
  .chat-launcher span { display: none; }
  .chat-panel { inset: 0; width: auto; height: auto; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); transform-origin: 50% 100%; }
  .chat-head { padding-left: max(1rem, env(safe-area-inset-left, 0px)); padding-right: max(1rem, env(safe-area-inset-right, 0px)); }
  .chat-msg { max-width: 92%; }
  .chat-open .wa-float { opacity: 0; pointer-events: none; }
  .chat-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-panel { animation: none; }
}
