/* ============================================
   GEMMA VACACIONAL — Shared Stylesheet
   Paleta: terracota cálido + azul mediterráneo
   ============================================ */

:root {
  --primary:       #B8754E;
  --primary-dark:  #9A5C36;
  --primary-light: #D4A07A;
  --accent:        #2A5F7E;
  --accent-dark:   #1D4560;
  --bg:            #FAF7F4;
  --bg-alt:        #F2EBE1;
  --bg-dark:       #191919;
  --text:          #282828;
  --text-muted:    #787878;
  --white:         #FFFFFF;
  --green-wa:      #25D366;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', sans-serif;

  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow:    0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg: 0 10px 44px rgba(0,0,0,0.14);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 28px;

  --transition: 0.28s ease;
  --max-w: 1180px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { font-family: var(--font-sans); cursor: pointer; border: none; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 60px 0; }

/* ── Typography helpers ── */
.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
  margin-top: 14px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn i { font-size: 0.9em; }
.btn-primary   { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,117,78,.33); }
.btn-white     { background: var(--white); color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.btn-outline-w { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.7); }
.btn-outline-w:hover { background: var(--white); color: var(--primary); transform: translateY(-2px); }
.btn-accent    { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(42,95,126,.3); }
.btn-ghost     { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 17px 38px; font-size: 1rem; }
.btn-sm { padding: 10px 22px; font-size: 0.84rem; }
.btn-wa { background: var(--green-wa); color: var(--white); }
.btn-wa:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37,211,102,.33); }

/* ── WhatsApp float ── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 24px;
  z-index: 999;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--green-wa);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.65rem;
  box-shadow: 0 4px 22px rgba(37,211,102,.42);
  transition: all var(--transition);
  animation: wa-pulse 3.2s ease infinite;
}
.wa-float:hover { transform: scale(1.12); animation: none; box-shadow: 0 6px 32px rgba(37,211,102,.58); }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 22px rgba(37,211,102,.42); }
  50%      { box-shadow: 0 4px 36px rgba(37,211,102,.66); }
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  background: linear-gradient(180deg, rgba(0,0,0,.52) 0%, transparent 100%);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.solid {
  background: var(--white);
  box-shadow: 0 2px 18px rgba(0,0,0,.07);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.22rem; font-weight: 700;
  color: var(--white);
  display: flex; align-items: center; gap: 9px;
  transition: color var(--transition);
}
.nav-logo i { color: var(--primary-light); font-size: .95rem; }
.navbar.solid .nav-logo { color: var(--text); }
.navbar.solid .nav-logo i { color: var(--primary); }
.nav-links {
  display: flex; align-items: center; gap: 34px;
}
.nav-links a {
  font-size: .88rem; font-weight: 500;
  color: rgba(255,255,255,.88);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 100%;
  height: 2px; background: var(--primary);
  transition: right var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { right: 0; }
.navbar.solid .nav-links a { color: var(--text); }
.nav-links .nav-btn {
  background: var(--primary); color: var(--white) !important;
  padding: 9px 22px; border-radius: 50px;
  font-weight: 600 !important;
}
.nav-links .nav-btn::after { display: none; }
.nav-links .nav-btn:hover { background: var(--primary-dark) !important; }
.nav-toggle {
  display: none; background: none; border: none;
  font-size: 1.4rem; color: var(--white);
  transition: color var(--transition);
}
.navbar.solid .nav-toggle { color: var(--text); }

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column; align-items: flex-start;
    padding: 22px 24px; gap: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text); }
  .nav-toggle { display: block; }
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--primary);
  color: var(--white);
  padding: 22px 0;
}
.stats-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 1.85rem; font-weight: 700;
  line-height: 1;
}
.stat-label { font-size: .78rem; font-weight: 500; opacity: .82; margin-top: 4px; letter-spacing: .04em; text-transform: uppercase; }

/* ── Wave dividers ── */
.wave-wrap { display: block; overflow: hidden; line-height: 0; }
.wave-wrap svg { display: block; width: 100%; }

/* ── Footer ── */
footer {
  background: #171717;
  color: rgba(255,255,255,.6);
  padding: 72px 24px 32px;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto 52px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
}
.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.3rem; color: var(--white);
  margin-bottom: 13px;
  display: flex; align-items: center; gap: 8px;
}
.footer-brand-name i { color: var(--primary-light); font-size: 1rem; }
.footer-brand-desc { font-size: .88rem; line-height: 1.8; margin-bottom: 22px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: .85rem;
  transition: background var(--transition);
}
.footer-socials a:hover { background: var(--primary); }
footer h5 {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 18px;
}
footer ul li { margin-bottom: 11px; }
footer ul a { font-size: .87rem; transition: color var(--transition); }
footer ul a:hover { color: var(--primary); }
footer address { font-style: normal; font-size: .87rem; line-height: 1.9; }
footer address a { transition: color var(--transition); }
footer address a:hover { color: var(--primary); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  font-size: .78rem;
}
.footer-bottom a { color: var(--primary); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ── Form ── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  margin-bottom: 7px; color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: .94rem;
  color: var(--text); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184,117,78,.14);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
