:root {
    --color-primary: #9E1B22;      
    --color-primary-hover: #7A141A;
    --color-action: #4CAF50;       
    --color-action-hover: #3E8E41; 
    --color-accent: #E0A72F;       
    --color-canvas: #F5F5F3;       
    --color-text-neutral: #666666; 
    
    --font-brand: 'Lora', serif; 
    --font-ui: 'Plus Jakarta Sans', sans-serif; 
    
    --transition-ease: all 0.3s ease;
    --shadow-light: 0 4px 15px rgba(0,0,0,0.04);
    --shadow-medium: 0 10px 25px rgba(0,0,0,0.1);
}

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

body {
    background-color: var(--color-canvas);
    font-family: var(--font-ui);
    color: var(--color-text-neutral);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* =========================================
   2. UTILIDADES (DRY)
   ========================================= */
.section-padding { padding: 5rem 10%; }

.section-title {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text-neutral);
    letter-spacing: 0.5px;
}

.brand-heading {
    font-family: var(--font-brand);
    color: var(--color-primary);
}

/* =========================================
   2.5 COMPONENTES COMPARTIDOS (OPTIMIZACIÓN DRY)
   ========================================= */
/* Subtítulos de sección */
.gallery-subtitle, .workshops-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-neutral);
    opacity: 0.8;
    text-align: center;
    margin-top: -2rem;
    margin-bottom: 3.5rem;
}

.section-title + .gallery-subtitle {
    margin-bottom: 3rem;
    opacity: 0.85;
}

.news-subtitle, .events-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-neutral);
    opacity: 0.8;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

/* Imágenes base */
.hook-image img, .bloque-1-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Imágenes con transición */
.workshop-card-image img, .news-card-featured .news-card-image img, .news-card-image-small img, .event-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-ease);
}

/* Comportamientos Hover - Imágenes (Escala 1.05) */
.news-card-featured:hover .news-card-image img, .featured-event:hover .event-featured-image img {
    transform: scale(1.05);
}

/* Comportamientos Hover - Imágenes (Escala 1.08) */
.workshop-card:hover .workshop-card-image img, .news-card-compact:hover .news-card-image-small img {
    transform: scale(1.08);
}

/* Comportamientos Hover - Tarjetas Principales */
.metric-card:hover, .news-card-featured:hover, .workshop-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary);
}

/* Tarjetas de Eventos (Normal y Masonry Historial) */
.event-card, .event-history-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    transition: var(--transition-ease);
}

.event-card:hover, .event-history-card:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-medium);
}

.event-image, .history-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-ease);
}

.event-card:hover .event-image, .event-history-card:hover .history-image {
    transform: scale(1.1);
}

.event-overlay, .history-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(158, 27, 34, 0.85) 0%, rgba(122, 20, 26, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition-ease);
}

.event-card:hover .event-overlay, .event-history-card:hover .history-overlay {
    opacity: 1;
}

.event-card-large, .event-history-card-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Modales Activos */
.news-modal.active, .workshop-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Iconos de Logo (Valores respetados) */
.log-icono, .ico-imagen {
    object-fit: contain;
}
.log-icono { width: 30px; height: 30px; }
.ico-imagen { width: 50px; height: 50px; border-radius: 7px; }


/* =========================================
   3. COMPONENTES REUTILIZABLES
   ========================================= */
/* Botones */
.btn {
    font-weight: 700;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    text-align: center;
    transition: var(--transition-ease);
    border: none;
    cursor: pointer;
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-cta { background-color: var(--color-action); color: #FFFFFF; }
.btn-cta:hover { 
    background-color: var(--color-action-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(76, 175, 80, 0.2);
}
.btn-full { width: 100%; padding: 1rem; }

/* =========================================
   4. HEADER / NAVBAR
   ========================================= */
header {
    background-color: var(--color-canvas);
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-logo { 
    font-size: 1.3rem; 
    font-weight: 700; 
    text-decoration: none;
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    font-family: var(--font-brand);
    color: var(--color-primary);
    transition: var(--transition-ease);
}

.brand-logo:hover { color: var(--color-primary-hover); }

nav ul { list-style: none; display: flex; gap: 2.5rem; align-items: center; }
nav a {
    text-decoration: none;
    color: var(--color-text-neutral);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-ease);
    position: relative;
    padding-bottom: 4px;
}
nav a:hover { color: var(--color-primary); }

.nav-item-active { 
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

/* =========================================
   5. SOLUCIÓN 1: HERO HÍBRIDO
   ========================================= */
.hero {
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)); /*
                url('https://via.placeholder.com/1920x1080?text=La+Casa+del+Movimiento') 
                center/cover no-repeat;*/
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 20px;
    color: #FFFFFF;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

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

.hero-title {
    font-family: var(--font-brand);
    font-size: 3.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #F5F5F3;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}
.hero .btn { margin-top: 1rem; }

/* =========================================
   6. SOLUCIÓN 2: CONTADORES ANIMADOS
   ========================================= */
.about-metrics { background-color: #FFFFFF; }

.metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.metric-card {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(158, 27, 34, 0.1);
    transition: var(--transition-ease);
}

.metric-number {
    font-family: var(--font-brand);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
}

.metric-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-neutral);
    margin-bottom: 0.75rem;
}

.metric-description {
    font-size: 0.95rem;
    color: var(--color-text-neutral);
    opacity: 0.75;
    line-height: 1.5;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-neutral);
    max-width: 800px; 
    margin: 4rem auto 0; 
    text-align: center;
}

/* =========================================
   7. SOLUCIÓN 3: MISIÓN/VISIÓN CON HOVER
   ========================================= */
.strategy-section { background-color: var(--color-canvas); }

.strategy-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.strategy-card {
    background: #FFFFFF;
    padding: 3rem 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(158, 27, 34, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: var(--transition-ease);
    position: relative;
    overflow: hidden;
}

.strategy-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary);
}

.strategy-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    transition: var(--transition-ease);
}

