/* ==========================================================================
   BIZGEEX — Executive Portfolio 2026
   Theme: Dark Sapphire × Light Sapphire (ice blue) contrast
   ========================================================================== */

:root {
  /* Dark sapphire backgrounds */
  --sapph-950: #050a18;
  --sapph-900: #0b142e;
  --sapph-800: #101b3d;
  --sapph-700: #142252;
  --surface: #0e1834;
  --surface-2: #121e42;

  /* Sapphire accents */
  --sapphire: #2e6bd8;       /* primary accent */
  --sapphire-deep: #1e4fbb;  /* buttons, numerals, logo */
  --sapphire-dark: #123577;  /* gradients */
  --sapphire-bright: #5c9bf0;/* small UI accents */
  --sapphire-soft: #8fbbf5;  /* readable accent text on dark */
  --sapphire-dim: rgba(46, 107, 216, 0.16);

  /* Champagne gold — hover accent */
  --champagne: #f1daa6;
  --champagne-deep: #d9b96e;

  /* Light sapphire (ice) — the contrasting "belly" */
  --ice: #eff4fb;

  --line: rgba(255, 255, 255, 0.09);
  --line-sapph: rgba(92, 155, 240, 0.38);

  --text: #f5f8fd;
  --text-muted: #a7b4ce;
  --text-faint: #747e9a;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1140px;
  --radius: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  /* scroll-behavior: smooth eliminado: convertía End/PgDn en scrolls animados
     por toda la página y saturaba el compositor (congelamiento en equipos sin GPU).
     El scroll suave para la navegación se aplica vía JS solo en clicks de anclas. */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-sans);
  background: var(--sapph-950);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(46, 107, 216, 0.45); color: #fff; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sapphire-bright);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-lede {
  margin-top: 1.1rem;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.accent-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--sapphire-soft);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #3d7bdc 0%, var(--sapphire-deep) 100%);
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(46, 107, 216, 0.38);
  transition: transform 0.25s var(--ease), color 0.35s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, #f8ecc8 0%, var(--champagne) 45%, var(--champagne-deep) 100%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  color: #101b3d;
  box-shadow: 0 12px 34px rgba(241, 218, 166, 0.32);
}
.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--champagne);
  color: var(--champagne);
  transform: translateY(-2px);
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sapphire-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(5, 10, 24, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--sapphire-deep);
  border: 1px solid var(--line-sapph);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-name em {
  font-style: normal;
  color: var(--sapphire-bright);
  transition: color 0.3s var(--ease);
}
.brand:hover .brand-name em { color: var(--champagne); }

.brand-logo {
  display: block;
  height: 42px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a:not(.btn) {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--champagne); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.btn-nav { padding: 0.6rem 1.25rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 0 5rem;
  overflow: hidden;
}

/* Gem split: sapphire sheen from the top, ice glow below */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52rem 30rem at 82% -6%, rgba(46, 107, 216, 0.5), transparent 60%),
    radial-gradient(38rem 26rem at 8% 108%, rgba(239, 244, 251, 0.07), transparent 62%),
    linear-gradient(180deg, var(--sapph-700) 0%, var(--sapph-950) 70%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(60rem 40rem at 60% 0%, black, transparent 72%);
  -webkit-mask-image: radial-gradient(60rem 40rem at 60% 0%, black, transparent 72%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 4rem;
  align-items: center;
}

.hero-copy { max-width: 720px; }

/* ---------- Animated network constellation (LinkedIn banner motif) ---------- */
.constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.constellation line {
  stroke: #5c9bf0;
  stroke-opacity: 0.22;
  stroke-width: 1;
  stroke-dasharray: 5 9;
  animation: lineFlow 4s linear infinite;
}
.constellation circle {
  fill: #8fbbf5;
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 4.5s ease-in-out infinite;
}
.constellation circle:nth-of-type(2n) { fill: #ffffff; fill-opacity: 0.75; }
.constellation circle:nth-of-type(3n) { fill: #5c9bf0; fill-opacity: 0.9; }
.constellation .c-left { opacity: 0.45; }
.constellation line:nth-of-type(odd) { animation-duration: 5.2s; }
.constellation circle:nth-of-type(2n) { animation-delay: 1.2s; }
.constellation circle:nth-of-type(3n) { animation-delay: 2.4s; }
.constellation circle:nth-of-type(5n) { animation-delay: 0.6s; }

@keyframes nodePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.45); }
}
@keyframes lineFlow {
  to { stroke-dashoffset: -28; }
}

