/* ==========================================================================
   ESTILOS ESPECÍFICOS - ESTATUTOS Y REGLAMENTO DEL CAMPEONATO ASECLARET 2026
   ========================================================================== */

/* Main wrapper offset para header fijo */
.main-content {
    min-height: calc(100vh - 110px);
    padding-top: 110px; /* Altura del header fijo */
    background-color: var(--background-color);
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 80px;
    }
}

/* --------------------------------------------------------------------------
   1. HERO SECTION
   -------------------------------------------------------------------------- */
.estatutos-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(27, 44, 76, 0.95) 0%, rgba(139, 30, 34, 0.92) 100%),
                radial-gradient(circle at 20% 50%, rgba(209, 163, 63, 0.15) 0%, transparent 50%);
    color: var(--white);
    padding: 5rem 2rem 4.5rem;
    text-align: center;
    border-bottom: 5px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.estatutos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 60%);
    pointer-events: none;
}

.estatutos-hero-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(209, 163, 63, 0.2);
    color: #ffd875;
    border: 1px solid rgba(209, 163, 63, 0.5);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-badge-pill svg {
    color: var(--accent-gold);
}

.estatutos-hero h1 {
    font-family: var(--title-font);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.estatutos-hero-lead {
    font-family: var(--body-font);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.92);
    max-width: 820px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.estatutos-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-hero-primary {
    background-color: var(--accent-gold);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(209, 163, 63, 0.4);
}

.btn-hero-primary:hover {
    background-color: #e5b448;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 163, 63, 0.6);
}

.btn-hero-secondary {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   2. HIGHLIGHT SUMMARY CARDS
   -------------------------------------------------------------------------- */
.estatutos-summary-section {
    padding: 3.5rem 1.5rem 2rem;
    margin-top: -2.5rem;
    position: relative;
    z-index: 10;
}

.estatutos-container {
    max-width: 1200px;
    margin: 0 auto;
}

.summary-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.summary-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    border-top: 4px solid var(--accent-gold);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
    border-top-color: var(--primary-color);
}

.summary-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(139, 30, 34, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.summary-card:hover .summary-card-icon {
    background: var(--primary-color);
    color: var(--white);
}

.summary-card-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: var(--accent-gold);
    margin-bottom: 0.35rem;
}

.summary-card h3 {
    font-family: var(--title-font);
    font-size: 1.35rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.summary-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* --------------------------------------------------------------------------
   3. DOWNLOAD BANNER (DESTACADO DIRECTO)
   -------------------------------------------------------------------------- */
.download-highlight-box {
    margin: 2.5rem 0 3.5rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #243960 100%);
    border-radius: 14px;
    padding: 2.2rem 2.5rem;
    color: var(--white);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(27, 44, 76, 0.2);
    border-left: 6px solid var(--accent-gold);
}

.download-highlight-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 280px;
}

.download-icon-circle {
    width: 64px;
    height: 64px;
    background: rgba(209, 163, 63, 0.2);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd875;
    flex-shrink: 0;
}

.download-highlight-text h3 {
    font-family: var(--title-font);
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
    color: var(--white);
}

.download-highlight-text p {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.download-file-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #ffd875;
    font-weight: 600;
}

.download-actions-group {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.btn-download-main {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    background-color: var(--accent-gold);
    color: var(--secondary-color);
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-download-main:hover {
    background-color: #e5b448;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.btn-download-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.4rem;
    background-color: transparent;
    color: var(--white);
    font-weight: 600;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-download-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   4. NAVIGATION & FILTER BAR (INTERACTIVA)
   -------------------------------------------------------------------------- */
.estatutos-controls {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.controls-top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.search-input-wrapper svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border: 2px solid #e2e2e2;
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 0.98rem;
    color: var(--neutral-dark);
    transition: var(--transition);
    background-color: #fafafa;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(139, 30, 34, 0.1);
}

.accordion-toggle-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-control-toggle {
    background: #f0ede5;
    border: 1px solid #ddd;
    padding: 0.65rem 1.1rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn-control-toggle:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* Chips de navegación por capítulo */
.chapter-pills-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.chapter-pills-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-right: 0.5rem;
}

.chapter-pill {
    background: #f7f7f7;
    color: var(--neutral-dark);
    border: 1px solid #e0e0e0;
    padding: 0.45rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.chapter-pill:hover,
.chapter-pill.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   5. CAPÍTULOS Y ACORDEONES DEL REGLAMENTO
   -------------------------------------------------------------------------- */
.estatutos-body-section {
    margin-bottom: 4rem;
}

.chapter-block {
    margin-bottom: 2rem;
    scroll-margin-top: 140px; /* Offset para el scroll cuando hay header fijo */
}

.chapter-header {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--transition);
}

.chapter-header:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.chapter-toggle-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    gap: 1rem;
    transition: var(--transition);
}

.chapter-toggle-trigger:hover {
    background-color: rgba(139, 30, 34, 0.02);
}

.chapter-title-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.chapter-num-badge {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--secondary-color);
    color: var(--accent-gold);
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(27, 44, 76, 0.2);
}

.chapter-header.is-open .chapter-num-badge {
    background: var(--primary-color);
    color: var(--white);
}

.chapter-title-text h2 {
    font-family: var(--title-font);
    font-size: 1.35rem;
    color: var(--secondary-color);
    margin-bottom: 0.2rem;
    transition: var(--transition);
}

.chapter-header.is-open .chapter-title-text h2 {
    color: var(--primary-color);
}

.chapter-title-text p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.chapter-arrow-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-dark);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.chapter-header.is-open .chapter-arrow-indicator {
    transform: rotate(180deg);
    background: var(--primary-color);
    color: var(--white);
}

/* Contenido colapsable */
.chapter-content-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fffdf9;
    border-top: 1px solid transparent;
}