.mission-card:hover .strategy-icon,
.vision-card:hover .strategy-icon {
    transform: scale(1.15);
    animation: float 0.6s ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1.15); }
    50% { transform: translateY(-8px) scale(1.15); }
}

.strategy-heading {
    font-family: var(--font-ui);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.strategy-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-neutral);
}

/* =========================================
   8. SOLUCIÓN 4: UBICACIÓN PANTALLA DIVIDIDA
   ========================================= */
.location-section { background-color: #FFFFFF; }

.location-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.location-info { padding: 2rem 1rem; }
.location-info h3 {
    font-family: var(--font-brand);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-weight: 700;
}

.address {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text-neutral);
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.address strong { font-weight: 700; color: var(--color-primary); }

.location-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-neutral);
    opacity: 0.85;
}

.map-wrapper { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-medium); }
.map-container { width: 100%; height: 500px; border-radius: 8px; overflow: hidden; }
.map-container iframe { border: none; border-radius: 8px; }

/* =========================================
   9. SOLUCIÓN 5: MASONRY GRID
   ========================================= */
.gallery-section { background-color: var(--color-canvas); }

.events-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
    grid-auto-rows: 280px;
}

.event-title {
    font-family: var(--font-ui);
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.event-date {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.event-link {
    font-size: 0.95rem;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-ease);
    display: inline-block;
}
.event-link:hover { transform: translateX(4px); }

/* =========================================
   10. RESUMEN BOX (Mejorado)
   ========================================= */
.summary-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #FFFFFF;
    padding: 3rem;
    border-radius: 8px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow-medium);
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.summary-box h3 {
    font-family: var(--font-brand);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.summary-box p { font-size: 1.1rem; line-height: 1.7; opacity: 0.95; }

/* =========================================
   11. FOOTER
   ========================================= */
.footer {
    background-color: #333333;
    color: #FFFFFF;
    text-align: center;
    padding: 3rem 5%;
    margin-top: 5rem;
}
.footer h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.footer p { margin-bottom: 0.5rem; opacity: 0.9; }

/* ========================================
   SECCIÓN NOTICIAS: SOLUCIONES APLICADAS
   ======================================== */
.news-section { background-color: #FFFFFF; }

.news-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    background-color: transparent;
    color: var(--color-text-neutral);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-ease);
    border-radius: 4px;
    font-family: var(--font-ui);
}
.tab-button:hover {
    border-bottom-color: var(--color-accent);
    color: var(--color-primary);
}
.tab-active {
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.news-featured { display: flex; flex-direction: column; }
.news-sidebar-grid { display: flex; flex-direction: column; gap: 2rem; }

.news-card-featured {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(158, 27, 34, 0.08);
    transition: var(--transition-ease);
}
.news-card-featured .news-card-image { width: 100%; height: 380px; overflow: hidden; }
.news-card-featured .news-card-content { padding: 2.5rem; }

.news-card-compact {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(158, 27, 34, 0.08);
    display: flex;
    flex-direction: row;
    height: 150px;
    transition: var(--transition-ease);
}
.news-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary);
}

.news-card-image-small { width: 40%; height: 100%; overflow: hidden; flex-shrink: 0; }
.news-card-content-small {
    width: 60%;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: rgba(224, 167, 47, 0.15);
    border: 1px solid var(--color-accent);
    color: var(--color-text-neutral);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.news-badge-small { margin-bottom: 0.5rem; }

.news-card-title {
    font-family: var(--font-ui);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-text-neutral);
    margin-bottom: 1rem;
    line-height: 1.4;
}
.news-card-title-small {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-neutral);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-neutral);
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(158, 27, 34, 0.1);
}
.news-meta-small { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; }
.news-author { font-weight: 600; color: var(--color-primary); font-size: 0.95rem; }
.news-date {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
}

