/* ==========================================================================
   Cacique.net Lv, C.A — Landing
   Paleta Material 3 original (azul #0058bc + dorado #fed65b)
   Tipografías: DM Serif Display · Outfit · JetBrains Mono
   ========================================================================== */

/* ─────────────────────────────────────────────
   1. TOKENS
───────────────────────────────────────────── */
:root {
  /* Marca */
  --primary: #0058bc;
  --primary-bright: #0070eb;
  --primary-fixed: #d8e2ff;
  --primary-dim: #adc6ff;
  --primary-deep: #001a41;
  --primary-variant: #004493;

  --gold: #fed65b;
  --gold-dim: #e9c349;
  --gold-soft: #ffe088;
  --on-gold: #745c00;

  --clay: #ffb595;

  /* Neutrales */
  --ink: #131c2a;
  --ink-soft: #414755;
  --ink-mute: #717786;
  --ink-faint: #9da3b4;
  --line: #c1c6d7;
  --line-soft: #dae3f7;

  --surface: #f9f9ff;
  --surface-low: #f0f3ff;
  --surface-mid: #e7eeff;
  --surface-high: #dfe8fc;

  --night: #0b1120;
  --night-2: #0f1624;

  /* Sistema */
  --radius: 0.75rem;
  --radius-md: 0.5rem;
  --radius-sm: 0.25rem;
  --shell: 1280px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  background: var(--surface);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
iframe,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: var(--gold);
  color: var(--on-gold);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
  user-select: none;
}

.material-symbols-outlined.filled {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ─────────────────────────────────────────────
   3. LAYOUT
───────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .shell {
    padding-inline: 4rem;
  }
}

.section {
  padding-block: 4.75rem;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding-block: 7rem;
  }
}

.section--low {
  background: var(--surface-low);
}

/* Separador de secciones con textura suave */
.section--low::before,
.section--low::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
}

.section--low::before {
  top: 0;
}

.section--low::after {
  bottom: 0;
}

/* ─────────────────────────────────────────────
   4. TIPOGRAFÍA / PIEZAS COMUNES
───────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
}

.gold-rule {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dim));
  border-radius: 999px;
  margin-block: 0.9rem 1.25rem;
}

.gold-rule.center {
  margin-inline: auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.section-title em {
  font-style: italic;
  color: var(--primary);
}

.section-lede {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 44ch;
  text-wrap: pretty;
}

.sec-head {
  margin-bottom: 3.25rem;
}

.sec-head.center {
  text-align: center;
}

.sec-head.center .section-lede {
  margin: 1rem auto 0;
}

/* ─────────────────────────────────────────────
   5. BOTONES
───────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  overflow: hidden;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    box-shadow 0.25s var(--ease), transform 0.18s var(--ease),
    border-color 0.25s var(--ease);
}

.btn .material-symbols-outlined {
  font-size: 17px;
  transition: transform 0.28s var(--ease);
}

.btn:hover .material-symbols-outlined {
  transform: translateX(3px);
}

.btn:active {
  transform: scale(0.975);
}

.btn--lg {
  padding: 0.95rem 2.1rem;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-bright);
  box-shadow: 0 10px 26px rgba(0, 88, 188, 0.32);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0) scale(0.975);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--ghost:hover {
  background: rgba(0, 88, 188, 0.07);
  border-color: var(--primary-bright);
}

.btn--gold {
  background: var(--gold);
  color: var(--on-gold);
}

.btn--gold:hover {
  background: var(--gold-dim);
  box-shadow: 0 10px 26px rgba(254, 214, 91, 0.4);
  transform: translateY(-2px);
}

/* Botón sobre fondo oscuro (hero) */
.btn--outline-light {
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary-fixed);
  border-color: rgba(173, 198, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn--outline-light:hover {
  background: rgba(173, 198, 255, 0.14);
  border-color: var(--primary-dim);
  color: #fff;
  transform: translateY(-2px);
}

/* Brillo que barre el botón primario */
.btn--primary::after,
.btn--gold::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease);
}

.btn--primary:hover::after,
.btn--gold:hover::after {
  left: 115%;
}

/* ─────────────────────────────────────────────
   6. BARRA DE PROGRESO
───────────────────────────────────────────── */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 120;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright) 60%, var(--gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ─────────────────────────────────────────────
   7. NAVBAR
───────────────────────────────────────────── */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft), backdrop-filter 0.35s var(--ease-soft);
}

#navbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

#navbar.scrolled {
  background: rgba(249, 249, 255, 0.86);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: rgba(193, 198, 215, 0.5);
  box-shadow: 0 6px 24px rgba(19, 28, 42, 0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.nav-brand img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
  transition: filter 0.35s var(--ease-soft);
}

#navbar.scrolled .nav-brand img {
  filter: none;
}

.nav-brand-fallback {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand-fallback span:last-child {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(226, 234, 255, 0.72);
  text-decoration: none;
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}

#navbar.scrolled .nav-link {
  color: var(--ink-soft);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--gold);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.32s var(--ease);
}

.nav-link:hover {
  color: #fff;
}

#navbar.scrolled .nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: #fff;
}

#navbar.scrolled .nav-link.active {
  color: var(--primary);
}

.nav-cta {
  padding: 0.58rem 1.3rem;
  font-size: 0.75rem;
}

.nav-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  color: #fff;
  transition: background 0.25s var(--ease), color 0.35s var(--ease-soft);
}

.nav-burger:hover {
  background: rgba(255, 255, 255, 0.1);
}

#navbar.scrolled .nav-burger {
  color: var(--ink);
}

#navbar.scrolled .nav-burger:hover {
  background: rgba(0, 88, 188, 0.08);
}

@media (min-width: 900px) {
  .nav-burger {
    display: none;
  }
}

/* ─────────────────────────────────────────────
   8. MENÚ MÓVIL
───────────────────────────────────────────── */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(249, 249, 255, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

#mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

#menu-close {
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.25s var(--ease), transform 0.35s var(--ease);
}

#menu-close:hover {
  background: rgba(0, 88, 188, 0.08);
  transform: rotate(90deg);
}

.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  transition: color 0.2s var(--ease), opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.mobile-link:hover {
  color: var(--primary);
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: none;
}

#mobile-menu.open .mobile-link:nth-child(2) {
  transition-delay: 0.06s;
}

#mobile-menu.open .mobile-link:nth-child(3) {
  transition-delay: 0.12s;
}

#mobile-menu.open .mobile-link:nth-child(4) {
  transition-delay: 0.18s;
}

#mobile-menu.open .mobile-link:nth-child(5) {
  transition-delay: 0.24s;
}

#mobile-menu.open .mobile-link:nth-child(6) {
  transition-delay: 0.3s;
}

.mobile-cta {
  margin-top: 0.75rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease) 0.36s, transform 0.45s var(--ease) 0.36s,
    background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#mobile-menu.open .mobile-cta {
  opacity: 1;
  transform: none;
}

.mobile-meta {
  position: absolute;
  bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ─────────────────────────────────────────────
   9. HERO
───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--night);
  padding-block: calc(var(--nav-h) + 2.5rem) 5.5rem;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media video,
.hero-media .hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.42;
  transform: scale(1.04);
}

.hero-fog {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 15% 20%, rgba(0, 68, 147, 0.55) 0%, transparent 60%),
    linear-gradient(135deg, rgba(11, 17, 32, 0.9) 0%, rgba(0, 30, 80, 0.62) 48%, rgba(11, 17, 32, 0.88) 100%);
}

.hero-fiber {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.hero-dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(circle at 1px 1px, rgba(173, 198, 255, 0.06) 1px, transparent 0);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 25%, transparent 78%);
  pointer-events: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 40%, rgba(6, 10, 20, 0.72) 100%),
    linear-gradient(to bottom, transparent 65%, rgba(9, 14, 26, 0.9) 100%);
}

.hero-shell {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}

.hero-content>* {
  animation: heroIn 0.85s var(--ease) both;
}

.hero-content>*:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-content>*:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-content>*:nth-child(3) {
  animation-delay: 0.32s;
}

.hero-content>*:nth-child(4) {
  animation-delay: 0.42s;
}

.hero-content>*:nth-child(5) {
  animation-delay: 0.5s;
}

.hero-content>*:nth-child(6) {
  animation-delay: 0.6s;
}

.hero-content>*:nth-child(7) {
  animation-delay: 0.72s;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.95rem 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(173, 198, 255, 0.09);
  border: 1px solid rgba(173, 198, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(216, 226, 255, 0.86);
}

.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
  animation: livePing 2.4s var(--ease) infinite;
}

