/* =========================================
   VARIABLES & THEME
========================================= */
:root {
    /* Colors */
    --primary: #2C4A6E;      /* Soft elegant navy */
    --primary-light: #4A6E9B; 
    --secondary: #D4AF37;    /* Warm gold/sand */
    --secondary-light: #EBD999;
    --accent: #E08A5E;       /* Soft terracotta for highlights */
    
    --bg-light: #FAFAFA;     /* Main background */
    --bg-white: #FFFFFF;     /* Cards background */
    --bg-off-white: #F3F4F6; /* Alternate section background */
    
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #F9FAFB;
    
    --border-color: #E5E7EB;
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Box Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.3s ease-in-out;
}

/* =========================================
   RESET & GLOBAL
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-off-white);
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}
.mt-4 {
    margin-top: 1rem;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Typography Classes */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--secondary);
    border-radius: 2px;
    margin-top: 0.5rem;
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary);
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    mix-blend-mode: multiply;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-family: var(--font-heading);
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary);
    transition: var(--transition);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Using a linear gradient to give a soft, spiritual, warm vibe */
    background: linear-gradient(135deg, rgba(44,74,110,0.85) 0%, rgba(74,110,155,0.6) 100%), url('asset/hero.png') center/cover;
    background-blend-mode: overlay;
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    color: var(--text-light);
    animation: fadeInUp 1s ease-out forwards;
}

.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background-color: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--secondary);
    color: var(--secondary-light);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.hero-title span {
    color: var(--secondary);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--bg-white);
}

/* =========================================
   NUESTROS COMIENZOS (HISTORIA)
========================================= */
.historia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.historia-text p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.quote-box {
    background-color: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--secondary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.quote-box p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary);
    margin: 0;
}

.historia-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 100px;
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-family: var(--font-heading);
    font-weight: 500;
}

/* =========================================
   REUNIONES
========================================= */
.reuniones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.reunion-card {
    background-color: var(--bg-white);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.reunion-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom: 4px solid var(--secondary);
}

.reunion-card.highlight {
    background-color: var(--primary);
    color: var(--bg-white);
    border-bottom-color: var(--secondary);
}

.reunion-card.highlight h3, 
.reunion-card.highlight .reunion-day {
    color: var(--bg-white);
}

.reunion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.reunion-card.highlight .reunion-icon {
    background-color: rgba(255, 255, 255, 0.1);
}

.reunion-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.reunion-day {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.reunion-time {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.reunion-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.reunion-card.highlight p {
    color: rgba(255, 255, 255, 0.8);
}

.reunion-card a {
    color: var(--secondary);
    font-weight: 600;
}

/* =========================================
   NOTICIAS
========================================= */
.noticias-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
    margin: 0 auto;
    max-width: 1000px;
}

/* =========================================
   CONTACTO
========================================= */
.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    color: var(--secondary);
    margin-top: 0.25rem;
}

.info-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-muted);
}

.social-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.social-item:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.social-item small {
    color: var(--text-muted);
    font-weight: 400;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-off-white);
    color: var(--primary);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: scale(1.1);
}

.mapa-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contacto-form-wrapper {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.contacto-form h3 {
    margin-bottom: 0.5rem;
}

.contacto-form p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
    min-height: 24px;
}
.status-success { color: #10B981; }
.status-error { color: #EF4444; }

/* =========================================
   FOOTER
========================================= */
.footer {
    background-color: #1A2E44; /* Darker navy */
    color: rgba(255, 255, 255, 0.7);
    padding-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
    border-radius: 8px;
    mix-blend-mode: screen; /* Since the footer is dark, multiply won't work well. We might need a transparent PNG for the footer. Let me use mix-blend-mode: multiply on a white background wrapper, or brightness filter. Actually, if footer is dark, a white logo needs mix-blend-mode: screen or lighten, or we add a small white background around it */
    background-color: white;
    padding: 5px;
    mix-blend-mode: normal;
}

.footer h4 {
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    font-size: 0.875rem;
}

/* =========================================
   ANIMATIONS
========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* =========================================
   RESPONSIVE (MEDIA QUERIES)
========================================= */
@media (max-width: 992px) {
    .historia-grid,
    .contacto-wrapper {
        grid-template-columns: 1fr;
    }
    
    .historia-images {
        flex-direction: row;
        position: relative;
        top: 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 2rem 0;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .header .btn-primary {
        display: none; /* Hide CTA in header on mobile to save space */
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .historia-images {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .contacto-form-wrapper {
        padding: 2rem 1.5rem;
    }
}