.news-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-ease);
    display: inline-block;
}
.news-link:hover { color: var(--color-primary-hover); transform: translateX(4px); }

.news-link-small {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition-ease);
    display: inline-block;
}
.news-link-small:hover { color: var(--color-primary-hover); transform: translateX(2px); }

.news-visible { display: block !important; animation: fadeInNews 0.4s ease; }
.news-hidden { display: none !important; }
@keyframes fadeInNews {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   SECCIÓN TALLERES
   ======================================== */
.workshops-section { background-color: var(--color-canvas); }

.workshops-hook {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 5rem;
    align-items: center;
    background: #FFFFFF;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.hook-content { display: flex; flex-direction: column; justify-content: center; }
.hook-title {
    font-family: var(--font-brand);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}
.hook-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-neutral);
    opacity: 0.85;
}
.hook-image { border-radius: 8px; overflow: hidden; height: 350px; }

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.workshop-card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(158, 27, 34, 0.08);
    transition: var(--transition-ease);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.workshop-card-image { width: 100%; height: 220px; overflow: hidden; flex-shrink: 0; }

.workshop-card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.workshop-card-title {
    font-family: var(--font-ui);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-neutral);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.workshop-card-description {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.btn-workshop-open {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.65rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: auto;
    align-self: flex-start;
    transition: var(--transition-ease);
}
.btn-workshop-open:hover {
    background-color: var(--color-primary);
    color: #FFFFFF;
    transform: translateX(4px);
}

.workshops-cta-banner {
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #FFFFFF;
    padding: 3.5rem 2rem;
    border-radius: 8px;
    max-width: 900px;
    margin: 3rem auto 0;
    box-shadow: var(--shadow-medium);
}
.workshops-cta-banner h3 { font-family: var(--font-brand); font-size: 2rem; margin-bottom: 1rem; font-weight: 700; }
.workshops-cta-banner p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.95; line-height: 1.6; }
.btn-large { padding: 1.2rem 3rem; font-size: 1rem; }

.workshop-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1000;
    animation: fadeInModal 0.3s ease;
}
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }

.workshop-modal-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.workshop-modal-content {
    position: relative;
    z-index: 1001;
    background: #FFFFFF;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    animation: slideInModal 0.4s ease;
}
@keyframes slideInModal { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.workshop-modal-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    width: 40px; height: 40px;
    background: var(--color-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    transition: var(--transition-ease);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.workshop-modal-close:hover { background: var(--color-primary-hover); transform: rotate(90deg); }

.workshop-bloque { padding: 3rem; border-bottom: 1px solid rgba(158, 27, 34, 0.1); }
.workshop-bloque:last-child { border-bottom: none; }
.workshop-bloque h3 {
    font-family: var(--font-ui);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-neutral);
    margin-bottom: 1.5rem;
}

.workshop-bloque-1 {
    background: linear-gradient(135deg, rgba(158, 27, 34, 0.05) 0%, rgba(224, 167, 47, 0.05) 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding-top: 0;
}
.bloque-1-image { height: 350px; border-radius: 8px; overflow: hidden; }
.bloque-1-content { display: flex; flex-direction: column; justify-content: center; }
.bloque-1-title {
    font-family: var(--font-brand);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.bloque-1-subtitle { font-size: 1.1rem; line-height: 1.7; color: var(--color-text-neutral); opacity: 0.85; }

.bloque-2-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.bloque-2-item {
    background: rgba(224, 167, 47, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
    display: flex; gap: 1rem; align-items: flex-start;
}
.bloque-2-icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 0.25rem; }
.bloque-2-text { font-size: 1rem; line-height: 1.6; color: var(--color-text-neutral); }

.bloque-3-instructor {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem; align-items: center;
    background: rgba(158, 27, 34, 0.08);
    padding: 2rem; border-radius: 8px;
}
.instructor-photo { width: 150px; height: 150px; border-radius: 8px; object-fit: cover; }
.instructor-info h4 {
    font-family: var(--font-ui);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}
.instructor-info p { font-size: 0.95rem; line-height: 1.6; color: var(--color-text-neutral); }

.workshop-bloque-4 p { font-size: 1rem; line-height: 1.8; color: var(--color-text-neutral); }

.workshop-bloque-5 {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(224, 167, 47, 0.05) 100%);
    display: flex; flex-direction: column; gap: 2rem;
}
.bloque-5-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.info-item { display: flex; flex-direction: column; gap: 0.5rem; }
.info-label { font-weight: 700; font-size: 0.85rem; color: var(--color-accent); text-transform: uppercase; }
.info-value { font-size: 1.2rem; font-weight: 600; color: var(--color-text-neutral); }
.btn-inscribirse { align-self: flex-start; }

/* ========================================
   SECCIÓN EVENTOS
   ======================================== */
.events-section { background-color: #FFFFFF; }

.events-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 5rem;
    align-items: start;
}

.events-agenda {
    background: var(--color-canvas);
    padding: 2rem; border-radius: 8px;
    border: 1px solid rgba(158, 27, 34, 0.1);
}
.agenda-title {
    font-family: var(--font-ui);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-neutral);
    margin-bottom: 1.5rem;
}
.agenda-list { display: flex; flex-direction: column; gap: 1rem; }
.agenda-item {
    display: grid;
    grid-template-columns: 70px 1fr 20px;
    gap: 1.25rem; padding: 1.25rem;
    background: #FFFFFF; border-radius: 6px;
    border: 2px solid transparent; cursor: pointer;
    transition: var(--transition-ease); align-items: center;
}
.agenda-item:hover { border-color: var(--color-accent); background: rgba(224, 167, 47, 0.08); }
.agenda-item-active {
    background: linear-gradient(135deg, rgba(158, 27, 34, 0.1) 0%, rgba(224, 167, 47, 0.1) 100%);
    border-color: var(--color-primary); font-weight: 600;
}
.agenda-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--color-primary); color: #FFFFFF;
    padding: 0.75rem; border-radius: 6px; text-align: center;
}
.agenda-day { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.agenda-month { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; margin-top: 0.25rem; }
.agenda-info h4 {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-neutral);
    margin-bottom: 0.35rem;
}
.agenda-time { font-size: 0.85rem; color: var(--color-accent); font-weight: 700; }
.agenda-arrow { color: var(--color-primary); opacity: 0; transition: var(--transition-ease); }
.agenda-item:hover .agenda-arrow, .agenda-item-active .agenda-arrow { opacity: 1; }