@keyframes livePing {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }

  70% {
    transform: scale(1.6);
    opacity: 0;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.hero-logo {
  width: min(280px, 66vw);
  height: auto;
  margin-block: 1.6rem 1.35rem;
  filter: drop-shadow(0 0 26px rgba(0, 110, 220, 0.4)) drop-shadow(0 3px 10px rgba(0, 0, 0, 0.55));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 6.2vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #f4f7ff;
  text-wrap: balance;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
  position: relative;
}

.hero-tagline {
  font-size: clamp(0.98rem, 1.9vw, 1.14rem);
  line-height: 1.75;
  color: rgba(216, 226, 255, 0.76);
  max-width: 48ch;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.hero-actions .btn--primary {
  box-shadow: 0 12px 34px rgba(0, 88, 188, 0.45);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(173, 198, 255, 0.14);
  width: 100%;
  max-width: 620px;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: rgba(200, 214, 250, 0.66);
}

.hero-trust .material-symbols-outlined {
  font-size: 17px;
  color: var(--primary-dim);
}

.scroll-caret {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: rgba(173, 198, 255, 0.55);
  transition: color 0.25s var(--ease);
  animation: caretFade 1s var(--ease) 1.2s both;
}

.scroll-caret span:first-child {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.scroll-caret .material-symbols-outlined {
  font-size: 20px;
  animation: caretBounce 2.4s var(--ease) infinite;
}

.scroll-caret:hover {
  color: var(--primary-dim);
}

@keyframes caretFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes caretBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }

  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* ─────────────────────────────────────────────
   10. SERVICIOS — mosaico
───────────────────────────────────────────── */
.services-mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 768px) {
  .services-mosaic {
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: 232px 232px;
    gap: 1rem;
  }

  .vcard--lead {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .vcard--wide {
    grid-column: 2 / span 2;
    grid-row: 2;
  }
}

.vcard {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 190px;
  isolation: isolate;
  background: var(--surface-high);
  box-shadow: 0 1px 2px rgba(19, 28, 42, 0.06);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.vcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(19, 28, 42, 0.16);
}

.vcard-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
}

.vcard:hover .vcard-bg {
  transform: scale(1.07);
  filter: saturate(1.12);
}

.vcard-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 12, 24, 0.88) 0%, rgba(6, 12, 24, 0.28) 45%, rgba(6, 12, 24, 0.04) 75%);
  transition: opacity 0.45s var(--ease);
}

.vcard:hover .vcard-scrim {
  opacity: 0.94;
}

/* Aro de foco dorado al hover */
.vcard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(254, 214, 91, 0);
  transition: border-color 0.45s var(--ease);
  pointer-events: none;
  z-index: 4;
}

.vcard:hover::after {
  border-color: rgba(254, 214, 91, 0.55);
}

.vcard-body {
  position: absolute;
  inset: auto 1.3rem 1.25rem 1.3rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vcard-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.45s var(--ease), background 0.45s var(--ease);
}

.vcard:hover .vcard-icon {
  transform: translateY(-2px) scale(1.06);
}

.vcard-icon .material-symbols-outlined {
  font-size: 19px;
}

.vcard-body p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.vcard--lead .vcard-body p {
  font-size: 1.15rem;
}

/* Índice mono en la esquina */
.vcard-index {
  position: absolute;
  top: 1.1rem;
  right: 1.15rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.4s var(--ease);
}

.vcard:hover .vcard-index {
  color: var(--gold);
}

/* ─────────────────────────────────────────────
   11. MISIÓN
───────────────────────────────────────────── */
#mision {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 580px;
  padding-block: 5rem;
}

.mission-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  transform: scale(1.03);
}

.mission-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      var(--surface) 8%,
      rgba(249, 249, 255, 0.92) 45%,
      rgba(249, 249, 255, 0.55) 100%);
}

@media (min-width: 900px) {
  .mission-veil {
    background: linear-gradient(to right,
        var(--surface) 0%,
        rgba(249, 249, 255, 0.94) 38%,
        rgba(249, 249, 255, 0.35) 72%,
        rgba(216, 226, 255, 0.2) 100%);
  }
}

.mission-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

@media (min-width: 900px) {
  .mission-inner {
    justify-content: flex-start;
  }
}

