/**
 * ESTILOS MODERNOS PARA PÁGINAS DE CONTENIDO INFORMATIVO
 * Sistema consistente con estructura-modern.css
 */

/* ===========================
   CONTENEDOR DE CONTENIDO
   =========================== */

.content-page-modern {
    padding: 60px 0;
    background: #ffffff;
    min-height: calc(100vh - 200px); /* Asegurar altura mínima para footer */
}

@media (max-width: 767px) {
    .content-page-modern {
        padding: 40px 0;
    }
}

/* ===========================
   TIPOGRAFÍA Y TEXTOS
   =========================== */

.content-text-modern {
    max-width: 900px; /* Ancho óptimo para lectura */
    margin: 0 auto;
}

.content-text-modern h3 {
    font-family: "Source-B", "Source Sans Pro", sans-serif !important;
    font-size: 2rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 2rem;
    margin-top: 3rem;
    line-height: 1.3 !important;
    text-align: left !important;
    text-shadow: none !important;
}

.content-text-modern h3:first-child {
    margin-top: 0;
}

.content-text-modern h3.color-primary {
    color: #0ea5e9 !important;
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-text-modern h3.color-primary::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
    border-radius: 2px;
}

.content-text-modern h4.section-title-modern {
    font-family: "Source-B", "Source Sans Pro", sans-serif !important;
    font-size: 1.5rem !important; /* 24px - más pequeño que h3 */
    font-weight: 600 !important;
    color: #0ea5e9 !important;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3 !important;
    position: relative;
    display: inline-block;
    padding-bottom: 0.4rem;
}

.content-text-modern h4.section-title-modern::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
    border-radius: 2px;
}