/* ---------- Hero portrait ---------- */
.hero-portrait {
  position: relative;
  width: min(400px, 100%);
  justify-self: center;
  margin-top: -50px;   /* sube el retrato 50px */
  animation: portraitFloat 7s ease-in-out infinite;
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: -14%;
  background: radial-gradient(closest-side, rgba(46, 107, 216, 0.38), transparent 70%);
  filter: blur(8px);
  z-index: -1;
}
.portrait-frame {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  padding: 10px;
  background: linear-gradient(165deg, rgba(143, 187, 245, 0.6), rgba(30, 79, 187, 0.28) 42%, rgba(241, 218, 166, 0.22));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(46, 107, 216, 0.28);
}

/* Rotación foto × logo — misma disolvencia sin dip del carrusel */
.portrait-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  opacity: 1;
}
.portrait-photo { object-position: center 15%; }
.portrait-slide.is-init { z-index: 2; }
.portrait-slide.is-prev { z-index: 1; }
.portrait-slide.is-active {
  z-index: 2;
  animation: portraitFadeIn 1.2s ease-in-out;
}
@keyframes portraitFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Rótulo de identidad sobre las imágenes rotativas (marco detrás del texto) */
.portrait-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 2.4rem 1.2rem 1.15rem;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, rgba(5, 10, 24, 0) 0%, rgba(5, 10, 24, 0.55) 45%, rgba(5, 10, 24, 0.92) 100%);
  text-align: center;
  pointer-events: none;
}
.caption-name {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #ffffff;
}
.caption-title {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sapphire-soft);
}
.portrait-chip {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  z-index: 4;   /* encima de las imágenes rotativas (z2) y del rótulo (z3) */
  white-space: nowrap;
  background: rgba(11, 20, 46, 0.94);
  border: 1px solid var(--line-sapph);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sapphire-soft);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
@keyframes portraitFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- Hero banner — full-bleed, sin marco ---------- */
.hero-banner {
  position: relative;
  width: 100%;
  margin-bottom: 4.5rem;
}

.banner-track {
  position: relative;
  aspect-ratio: 2 / 1;   /* antes 16/9 — reduce la altura del hero ~60px */
  overflow: hidden;
  background: var(--sapph-900);
}

/* Dissolve cinematográfico: el slide entrante cruza ENCIMA (z-index 2)
   animando solo su opacidad 0→1, mientras el saliente permanece opaco
   debajo (is-prev). Al nunca combinarse dos capas semitransparentes,
   el fondo no se cuela y el brillo no baja (sin dip). */
.banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
}
.banner-slide.is-prev { z-index: 1; }
.banner-slide.is-init { z-index: 2; }
.banner-slide.is-active {
  z-index: 2;
  animation: bannerFadeIn 0.5s linear;
}
@keyframes bannerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.25rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  list-style: none;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero-proof li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-faint);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.hero-proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--sapphire-bright);
}

/* ---------- Sections ---------- */
.section { padding: 7rem 0; }
.section-alt {
  background:
    radial-gradient(46rem 24rem at 50% -10%, rgba(46, 107, 216, 0.18), transparent 65%),
    var(--sapph-900);
  border-block: 1px solid var(--line);
}

.section-head { margin-bottom: 3.5rem; }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-sapph);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