.featured-event-container { background: #FFFFFF; }
.featured-event {
    border-radius: 8px; overflow: hidden;
    box-shadow: var(--shadow-medium);
    animation: fadeInEvent 0.4s ease;
}
@keyframes fadeInEvent { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.event-featured-image { width: 100%; height: 320px; overflow: hidden; }
.event-featured-content { padding: 2.5rem; }
.event-featured-title {
    font-family: var(--font-ui);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text-neutral);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}
.event-featured-meta {
    display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem;
    padding-bottom: 1.5rem; border-bottom: 1px solid rgba(158, 27, 34, 0.1);
}
.event-meta-item { font-size: 0.95rem; font-weight: 500; color: var(--color-text-neutral); }
.event-featured-description {
    font-size: 1rem; line-height: 1.7; color: var(--color-text-neutral);
    opacity: 0.85; margin-bottom: 2rem;
}

.events-history { margin-top: 5rem; padding-top: 3rem; border-top: 2px solid var(--color-canvas); }
.history-title {
    font-family: var(--font-ui); font-size: 1.8rem;
    font-weight: 600; color: var(--color-text-neutral);
    margin-bottom: 0.5rem; text-align: center;
}
.history-subtitle {
    text-align: center; font-size: 1rem; color: var(--color-text-neutral);
    opacity: 0.7; margin-bottom: 3rem;
}

.events-masonry-history {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem; max-width: 1400px; margin: 0 auto; grid-auto-rows: 280px;
}

.history-card-title {
    font-family: var(--font-ui); font-size: 1.2rem;
    font-weight: 700; color: #FFFFFF; margin-bottom: 0.25rem; line-height: 1.3;
}
.history-card-date {
    font-size: 0.85rem; color: var(--color-accent);
    font-weight: 700; text-transform: uppercase;
}

/* ========================================
   SECCIÓN DE CONTACTO / LEADS
   ======================================== */
.leads-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #FFFFFF;
    padding: 3rem 2rem; 
    border-radius: 8px;
}
.leads-title {
    font-family: var(--font-brand);
    font-size: 2.2rem; font-weight: 700;
    text-align: center; margin-bottom: 0.75rem;
}
.leads-subtitle { text-align: center; font-size: 1.1rem; opacity: 0.95; margin-bottom: 3rem; }

.contact-form { max-width: 600px; margin: 0 auto; }
.form-group-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { grid-column: span 1; }
.form-group:last-of-type { grid-column: span 2; }

