/* =============================================================
   MORALEC — hoja de estilo única
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografía
   5. Componentes · 6. Secciones · 7. Efectos · 8. Responsive
   9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  /* Azul marino — dominante */
  --navy-900: #0A192F;
  --navy-850: #0B1E38;
  --navy-800: #0F2440;
  --navy-700: #002855;
  --navy-600: #0F3A66;
  --navy-ink: #060F1D;

  /* Cian — acento y acción */
  --cyan:     #00D4FF;
  --cyan-600: #00B4D8;
  --cyan-soft:#7FD8F0;

  /* Fondos claros */
  --white:    #FFFFFF;
  --smoke:    #F8F9FA;
  --gray-100: #E9ECEF;
  --gray-200: #E2E8F0;

  /* Texto */
  --ink:      #1E293B;
  --ink-soft: #475569;
  --ink-mute: #64748B;
  --on-dark:  #E8EEF6;
  --on-dark-soft: #9FB3CC;

  /* Acento crítico */
  --orange:   #FF6B00;
  --orange-600:#E85F00;

  /* Líneas */
  --line-light: rgba(30, 41, 59, .12);
  --line-dark:  rgba(127, 216, 240, .18);

  /* Tipografías */
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Easings */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:cubic-bezier(0.34, 1.4, 0.64, 1);

  /* Métrica */
  --shell: 1240px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --nav-h: 76px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  /* Sombras */
  --sh-1: 0 2px 8px rgba(10, 25, 47, .06);
  --sh-2: 0 18px 40px -22px rgba(10, 25, 47, .35);
  --sh-3: 0 40px 80px -40px rgba(10, 25, 47, .45);
  --sh-cyan: 0 24px 60px -28px rgba(0, 180, 216, .55);
}

@property --mesh-turn {
  syntax: "<angle>"; inherits: false; initial-value: 0deg;
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.06; letter-spacing: -0.025em; font-weight: 600; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--cyan); color: var(--navy-900); }

:focus-visible {
  outline: 2px solid var(--cyan-600);
  outline-offset: 3px;
  border-radius: 6px;
}
.section-dark :focus-visible, .footer :focus-visible { outline-color: var(--cyan); }

/* =============================================================
   3. UTILIDADES
   ============================================================= */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--cyan); color: var(--navy-900);
  border-radius: var(--r-sm); font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.section {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
  isolation: isolate;
}
.section-white { background: var(--white); }
.section-smoke { background: var(--smoke); }
.section-gray  { background: var(--gray-100); }
.section-dark  { background: var(--navy-900); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

/* =============================================================
   4. TIPOGRAFÍA DE BLOQUE
   ============================================================= */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.4rem;
}
.kicker-dark { color: var(--cyan-soft); }
.kicker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, .18);
  animation: pulseDot 2.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 212, 255, .16); }
  50%      { box-shadow: 0 0 0 8px rgba(0, 212, 255, .04); }
}

.head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4.25rem); }
.head-center { margin-inline: auto; text-align: center; }
.head-center .kicker { justify-content: center; }
.head-split { max-width: none; display: grid; gap: 1.5rem 3rem; align-items: end; }

.head-title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  margin-bottom: 1.1rem;
}
.head-title em {
  font-style: normal;
  color: var(--cyan-600);
}
.section-dark .head-title em { color: var(--cyan); }

.head-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 58ch;
}
.section-dark .head-sub { color: var(--on-dark-soft); }

/* =============================================================
   5. COMPONENTES
   ============================================================= */

/* ---- Botones ---- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600; font-size: .95rem; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background-color .3s var(--ease-out), color .3s var(--ease-out),
              border-color .3s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* El naranja es el único acento crítico: tiene que leerse encendido sobre
   el azul marino, no apagado. Halo cálido en dos capas. */
.btn-accent {
  background: var(--orange); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(255, 107, 0, .85),
              0 0 0 1px rgba(255, 150, 60, .35),
              0 0 26px -6px rgba(255, 107, 0, .45);
}
.btn-accent:hover {
  background: #FF7D1A;
  transform: translateY(-2px);
  box-shadow: 0 22px 46px -14px rgba(255, 107, 0, .95),
              0 0 0 1px rgba(255, 170, 90, .5),
              0 0 34px -4px rgba(255, 107, 0, .6);
}
.btn-cyan {
  background: var(--cyan); color: var(--navy-900);
  box-shadow: var(--sh-cyan);
}
.btn-cyan:hover { background: #2ADCFF; transform: translateY(-2px); }

.btn-ghost {
  color: var(--on-dark);
  border: 1px solid rgba(127, 216, 240, .38);
  background: rgba(255, 255, 255, .02);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: #fff;
  background: rgba(0, 212, 255, .08);
  transform: translateY(-2px);
}

/* ---- Enlace flecha ---- */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .92rem;
  color: var(--navy-700);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .4s var(--ease-out), color .3s var(--ease-out);
}
.link-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- Logo ---- */
.logo { display: inline-flex; align-items: center; gap: .7rem; }
/* Marca: solo el rayo, sin placa ni recuadro. */
.logo-mark { width: 30px; height: 30px; flex: none; overflow: visible; }
.logo-bolt {
  fill: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, .45));
  transition: filter .4s var(--ease-out), fill .4s var(--ease-out);
}
.logo:hover .logo-bolt { filter: drop-shadow(0 0 16px rgba(0, 212, 255, .8)); }
.logo-type { display: flex; flex-direction: column; line-height: 1.15; }
.logo-type strong {
  font-family: var(--display); font-weight: 700; font-size: 1.12rem;
  letter-spacing: .12em; color: #fff;
}
.logo-type small {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--on-dark-soft);
}

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .45s var(--ease-out), box-shadow .45s var(--ease-out),
              backdrop-filter .45s var(--ease-out), border-color .45s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* Al bajar, la barra se vela pero no se vuelve opaca: se intuye el contenido
   pasando por detrás y el texto blanco sigue legible. El desenfoque hace el
   trabajo; sin él, el fondo sube de opacidad para no perder contraste. */
.nav.is-stuck {
  background: rgba(10, 25, 47, .88);
  border-bottom-color: rgba(127, 216, 240, .22);
  box-shadow: 0 10px 34px -18px rgba(6, 15, 29, .85);
}
@supports (backdrop-filter: blur(18px)) {
  .nav.is-stuck {
    background: rgba(10, 25, 47, .62);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
  }
}

