/* ─── Variables ────────────────────────────────────────────────────── */
:root {
  --bg: #F7F5F0;
  --dark: #0C1A2E;
  --navy: #152B4A;
  --blue: #1B52CC;
  --blue-lt: #EBF2FF;
  --gold: #C07C18;
  --gold-mid: #E09830;
  --gold-lt: #FEF3DC;
  --white: #FFFFFF;
  --gray-50: #F5F3EE;
  --gray-100: #EAE7E0;
  --gray-200: #D4CFC6;
  --gray-400: #9B9488;
  --gray-600: #5C5650;
  --gray-800: #28241E;
  --font-h: 'Montserrat', sans-serif;
  --font-b: 'Work Sans', sans-serif;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --ease: 0.28s cubic-bezier(.4, 0, .2, 1);
  --sh-sm: 0 2px 12px rgba(12,26,46,.08);
  --sh-md: 0 6px 28px rgba(12,26,46,.12);
  --sh-lg: 0 16px 56px rgba(12,26,46,.18);
}

/* ─── Reset y base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-h); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; }

/* ─── Botones ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: var(--r);
  font-family: var(--font-h); font-size: .875rem; font-weight: 700;
  cursor: pointer; transition: all var(--ease);
  border: 2px solid transparent; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--white); box-shadow: 0 4px 20px rgba(192,124,24,.30); }
.btn-gold:hover { background: var(--gold-mid); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(192,124,24,.40); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.40); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.10); }
.btn-outline-dark { background: transparent; color: var(--dark); border-color: var(--gray-200); }
.btn-outline-dark:hover { border-color: var(--dark); }

/* ─── Header y navegación ──────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background var(--ease), box-shadow var(--ease);
}
.header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(12,26,46,.08), var(--sh-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 112px; padding: .4rem 0; }
.nav-brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-h); font-weight: 800; font-size: 1.58rem;
  letter-spacing: .04em; color: var(--white); transition: color var(--ease);
}
.header.scrolled .nav-brand { color: var(--dark); }
.nav-brand img { width: 108px; height: 108px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-sub { color: var(--gold-mid); font-size: .62em; font-weight: 600; letter-spacing: .06em; display: block; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-family: var(--font-h); font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.8); transition: color var(--ease); }
.header.scrolled .nav-links a { color: var(--gray-600); }
.nav-links a:hover, .header.scrolled .nav-links a:hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--white); font-size: 1.3rem; padding: .4rem; transition: color var(--ease); }
.header.scrolled .nav-toggle { color: var(--dark); }
.nav-mobile {
  display: none; flex-direction: column;
  padding: 1.4rem 2rem 2rem; gap: 0;
  background: rgba(12,26,46,.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.nav-mobile.open { display: flex; }
.nav-mobile a:not(.btn) {
  font-family: var(--font-h); font-size: .97rem; font-weight: 600;
  color: rgba(255,255,255,.72); letter-spacing: .01em;
  padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color var(--ease), padding-left var(--ease);
}
.nav-mobile a:not(.btn):hover { color: var(--gold-mid); padding-left: .5rem; }
.nav-mobile .btn { margin-top: 1.1rem; justify-content: center; }

@media (max-width: 820px) {
  .nav-links, .nav-cta-wrap { display: none; }
  .nav-toggle { display: block; }
  .nav-brand { font-size: 1.15rem; }
  .nav-brand img { width: 84px; height: 84px; }
  .nav { min-height: 96px; }
}

/* ─── Etiqueta de sección ──────────────────────────────────────────── */
.label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-h); font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.label::before { content: ''; display: block; width: 20px; height: 2px; border-radius: 1px; background: currentColor; }

/* ─── Títulos de sección ───────────────────────────────────────────── */
.section-title {
  font-family: var(--font-h); font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800; line-height: 1.15; color: var(--dark);
  letter-spacing: -.025em; margin-top: .5rem;
}
.section-title.on-dark { color: var(--white); }
.section-desc { font-size: .97rem; line-height: 1.75; color: var(--gray-600); max-width: 560px; margin-top: .85rem; }
.section-desc.on-dark { color: rgba(255,255,255,.62); }
.section-head { margin-bottom: 3.2rem; }

/* ─── Footer ───────────────────────────────────────────────────────── */
.footer { background: #080F1A; color: rgba(255,255,255,.5); padding: 5rem 0 2.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 2.5rem;
}
.f-brand-row { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.f-brand-row img { width: 52px; height: 52px; object-fit: contain; }
.f-brand-row span { font-family: var(--font-h); font-size: 1rem; font-weight: 800; color: var(--white); letter-spacing: .06em; }
.f-brand-desc { font-size: .84rem; line-height: 1.7; max-width: 260px; }
.f-social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.f-social a {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: .88rem; transition: all var(--ease);
}
.f-social a:hover { transform: translateY(-2px); }
.f-social a[aria-label="Instagram"]:hover { background: linear-gradient(135deg,#f58529 0%,#dd2a7b 50%,#8134af 100%); border-color: transparent; color: #fff; }
.f-social a[aria-label="Facebook"]:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.f-social a[aria-label="WhatsApp"]:hover { background: #25D366; border-color: #25D366; color: #fff; }
.f-col h5 { font-family: var(--font-h); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.8); margin-bottom: 1.2rem; }
.f-col ul { display: flex; flex-direction: column; gap: .55rem; }
.f-col a { font-size: .84rem; color: rgba(255,255,255,.45); transition: color var(--ease); }
.f-col a:hover { color: rgba(255,255,255,.9); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .78rem; }
.footer-bottom a { color: var(--gold-mid); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .3rem; }
}

/* ─── Botón flotante WhatsApp ──────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 1.6rem; right: 1.6rem;
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, #5b9fd4 0%, #f4aa55 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(91,159,212,.45);
  text-decoration: none; z-index: 999;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: floatPulse 2.5s ease-in-out infinite;
}
.wa-float:hover, .wa-float:focus {
  transform: scale(1.1); animation: none;
  box-shadow: 0 10px 32px rgba(91,159,212,.55); outline: none;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float-label {
  position: fixed; bottom: 2.55rem; right: 5.2rem;
  background: #5b9fd4; color: #fff; font-size: .8rem; font-weight: 600;
  padding: .35rem .85rem; border-radius: 30px; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(91,159,212,.2);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 999;
}
.wa-float:hover + .wa-float-label,
.wa-float:focus + .wa-float-label { opacity: 1; }

@keyframes floatPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 6px 24px rgba(91,159,212,.45); }
  50%       { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(91,159,212,.35); }
}

@media (max-width: 480px) {
  .wa-float { width: 52px; height: 52px; bottom: 1rem; right: 1rem; animation: none; }
  .wa-float-label { display: none; }
}

/* ─── Animación de entrada (reveal) ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
