/* ============================================================
   global.css — Yerall Martínez
   Beach luxury: arena · beige cálido · blanco roto · oro suave
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Palette */
  --color-cream:        #F5EFE6;
  --color-beige-light:  #EDE0D0;
  --color-beige:        #E0C9B0;
  --color-sand:         #C4956A;
  --color-sand-dark:    #A87850;
  --color-gold:         #8B6340;
  --color-gold-light:   #C4956A;
  --color-gold-muted:   #D4B896;
  --color-brown-dark:   #2C1A0E;
  --color-brown-mid:    #5C3317;
  --color-brown-light:  #8B6340;
  --color-white:        #FFFFFF;
  --color-overlay:      rgba(44, 36, 22, 0.45);

  /* Semantic */
  --bg-page:        var(--color-cream);
  --bg-section-alt: var(--color-beige-light);
  --text-primary:   var(--color-brown-dark);
  --text-secondary: var(--color-brown-mid);
  --text-muted:     var(--color-brown-light);
  --accent:         var(--color-gold);
  --accent-light:   var(--color-gold-light);
  --border-color:   var(--color-beige);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  8rem;

  /* Radius */
  --radius-sm:  4px;
  --radius-md:  10px;
  --radius-lg:  18px;
  --radius-xl:  28px;
  --radius-pill: 9999px;

  /* Shadows — multi-layer for soft UI depth */
  --shadow-xs:  0 1px 2px rgba(44, 36, 22, 0.04), 0 2px 6px rgba(44, 36, 22, 0.05);
  --shadow-sm:  0 2px 6px rgba(44, 36, 22, 0.05), 0 4px 16px rgba(44, 36, 22, 0.07);
  --shadow-md:  0 4px 12px rgba(44, 36, 22, 0.06), 0 12px 32px rgba(44, 36, 22, 0.09);
  --shadow-lg:  0 8px 24px rgba(44, 36, 22, 0.08), 0 24px 64px rgba(44, 36, 22, 0.12);
  --shadow-xl:  0 16px 40px rgba(44, 36, 22, 0.10), 0 40px 80px rgba(44, 36, 22, 0.14);
  --shadow-gold: 0 4px 16px rgba(196, 149, 106, 0.28), 0 8px 32px rgba(139, 99, 64, 0.18);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max:  1200px;
  --nav-height:     72px;

  /* Z-index scale */
  --z-base:    10;
  --z-dropdown: 20;
  --z-sticky:   30;
  --z-modal:    50;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

html {
  opacity: 0;
  transition: opacity 0.45s ease;
}

html.is-loaded {
  opacity: 1;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p {
  max-width: 68ch;
  color: var(--text-secondary);
}

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section {
  padding-block: var(--space-2xl);
}

.section--alt {
  background-color: var(--bg-section-alt);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.section__eyebrow::before,
.section__eyebrow::after {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}

.section__title {
  margin-bottom: var(--space-sm);
}

.section__title em {
  font-style: italic;
  color: var(--accent);
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 55ch;
  margin-inline: auto;
  line-height: 1.7;
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
  margin-block: var(--space-lg);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gold-muted));
}

.divider::after {
  background: linear-gradient(to left, transparent, var(--color-gold-muted));
}

.divider__icon {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
  cursor: pointer;
  min-height: 48px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition-fast);
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.08);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Primary */
.btn--primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(184, 150, 46, 0.32);
}

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

/* Secondary / Outline */
.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--color-sand-dark);
}

.btn--secondary:hover {
  background: var(--color-beige);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Ghost (for dark backgrounds) */
.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* ── Card Base ──────────────────────────────────────────────── */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* ── Gold Accent Line ───────────────────────────────────────── */
.accent-line {
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--color-gold), var(--color-gold-light));
  border-radius: 2px;
  margin-bottom: var(--space-md);
}

.accent-line--center {
  margin-inline: auto;
}

/* ── Navigation — floating pill ─────────────────────────────── */
/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1160px;
  height: 52px;
  z-index: var(--z-sticky);
  background: rgba(18, 12, 6, 0.38);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.18);
  transition: background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.nav--scrolled {
  background: rgba(250, 245, 238, 0.96);
  border-color: rgba(184, 140, 80, 0.18);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-inline: var(--space-lg);
  position: relative;
}

/* ── Links (single centered list) ── */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.nav__link:hover   { color: var(--color-white); }
.nav__link--active { color: var(--color-white); }

.nav--scrolled .nav__link              { color: rgba(44, 26, 14, 0.58); }
.nav--scrolled .nav__link:hover,
.nav--scrolled .nav__link--active      { color: var(--color-brown-dark); }

.nav__link:focus-visible {
  outline: 2px solid var(--color-gold-muted);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ── Brand logo — anchored left ── */
.nav__logo {
  position: absolute;
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 34px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter var(--transition-base);
}

.nav--scrolled .nav__logo-img {
  filter: none;
}

/* ── CTA pill — anchored right, border only ── */
.nav__cta {
  position: absolute;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-white);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}