.nav-links { display: none; gap: 1.9rem; }
.nav-links a {
  position: relative;
  font-size: .93rem; font-weight: 500; color: var(--on-dark-soft);
  padding-block: .4rem;
  transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--cyan);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-current { color: #fff; }
.nav-links a.is-current::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: .9rem; }
.nav-phone {
  display: none; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .8rem; color: var(--on-dark-soft);
  transition: color .3s var(--ease-out);
}
.nav-phone:hover { color: var(--cyan); }
.nav-phone-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #35E08A;
  box-shadow: 0 0 0 3px rgba(53, 224, 138, .18);
}

.nav-burger {
  width: 44px; height: 44px; flex: none;
  display: grid; place-content: center; gap: 6px;
  border-radius: 12px; border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .03);
}
.nav-burger span:not(.sr-only) {
  display: block; width: 20px; height: 1.8px; background: var(--on-dark);
  transition: transform .4s var(--ease-out), opacity .3s var(--ease-out);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---- Menú móvil ---- */
.menu {
  position: fixed; inset: 0; z-index: 890;
  background: var(--navy-900);
  display: grid; align-items: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.menu.is-open { opacity: 1; }
.menu-inner { display: flex; flex-direction: column; gap: .35rem; }
.menu-inner > a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--display); font-size: clamp(1.6rem, 8vw, 2.4rem); font-weight: 600;
  color: #fff; padding-block: .5rem;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .3s;
}
.menu.is-open .menu-inner > a { opacity: 1; transform: none; }
.menu-inner > a:nth-child(1) { transition-delay: .06s; }
.menu-inner > a:nth-child(2) { transition-delay: .10s; }
.menu-inner > a:nth-child(3) { transition-delay: .14s; }
.menu-inner > a:nth-child(4) { transition-delay: .18s; }
.menu-inner > a:nth-child(5) { transition-delay: .22s; }
.menu-inner > a:nth-child(6) { transition-delay: .26s; }
.menu-inner > a span {
  font-family: var(--mono); font-size: .7rem; color: var(--cyan);
  letter-spacing: .1em;
}
.menu-inner > a:hover { color: var(--cyan); }
.menu-foot { margin-top: 1.8rem; display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.menu-foot p { font-family: var(--mono); font-size: .82rem; color: var(--on-dark-soft); }

/* =============================================================
   6. SECCIONES
   ============================================================= */

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + 2.25rem) 4.5rem;
  background: var(--navy-900);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero-mesh {
  position: absolute; inset: -25%;
  background:
    radial-gradient(38% 42% at 22% 28%, rgba(0, 180, 216, .38), transparent 68%),
    radial-gradient(34% 40% at 78% 22%, rgba(0, 40, 85, .85), transparent 70%),
    radial-gradient(46% 46% at 62% 82%, rgba(0, 212, 255, .18), transparent 72%);
  filter: blur(48px);
  animation: meshDrift 26s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) translate3d(0, 0, 0); }
  50%      { transform: scale(1.14) translate3d(2%, -2%, 0); }
}

.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle 420px at var(--mx, 70%) var(--my, 30%), rgba(0, 212, 255, .16), transparent 65%);
  opacity: 0; transition: opacity .8s var(--ease-out);
}
.hero-glow.is-live { opacity: 1; }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(127, 216, 240, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 216, 240, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
}

/* Circuito — efecto firma */
.hero-circuit { position: absolute; inset: 0; width: 100%; height: 100%; }
.circuit-lines path {
  fill: none; stroke: rgba(127, 216, 240, .16); stroke-width: 1.2;
}
.circuit-nodes circle {
  fill: var(--cyan); opacity: .5;
  animation: nodeBlink 4s ease-in-out infinite;
}
.circuit-nodes circle:nth-child(2n) { animation-delay: 1.3s; }
.circuit-nodes circle:nth-child(3n) { animation-delay: 2.4s; }
@keyframes nodeBlink { 0%, 100% { opacity: .28; } 50% { opacity: .9; } }

.circuit-pulses path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 90 2200;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, .85));
  animation: pulseRun 7s linear infinite;
}
.circuit-pulses path:nth-child(1) { animation-duration: 8s;  animation-delay: 0s; }
.circuit-pulses path:nth-child(2) { animation-duration: 11s; animation-delay: 1.8s; }
.circuit-pulses path:nth-child(3) { animation-duration: 9s;  animation-delay: 3.4s; }
.circuit-pulses path:nth-child(4) { animation-duration: 13s; animation-delay: .9s; }
.circuit-pulses path:nth-child(5) { animation-duration: 12s; animation-delay: 5s; }
@keyframes pulseRun {
  from { stroke-dashoffset: 2290; }
  to   { stroke-dashoffset: -90; }
}

.hero-inner {
  display: grid; gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  width: 100%;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 15ch;
}
.hero-title em {
  font-style: normal;
  position: relative;
  color: var(--cyan);
  white-space: nowrap;
}
.hero-title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em;
  height: .07em; background: var(--cyan); opacity: .35;
  transform: scaleX(0); transform-origin: left;
  animation: underlineIn 1.1s .9s var(--ease-out) forwards;
}
@keyframes underlineIn { to { transform: scaleX(1); } }

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: var(--on-dark-soft);
  max-width: 46ch;
  margin-bottom: 1.9rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.2rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
}
.stat dt {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.45rem, 3.4vw, 2.15rem);
  color: #fff; line-height: 1;
  display: flex; align-items: baseline; gap: .05em;
}
.stat dt i { font-style: normal; color: var(--cyan); }
.stat dd {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--on-dark-soft);
  margin-top: .55rem; line-height: 1.45;
}

/* Visual del hero */
.hero-visual { position: relative; }
.hero-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 212, 255, .06);
  transform-style: preserve-3d;
  animation: floatY 9s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}
