/* --- VARIABLES Y CONFIGURACIÓN GENERAL --- */
:root {
    --bg-primary: #FDFBF6;
    --text-primary: #2C2C2C;
    --accent-gold: #C0A062;
    --accent-terracotta: #A95C44;
    --accent-green: #3A5A40;
    --bg-dark: #2C2C2C;
    --text-light: #FDFBF6;
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* --- HEADER Y NAVEGACIÓN --- */
.main-header {
    background-color: var(--bg-primary);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.cta-button {
    background-color: var(--accent-gold);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #a88c52;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    color: var(--text-primary);
}

/* --- HERO SECTION --- */
.hero {
    margin-top: 80px; /* Espacio para el header fijo */
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1588675646184-f5b0b3b17b89?auto=format&fit=crop&q=80&w=2070') no-repeat center center/cover;
    /* REEMPLAZA la URL de arriba con una imagen de tu carpeta assets/ */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.cta-button.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* --- INTRO SECTION --- */
.intro-section {
    padding: 6rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* --- CALENDARIO SECTION --- */
.calendar-section {
    padding: 6rem 0;
    background-color: #f7f5f0;
}

.calendar-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.calendar-header button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--accent-gold);
    transition: background 0.3s;
}

.calendar-header button:hover {
    background: #f7f5f0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    padding: 0.8rem;
    text-align: center;
    min-height: 80px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.calendar-day.day-name {
    font-weight: bold;
    color: var(--accent-terracotta);
    min-height: auto;
    padding-bottom: 0.5rem;
}

.calendar-day.not-in-month {
    color: #ccc;
}

.calendar-day.today {
    background-color: var(--accent-gold);
    color: white;
    font-weight: bold;
}

.day-number {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot.ifa { background-color: var(--accent-green); }
.dot.itadogun { background-color: var(--accent-gold); }
.dot.egun { background-color: var(--text-primary); border: 1px solid white; }
.dot.otro { background-color: var(--accent-terracotta); }


.calendar-legend {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}
.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- SERVICIOS SECTION --- */
.services-section {
    padding: 6rem 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem auto;
    color: var(--accent-gold);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.learn-more {
    display: inline-block;
    margin-top: 1.5rem;
    text-decoration: none;
    color: var(--accent-gold);
    font-weight: 500;
}

/* --- BLOG SECTION --- */
.blog-section {
    padding: 6rem 0;
    background-color: #f7f5f0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.blog-post:hover {
    transform: translateY(-5px);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background: var(--accent-terracotta);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.blog-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.blog-date {
    font-size: 0.8rem;
    color: #888;
}

.view-all-posts {
    display: block;
    text-align: center;
    margin-top: 3rem;
    font-size: 1.1rem;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #444;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-col ul {
    list-style: none;
}
.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #aaa;
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; }
    .intro-image { order: -1; margin-bottom: 2rem; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        right: 0;
    }
    .hamburger-menu {
        display: block;
        z-index: 1001; /* Debe estar por encima del menu */
    }

    .cta-button {
        display: none; /* Ocultar el botón principal en la barra de nav en móvil */
    }
    
    .main-nav .cta-button {
        display: none;
    }

    .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .container { padding: 0 1rem; }
    .main-nav { padding: 0 1rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .calendar-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}