/* ---------- Pillars ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.4rem;
  border-radius: 12px;
  color: var(--sapphire-bright);
  background: var(--sapphire-dim);
  border: 1px solid var(--line-sapph);
}
.icon-badge svg { width: 26px; height: 26px; }

.pillar h3 {
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.7rem;
}
.pillar p { color: var(--text-muted); font-size: 0.94rem; }

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.service { display: flex; flex-direction: column; }

.service-num {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--sapphire-bright);
  letter-spacing: 0.12em;
  margin-bottom: 1.4rem;
}

.service h3 {
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.55rem;
}

.service-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a9c9f2;
  background: rgba(46, 107, 216, 0.2);
  border: 1px solid rgba(92, 155, 240, 0.32);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.1rem;
}

.service-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.4rem; }

.service-list {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}
.service-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding-bottom: 0.55rem;
}
.service-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--sapphire-bright);
}

/* Ancla de inversión: baja la fricción de "¿cuánto cuesta?" sin cerrar el precio */
.service-price {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(241, 218, 166, 0.18);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--champagne);
  line-height: 1.2;
}
.price-from {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 0.5rem;
}
.price-per {
  font-size: 0.95rem;
  color: var(--champagne);
  opacity: 0.85;
}
.price-note {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.01em;
}

/* Etiqueta de contexto: distingue EL PRODUCTO de los servicios ejecutivos */
.section-tag {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
  border: 1px solid rgba(241, 218, 166, 0.45);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  margin-bottom: 1.1rem;
}

/* ---------- Teaser de MarketGravity (promo del Engine) ---------- */
.engine-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--line-sapph);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 27, 61, 0.55), rgba(14, 24, 52, 0.4));
}
.engine-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.engine-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--champagne);
  background: rgba(241, 218, 166, 0.07);
  border: 1px solid rgba(241, 218, 166, 0.28);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.engine-chip.shown { opacity: 1; transform: none; }
.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--champagne);
  animation: engineChipPulse 2.4s ease-in-out infinite;
}
.engine-chip:nth-child(2) .chip-dot { animation-delay: 0.8s; }
.engine-chip:nth-child(3) .chip-dot { animation-delay: 1.6s; }
@keyframes engineChipPulse {
  0%, 100% { opacity: 0.35; transform: rotate(45deg) scale(1); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.35); }
}

/* Botón Learn More: oculto hasta el final de la secuencia, luego pulsa */
.engine-learn-more {
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  overflow: hidden;
  border-color: var(--line-sapph);
  animation: engineBtnBorder 1s ease-in-out infinite;
}
.engine-learn-more.shown { opacity: 1; transform: none; }
.engine-learn-more::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--champagne);
  opacity: 0;
  pointer-events: none;
  animation: engineBtnWash 1s ease-in-out infinite;
}
@keyframes engineBtnWash {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.16; }
}
@keyframes engineBtnBorder {
  0%, 100% { border-color: var(--line-sapph); }
  50% { border-color: var(--champagne);
        box-shadow: 0 0 18px rgba(241, 218, 166, 0.28); }
}

@media (prefers-reduced-motion: reduce) {
  .engine-learn-more, .engine-learn-more::before, .chip-dot { animation: none; }
  .engine-chip, .engine-learn-more { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 720px) {
  .engine-teaser { flex-direction: column; align-items: flex-start; }
}

/* ---------- Portfolio carousel ---------- */
.portfolio-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin: -2.5rem 0 1.6rem;
}
.pf-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-sapph);
  background: rgba(16, 27, 61, 0.6);
  color: var(--ice);
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.25s var(--ease);
}
.pf-arrow svg { width: 20px; height: 20px; }
.pf-arrow:hover {
  color: #101b3d;
  border-color: var(--champagne);
  background: var(--champagne);
  transform: scale(1.06);
}

