/* ==========================================================================
   1. RESET BÁSICO Y VARIABLES DE COLOR
   ========================================================================== */
:root {
    --bg-color: #ddd8c5;       /* Fondo beige cálido */
    --text-dark: #27423b;      /* Verde oscuro elegante para títulos */
    --gold-accent: #cfa565;    /* Dorado para subtítulos y detalles */
    --green-muted: #8b967d;    /* Verde oliva para el menú y enlaces */
    --text-muted: #555555;     /* Texto secundario de descripciones */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
}

/* ==========================================================================
   2. ENCABEZADO Y NAVEGACIÓN
   ========================================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--green-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-dark);
    opacity: 0.8;
}

/* ==========================================================================
   3. SECCIÓN HERO / PORTADA
   ========================================================================== */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.sub-brand {
    color: var(--gold-accent);
    font-size: 1.1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.main-title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--gold-accent);
    letter-spacing: 2px;
}

.scroll-down {
    position: absolute;
    bottom: 3rem;
    font-size: 1.8rem;
    color: var(--text-dark);
    text-decoration: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ==========================================================================
   4. SECCIONES SECUNDARIAS
   ========================================================================== */
.content-section {
    min-height: 50vh;
    padding: 5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.content-section h2 {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* ==========================================================================
   5. SECCIÓN CUADRÍCULA DE EVENTOS / TARJETAS
   ========================================================================== */
.events-grid-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Contenedor Grid (2 columnas) */
.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Estilo Base de la Tarjeta */
.card {
    background-color: #ffffff;
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 220px;
}

/* Alternar orden de imagen y texto */
.card--reverse {
    flex-direction: row-reverse;
}

/* Contenido de texto dentro de la tarjeta */
.card-content {
    flex: 1;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-content ul {
    list-style: disc;
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.card-content li {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Contenedor de la Imagen */
.card-image {
    flex: 1;
    width: 50%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tarjeta 5 centrada abajo */
.card--center {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 1rem);
}

/* ==========================================================================
   6. BOTÓN FLOTANTE E ÍCONO DE WHATSAPP
   ========================================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    transition: transform 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.08);
}

.whatsapp-btn:hover .whatsapp-icon {
    transform: scale(1.05);
}

/* ==========================================================================
   7. SECCIÓN CONTACTO
   ========================================================================== */
.main-contacto {
    padding-top: 100px;
    min-height: calc(100vh - 100px);
}

.contact-section {
    padding: 3rem 2rem 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--text-dark);
}

.contact-divider {
    color: var(--gold-accent);
    margin: 0.5rem 0 1rem 0;
    font-size: 0.9rem;
}

.contact-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.contact-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.icon-circle {
    width: 38px;
    height: 38px;
    background-color: var(--text-dark);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.contact-card {
    background-color: #f7f5ed;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full-width {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container i:not(.select-arrow) {
    position: absolute;
    left: 1rem;
    color: #888;
    font-size: 0.9rem;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    color: #888;
    pointer-events: none;
    font-size: 0.8rem;
}

.input-container input,
.input-container select,
.form-group textarea {
    width: 100%;
    background-color: #eae6d8;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-dark);
    outline: none;
}

.input-container select {
    appearance: none;
    cursor: pointer;
}

.form-group textarea {
    padding: 0.8rem 1rem;
    height: 100px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background-color: var(--text-dark);
    color: #ffffff;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background-color: #1a2e29;
}

.privacy-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ==========================================================================
   8. RESPONSIVE DESIGN (MÓVILES Y TABLETS)
   ========================================================================== */
@media (max-width: 900px) {
    .header {
        padding: 1rem 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    }

    .nav-menu.active {
        max-height: 250px;
        padding: 0.5rem 0;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .card, .card--reverse {
        flex-direction: column-reverse;
    }

    .card-image {
        width: 100%;
        height: 200px;
    }

    .card--center {
        grid-column: auto;
        width: 100%;
    }

    .contact-grid, .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: 1;
        text-align: center;
    }

    .info-items {
        align-items: flex-start;
        max-width: 280px;
        margin: 0 auto;
    }

    .contact-card {
        order: 2;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .whatsapp-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 52px;
        height: 52px;
    }
}