.mission-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 2.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 60px rgba(19, 28, 42, 0.1);
}

@media (min-width: 768px) {
  .mission-card {
    padding: 3rem;
  }
}

/* Firma dorada en la esquina superior */
.mission-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 2.25rem;
  width: 58px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 999px 999px;
}

.mission-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.mission-title em {
  font-style: italic;
  color: var(--primary);
}

.mission-card p {
  font-size: 0.97rem;
  color: var(--ink-soft);
  line-height: 1.78;
  margin-bottom: 2rem;
  text-wrap: pretty;
}

/* ─────────────────────────────────────────────
   12. COBERTURA / MAPA
───────────────────────────────────────────── */
.map-shell {
  position: relative;
  padding: 0.5rem;
  border-radius: calc(var(--radius) + 0.35rem);
  background: linear-gradient(140deg, rgba(0, 88, 188, 0.14), rgba(254, 214, 91, 0.14));
  box-shadow: 0 26px 64px rgba(0, 88, 188, 0.14);
}

.map-frame {
  position: relative;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-mid);
  border: 1px solid rgba(0, 88, 188, 0.18);
}

@media (min-width: 768px) {
  .map-frame {
    height: 520px;
  }
}

/* El encabezado de Google My Maps (54px) queda recortado por overflow */
.map-frame iframe {
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  height: calc(100% + 80px);
  border: 0;
}

#map-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  background: linear-gradient(rgba(9, 16, 30, 0.62), rgba(9, 16, 30, 0.72));
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: opacity 0.45s var(--ease);
  border: none;
  width: 100%;
  text-align: center;
  color: #fff;
}

#map-overlay.dismissed {
  opacity: 0;
  pointer-events: none;
}

#map-overlay .material-symbols-outlined {
  font-size: 2.6rem;
  animation: tapPulse 2.6s var(--ease) infinite;
}

#map-overlay p {
  font-size: 1rem;
  font-weight: 500;
}

#map-overlay small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(216, 226, 255, 0.7);
}

@keyframes tapPulse {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-5px) scale(1.05);
  }
}


/* Esquinas técnicas del marco */
.map-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary);
  opacity: 0.45;
  z-index: 11;
  pointer-events: none;
}

.map-corner.tl {
  top: 0.5rem;
  left: 0.5rem;
  border-right: none;
  border-bottom: none;
  border-radius: 4px 0 0 0;
}

.map-corner.tr {
  top: 0.5rem;
  right: 0.5rem;
  border-left: none;
  border-bottom: none;
  border-radius: 0 4px 0 0;
}

.map-corner.bl {
  bottom: 0.5rem;
  left: 0.5rem;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 4px;
}

.map-corner.br {
  bottom: 0.5rem;
  right: 0.5rem;
  border-left: none;
  border-top: none;
  border-radius: 0 0 4px 0;
}

/* ─────────────────────────────────────────────
   13. PLANES
───────────────────────────────────────────── */
.watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.watermark span {
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  line-height: 1;
  white-space: nowrap;
  color: rgba(0, 88, 188, 0.032);
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  align-items: stretch;
}

@media (min-width: 640px) and (max-width: 959px) {
  .plans-grid {
    grid-template-columns: 1fr 1fr;
  }

  .plan-card.featured {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.plan-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 88, 188, 0.4);
  box-shadow: 0 20px 46px rgba(0, 88, 188, 0.12);
}

.plan-card.featured {
  order: -1;
  padding-top: 2.85rem;
  border: 1px solid rgba(0, 88, 188, 0.55);
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  box-shadow: 0 0 0 4px rgba(0, 88, 188, 0.07), 0 18px 48px rgba(0, 88, 188, 0.16);
}

.plan-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright), var(--gold));
}

.plan-card.featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 0 4px rgba(0, 88, 188, 0.1), 0 26px 60px rgba(0, 88, 188, 0.22);
}

@media (min-width: 960px) {
  .plan-card.featured {
    order: 0;
    margin-block: -0.65rem;
  }
}

.plan-badge {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.95rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(254, 214, 91, 0.45);
}

.plan-badge .material-symbols-outlined {
  font-size: 13px;
}

.plan-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.plan-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease);
}

.plan-card:hover .plan-icon {
  transform: rotate(-6deg) scale(1.05);
}