.pf-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 155, 240, 0.35) transparent;
}
.pf-track::-webkit-scrollbar { height: 6px; }
.pf-track::-webkit-scrollbar-thumb { background: rgba(92, 155, 240, 0.35); border-radius: 999px; }
.pf-track::-webkit-scrollbar-track { background: transparent; }

.pf-card {
  flex: 0 0 min(360px, 86%);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pf-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-sapph);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.pf-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.pf-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}
.pf-card:hover .pf-shot img { transform: scale(1.04); }

.pf-info { padding: 1.2rem 1.3rem 0.4rem; }
.pf-info h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.25rem; }
.pf-domain { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 0.7rem; }
.pf-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a9c9f2;
  background: rgba(46, 107, 216, 0.2);
  border: 1px solid rgba(92, 155, 240, 0.32);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.pf-visit {
  display: inline-flex;
  align-items: center;
  margin: 0.9rem 1.3rem 1.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sapphire-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 187, 245, 0.4);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
  margin-top: auto;
}
.pf-visit:hover { color: var(--champagne); border-color: var(--champagne); }

/* ---------- System infographic — secuencia: fade → typewriter → flecha ---------- */
/* visibility permite que la preview (hija) se muestre aunque el grupo esté oculto */
.system-flow .st {
  visibility: hidden;
}
.system-flow .st.shown { visibility: visible; }

/* fade del nodo cuando se muestra */
.system-flow .st .flow-node,
.system-flow .st .flow-icon,
.system-flow .st .flow-badge,
.system-flow .st text {
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.system-flow .st.shown .flow-node,
.system-flow .st.shown .flow-icon,
.system-flow .st.shown .flow-badge,
.system-flow .st.shown text {
  opacity: 1;
}

/* Stage Preview: imagen grande centrada que hace zoom-out hacia el icono */
.stage-preview {
  opacity: 0;
  pointer-events: none;
  transform-box: view-box;
  transform-origin: 0 0;
}
.stage-preview.active {
  opacity: 1;
  transition: opacity 0.25s var(--ease);
}
.stage-preview.zooming {
  transition: transform 0.63s cubic-bezier(0.35, 0, 0.25, 1), opacity 0.21s ease 0.42s;
}
.stage-preview.done {
  opacity: 0;
  transition: opacity 0.21s ease;
}
.stage-ring {
  fill: rgba(5, 10, 24, 0.88);
  stroke: var(--sapphire-bright);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 24px rgba(92, 155, 240, 0.5));
}

/* Preview circular: imagen de concepto que aparece antes del icono */
.flow-preview {
  opacity: 0;
  pointer-events: none;
}
/* flow-preview local desactivado: el stage preview lo reemplaza */
.preview-ring {
  fill: rgba(5, 10, 24, 0.85);
  stroke: var(--sapphire-bright);
  stroke-width: 2;
  filter: drop-shadow(0 0 16px rgba(92, 155, 240, 0.4));
}
@keyframes previewZoomIn {
  0% { transform: scale(1); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: scale(1.5); opacity: 1; }
}
@keyframes previewShrink {
  0% { transform: scale(1.5); opacity: 1; }
  60% { transform: scale(0.75); opacity: 0.9; }
  100% { transform: scale(0.75); opacity: 0; }
}

/* Glow de activación: aparece detrás del nodo al revelarse */
.flow-node {
  transition: filter 0.5s var(--ease);
}
.st.shown .flow-node {
  filter: drop-shadow(0 0 20px rgba(92, 155, 240, 0.7));
  animation: nodeActivate 1s var(--ease);
}
.st.shown .flow-node-goal {
  filter: drop-shadow(0 0 22px rgba(241, 218, 166, 0.8));
}

/* Zoom out→in del icono: 115% y regresa */
.st.shown .flow-icon {
  transform-box: fill-box;
  transform-origin: center;
  animation: iconPop 1s var(--ease);
}
.st.shown .flow-solid,
.st.shown .flow-solid-mini,
.st.shown .flow-solid-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: iconPop 1s var(--ease);
}