.hero-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 25, 47, .75) 100%);
  pointer-events: none;
}
.hero-frame-tag {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem .9rem; border-radius: 999px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .05em;
  color: #fff;
  background: rgba(10, 25, 47, .72);
  border: 1px solid var(--line-dark);
}
@supports (backdrop-filter: blur(10px)) {
  .hero-frame-tag { background: rgba(10, 25, 47, .5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.tag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.hero-chip {
  position: absolute; z-index: 3;
  display: none;
  flex-direction: column; gap: .1rem;
  padding: .95rem 1.15rem;
  border-radius: var(--r-md);
  background: rgba(15, 36, 64, .82);
  border: 1px solid var(--line-dark);
  box-shadow: var(--sh-3);
  animation: floatY 7s ease-in-out infinite;
}
@supports (backdrop-filter: blur(14px)) {
  .hero-chip { background: rgba(15, 36, 64, .55); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
}
.hero-chip-1 { top: 12%; left: -14%; animation-delay: .8s; }
.hero-chip-2 { bottom: 14%; right: -12%; animation-delay: 2.2s; }
.chip-label, .chip-foot {
  font-family: var(--mono); font-size: .63rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--on-dark-soft);
}
.hero-chip strong {
  font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--cyan);
  line-height: 1.15;
}

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0;
  display: none; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--on-dark-soft);
  transition: color .3s var(--ease-out);
}
.hero-scroll:hover { color: var(--cyan); }
.hero-scroll-rail {
  position: relative; display: block; width: 1px; height: 42px;
  background: var(--line-dark); overflow: hidden;
}
.hero-scroll-bead {
  position: absolute; inset-inline: -1px; top: 0; height: 14px;
  background: var(--cyan);
  animation: beadRun 2.4s var(--ease-soft) infinite;
}
@keyframes beadRun {
  0%   { transform: translateY(-16px); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(44px); opacity: 0; }
}

/* ---- TICKER ---- */
.ticker {
  background: var(--navy-800);
  border-block: 1px solid var(--line-dark);
  overflow: hidden;
  padding-block: .95rem;
}
.ticker-track {
  display: flex; align-items: center; gap: 1.6rem;
  width: max-content;
  animation: tickerRun 42s linear infinite;
}
.ticker-track span {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-dark-soft); white-space: nowrap;
}
.ticker-track i { color: var(--cyan); font-style: normal; opacity: .55; }
@keyframes tickerRun { to { transform: translateX(-50%); } }

/* ---- SERVICIOS ---- */
.services { display: grid; gap: clamp(1.1rem, 2vw, 1.6rem); }

.svc {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transform-style: preserve-3d;
  transition: box-shadow .55s var(--ease-out), border-color .45s var(--ease-out), transform .5s var(--ease-out);
}
.section-white .svc { background: var(--smoke); }
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--px, 50%) var(--py, 0%), rgba(0, 212, 255, .14), transparent 62%);
  opacity: 0; transition: opacity .45s var(--ease-out);
}
.svc:hover::before { opacity: 1; }
.svc:hover {
  border-color: rgba(0, 180, 216, .45);
  box-shadow: var(--sh-2), 0 0 0 1px rgba(0, 180, 216, .12);
}

.svc-media { position: relative; overflow: hidden; background: var(--navy-900); }
.svc-media img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform .9s var(--ease-out), filter .6s var(--ease-out);
}
.svc:hover .svc-media img { transform: scale(1.06); filter: saturate(1.15) brightness(1.06); }

.svc-body { position: relative; z-index: 2; padding: clamp(1.5rem, 3vw, 2.1rem); display: flex; flex-direction: column; flex: 1; }
.svc-num {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em;
  color: var(--cyan-600); margin-bottom: .9rem;
}
.svc-flag {
  position: absolute; top: clamp(1.5rem, 3vw, 2.1rem); right: clamp(1.5rem, 3vw, 2.1rem);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px;
  color: var(--orange); background: rgba(255, 107, 0, .1);
  border: 1px solid rgba(255, 107, 0, .3);
}
.svc h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: .7rem; color: var(--navy-900); }
.svc-body > p { color: var(--ink-soft); font-weight: 300; margin-bottom: 1.35rem; }

.svc-list { display: grid; gap: .6rem; margin-bottom: 1.7rem; }
.svc-list li {
  position: relative; padding-left: 1.5rem;
  font-size: .93rem; color: var(--ink-soft);
}
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--cyan-600); opacity: .85;
  transform: rotate(45deg);
}
.svc .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---- VENTAJAS ---- */
.adv-shell { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }

.adv-figure {
  margin-top: 2.2rem;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-light);
  box-shadow: var(--sh-2);
}
.adv-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.adv-list { display: grid; gap: clamp(1rem, 2vw, 1.35rem); }
.adv {
  position: relative;
  padding: clamp(1.35rem, 2.6vw, 1.85rem) clamp(1.35rem, 2.6vw, 1.9rem);
  padding-left: clamp(3.4rem, 6vw, 4.4rem);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s var(--ease-out);
}
.adv::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-600));
  transform: scaleY(0); transform-origin: top;
  transition: transform .55s var(--ease-out);
}
.adv:hover { transform: translateX(6px); box-shadow: var(--sh-2); border-color: rgba(0, 180, 216, .38); }
.adv:hover::before { transform: scaleY(1); }
.adv-num {
  position: absolute; left: clamp(1.2rem, 2.4vw, 1.6rem); top: clamp(1.5rem, 2.9vw, 2rem);
  font-family: var(--mono); font-size: .74rem; color: var(--cyan-600); letter-spacing: .08em;
}
.adv h3 { font-size: clamp(1.08rem, 1.9vw, 1.28rem); margin-bottom: .5rem; color: var(--navy-900); }
.adv p { color: var(--ink-soft); font-size: .96rem; font-weight: 300; }

/* ---- CALCULADORA ---- */
.calc {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid; gap: clamp(1.8rem, 4vw, 3rem);
  padding: clamp(1.6rem, 4vw, 3rem);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
}
.calc-title { font-size: clamp(1.5rem, 3vw, 2.05rem); margin-bottom: .8rem; color: var(--navy-900); }
.calc-lead { color: var(--ink-soft); font-weight: 300; margin-bottom: 2.2rem; max-width: 44ch; }

.calc-field { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; flex-wrap: wrap; }
.calc-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.calc-output {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2rem);
  color: var(--navy-900); font-variant-numeric: tabular-nums;
}