.nav__cta:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.72);
}

.nav--scrolled .nav__cta {
  color: var(--color-brown-dark);
  border-color: rgba(44, 26, 14, 0.32);
}

.nav--scrolled .nav__cta:hover {
  background: rgba(44, 26, 14, 0.07);
  border-color: rgba(44, 26, 14, 0.58);
}

.nav__cta:focus-visible {
  outline: 2px solid var(--color-gold-muted);
  outline-offset: 3px;
}

/* ── Mobile toggle ── */
.nav__toggle {
  display: none;
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  z-index: 2;
}

.nav__toggle span {
  display: block;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.80);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav--scrolled .nav__toggle span {
  background: rgba(44, 26, 14, 0.72);
}

.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);
}

/* ── Mobile nav — keyframes ── */
@keyframes navItemIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0);    }
}

/* ── Mobile layout ── */
@media (max-width: 768px) {

  /* ─── 1. NAV SHELL ─────────────────────────────────── */
  .nav {
    width: calc(100% - 24px);
    top: 10px;
    height: auto;
    min-height: 52px;
    max-height: 52px;
    overflow: hidden;
    border-radius: 26px;
    transition:
      max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1),
      border-radius 0.30s ease,
      background var(--transition-base),
      box-shadow var(--transition-base),
      border-color var(--transition-base);
  }

  /* Open state — darker, richer */
  .nav--open {
    max-height: 460px;
    border-radius: 22px;
    background: rgba(15, 9, 3, 0.95) !important;
    backdrop-filter: blur(40px) saturate(1.9);
    -webkit-backdrop-filter: blur(40px) saturate(1.9);
    box-shadow:
      0 12px 48px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(196, 149, 106, 0.22);
  }

  .nav--scrolled.nav--open {
    background: rgba(250, 245, 238, 0.98) !important;
    box-shadow:
      0 12px 48px rgba(44, 26, 14, 0.16),
      0 0 0 1px rgba(184, 140, 80, 0.18);
  }

  /* ─── 2. INNER — padding-top creates the header row ── */
  .nav__inner {
    padding-top: 52px;   /* reserve space for the pinned header row */
    padding-inline: 0;
    align-items: flex-start;
    justify-content: flex-start;
    height: auto;
    min-height: 52px;
  }

  /* ─── 3. LOGO — pinned to header row, centered ─────── */
  .nav__logo {
    top: 26px;               /* vertical center of 52px header row */
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* ─── 4. HAMBURGER — pinned to header row, right ───── */
  .nav__toggle {
    display: flex;
    top: 26px;               /* vertical center of 52px header row */
    right: 16px;
    transform: translateY(-50%);
  }

  /* ─── 5. LINK LIST ──────────────────────────────────── */
  .nav__links {
    flex-direction: column;
    width: 100%;
    gap: 2px;
    padding: 8px 10px 4px;
    align-items: stretch;
    /* gold divider separating header row from links */
    border-top: 1px solid rgba(196, 149, 106, 0.28);
  }

  .nav--scrolled .nav__links {
    border-top-color: rgba(44, 26, 14, 0.12);
  }

  /* ─── 6. INDIVIDUAL LINK ────────────────────────────── */
  .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-md);
    height: 52px;
    font-size: 0.93rem;
    font-weight: 500;
    letter-spacing: 0.10em;
    color: rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    position: relative;
    transition: background var(--transition-fast), color var(--transition-fast);
  }

  /* left-aligned label text */
  .nav__link span,
  .nav__link {
    text-align: left;
  }

  .nav__link:hover {
    background: rgba(196, 149, 106, 0.11);
    color: rgba(255, 255, 255, 0.95);
  }

  /* Active state — gold highlight + right dot */
  .nav__link--active {
    color: var(--color-gold-muted);
    background: rgba(196, 149, 106, 0.09);
    font-weight: 600;
  }

  .nav__link--active::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold-muted);
    box-shadow: 0 0 8px rgba(196, 149, 106, 0.65);
    flex-shrink: 0;
  }

  /* Scrolled (cream bg) overrides */
  .nav--scrolled .nav__link             { color: rgba(44, 26, 14, 0.60); }
  .nav--scrolled .nav__link:hover       { background: rgba(44, 26, 14, 0.05); color: var(--color-brown-dark); }
  .nav--scrolled .nav__link--active     { color: var(--color-brown-dark); background: rgba(44, 26, 14, 0.06); }
  .nav--scrolled .nav__link--active::after {
    background: var(--color-gold);
    box-shadow: 0 0 6px rgba(139, 99, 64, 0.42);
  }

  /* ─── 7. STAGGER ANIMATION ──────────────────────────── */
  .nav--open .nav__links li:nth-child(1) { animation: navItemIn 0.24s ease 0.06s both; }
  .nav--open .nav__links li:nth-child(2) { animation: navItemIn 0.24s ease 0.11s both; }
  .nav--open .nav__links li:nth-child(3) { animation: navItemIn 0.24s ease 0.16s both; }
  .nav--open .nav__links li:nth-child(4) { animation: navItemIn 0.24s ease 0.21s both; }
  .nav--open .nav__links li:nth-child(5) { animation: navItemIn 0.24s ease 0.26s both; }

  /* ─── 8. RESERVAR BUTTON — gold pill ───────────────── */
  .nav__cta {
    position: static;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 8px 10px 14px;
    padding: 0 var(--space-md);
    height: 52px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    color: var(--color-white);
    border: none;
    font-size: 0.80rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 4px 18px rgba(139, 99, 64, 0.36);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  }

  .nav--open .nav__cta {
    animation: navItemIn 0.24s ease 0.31s both;
  }

  .nav__cta:hover {
    box-shadow: 0 6px 26px rgba(139, 99, 64, 0.52);
    transform: translateY(-1px);
  }

  /* scrolled state keeps gold */
  .nav--scrolled .nav__cta {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    color: var(--color-white);
    border-color: transparent;
  }
}