@keyframes nodeActivate {
  0% { filter: drop-shadow(0 0 0 rgba(92, 155, 240, 0)); }
  35% { filter: drop-shadow(0 0 35px rgba(92, 155, 240, 0.9)); }
  70% { filter: drop-shadow(0 0 26px rgba(92, 155, 240, 0.75)); }
  100% { filter: drop-shadow(0 0 20px rgba(92, 155, 240, 0.7)); }
}
@keyframes iconPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.30); }
  60% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

/* flechas ocultas hasta que el JS las dibuja */
.system-flow .engine-arrow {
  opacity: 0;
  stroke-dasharray: none;
  animation: none;
}
.system-flow .engine-arrow.drawing {
  opacity: 0.75;
  animation: none;
  transition: none;
}
.system-flow .engine-arrow.flowing {
  opacity: 1;
  stroke-dasharray: 6 9;
  animation: lineFlow 2.4s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .system-flow .st { visibility: visible; }
  .system-flow .st .flow-node, .system-flow .st .flow-icon,
  .system-flow .st .flow-badge, .system-flow .st text { opacity: 1; }
  .system-flow .engine-arrow { opacity: 1; stroke-dasharray: 6 9; animation: none; }
  .st.shown .flow-node, .st.shown .flow-icon,
  .st.shown .flow-solid, .st.shown .flow-solid-mini, .st.shown .flow-solid-dot { animation: none; }
  .flow-preview { display: none; }
}

/* ---------- System infographic — lead generation engine ---------- */
.engine {
  background:
    radial-gradient(46rem 24rem at 50% -10%, rgba(46, 107, 216, 0.14), transparent 65%),
    var(--sapph-950);
}

.system-flow {
  padding: 1.7rem 1.4rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 27, 61, 0.45), rgba(14, 24, 52, 0.35));
}
.flow-title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sapphire-bright);
}
.flow-wrap { overflow-x: auto; scrollbar-width: thin; }
.flow-wrap svg { display: block; width: 100%; min-width: 900px; height: auto; }