.calc-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan-600) 0%, var(--cyan-600) var(--fill, 20%), var(--gray-200) var(--fill, 20%), var(--gray-200) 100%);
  cursor: pointer;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--cyan-600);
  box-shadow: 0 6px 18px -6px rgba(0, 180, 216, .8);
  transition: transform .25s var(--ease-bounce);
}
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.calc-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--cyan-600);
  box-shadow: 0 6px 18px -6px rgba(0, 180, 216, .8);
}
.calc-scale {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: .66rem; color: var(--ink-mute);
  margin-top: .6rem;
}
.calc-note { margin-top: 1.8rem; font-size: .82rem; color: var(--ink-mute); font-weight: 300; max-width: 46ch; }

.calc-right { display: flex; flex-direction: column; gap: .8rem; }
.calc-result {
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--smoke);
  border: 1px solid var(--line-light);
}
.calc-result-label {
  display: block;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: .35rem;
}
.calc-result strong {
  font-family: var(--display); font-weight: 600; font-size: 1.35rem;
  color: var(--navy-900); font-variant-numeric: tabular-nums;
  line-height: 1.15; display: block;
}
.calc-result-main {
  background: var(--navy-900);
  border-color: transparent;
  position: relative; overflow: hidden;
  padding: 1.6rem 1.5rem;
}
.calc-result-main::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 85% 10%, rgba(0, 212, 255, .3), transparent 70%);
  pointer-events: none;
}
.calc-result-main .calc-result-label { color: var(--cyan-soft); }
.calc-result-main strong { color: #fff; font-size: clamp(2rem, 5vw, 2.8rem); }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.calc-right .btn { margin-top: .5rem; }

/* ---- PROCESO ---- */
.steps-wrap { position: relative; padding-left: 3.2rem; }
.steps-rail {
  position: absolute; left: 15px; top: .5rem; bottom: .5rem; width: 2px;
  background: var(--gray-200); border-radius: 2px; overflow: hidden;
}
.steps-fill {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-600));
  box-shadow: 0 0 14px rgba(0, 212, 255, .6);
  transform: scaleY(var(--p, 0)); transform-origin: top;
}
.steps { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; left: -3.2rem; top: .45rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--gray-200);
  transform: translateX(9px);
  transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.step.is-visible::before { border-color: var(--cyan-600); box-shadow: 0 0 0 5px rgba(0, 212, 255, .12); }
.step-num { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; color: var(--cyan-600); }
.step h3 { font-size: clamp(1.15rem, 2.1vw, 1.4rem); margin: .35rem 0 .5rem; color: var(--navy-900); }
.step p { color: var(--ink-soft); font-weight: 300; max-width: 46ch; font-size: .96rem; }

/* ---- PROYECTOS ---- */
.gallery { display: grid; gap: clamp(.8rem, 1.6vw, 1.15rem); }
.shot {
  position: relative; overflow: hidden;
  border-radius: var(--r-md);
  background: var(--navy-900);
  border: 1px solid rgba(10, 25, 47, .08);
}
.shot img {
  width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .95s var(--ease-out), filter .6s var(--ease-out);
}
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 15, 29, .88) 100%);
  opacity: .75; transition: opacity .5s var(--ease-out);
}
.shot:hover img { transform: scale(1.07); filter: saturate(1.12); }
.shot:hover::after { opacity: .95; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.15rem 1.25rem;
  display: flex; flex-direction: column; gap: .15rem;
  transform: translateY(6px); opacity: .92;
  transition: transform .5s var(--ease-out), opacity .5s var(--ease-out);
}
.shot:hover figcaption { transform: none; opacity: 1; }
.shot figcaption span { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: #fff; }
.shot figcaption em {
  font-style: normal; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--cyan-soft);
}

/* ---- TESTIMONIOS ---- */
.dark-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.dark-mesh {
  position: absolute; inset: -30%;
  background:
    radial-gradient(34% 40% at 18% 22%, rgba(0, 40, 85, .9), transparent 70%),
    radial-gradient(30% 36% at 82% 30%, rgba(0, 180, 216, .22), transparent 72%),
    radial-gradient(40% 44% at 50% 92%, rgba(0, 212, 255, .12), transparent 74%);
  filter: blur(56px);
  animation: meshDrift 32s ease-in-out infinite;
}
.dark-mesh-2 {
  background:
    radial-gradient(36% 44% at 78% 18%, rgba(0, 180, 216, .3), transparent 70%),
    radial-gradient(34% 40% at 16% 74%, rgba(0, 40, 85, .95), transparent 72%);
  animation-duration: 38s;
}

.quotes { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.quote {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-dark);
  transition: transform .5s var(--ease-out), border-color .45s var(--ease-out), background-color .45s var(--ease-out);
}
@supports (backdrop-filter: blur(14px)) {
  .quote { background: rgba(255, 255, 255, .035); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.quote:hover { transform: translateY(-5px); border-color: rgba(0, 212, 255, .42); background: rgba(0, 212, 255, .06); }
.quote-mark {
  font-family: var(--display); font-size: 4.5rem; line-height: .55;
  color: var(--cyan); opacity: .32; margin-bottom: .6rem;
}
.quote blockquote p {
  color: var(--on-dark); font-weight: 300;
  font-size: clamp(.98rem, 1.5vw, 1.06rem);
}
.quote-lead blockquote p { font-size: clamp(1.06rem, 2vw, 1.3rem); }
.quote figcaption {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: .85rem; margin-top: 1.5rem; padding-top: 1.3rem;
  border-top: 1px solid var(--line-dark);
}
.quote figcaption img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line-dark);
}
.q-who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.q-who strong { font-family: var(--display); font-size: .98rem; color: #fff; font-weight: 600; }
.q-who em {
  font-style: normal; font-family: var(--mono); font-size: .66rem;
  letter-spacing: .07em; color: var(--on-dark-soft); text-transform: uppercase;
}
.stars { color: var(--cyan); font-size: .8rem; letter-spacing: .08em; }
.quotes-note {
  margin-top: 2rem; text-align: center;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--on-dark-soft); opacity: .65;
}

