/* ==========================================================================
   RESET & VARIABLES GLOBALES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Paleta Elegante & Cálida */
    --clr-primary: #1e3a2b;       /* Verde boscoso elegante */
    --clr-primary-dark: #12241b;
    --clr-accent: #c8963e;        /* Dorado / Cálido accesible */
    --clr-accent-hover: #b08130;
    --clr-whatsapp: #25d366;      /* Verde oficial WhatsApp */
    --clr-whatsapp-hover: #1eaa53;
    
    --clr-dark: #1c1c1c;
    --clr-text: #333333;
    --clr-text-light: #666666;
    --clr-bg-light: #f8f6f0;      /* Crema suave muy elegante */
    --clr-white: #ffffff;
    
    /* Tipografías */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', system-ui, sans-serif;
    
    /* Layouts & Transiciones */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   CLASES UTILITARIAS Y LAYOUT
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.bg-light {
    background-color: var(--clr-bg-light);
}

.text-center {
    text-align: center;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }
}

.rounded-shadow {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

/* Tipografía de Secciones */
.section-header {
    margin-bottom: 50px;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-accent);
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    color: var(--clr-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    color: var(--clr-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.paragraph {
    font-size: 1.05rem;
    color: var(--clr-text-light);
    margin-bottom: 18px;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    gap: 10px;
    text-align: center;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.btn-primary:hover {
    background-color: var(--clr-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--clr-white);
    border-color: var(--clr-white);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-primary);
    border-color: var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.btn-whatsapp {
    background-color: var(--clr-whatsapp);
    color: var(--clr-white);
}

.btn-whatsapp:hover {
    background-color: var(--clr-whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.35);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.15rem;
}

/* ==========================================================================
   HEADER & NAVEGACIÓN
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--clr-primary);
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--clr-accent);
    margin-top: 2px;
}

/* Nav Menu en Desktop */
@media (min-width: 992px) {
    .nav-list {
        display: flex;
        gap: 30px;
    }

    .nav-link {
        font-weight: 500;
        font-size: 0.95rem;
        color: var(--clr-text);
        position: relative;
        padding: 5px 0;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 2px;
        background-color: var(--clr-accent);
        transition: var(--transition);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

    .nav-toggle {
        display: none;
    }
}

/* Nav Hamburguesa en Celular/Tablet */
@media (max-width: 991px) {
    .nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: calc(100vh - var(--header-height));
        background-color: var(--clr-white);
        box-shadow: -5px 10px 25px rgba(0,0,0,0.1);
        padding: 40px 30px;
        transition: var(--transition);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .nav-link {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--clr-primary);
        display: block;
    }

    .nav-toggle {
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 5px;
    }

    .hamburger-line {
        width: 25px;
        height: 3px;
        background-color: var(--clr-primary);
        border-radius: 2px;
        transition: var(--transition);
    }

    /* Animación del menú hamburguesa */
    .nav-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Focus accesibles */
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--clr-accent);
    outline-offset: 3px;
}

/* ==========================================================================
   HERO PRINCIPAL
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    color: var(--clr-white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(18, 36, 27, 0.65) 0%, rgba(18, 36, 27, 0.85) 100%);
}

.hero-content {
    max-width: 800px;
    padding: 40px 0;
}

.hero-tagline {
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--clr-accent);
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.8rem;
    }
}

/* ==========================================================================
   SOBRE NOSOTROS
   ========================================================================== */
.features-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--clr-primary);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--clr-accent);
    color: var(--clr-white);
    border-radius: 50%;
    font-size: 0.8rem;
}

/* ==========================================================================
   NUESTROS ESPACIOS
   ========================================================================== */
.space-card {
    background-color: var(--clr-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.space-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-image-box {
    position: relative;
    height: 260px;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(30, 58, 43, 0.85);
    color: var(--clr-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--clr-primary);
    margin-bottom: 12px;
}

.card-text {
    color: var(--clr-text-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* ==========================================================================
   GALERÍA CON LIGHTBOX
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 240px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 58, 43, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-icon {
    font-size: 2rem;
    color: var(--clr-white);
    transform: scale(0.5);
    transition: var(--transition);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: var(--clr-white);
    margin-top: 15px;
    font-size: 1rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: transparent;
    border: none;
    color: var(--clr-white);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
    user-select: none;
}

.lightbox-close {
    top: 20px;
    right: 25px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--clr-accent);
}

/* ==========================================================================
   EVENTOS
   ========================================================================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.event-card {
    background-color: var(--clr-white);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--clr-accent);
}

.event-icon-box {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.event-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--clr-primary);
    margin-bottom: 10px;
}

.event-desc {
    font-size: 0.95rem;
    color: var(--clr-text-light);
}

/* ==========================================================================
   UBICACIÓN
   ========================================================================== */
.location-details {
    margin: 25px 0 30px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.loc-icon {
    font-size: 1.8rem;
}

.map-wrapper {
    height: 350px;
    width: 100%;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
    color: var(--clr-white);
    padding: 80px 0;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--clr-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0 20px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.logo-footer .logo-main {
    color: var(--clr-white);
}

.footer-desc {
    margin-top: 15px;
    line-height: 1.5;
}

.footer-title {
    color: var(--clr-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--clr-accent);
}

.footer-links ul, .footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--clr-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    font-size: 0.85rem;
}

/* ==========================================================================
   BOTÓN WHATSAPP FLOTANTE
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--clr-whatsapp);
    color: var(--clr-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: var(--clr-whatsapp-hover);
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   ANIMACIONES SCROLL & PREFERS REDUCED MOTION
   ========================================================================== */
.animate-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade.appear {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .whatsapp-float {
        animation: none;
    }
}