.flow-line {
  stroke: #5c9bf0;
  stroke-opacity: 0.55;
  stroke-width: 1.5;
  stroke-dasharray: 6 9;
  animation: lineFlow 2.4s linear infinite;
}
.flow-node {
  fill: rgba(46, 107, 216, 0.14);
  stroke: #5c9bf0;
  stroke-opacity: 0.55;
  stroke-width: 1.5;
}
.flow-icon {
  fill: none;
  stroke: #8fbbf5;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow-solid { fill: #8fbbf5; stroke: none; }
.flow-solid-mini { fill: #8fbbf5; stroke: none; }
.flow-solid-dot { fill: #8fbbf5; stroke: none; }
.flow-arc { fill: none; }

.flow-badge circle {
  fill: var(--sapph-800);
  stroke: rgba(92, 155, 240, 0.5);
  stroke-width: 1;
}
.flow-badge text {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
  fill: #8fbbf5;
}
.flow-badge { transform: translate(26px, -26px); }
.flow-badge-goal circle { stroke: var(--champagne); }
.flow-badge-goal text { fill: var(--champagne); }
.flow-label {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-anchor: middle;
  fill: #f5f8fd;
}
.flow-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.3px;
  text-anchor: middle;
  fill: #8d99b3;
}

/* Nodo final — la meta, en champán */
.flow-node-goal {
  fill: rgba(241, 218, 166, 0.1);
  stroke: var(--champagne);
  stroke-opacity: 0.8;
}
.flow-icon-goal { stroke: var(--champagne); }
.flow-label-goal { fill: var(--champagne); }

@media (prefers-reduced-motion: reduce) {
  .flow-line { animation: none; }
}

/* ---------- Video showreel carousel ---------- */
.videos {
  background:
    radial-gradient(46rem 24rem at 50% -10%, rgba(46, 107, 216, 0.1), transparent 65%),
    var(--sapph-950);
}

.pf-video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.pf-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.pf-card:hover .pf-video img { transform: scale(1.04); }
.pf-video:focus-visible { outline: 2px solid var(--sapphire-bright); outline-offset: 3px; }

.pf-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 10, 24, 0.28);
  transition: background 0.3s var(--ease);
}
.pf-play svg {
  width: 54px;
  height: 54px;
  color: #ffffff;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.pf-video:hover .pf-play { background: rgba(5, 10, 24, 0.12); }
.pf-video:hover .pf-play svg { transform: scale(1.14); color: var(--champagne); }

.pf-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Metrics — the light sapphire "ice" section ---------- */
.metrics {
  background:
    radial-gradient(48rem 24rem at 50% -10%, rgba(30, 79, 187, 0.07), transparent 65%),
    var(--ice);
}

.metrics .eyebrow { color: var(--sapphire); }
.metrics .section-title { color: #101b3d; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.metric {
  text-align: center;
  padding: 2.4rem 1.4rem;
  border: 1px solid rgba(30, 79, 187, 0.18);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(16, 27, 61, 0.06);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.metric:hover {
  border-color: rgba(30, 79, 187, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(16, 27, 61, 0.12);
}

.metric-value {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.6vw, 3.6rem);
  font-weight: 500;
  color: var(--sapphire-deep);
  line-height: 1;
  margin-bottom: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.metric-label {
  color: #565e75;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  max-width: 24ch;
  margin-inline: auto;
}

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(44rem 26rem at 12% 0%, rgba(46, 107, 216, 0.14), transparent 60%),
    var(--sapph-900);
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-facts {
  list-style: none;
  margin-top: 2.4rem;
  display: grid;
  gap: 1.3rem;
}
.contact-facts li {
  display: grid;
  gap: 0.25rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--line-sapph);
}
.fact-key {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sapphire-bright);
}
.fact-value { color: var(--text-muted); font-size: 0.97rem; }
.fact-link {
  color: var(--sapphire-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 187, 245, 0.4);
  transition: border-color 0.2s, color 0.2s;
}
.fact-link:hover { color: var(--champagne); border-color: var(--champagne); }

.contact-form { display: grid; gap: 1.15rem; }
.contact-form:hover { transform: none; }

.field { display: grid; gap: 0.45rem; }
.field .optional { color: var(--text-faint); font-weight: 500; letter-spacing: 0.04em; text-transform: none; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--text);
  background: rgba(5, 10, 24, 0.55);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  transition: border-color 0.25s, background 0.25s;
  width: 100%;
}
.field select {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--text);
  background-color: rgba(5, 10, 24, 0.55);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c9bf0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 2.4rem 0.8rem 1rem;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
  width: 100%;
}
.field select:focus {
  outline: none;
  border-color: var(--line-sapph);
  background-color: rgba(5, 10, 24, 0.8);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--line-sapph);
  background: rgba(5, 10, 24, 0.8);
}
.field textarea { resize: vertical; min-height: 108px; }

/* Consent checkbox (US basics: TCPA-style contact authorization + CCPA-style data handling) */
.field-consent { margin-top: 0.15rem; }
.field .consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
  color: var(--text-faint);
}
.field .consent-label input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--sapphire-deep);
  cursor: pointer;
}
.field .consent-label:hover { color: var(--text-muted); }
.field .consent-label input:focus-visible { outline: 2px solid var(--sapphire-bright); outline-offset: 2px; }

.form-note {
  font-size: 0.85rem;
  color: var(--text-faint);
  text-align: center;
}
.form-note a { color: var(--sapphire-soft); transition: color 0.25s; }
.form-note a:hover { color: var(--champagne); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--sapph-950);
  padding: 2.4rem 0 6rem; /* margen inferior: el botón flotante de WhatsApp nunca tapa el texto */
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-note { color: var(--text-faint); font-size: 0.85rem; letter-spacing: 0.06em; }
.footer-legal { color: var(--text-faint); font-size: 0.8rem; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .metric { transition: none; }
  .constellation line, .constellation circle, .hero-portrait { animation: none; }
  .banner-slide.is-active, .portrait-slide.is-active { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 4.5rem; }
  .hero-copy { max-width: none; }
  .hero-portrait { width: min(340px, 80%); }
}