.form-group input, .form-group textarea {
    width: 100%; padding: 1rem; border: none; border-radius: 4px;
    font-family: var(--font-ui); font-size: 0.95rem; background-color: #FFFFFF;
    color: var(--color-text-neutral); transition: var(--transition-ease);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #CCCCCC; }
.form-group input:focus, .form-group textarea:focus {
    outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.btn-submit {
    width: 100%; padding: 1.1rem; margin-top: 1rem;
    background-color: var(--color-action); color: #FFFFFF; border: none;
    border-radius: 4px; font-weight: 700; font-size: 1rem; text-transform: uppercase;
    cursor: pointer; transition: var(--transition-ease);
}
.btn-submit:hover { background-color: var(--color-action-hover); transform: translateY(-2px); }
.form-disclaimer { text-align: center; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); margin-top: 1.5rem; }

/* ========================================
   FOOTER BANNER (Cierre)
   ======================================== */
.footer-banner { background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%); color: #FFFFFF; padding: 4rem 5%; text-align: center; }
.footer-banner-content { max-width: 900px; margin: 0 auto; }
.footer-banner-title { font-family: var(--font-brand); font-size: 2.8rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.footer-banner-text { font-size: 1.2rem; opacity: 0.85; line-height: 1.6; }

/* ========================================
   MEDIA QUERIES GLOBALES
   ======================================== */
@media (max-width: 1024px) {
    .strategy-container { grid-template-columns: 1fr; }
    .location-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .map-container { height: 400px; }
    .metrics-container { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
    .news-grid { grid-template-columns: 1fr; gap: 2rem; }
    .news-sidebar-grid { flex-direction: row; gap: 2rem; }
    .news-card-compact { flex: 1; }
    .workshops-hook { grid-template-columns: 1fr; gap: 2rem; }
    .hook-image { order: -1; }
    .workshops-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .workshop-bloque-1 { grid-template-columns: 1fr; }
    .bloque-3-instructor { grid-template-columns: 120px 1fr; gap: 1.5rem; }
    .instructor-photo { width: 120px; height: 120px; }
    .bloque-5-info { grid-template-columns: 1fr; }
    .events-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .featured-event { order: -1; }
    
    /* Regla Dry para las cards de span */
    .event-card-large, .event-history-card-large { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 768px) {
    header { flex-direction: column; gap: 1.5rem; padding: 1rem 5%; }
    nav ul { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
    nav a { font-size: 0.9rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
    .section-padding { padding: 3rem 5%; }
    .section-title { font-size: 1.8rem; }
    .metrics-container { grid-template-columns: 1fr; gap: 1.5rem; }
    .metric-number { font-size: 2.5rem; }
    .location-info { padding: 0; }
    .location-info h3 { font-size: 1.5rem; }
    .map-container { height: 350px; }
    .events-masonry { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .event-title { font-size: 1.1rem; }
    .btn { padding: 0.85rem 2rem; font-size: 0.9rem; }
    .news-tabs { gap: 0.5rem; }
    .tab-button { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
    .news-grid { grid-template-columns: 1fr; }
    .news-sidebar-grid { flex-direction: column; gap: 1.5rem; }
    .news-card-featured .news-card-image { height: 250px; }
    .news-card-featured .news-card-content { padding: 1.5rem; }
    .news-card-title { font-size: 1.3rem; }
    .news-excerpt { font-size: 0.95rem; margin-bottom: 1rem; }
    .news-meta { flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; padding-bottom: 1rem; }
    .news-card-compact { flex-direction: column; height: auto; }
    .news-card-image-small { width: 100%; height: 150px; }
    .news-card-content-small { width: 100%; padding: 1rem; }
    .news-card-title-small { font-size: 0.95rem; }
    .workshops-hook { padding: 2rem; }
    .hook-title { font-size: 1.8rem; }
    .hook-image { height: 250px; }
    .workshops-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .workshop-modal-content { width: 95%; max-height: 95vh; }
    .workshop-bloque { padding: 2rem; }
    .bloque-1-title { font-size: 1.5rem; }
    .bloque-1-image { height: 250px; }
    .bloque-3-instructor { grid-template-columns: 100px 1fr; gap: 1rem; padding: 1.5rem; }
    .instructor-photo { width: 100px; height: 100px; }
    .instructor-info h4 { font-size: 1.1rem; }
    .workshops-cta-banner { padding: 2.5rem 1.5rem; }
    .workshops-cta-banner h3 { font-size: 1.5rem; }
    .workshops-cta-banner p { font-size: 1rem; }
    .events-masonry-history { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-auto-rows: 220px; }
    .event-featured-title { font-size: 1.5rem; }
    .event-featured-meta { flex-wrap: wrap; }
    .form-group-wrapper { grid-template-columns: 1fr; }
    .form-group:last-of-type { grid-column: span 1; }
    .footer-banner-title { font-size: 2rem; }
    .leads-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .section-title { font-size: 1.5rem; margin-bottom: 2rem; }
    .metric-card { padding: 1.5rem; }
    .metric-number { font-size: 2rem; }
    .strategy-card { padding: 2rem 1.5rem; }
    nav ul { gap: 1rem; }
    .address { font-size: 1rem; }
    .location-info h3 { font-size: 1.3rem; }
    .map-container { height: 300px; }
    .event-title { font-size: 1rem; }
    .event-overlay { padding: 1rem; }
    .summary-box { padding: 2rem 1.5rem; }
    .summary-box h3 { font-size: 1.4rem; }
    .summary-box p { font-size: 1rem; }
    .news-card-featured .news-card-image { height: 200px; }
    .news-card-featured .news-card-content { padding: 1.25rem; }
    .news-card-title { font-size: 1.1rem; }
    .news-excerpt { display: none; }
    .news-card-compact { height: 120px; }
    .news-card-image-small { height: 120px; }
    .hook-title { font-size: 1.4rem; }
    .workshop-card-title { font-size: 1.1rem; }
    .bloque-2-items { grid-template-columns: 1fr; }
    .workshop-modal-close { width: 35px; height: 35px; font-size: 1.2rem; top: 1rem; right: 1rem; }
    .bloque-1-title { font-size: 1.3rem; }
    .workshop-bloque h3 { font-size: 1.2rem; }
    .agenda-item { grid-template-columns: 60px 1fr; gap: 1rem; padding: 1rem; }
    .agenda-arrow { display: none; }
    .event-featured-image { height: 250px; }
    .event-featured-content { padding: 1.5rem; }
    .event-featured-meta { font-size: 0.9rem; }
    .events-masonry-history { grid-template-columns: 1fr; grid-auto-rows: 180px; }
    .footer-banner { padding: 2.5rem 5%; }
    .footer-banner-title { font-size: 1.6rem; }
}

/* 13. UTILITIES & ANIMACIONES */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.no-scroll { overflow: hidden; }
html { scroll-behavior: smooth; }

/* =========================================
   14. OTROS COMPONENTES
   ========================================= */
.contact-card {
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    border: none;
    max-width: 650px;
    width: 100%;
    align-items: center;
}
.contact-title { font-family: var(--font-brand); color: var(--color-canvas); }

.btn-mail {
    border: 1px solid var(--color-primary); color: var(--color-primary);
    border-radius: 8px; padding: 8px 18px; font-weight: 600; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px; transition: var(--transition-ease);
}
.btn-mail:hover { background-color: var(--color-primary); box-shadow: var(--shadow-light); }

.text-mail { color: var(--color-canvas); transition: var(--transition-ease); }
.text-mail:hover { color: var(--color-canvas); }

.btn-whatsapp {
    background-color: var(--color-action); border-radius: 8px; padding: 8px 18px;
    font-weight: 600; text-decoration: none; display: inline-flex; align-items: center;
    gap: 8px; transition: var(--transition-ease);
}
.btn-whatsapp:hover { background-color: var(--color-action-hover); box-shadow: var(--shadow-medium); transform: translateY(-2px); }

.text-whatsapp { color: var(--color-action); transition: var(--transition-ease); }
.text-whatsapp:hover { color: var(--color-action-hover); }

@media (max-width: 767.98px) {
    .border-end-md {
        border-right: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        padding-bottom: 2rem; margin-bottom: 1.5rem;
    }
}
@media (min-width: 768px) { .border-end-md { border-right: 1px solid rgba(0,0,0,0.08) !important; } }

.news-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; }
.news-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.65); -webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px); }
.news-modal-container {
    position: relative; background: #ffffff; width: 90%; max-width: 800px;
    max-height: 90vh; border-radius: 12px; overflow-y: auto; padding: 30px;
    z-index: 1001; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.news-modal-close { position: absolute; top: 15px; right: 20px; background: transparent; border: none; font-size: 2rem; cursor: pointer; color: #666; }
.modal-news-title { font-size: 2rem; margin: 10px 0 5px 0; color: #111; }
.modal-news-date { font-size: 0.85rem; color: #777; margin-bottom: 20px; }
.modal-news-image img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 20px; }
.modal-news-resumen { font-size: 1.1rem; color: #444; line-height: 1.6; }
.modal-news-cuerpo { line-height: 1.8; color: #222; margin-top: 15px; white-space: pre-line; }

.author-footer-card {
    display: flex; align-items: center; gap: 15px; background: #f8f9fa;
    padding: 20px; border-radius: 10px; margin-top: 35px; border-left: 4px solid #333;
}
.author-avatar { width: 65px; height: 65px; border-radius: 50%; object-fit: cover; }
.author-info h4 { margin: 0 0 5px 0; font-size: 1.1rem; color: #111; }
.author-info p { margin: 0; font-size: 0.9rem; color: #555; line-height: 1.4; }

.btn-open-modal { background: none; border: none; cursor: pointer; padding: 0; font: inherit; }

.metric-card-link-event {
    text-decoration: none; 
    color: inherit;            
}
.metric-card-link {
    text-decoration: none; 
    color: inherit;        
    display: block;        
}
/* =========================================
   ESTRUCURA DEL FOOTER PRINCIPAL
   ========================================= */
.footer-site {
    background-color: #FAFAFA;
    color: var(--color-text-neutral);
    font-family: var(--font-ui);
    padding: 4rem 0 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 4rem;
}

.footer-site-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

/* Columna de Marca */
.footer-site-title {
    font-family: var(--font-brand);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.footer-site-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-site-address {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Títulos de sección */
.footer-site-heading {
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-neutral);
    margin-bottom: 1.25rem;
}

/* Listas de enlaces */
.footer-site-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-site-links li {
    margin-bottom: 0.6rem;
}

.footer-site-links a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-ease);
}

.footer-site-links a:hover {
    color: var(--color-primary-hover);
    transform: translateX(3px);
    display: inline-block;
}

/* Botones de contacto dentro del footer */
.footer-contact-item {
    margin-bottom: 0.8rem;
}

.footer-contact-item .btn {
    width: 100%;
    justify-content: center;
}

/* Redes */
.footer-social-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-social-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #EFEFEF;
    color: var(--color-text-neutral);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-ease);
}

.footer-social-links a:hover {
    background-color: var(--color-primary);
    color: #FFFFFF;
}

/* Barra inferior legales */
.footer-site-bottom {
    margin-top: 3.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.5rem 0;
    font-size: 0.85rem;
    background-color: #F0F0EE;
}

.footer-site-bottom-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.footer-legal-links a {
    color: var(--color-text-neutral);
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: var(--color-primary);
}

/* Ajustes Responsive */
@media (max-width: 768px) {
    .footer-site-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}
.btn .btn-cta{
    display: inline-block; 
    margin-top: 1.5rem;
}
.leads-section-register {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #FFFFFF;
    padding: 3rem 2rem; 
    border-radius: 8px;
}

.form-group-register{
    margin-bottom: 1.5rem; 
}
.taller-label {
    display:block; 
    font-weight:600; 
    margin-bottom:0.5rem;
}
.taller-selec{
    width:100%; 
    padding:0.8rem; 
    border-radius:6px; 
    border:1px solid #ccc; 
    font-size:1rem;
}

/* ========================================
   ESTILOS PARA PÁGINAS LEGALES
   (Términos de Uso / Aviso de Privacidad)
   Usa las variables ya definidas en styles.css
   ======================================== */


.legal-content {
    max-width: 850px;
    margin: 0 auto;
}

.legal-updated {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-neutral);
    opacity: 0.7;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.legal-content h2 {
    font-family: var(--font-ui);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(158, 27, 34, 0.1);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-neutral);
    margin-bottom: 1.2rem;
}

.legal-content ul {
    margin: 0 0 1.2rem 1.5rem;
}

.legal-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-neutral);
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--color-primary);
}

.legal-content a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.legal-content a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.legal-toc {
    background-color: var(--color-canvas);
    border: 1px solid rgba(158, 27, 34, 0.1);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
}

.legal-toc h3 {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-neutral);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-toc ol {
    margin-left: 1.2rem;
}

.legal-toc li {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.legal-toc a {
    color: var(--color-text-neutral);
    font-weight: 500;
}

.legal-toc a:hover {
    color: var(--color-primary);
}

.legal-contact-box {
    background: linear-gradient(135deg, rgba(158, 27, 34, 0.06) 0%, rgba(224, 167, 47, 0.06) 100%);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem 2rem;
    border-radius: 6px;
    margin-top: 2.5rem;
}

.legal-contact-box p {
    margin-bottom: 0.4rem;
}

.legal-contact-box p:last-child {
    margin-bottom: 0;
}

/* Links a Términos/Privacidad dentro del footer oscuro existente */
.footer-legal-links {
    margin-top: 0.5rem;
}


.footer-legal-links a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .legal-content h2 {
        font-size: 1.2rem;
    }

    .legal-toc,
    .legal-contact-box {
        padding: 1.25rem 1.5rem;
    }
}

.avatar-note{
    text-align: center; 
    margin-top: 0.4rem;
}

/* ============================================
   SECCIÓN DE EVENTOS - VISTA PÚBLICA
   ============================================ */
.events-section {
    padding: var(--spacing-lg) 0;
}

.events-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
}

.events-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Lado Izquierdo: Agenda */
.events-agenda {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.agenda-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.agenda-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-bg);
    cursor: pointer;
    transition: all 0.25s ease;
}

.agenda-item:hover {
    border-color: var(--color-primary);
    background-color: rgba(158, 27, 34, 0.03);
}

.agenda-item.agenda-item-active {
    border-color: var(--color-primary);
    background-color: rgba(158, 27, 34, 0.06);
    box-shadow: var(--shadow-sm);
}

.agenda-date {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    text-align: center;
    min-width: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agenda-day {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.agenda-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

.agenda-info {
    flex: 1;
}

.agenda-info h4 {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0.15rem;
}

.agenda-time {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.agenda-arrow {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Lado Derecho: Evento Destacado */
.featured-event-container {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.featured-event {
    display: flex;
    flex-direction: column;
}

.event-featured-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.event-featured-content {
    padding: var(--spacing-lg);
}

.event-featured-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.event-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.event-featured-description {
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

/* ============================================
ESPONSIVE MÓVILES (< 768px): PÍLDORAS HORIZONTALES
   ============================================ */
@media (max-width: 768px) {
    .events-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    /* Transformar la agenda en un carrusel/barra horizontal superior */
    .events-agenda {
        width: 100%;
        padding: 0.75rem;
        background: var(--color-white);
    }

    .agenda-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .agenda-list {
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    /* Cada tarjeta en móvil con tamaño justo y cómodo al tacto */
    .agenda-item {
        flex: 0 0 auto;
        width: 210px;
        scroll-snap-align: start;
        padding: 0.6rem;
    }

    .agenda-arrow {
        display: none; /* Ocultar flecha en móvil para ganar espacio */
    }

    .agenda-info h4 {
        font-size: 0.85rem;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .event-featured-image img {
        height: 220px;
    }

    .event-featured-content {
        padding: 1.25rem;
    }

    .event-featured-title {
        font-size: 1.4rem;
    }
}

/* --- Estilos personalizados para la vista de Inscripción --- */

/* Barra de resumen fija / compacta en la parte superior */
.summary-box-sticky {
    position: sticky;
    top: 1rem;
    z-index: 100;
    background: var(--color-canvas, #ffffff);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.summary-sticky-content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--color-primary, #222);
}

.summary-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

/* Contenedor general para alinear y centrar con coherencia */
.inscription-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Coherencia en los inputs y selects para que midan exactamente lo mismo */
.contact-form .form-group-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-primary, #000);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

/* Ajuste específico para la etiqueta del selector de taller */
.taller-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

/* ============================================
   CONTENEDOR DE SUBIDA DE ARCHIVOS PDF
   ============================================ */
.file-uploader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background-color: var(--color-bg, rgba(255, 255, 255, 0.95));
    border: 2px dashed var(--color-border, #cbd5e1);
    border-radius: var(--border-radius-lg, 12px);
    margin-top: 0.5rem;
    transition: all 0.25s ease;
}

.file-uploader-container:hover {
    border-color: var(--color-primary, #800000);
    background-color: #ffffff;
}

.file-preview-custom {
    width: 100%;
    max-width: 380px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.file-preview-custom.has-file {
    border-color: #22c55e;
    background-color: #f0fdf4;
}

.pdf-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.pdf-filename-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-neutral, #334155);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

/* ============================================
   RADIO BUTTONS Y CHECKBOXES COMPACTOS (Y RÁPIDOS)
   ============================================ */
.custom-checkbox-label,
.custom-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #FFFFFF;
    user-select: none;
    margin-right: 1.5rem;
}



/* Forzar tamaño cuadrado/circular pequeño y evitar que se estiren */
.custom-checkbox-input,
.custom-radio-input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.15);
    outline: none;
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    flex-shrink: 0;
    margin: 0;
}

/* Estilo para Radio Button */
.custom-radio-input {
    border-radius: 50%;
}

.custom-radio-input::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.15s ease-in-out;
    background-color: var(--color-accent, #E0A72F);
}

.custom-radio-input:checked {
    border-color: var(--color-accent, #E0A72F);
    background-color: rgba(224, 167, 47, 0.2);
}

.custom-radio-input:checked::before {
    transform: scale(1);
}

/* Estilo para Checkbox */
.custom-checkbox-input {
    border-radius: 4px;
}

.custom-checkbox-input::before {
    content: "";
    width: 8px;
    height: 4px;
    border-left: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    transform: scale(0) rotate(-45deg);
    transition: transform 0.15s ease-in-out;
    margin-top: -1px;
}

.custom-checkbox-input:checked {
    border-color: var(--color-accent, #E0A72F);
    background-color: var(--color-primary, #9E1B22);
}

.custom-checkbox-input:checked::before {
    transform: scale(1) rotate(-45deg);
}

.custom-checkbox-input:focus,
.custom-radio-input:focus {
    box-shadow: 0 0 0 2px rgba(224, 167, 47, 0.4);
}  


.workshop-modal.active {
    display: flex;
}