/* ---- FAQ ---- */
.faq-shell { max-width: 900px; }
.faq { display: grid; gap: .55rem; }
.faq-item {
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  background: var(--smoke);
  overflow: hidden;
  transition: border-color .4s var(--ease-out), background-color .4s var(--ease-out);
}
.faq-item[open] { border-color: rgba(0, 180, 216, .4); background: var(--white); box-shadow: var(--sh-1); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.15rem 1.3rem;
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 1.7vw, 1.1rem);
  color: var(--navy-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
  position: relative; flex: none; width: 20px; height: 20px;
}
.faq-item summary i::before, .faq-item summary i::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 2px; background: var(--cyan-600); border-radius: 2px;
  transition: transform .4s var(--ease-out);
}
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0deg); }
.faq-body { padding: 0 1.3rem 1.3rem; }
.faq-body p { color: var(--ink-soft); font-weight: 300; max-width: 68ch; }
.faq-item[open] .faq-body { animation: faqIn .45s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- CONTACTO ---- */
.section-contact { padding-bottom: clamp(5rem, 9vw, 7.5rem); }
.contact-shell { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }

.contact-cards { display: grid; gap: .7rem; margin-top: 2.4rem; }
.contact-cards a, .cc-static {
  display: flex; flex-direction: column; gap: .1rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .04);
  transition: border-color .4s var(--ease-out), background-color .4s var(--ease-out), transform .4s var(--ease-out);
}
.contact-cards a:hover { border-color: var(--cyan); background: rgba(0, 212, 255, .08); transform: translateX(5px); }
.cc-label {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--cyan-soft);
}
.contact-cards strong { font-family: var(--display); font-size: 1.12rem; color: #fff; font-weight: 600; }
.contact-cards em { font-style: normal; font-size: .85rem; color: var(--on-dark-soft); font-weight: 300; }

.form {
  display: grid; gap: 1rem;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-dark);
  box-shadow: var(--sh-3);
}
@supports (backdrop-filter: blur(16px)) {
  .form { background: rgba(255, 255, 255, .04); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
}
.form-row { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field > span {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan-soft);
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans); font-size: .96rem; color: #fff;
  padding: .85rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-dark);
  background: rgba(6, 15, 29, .45);
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--navy-900); color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: rgba(159, 179, 204, .55); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(6, 15, 29, .7);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, .14);
}
.field input:user-invalid { border-color: rgba(255, 107, 0, .7); }

.form .btn { margin-top: .4rem; }
.btn-check {
  position: absolute; inset: 0; margin: auto;
  width: 26px; height: 26px;
  fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  opacity: 0;
}
.btn.is-done .btn-text { opacity: 0; }
.btn.is-done .btn-check { opacity: 1; animation: drawCheck .6s var(--ease-out) forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.form-foot { font-size: .8rem; color: var(--on-dark-soft); font-weight: 300; }
.form-foot a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.form-status { font-size: .85rem; color: var(--cyan); min-height: 1.2em; font-weight: 500; }
.form-status.is-error { color: #FF9A4D; }

/* ---- FOOTER ---- */
.footer { background: var(--navy-ink); color: var(--on-dark-soft); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer-inner { display: grid; gap: clamp(2.2rem, 5vw, 4rem); padding-bottom: 3rem; }
.footer-brand p { max-width: 42ch; margin-top: 1.2rem; font-weight: 300; font-size: .92rem; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2rem; }
.footer-nav h4 {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan-soft); margin-bottom: 1rem; font-weight: 500;
}
.footer-nav a {
  display: block; font-size: .92rem; padding-block: .3rem; font-weight: 300;
  transition: color .3s var(--ease-out), transform .3s var(--ease-out);
}
.footer-nav a:hover { color: var(--cyan); transform: translateX(3px); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .05em;
  color: rgba(159, 179, 204, .7);
}

/* ---- WhatsApp flotante ---- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 800;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-content: center;
  background: #25D366; color: #fff;
  box-shadow: 0 14px 32px -12px rgba(37, 211, 102, .85);
  transform: translateY(90px); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .4s var(--ease-out), background-color .3s;
}
.wa-float.is-live { transform: none; opacity: 1; }
.wa-float:hover { background: #1FBE5B; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* =============================================================
   7. EFECTOS
   ============================================================= */

/* ---- Splash ---- */
.splash { display: none; }
.has-js .splash {
  position: fixed; inset: 0; z-index: 9990;
  display: grid; place-content: center;
  background: var(--navy-900);
  animation: splashSafety .01s 4.5s forwards;
}
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.splash-mark { width: 54px; height: 54px; }
.splash-bolt {
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: boltDraw 1.15s .1s var(--ease-out) forwards;
}
@keyframes boltDraw { to { stroke-dashoffset: 0; } }
.splash-word {
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  letter-spacing: .55em; text-indent: .55em; color: #fff;
  opacity: 0; animation: fadeUp .8s .45s var(--ease-out) forwards;
}
.splash-line {
  width: 120px; height: 2px; background: var(--line-dark); overflow: hidden; position: relative;
}
.splash-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--cyan);
  transform: scaleX(0); transform-origin: left;
  animation: loadBar 1.5s .2s var(--ease-soft) forwards;
}
@keyframes loadBar { to { transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; visibility: hidden; } }
.splash.is-out {
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .7s var(--ease-out), visibility 0s .7s;
}
body.is-locked { overflow: hidden; }

/* ---- Reveals ---- */
.has-js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
}
.has-js .reveal.is-visible { opacity: 1; transform: none; }

/* DEFENSIVO (gotcha A.4.5): un elemento con .reveal + data-split
   nunca debe quedar invisible si el JS de split falla o llega cacheado. */
.has-js .reveal[data-split] { opacity: 1; transform: none; }

/* ---- Split de palabras ---- */
.split-word {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: .14em; margin-bottom: -.14em;
}
.split-word > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.is-split-in .split-word > span { transform: none; }

/* ---- Tilt ---- */
[data-tilt] { transition: transform .5s var(--ease-out); }
[data-tilt].is-tilting { transition: transform .12s linear; }

/* =============================================================
   8. RESPONSIVE
   ============================================================= */
/* Móvil estrecho: la barra solo lleva logo + hamburguesa.
   El CTA vive en el menú y en el botón flotante de WhatsApp. */
@media (max-width: 539px) {
  .logo-type small { display: none; }
  .logo-type strong { font-size: 1.02rem; }
  .nav-actions .btn-accent { display: none; }
}

@media (min-width: 540px) {
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-feature { grid-column: 1 / -1; }
  .svc-feature { flex-direction: row; align-items: stretch; }
  .svc-feature .svc-media { flex: 1 1 45%; }
  .svc-feature .svc-media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
  .svc-feature .svc-body { flex: 1 1 55%; justify-content: center; }
  .calc { grid-template-columns: 1fr 1fr; align-items: start; }
  .head-split { grid-template-columns: 1.4fr 1fr; }
  .hero-scroll { display: inline-flex; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr 1.15fr; }
}

