*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #16325B; --navy-light: #1e4080; --gold: #F5A623;
  --gold-dark: #d4891a; --white: #ffffff; --off-white: #f8f6f2;
  --text-light: #6b7280; --text-dark: #1a1a2e;
}

html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; color: var(--text-dark); overflow-x: hidden; background: var(--white); }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

/* ─── BOTONES GLOBALES ─── */
.btn-reserve { background: var(--gold); color: #fff; border: none; padding: 11px 26px; border-radius: 999px; font-family: 'Lato', sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, transform 0.15s; text-decoration: none; white-space: nowrap; }
.btn-reserve:hover { background: var(--gold-dark); transform: translateY(-1px); }

/* ─── WAVE DIVIDERS ─── */
.wave-container { position: absolute; left: 0; right: 0; line-height: 0; z-index: 3; }
.wave-bottom { bottom: -1px; }
.wave-top { top: -1px; transform: rotate(180deg); }
.wave-svg { display: block; width: 100%; height: 8vw; min-height: 60px; max-height: 120px; }

/* ─── SECCIONES COMUNES ─── */
section { position: relative; }
.section-label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 10px; display: block; }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.section-desc { color: var(--text-light); font-size: 1rem; line-height: 1.7; max-width: 520px; margin: 0 auto; }

/* ─── PAGE HERO (Páginas Internas) ─── */
.page-hero { position: relative; min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 80px; overflow: hidden; }
.page-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero h1 { position: relative; z-index: 2; font-size: clamp(2.5rem, 5vw, 4rem); color: #fff; font-weight: 700; margin-bottom: 10px; text-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero p { position: relative; z-index: 2; font-size: 1.1rem; color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto; }

/* ─── GALERÍA GLOBAL (Usada en Index y Eventos) ─── */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 15px; max-width: 1200px; margin: 0 auto; }
.gallery-item { border-radius: 16px; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }

/* ─── WHATSAPP FLOAT ─── */
.whatsapp-float { 
    position: fixed; 
    right: 24px; 
    bottom: 24px; 
    width: 65px; 
    height: 65px; 
    background: #25D366; 
    color: white; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; /* Asegura que no haya espacios invisibles de texto */
    box-shadow: 0 10px 30px rgba(0,0,0,0.25); 
    z-index: 2000; 
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; 
    animation: whatsappPulse 2s infinite; 
}

.whatsapp-float svg { 
    width: 34px; 
    height: 34px; 
    display: block; /* Obliga al ícono a ser una caja perfecta sin márgenes raros */
    margin: 0;
}

.whatsapp-float:hover { 
    transform: translateY(-4px) scale(1.05); 
    background: #20ba5a; 
    box-shadow: 0 16px 40px rgba(0,0,0,0.3); 
}

@keyframes whatsappPulse { 
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 
    70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } 
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } 
}

/* ─── ANIMACIONES ─── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* RESPONSIVE BASE */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.large { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 768px) {
  .page-hero { padding: 100px 20px 60px; min-height: 40vh; }
  .page-hero h1 { font-size: 2.2rem; }
  .wave-svg { height: 12vw; }
  .whatsapp-float{ width: 58px; height: 58px; right: 18px; bottom: 18px; }
  .whatsapp-float svg{ width: 30px; height: 30px; display: block; margin: 0; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-item.large { grid-column: span 1; }
}