.plan-icon .material-symbols-outlined {
  font-size: 23px;
}

.plan-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.005em;
}

.speed-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 88, 188, 0.08);
  border: 1px solid rgba(0, 88, 188, 0.14);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--primary);
}

.speed-chip .material-symbols-outlined {
  font-size: 13px;
}

.featured .speed-chip {
  background: rgba(0, 88, 188, 0.12);
}

.plan-rule {
  height: 1px;
  background: var(--line);
  margin-block: 1.15rem;
}

.featured .plan-rule {
  background: rgba(0, 88, 188, 0.18);
}

.price-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.4rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.price {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.featured .price {
  color: var(--primary);
}

.price .cents {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.price-per {
  font-size: 0.82rem;
  color: var(--ink-mute);
}

.price-note {
  font-size: 0.74rem;
  color: var(--ink-faint);
  margin-top: 0.45rem;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.72;
  flex: 1 1 auto;
  margin-bottom: 1.6rem;
  text-wrap: pretty;
}

.plan-card .btn {
  margin-top: auto;
}

.plans-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-faint);
  max-width: 60ch;
  margin: 2.25rem auto 0;
  line-height: 1.65;
}

/* ─────────────────────────────────────────────
   14. FOOTER
───────────────────────────────────────────── */
#footer {
  position: relative;
  background: var(--night-2);
  color: rgba(255, 255, 255, 0.45);
  padding-block: 4.5rem 2rem;
  overflow: hidden;
}

#footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright) 45%, var(--gold));
  opacity: 0.85;
}

#footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(173, 198, 255, 0.06) 1px, transparent 0);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  pointer-events: none;
}

#footer .shell {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.7fr 1fr 1.2fr;
    gap: 3rem;
  }
}

.footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  margin-bottom: 1rem;
}

.footer-about {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 30ch;
  margin-bottom: 1.75rem;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-dim);
  margin-bottom: 1.25rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  margin-bottom: 0.7rem;
  transition: color 0.22s var(--ease), transform 0.22s var(--ease);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-link:hover {
  color: var(--primary-dim);
  transform: translateX(3px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
}

.footer-contact .material-symbols-outlined {
  font-size: 16px;
  color: var(--primary-dim);
  flex-shrink: 0;
}

.footer-contact a {
  text-decoration: none;
  transition: color 0.22s var(--ease);
}

.footer-contact a:hover {
  color: var(--primary-dim);
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer-social:hover {
  background: rgba(173, 198, 255, 0.18);
  border-color: rgba(173, 198, 255, 0.4);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.32);
}

.footer-bottom .mono {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
}

/* ─────────────────────────────────────────────
   15. ACCIONES FLOTANTES
───────────────────────────────────────────── */
#fab {
  position: fixed;
  right: 1.15rem;
  bottom: 1.35rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

@media (min-width: 768px) {
  #fab {
    right: 1.5rem;
    bottom: 1.75rem;
  }
}

.fab-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(9, 14, 26, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.fab-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 28px rgba(9, 14, 26, 0.34);
}

.fab-wa {
  background: #25d366;
}

.fab-ig {
  background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7);
}

.fab-tip {
  position: absolute;
  right: calc(100% + 0.6rem);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 0.32rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.fab-btn:hover .fab-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Halo del WhatsApp */
.fab-wa::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: fabPing 2.8s var(--ease) infinite;
}

@keyframes fabPing {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.45);
    opacity: 0;
  }

  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

#to-top {
  position: fixed;
  left: 1.15rem;
  bottom: 1.35rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  color: var(--primary);
  box-shadow: 0 6px 18px rgba(19, 28, 42, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.25s var(--ease);
}

#to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

#to-top:hover {
  background: #fff;
  transform: translateY(-3px);
}

@media (min-width: 768px) {
  #to-top {
    left: 1.5rem;
    bottom: 1.75rem;
  }
}

/* ─────────────────────────────────────────────
   16. REVELADO AL SCROLL
───────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="left"] {
  transform: translateX(-32px);
}

[data-reveal="right"] {
  transform: translateX(32px);
}

[data-reveal="zoom"] {
  transform: scale(0.965);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────────
   17. MOVIMIENTO REDUCIDO
───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-content>* {
    animation: none;
    opacity: 1;
  }

  .hero-media video {
    animation: none;
  }
}