@media (min-width: 960px) {
  :root { --nav-h: 84px; }
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .menu { display: none !important; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
  .hero-chip { display: flex; }
  .hero-visual { padding-inline: 8%; }
  .adv-shell { grid-template-columns: .85fr 1.15fr; }
  .adv-sticky { position: sticky; top: calc(var(--nav-h) + 2.5rem); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .shot-wide { grid-column: span 2; }
  .shot-wide img { aspect-ratio: 8 / 3; }
  .shot-tall img { aspect-ratio: 4 / 3; }
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-lead { grid-column: 1 / -1; }
  .quote-lead blockquote { max-width: 68ch; }
  .contact-shell { grid-template-columns: .95fr 1.05fr; }
  .steps-wrap { padding-left: 0; padding-top: 3.6rem; }
  .steps-rail { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 2px; }
  .steps-fill { transform: scaleX(var(--p, 0)); transform-origin: left; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
  .step::before { left: 0; top: -3.6rem; transform: none; }
  .step p { font-size: .9rem; }
  .nav-phone { display: inline-flex; }
  .wa-float { right: 1.6rem; bottom: 1.6rem; }
}

@media (min-width: 1280px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { padding-inline: 4% 0; }
}

/* Móvil: el visual del hero baja de peso */
@media (max-width: 959px) {
  .hero { min-height: auto; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-frame img { aspect-ratio: 3 / 4; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat:last-child { grid-column: 1 / -1; }
}

/* =============================================================
   9. REDUCED MOTION — solo efectos intrusivos
   (los micro-interacciones se mantienen: Windows activa esto por defecto)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh, .dark-mesh { animation: none; }
  .circuit-pulses path { animation: none; opacity: .5; stroke-dasharray: none; stroke-width: 1.2; }
  .circuit-nodes circle { animation: none; opacity: .6; }
  .hero-frame, .hero-chip { animation: none; }
  .hero-scroll-bead { animation: none; }
  .ticker-track { animation-duration: 120s; }
  .kicker-dot { animation: none; }
}

/* =============================================================
   10. ASISTENTE IA + ESTUDIO DE AHORRO
   ============================================================= */

/* ---- Contenedor de botones flotantes ---- */
.floats {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 800;
  display: flex; flex-direction: column; align-items: flex-end; gap: .7rem;
}
.floats .wa-float { position: static; right: auto; bottom: auto; }

.chat-fab {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.15rem .8rem .9rem;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  border: 1px solid rgba(0, 212, 255, .45);
  box-shadow: 0 16px 40px -16px rgba(0, 180, 216, .8), 0 0 0 1px rgba(10, 25, 47, .4);
  font-family: var(--display); font-weight: 600; font-size: .88rem;
  transform: translateY(80px); opacity: 0;
  transition: transform .55s var(--ease-out), opacity .4s var(--ease-out),
              background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.chat-fab.is-live { transform: none; opacity: 1; }
.chat-fab:hover { background: var(--navy-700); border-color: var(--cyan); }
.chat-fab-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linejoin: round; }
.chat-fab-bolt { fill: var(--cyan); stroke: none; }
.chat-abierto .chat-fab { opacity: 0; pointer-events: none; }

/* ---- Panel del asistente ---- */
.chat-panel {
  position: fixed; z-index: 950;
  right: 1.1rem; bottom: 1.1rem;
  width: min(400px, calc(100vw - 2.2rem));
  height: min(600px, calc(100svh - 2.2rem));
  display: flex; flex-direction: column;
  background: var(--navy-900);
  border: 1px solid rgba(127, 216, 240, .22);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85);
  overflow: hidden;
  opacity: 0; transform: translateY(24px) scale(.97);
  transform-origin: bottom right;
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-out);
}
.chat-panel.is-open { opacity: 1; transform: none; }

.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(0, 40, 85, .35);
}
.chat-id { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.chat-avatar {
  width: 36px; height: 36px; flex: none;
  display: grid; place-content: center;
  border-radius: 11px;
  background: rgba(0, 212, 255, .12);
  color: var(--cyan);
}
.chat-avatar svg { width: 19px; height: 19px; }
.chat-who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.chat-who strong { font-family: var(--display); font-size: .96rem; color: #fff; }
.chat-who small {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .06em;
  color: var(--on-dark-soft); text-transform: uppercase;
}
.chat-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #35E08A;
  box-shadow: 0 0 0 3px rgba(53, 224, 138, .18);
}
.chat-close {
  width: 34px; height: 34px; flex: none;
  display: grid; place-content: center;
  border-radius: 10px; color: var(--on-dark-soft);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.chat-close:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.chat-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.chat-log {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 1.1rem;
  display: flex; flex-direction: column; gap: .75rem;
  scrollbar-width: thin;
}
.chat-msg {
  max-width: 88%;
  padding: .8rem 1rem;
  border-radius: 16px;
  font-size: .92rem; line-height: 1.6;
  animation: chatIn .35s var(--ease-out);
}
.chat-msg p + p { margin-top: .6rem; }
.chat-msg strong { color: #fff; font-weight: 600; }
@keyframes chatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.chat-msg-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-dark);
  border-bottom-left-radius: 5px;
  color: var(--on-dark);
}
.chat-msg-yo {
  align-self: flex-end;
  background: var(--cyan-600);
  border-bottom-right-radius: 5px;
  color: #04121F;
  font-weight: 500;
}
.chat-msg.is-error { border-color: rgba(255, 107, 0, .45); }
.chat-fallback { margin-top: .5rem; font-size: .86rem; }
.chat-fallback a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.chat-typing { display: inline-flex; gap: 5px; padding: .15rem 0; }
.chat-typing i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-soft);
  animation: chatBlink 1.3s ease-in-out infinite;
}
.chat-typing i:nth-child(2) { animation-delay: .18s; }
.chat-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes chatBlink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-chips {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: 0 1.1rem .8rem;
}
.chat-chips button {
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .04);
  color: var(--on-dark-soft);
  font-size: .78rem; text-align: left;
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.chat-chips button:hover { border-color: var(--cyan); color: #fff; background: rgba(0, 212, 255, .1); }

.chat-form {
  display: flex; gap: .5rem; align-items: center;
  padding: .8rem 1.1rem;
  border-top: 1px solid var(--line-dark);
}
.chat-form input {
  flex: 1; min-width: 0;
  font-family: var(--sans); font-size: .92rem; color: #fff;
  padding: .75rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(6, 15, 29, .55);
  transition: border-color .3s var(--ease-out);
}
.chat-form input::placeholder { color: rgba(159, 179, 204, .55); }
.chat-form input:focus { outline: none; border-color: var(--cyan); }
.chat-form button {
  width: 42px; height: 42px; flex: none;
  display: grid; place-content: center;
  border-radius: 50%;
  background: var(--cyan); color: var(--navy-900);
  transition: background-color .3s var(--ease-out), opacity .3s;
}
.chat-form button:hover { background: #2ADCFF; }
.chat-form button:disabled { opacity: .45; cursor: not-allowed; }
.chat-form button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.chat-legal {
  padding: 0 1.1rem .9rem;
  font-size: .68rem; line-height: 1.5; color: rgba(159, 179, 204, .75);
}
.chat-legal a { color: var(--cyan-soft); text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================
   ESTUDIO DE AHORRO
   ============================================================= */
.estudio {
  position: relative;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-dark);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
@supports (backdrop-filter: blur(16px)) {
  .estudio { background: rgba(255, 255, 255, .04); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
}

.est-progress {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(6, 15, 29, .35);
}
.est-progress li {
  display: flex; align-items: center; gap: .5rem;
  padding: .9rem .6rem;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(159, 179, 204, .65);
  border-right: 1px solid var(--line-dark);
  transition: color .4s var(--ease-out), background-color .4s var(--ease-out);
}
.est-progress li:last-child { border-right: 0; }
.est-progress li span {
  width: 22px; height: 22px; flex: none;
  display: grid; place-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  font-size: .68rem;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.est-progress li em { font-style: normal; }
.est-progress li.is-on { color: #fff; background: rgba(0, 212, 255, .08); }
.est-progress li.is-on span { background: var(--cyan); color: var(--navy-900); border-color: var(--cyan); font-weight: 600; }
.est-progress li.is-done { color: var(--cyan-soft); }
.est-progress li.is-done span { border-color: var(--cyan); color: var(--cyan); }

.est-panel { padding: clamp(1.4rem, 3.5vw, 2.4rem); animation: estIn .45s var(--ease-out); }
@keyframes estIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.est-title { font-size: clamp(1.3rem, 2.8vw, 1.85rem); color: #fff; margin-bottom: .7rem; }
.est-lead { color: var(--on-dark-soft); font-weight: 300; max-width: 56ch; margin-bottom: 1.6rem; font-size: .96rem; }

/* ---- Zona de subida ---- */
.est-drop {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: clamp(1.6rem, 4vw, 2.6rem) 1.2rem;
  border: 1.5px dashed rgba(127, 216, 240, .35);
  border-radius: var(--r-md);
  background: rgba(6, 15, 29, .3);
  text-align: center; cursor: pointer;
  transition: border-color .35s var(--ease-out), background-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.est-drop:hover, .est-drop.is-over { border-color: var(--cyan); background: rgba(0, 212, 255, .07); }
.est-drop.is-over { transform: scale(1.01); }
.est-drop svg {
  width: 34px; height: 34px; fill: none; stroke: var(--cyan);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.est-drop strong { font-family: var(--display); font-size: 1.02rem; color: #fff; font-weight: 600; }
.est-drop small { font-family: var(--mono); font-size: .68rem; color: var(--on-dark-soft); letter-spacing: .04em; }
.est-drop.is-loading { border-color: var(--cyan); }
.est-drop.is-loading svg { animation: estPulse 1.2s ease-in-out infinite; }
@keyframes estPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.est-drop.is-ok { border-color: rgba(53, 224, 138, .6); background: rgba(53, 224, 138, .07); }
.est-drop.is-ok svg { stroke: #35E08A; }

.est-msg { margin-top: .9rem; font-size: .87rem; min-height: 1.2em; color: var(--on-dark-soft); }
.est-msg.is-error { color: #FFA45C; }
.est-msg.is-ok { color: #6BE8A6; }
.est-msg.is-info { color: var(--cyan-soft); }

.est-manual { margin-top: 1.2rem; }
.est-manual summary {
  cursor: pointer; list-style: none;
  font-size: .86rem; color: var(--cyan-soft);
  text-decoration: underline; text-underline-offset: 3px;
  padding: .3rem 0;
}
.est-manual summary::-webkit-details-marker { display: none; }
.est-manual[open] summary { margin-bottom: .9rem; }

/* ---- Campos ---- */
.est-field { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.est-field > span {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan-soft);
}
.est-field > span i { font-style: normal; opacity: .6; }
.est-field input {
  width: 100%;
  font-family: var(--sans); font-size: .96rem; color: #fff;
  padding: .85rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-dark);
  background: rgba(6, 15, 29, .5);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.est-field input::placeholder { color: rgba(159, 179, 204, .5); }
.est-field input:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, .14);
}

.est-row { display: grid; gap: 1rem; margin-bottom: 1rem; }

.est-check {
  display: flex; align-items: flex-start; gap: .7rem;
  margin: .4rem 0 1.2rem;
  font-size: .87rem; color: var(--on-dark-soft); cursor: pointer;
}
.est-check input { width: 18px; height: 18px; flex: none; margin-top: .15rem; accent-color: var(--cyan-600); }

/* Campo trampa para bots: invisible pero no display:none. */
.est-hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

.est-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap;
}

.btn-ghost-light {
  color: var(--on-dark);
  border: 1px solid rgba(127, 216, 240, .38);
  background: rgba(255, 255, 255, .02);
}
.btn-ghost-light:hover {
  border-color: var(--cyan); color: #fff;
  background: rgba(0, 212, 255, .08); transform: translateY(-2px);
}

/* ---- Mapa ---- */
.est-search { display: grid; gap: .8rem; align-items: end; margin-bottom: 1.1rem; }
.est-map-wrap {
  position: relative;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--navy-800);
}
.est-map { width: 100%; height: clamp(280px, 45vw, 440px); background: var(--navy-800); }
.est-map-hint {
  position: absolute; inset: 0; z-index: 500;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; padding: 1.5rem; text-align: center;
  background: rgba(10, 25, 47, .88);
  pointer-events: none;
}
.est-map-hint strong { font-family: var(--display); color: #fff; font-size: 1.05rem; }
.est-map-hint span { font-size: .87rem; color: var(--on-dark-soft); max-width: 40ch; }

/* Leaflet sobre fondo oscuro */
.est-map-wrap .leaflet-control-attribution {
  background: rgba(10, 25, 47, .8); color: var(--on-dark-soft); font-size: 10px;
}
.est-map-wrap .leaflet-control-attribution a { color: var(--cyan-soft); }
.est-map-wrap .leaflet-bar a { background: var(--navy-800); color: #fff; border-bottom-color: var(--line-dark); }
.est-map-wrap .leaflet-bar a:hover { background: var(--navy-700); }

.est-area {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center;
  margin-top: 1.1rem;
}
.est-area-label {
  display: block;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: .3rem;
}
.est-area strong {
  font-family: var(--display); font-size: 1.35rem; color: #fff; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.est-clear {
  margin-left: auto;
  font-size: .82rem; color: var(--on-dark-soft);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .3s var(--ease-out);
}
.est-clear:hover { color: #FFA45C; }

/* ---- Resultado ---- */
.est-panel-res .kicker { margin-bottom: 1rem; }
.est-hero-num {
  margin: 1.4rem 0 1.2rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(0, 180, 216, .22), rgba(0, 40, 85, .35));
  border: 1px solid rgba(0, 212, 255, .3);
  position: relative; overflow: hidden;
}
.est-hero-num::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(55% 90% at 88% 8%, rgba(0, 212, 255, .28), transparent 70%);
  pointer-events: none;
}
.est-hero-num strong {
  display: block;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.4rem); color: #fff; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.est-hero-foot { display: block; margin-top: .5rem; font-size: .88rem; color: var(--cyan-soft); }

.est-cards { display: grid; gap: .7rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.est-card {
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-md);
  background: rgba(6, 15, 29, .4);
  border: 1px solid var(--line-dark);
}
.est-card strong {
  display: block;
  font-family: var(--display); font-size: 1.15rem; color: #fff; font-weight: 600;
  font-variant-numeric: tabular-nums; line-height: 1.25;
}
.est-card em {
  display: block; margin-top: .25rem;
  font-style: normal; font-size: .78rem; color: var(--on-dark-soft);
}
.est-card-pay { margin-top: .7rem; border-color: rgba(255, 107, 0, .4); }
.est-card-pay strong { color: var(--orange); }

.est-nota {
  margin-top: 1.2rem;
  font-size: .89rem; line-height: 1.65;
  color: var(--on-dark-soft); font-weight: 300; max-width: 66ch;
}
.est-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.est-legal {
  margin-top: 1.4rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
  font-size: .78rem; line-height: 1.6; color: rgba(159, 179, 204, .8);
  max-width: 70ch;
}

/* ---- Créditos de fotos en el pie ---- */
.footer-credits {
  margin-top: 1.2rem;
  font-size: .72rem; line-height: 1.6; color: rgba(159, 179, 204, .55);
}
.footer-credits a { color: rgba(159, 179, 204, .8); text-decoration: underline; text-underline-offset: 2px; }
.footer-credits a:hover { color: var(--cyan); }

/* ---- Responsive del bloque nuevo ---- */
@media (min-width: 540px) {
  .est-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .est-search { grid-template-columns: 1fr auto; }
}
@media (min-width: 720px) {
  .est-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .floats { right: 1.6rem; bottom: 1.6rem; }
  .chat-panel { right: 1.6rem; bottom: 1.6rem; }
}

@media (max-width: 539px) {
  .chat-fab-label { display: none; }
  .chat-fab { padding: .85rem; }
  .est-progress li em { display: none; }
  .est-progress li { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-typing i { animation: none; }
  .est-drop.is-loading svg { animation: none; }
  .est-panel { animation: none; }
}

/* El botón del asistente se encoge a icono al bajar por la página. */
.chat-fab.is-compact { padding: .85rem; }
.chat-fab.is-compact .chat-fab-label {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
}
.chat-fab .chat-fab-label {
  max-width: 180px; opacity: 1;
  transition: max-width .4s var(--ease-out), opacity .3s var(--ease-out);
}

/* Regla de seguridad: el atributo [hidden] debe ganar siempre.
   Sin esto, cualquier elemento con display propio (flex, grid) seguía
   visible al marcarlo como hidden desde JS: chips del chat, aviso del
   mapa, menú móvil. */
[hidden] { display: none !important; }

/* Correos y direcciones largas: nunca deben salirse de su tarjeta. */
.contact-cards a, .cc-static { min-width: 0; }
.contact-cards strong {
  font-size: clamp(.92rem, 1.5vw, 1.1rem);
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
}
.contact-cards em { overflow-wrap: anywhere; }
.footer-nav a { overflow-wrap: anywhere; }

/* La sección de contacto arranca con una línea que la separa del estudio. */
.section-contact { border-top: 1px solid var(--line-dark); }

.gallery-nota {
  margin: -1rem 0 1.6rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-mute);
}

/* =============================================================
   AJUSTES DEL ASISTENTE
   ============================================================= */

/* Barra de desplazamiento del chat: fina y en el tono de la marca,
   en vez de la blanca del sistema. */
.chat-log {
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 216, 240, .28) transparent;
}
.chat-log::-webkit-scrollbar { width: 10px; }
.chat-log::-webkit-scrollbar-track { background: transparent; }
.chat-log::-webkit-scrollbar-thumb {
  background: rgba(127, 216, 240, .22);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.chat-log::-webkit-scrollbar-thumb:hover {
  background: rgba(127, 216, 240, .42);
  border: 3px solid transparent;
  background-clip: padding-box;
}

/* Las sugerencias viven dentro de la conversación, colgando del saludo,
   no como un bloque aparte al pie del panel. */
.chat-log .chat-chips {
  padding: 0;
  margin: -.2rem 0 .1rem;
  max-width: 92%;
  align-self: flex-start;
  animation: chatIn .35s var(--ease-out);
}
/* Reserva: si el JS no llega a moverlas, siguen siendo legibles fuera del log. */
.chat-panel > .chat-chips {
  padding: 0 1.1rem .8rem;
  margin: 0;
  max-width: none;
}