.content-text-modern p {
    font-family: "Source", "Source Sans Pro", sans-serif;
    font-size: 1.0625rem; /* 17px */
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.content-text-modern p.italic {
    font-style: italic;
}

.content-text-modern p.text-primary {
    color: #0ea5e9;
    font-weight: 500;
}

.content-text-modern a {
    color: #0ea5e9;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.content-text-modern a:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* ===========================
   SECCIÓN DE CONTACTO
   =========================== */

.contact-info-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid #0ea5e9;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-info-modern p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-info-modern br + br {
    display: none; /* Eliminar espacios excesivos */
}

/* ===========================
   LISTAS MODERNAS
   =========================== */

.content-text-modern ul {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}

.content-text-modern ul li {
    font-family: "Source", "Source Sans Pro", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    text-align: justify;
}

.content-text-modern ul li::before {
    content: "•";
    color: #0ea5e9;
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Eliminar spans de bullets manuales */
.content-text-modern ul li span.azul {
    display: none;
}

/* ===========================
   SECCIONES CON ÉNFASIS
   =========================== */

.section-highlight-modern {
    margin: 3rem 0 2rem 0;
}

/* ===========================
   SUBSECCIONES
   =========================== */

.subsection-modern {
    margin: 2rem 0;
}

.subsection-title-modern {
    font-family: "Source-B", "Source Sans Pro", sans-serif;
    font-size: 1.25rem;
    color: #0ea5e9;
    font-weight: 600;
    margin-bottom: 1rem;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===========================
   JUNTA DIRECTIVA - CARDS
   =========================== */

.junta-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.junta-card-modern {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.junta-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.15);
    border-color: #0ea5e9;
}

.junta-avatar-modern {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0ea5e9;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.junta-name-modern {
    font-family: "Source-B", "Source Sans Pro", sans-serif !important;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.junta-role-modern {
    font-family: "Source-B", "Source Sans Pro", sans-serif;
    font-size: 1rem;
    color: #0ea5e9;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.junta-location-modern {
    font-family: "Source", "Source Sans Pro", sans-serif;
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.5;
}

/* Responsive para Junta */
@media (max-width: 991px) {
    .junta-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .junta-card-modern {
        padding: 1.5rem;
    }
    
    .junta-avatar-modern {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 767px) {
    .junta-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .junta-card-modern {
        padding: 1.25rem;
    }
    
    .junta-avatar-modern {
        width: 80px;
        height: 80px;
    }
    
    .junta-name-modern {
        font-size: 1.125rem;
    }
}

/* ===========================
   ESTATUTOS - ACORDEÓN
   =========================== */

.estatutos-intro-modern {
    margin-bottom: 2rem;
}

.estatutos-accordion-modern {
    margin: 2rem 0;
}

.accordion-item-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item-modern:hover {
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.accordion-header-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.accordion-header-modern:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-bottom-color: #0ea5e9;
}

.accordion-header-modern.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-bottom-color: #0284c7;
}

.accordion-title-modern {
    font-family: "Source-B", "Source Sans Pro", sans-serif !important;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.accordion-header-modern.active .accordion-title-modern {
    color: #ffffff;
}

.accordion-chapter-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    background: #0ea5e9;
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
}

.accordion-header-modern.active .accordion-chapter-number {
    background: rgba(255, 255, 255, 0.3);
}

.accordion-icon-modern {
    font-size: 1.25rem;
    color: #0ea5e9;
    transition: transform 0.3s ease;
}

.accordion-header-modern.active .accordion-icon-modern {
    transform: rotate(45deg);
    color: #ffffff;
}

.accordion-content-modern {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #ffffff;
}

.accordion-content-modern.active {
    max-height: 10000px;
}

.accordion-body-modern {
    padding: 2rem 1.5rem;
}

/* Estilos para contenido legal */
.estatutos-legal-text p {
    font-family: "Source", "Source Sans Pro", sans-serif !important;
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.estatutos-legal-text p.article-title {
    font-family: "Source-B", "Source Sans Pro", sans-serif !important;
    font-size: 1.0625rem;
    color: #0ea5e9;
    font-weight: 600;
    font-style: italic;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.estatutos-legal-text p strong {
    font-family: "Source-B", "Source Sans Pro", sans-serif !important;
    color: #1e293b;
}

.estatutos-legal-text ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.estatutos-legal-text ul li {
    font-family: "Source", "Source Sans Pro", sans-serif !important;
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    position: relative;
    text-align: justify;
}

.estatutos-legal-text ul li span.azul {
    position: absolute;
    left: 0;
    color: #0ea5e9;
    font-weight: 700;
    font-size: 1.1rem;
}

.estatutos-legal-text ul ul {
    margin-top: 1rem;
    margin-left: 1rem;
}

/* Responsive para Estatutos */
@media (max-width: 767px) {
    .accordion-header-modern {
        padding: 1rem;
    }
    
    .accordion-title-modern {
        font-size: 1rem;
    }
    
    .accordion-chapter-number {
        min-width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .accordion-body-modern {
        padding: 1.5rem 1rem;
    }
    
    .estatutos-legal-text p,
    .estatutos-legal-text ul li {
        font-size: 0.9375rem;
        text-align: left;
    }
    
    .estatutos-legal-text ul li {
        padding-left: 2rem;
    }
}

/* ===========================
   ANIMACIONES
   =========================== */

.content-page-modern.wow {
    visibility: hidden;
}

.content-page-modern.wow.fadeInUp {
    animation-name: fadeInUp;
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 991px) {
    .content-text-modern {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .content-text-modern h3 {
        font-size: 1.75rem;
    }
    
    .content-text-modern p,
    .content-text-modern ul li {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .content-text-modern {
        padding: 0 1rem;
    }
    
    .content-text-modern h3 {
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-info-modern {
        padding: 1rem 1.5rem;
    }
    
    .content-text-modern ul li {
        padding-left: 1.5rem;
        text-align: left;
    }
}

/* ===========================
   UTILIDADES
   =========================== */

.text-center-modern {
    text-align: center !important;
}

.mt-large-modern {
    margin-top: 4rem;
}

.mb-large-modern {
    margin-bottom: 4rem;
}