/* ── Footer ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}
.footer {
  background: var(--color-brown-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-block: var(--space-xl) var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-lg);
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.footer__brand-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-muted);
  margin-bottom: var(--space-md);
  max-width: none;
}

.footer__brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 30ch;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-muted);
  margin-bottom: var(--space-md);
}

.footer__list li {
  margin-bottom: var(--space-xs);
}

.footer__list a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer__list a:hover {
  color: var(--color-white);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
}

.footer__contact-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--color-gold-muted);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  max-width: none;
}

.footer__copy a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer__copy a:hover {
  color: var(--color-gold-muted);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer__brand-desc {
    max-width: 100%;
    margin-inline: auto;
  }

  .footer__contact-item {
    justify-content: center;
  }

  .footer__list {
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ── Scroll reveal base ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  transition: opacity 0.70s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.70s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.70s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal--delay-1 { transition-delay: 0.10s; }
.reveal--delay-2 { transition-delay: 0.20s; }
.reveal--delay-3 { transition-delay: 0.30s; }
.reveal--delay-4 { transition-delay: 0.40s; }
.reveal--delay-5 { transition-delay: 0.50s; }
.reveal--delay-6 { transition-delay: 0.60s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    filter: none;
    transform: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
}

/* ═══════════════════════════════════════════════════════════
   WHATSAPP FLOAT BUTTON
   ═══════════════════════════════════════════════════════════ */

/* Entry animation */
@keyframes wa-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Pulse ring */
@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  /* Start hidden; JS adds .wa-visible after 2 s */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
  /* Pulse loop */
  animation: wa-pulse 2.5s ease-out 4s infinite;
}

.whatsapp-float.wa-visible {
  opacity: 1;
  pointer-events: auto;
  animation:
    wa-fadeInUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    wa-pulse 2.5s ease-out 2.5s infinite;
}

.whatsapp-float.wa-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  animation: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.60);
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Tooltip */
.whatsapp-float__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #25D366;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.35);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Mobile */
@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 16px;
    right: 14px;
    width: 48px;
    height: 48px;
  }
  .whatsapp-float svg {
    width: 20px;
    height: 20px;
  }
  /* Hide tooltip on small screens — not enough room */
  .whatsapp-float__tooltip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float.wa-visible {
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE GLOBAL — spacing · typography · buttons · reveal
   ═══════════════════════════════════════════════════════════ */

/* ── Spacing override on mobile ── */
@media (max-width: 768px) {
  :root {
    --space-2xl: 3.5rem;
    --space-3xl: 5rem;
  }

  .section {
    padding-block: var(--space-xl);
  }

  .section__header {
    margin-bottom: var(--space-lg);
  }

  /* Unlock paragraph width on mobile */
  p {
    max-width: 100%;
  }

  .section__subtitle {
    max-width: 100%;
  }
}

/* ── Button full-width on small mobile ── */
@media (max-width: 480px) {
  /* Buttons that are direct children of flex action groups go full-width */
  .hero__actions .btn,
  .intro__actions .btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
  }
}

/* ── Reveal: disable blur filter on mobile for reliability ── */
@media (max-width: 768px) {
  .reveal {
    filter: none;
    /* Keep opacity/transform for the reveal effect — just no blur */
  }
  .reveal.is-visible {
    filter: none;
  }
}

/* ── Prevent any horizontal overflow at any width ── */
html, body {
  overflow-x: hidden;
}

/* ── Large desktop: breathing room ── */
@media (min-width: 1400px) {
  :root {
    --container-max: 1320px;
  }
}