.chapter-header.is-open .chapter-content-panel {
    max-height: 2500px;
    border-top-color: #eee;
}

.articles-list {
    padding: 1.5rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Artículo individual */
.article-item {
    background: var(--white);
    border-radius: 8px;
    padding: 1.35rem 1.5rem;
    border-left: 4px solid var(--accent-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.article-item:hover {
    border-left-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.article-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.article-title {
    font-family: var(--title-font);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.article-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    background: #f0f0f0;
    color: #555;
}

.article-tag.tag-importante {
    background: #fde8e9;
    color: var(--primary-color);
}

.article-tag.tag-disciplina {
    background: #fff4d9;
    color: #946800;
}

.article-tag.tag-puntaje {
    background: #e8f0fe;
    color: var(--secondary-color);
}

.article-text {
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--neutral-dark);
    margin-bottom: 0.5rem;
}

.article-text:last-child {
    margin-bottom: 0;
}

.article-bullets {
    margin: 0.75rem 0 0.5rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--neutral-dark);
}

.article-bullets li {
    margin-bottom: 0.4rem;
}

/* Callout dentro del artículo */
.article-callout {
    background: #fff8eb;
    border-left: 3px solid var(--accent-gold);
    padding: 0.85rem 1.15rem;
    border-radius: 0 6px 6px 0;
    margin-top: 0.85rem;
    font-size: 0.92rem;
    color: #634706;
}

/* --------------------------------------------------------------------------
   6. ZONA DE DESCARGAS COMPLEMENTARIAS
   -------------------------------------------------------------------------- */
.estatutos-downloads-section {
    background: var(--white);
    border-radius: 14px;
    padding: 3rem 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 4rem;
    border-top: 4px solid var(--primary-color);
}

.downloads-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.downloads-section-header h2 {
    font-family: var(--title-font);
    font-size: 2.1rem;
    color: var(--secondary-color);
    margin-bottom: 0.6rem;
}

.downloads-section-header p {
    font-size: 1.05rem;
    color: #666;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.download-card-doc {
    background: #faf8f5;
    border: 1px solid #e7e2d7;
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.download-card-doc:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-gold);
}

.doc-top {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.doc-badge-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: rgba(139, 30, 34, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-info h3 {
    font-family: var(--title-font);
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 0.35rem;
}

.doc-info p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.doc-meta-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.82rem;
    color: #777;
    margin-bottom: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e0dacf;
}

.doc-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.doc-action-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   7. CTA FINAL Y CONVIVENCIA
   -------------------------------------------------------------------------- */
.estatutos-callout-footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 14px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--white);
    margin-bottom: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.estatutos-callout-footer h2 {
    font-family: var(--title-font);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.estatutos-callout-footer p {
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.callout-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-gold {
    background-color: var(--accent-gold);
    color: var(--secondary-color);
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-cta-gold:hover {
    background-color: #e5b448;
    transform: translateY(-2px);
}

.btn-cta-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-cta-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

/* --------------------------------------------------------------------------
   8. MEDIA QUERIES RESPONSIVAS
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .download-highlight-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.75rem;
    }
    .download-actions-group {
        width: 100%;
    }
    .btn-download-main,
    .btn-download-outline {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .estatutos-hero {
        padding: 3.5rem 1.25rem 3rem;
    }
    .hero-badge-pill {
        font-size: 0.8rem;
    }
    .btn-hero {
        width: 100%;
        justify-content: center;
    }
    .chapter-toggle-trigger {
        padding: 1.25rem;
    }
    .chapter-num-badge {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .chapter-title-text h2 {
        font-size: 1.15rem;
    }
    .articles-list {
        padding: 1.25rem;
    }
    .article-item {
        padding: 1.15rem;
    }
    .estatutos-downloads-section {
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .controls-top-row {
        flex-direction: column;
        align-items: stretch;
    }
    .accordion-toggle-buttons {
        justify-content: stretch;
    }
    .btn-control-toggle {
        flex: 1;
        text-align: center;
    }
    .download-highlight-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