@media (max-width: 720px) {
  .section { padding: 5rem 0; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 1.8rem 1.5rem 2.2rem;
    background: rgba(5, 10, 24, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
  }
  .site-nav.open { transform: translateY(0); }
  .btn-nav { width: 100%; justify-content: center; }

  .hero { min-height: auto; }
  .hero-proof { gap: 0.8rem 1.6rem; }
  .constellation { opacity: 0.4; }
  .hero-portrait { width: min(300px, 86%); }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .brand-logo { height: 30px; }
  .field-row { grid-template-columns: 1fr; gap: 1.15rem; }
}

/* ---------- Video Popup Modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.video-modal.open {
  display: flex;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 14, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.video-modal-box {
  position: relative;
  z-index: 1;
  width: min(900px, 94vw);
  animation: videoModalIn 0.35s var(--ease);
}
@keyframes videoModalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(241, 218, 166, 0.4);
  background: rgba(5, 10, 24, 0.8);
  color: var(--champagne);
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
  z-index: 2;
}
.video-modal-close:hover {
  background: var(--champagne);
  color: #101b3d;
  transform: scale(1.08);
}
.video-modal-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-sapph);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 50px rgba(46, 107, 216, 0.2);
  background: #000;
}
.video-modal-player iframe,
.video-modal-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal-title {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
@media (max-width: 720px) {
  .video-modal { padding: 1rem; }
  .video-modal-close { top: -40px; width: 36px; height: 36px; font-size: 1.3rem; }
}

/* ============================================================
   WhatsApp Floating Button
   ============================================================ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 950; /* sobre el contenido, bajo el modal de video (1000) */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2ee06f 0%, #1eb857 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .4), 0 2px 10px rgba(8, 15, 40, .35);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: wa-pop .55s cubic-bezier(.2, .9, .3, 1.4) 1s both;
}
.wa-float svg { width: 33px; height: 33px; position: relative; z-index: 2; }
.wa-float:hover,
.wa-float:focus-visible {
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 16px 38px rgba(37, 211, 102, .55), 0 4px 12px rgba(8, 15, 40, .4);
}
.wa-float:active { transform: translateY(0) scale(.97); }

/* Anillo pulsante que invita al click */
.wa-float-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(46, 224, 111, .65);
  animation: wa-ring 2.4s ease-out infinite;
  pointer-events: none;
}

/* Tooltip lateral (solo desktop) */
.wa-float-tip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: rgba(10, 18, 44, .95);
  color: #eaf0ff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(241, 218, 166, .28);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.wa-float:hover .wa-float-tip,
.wa-float:focus-visible .wa-float-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes wa-pop {
  from { transform: translateY(20px) scale(.5); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes wa-ring {
  0%   { transform: scale(.92); opacity: .9; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 720px) {
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 29px; height: 29px; }
  .wa-float-tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
  .wa-float-ring { display: none; }
}

/* ============================================================
   Form backend: honeypot + estado de éxito
   ============================================================ */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.form-success {
  border: 1px solid rgba(46, 224, 111, 0.35);
  background: rgba(46, 224, 111, 0.08);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  margin-top: 1rem;
}
.form-success-title {
  color: #2ee06f;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.form-success-text { color: var(--text-muted); font-size: 0.92rem; }


/* ============================================================
   Selector de idioma (EN/ES)
   ============================================================ */
.lang-toggle {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--champagne);
  border: 1px solid rgba(241, 218, 166, 0.45);
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: rgba(241, 218, 166, 0.12);
  border-color: rgba(241, 218, 166, 0.75);
}
