/* ===================================================================
   GOBIERNO ESCOLAR - ESTILOS INSTITUCIONALES UNIFICADOS
   Institución Educativa Antonio Ricaurte CASD
   =================================================================== */

:root {
    --green-deep: #0D3B0D;
    --green-dark: #0f6d2f;
    --green-mid: #1B5E20;
    --green-light: #2E7D32;
    --gold-deep: #B8860B;
    --gold: #D4A017;
    --gold-light: #F1C40F;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-400: #94A3B8;
    --gray-600: #64748B;
    --gray-800: #1E293B;
    --shadow-sm: 0 4px 12px rgba(13, 59, 13, 0.06);
    --shadow-md: 0 8px 24px rgba(13, 59, 13, 0.1);
    --shadow-lg: 0 16px 36px rgba(15, 109, 47, 0.14);
    --shadow-gold: 0 8px 30px rgba(212, 160, 23, 0.22);
}

html {
    scroll-behavior: smooth;
}

/* ===== BANNER HERO INSTITUCIONAL ===== */
.gob-banner {
    position: relative;
    min-height: 380px;
    background: linear-gradient(145deg, var(--green-deep) 0%, var(--green-dark) 55%, var(--green-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 65px 20px 55px;
    text-align: center;
}

.gob-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at 25% 45%, rgba(241, 196, 15, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(212, 160, 23, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.banner-gold-top {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-light), var(--gold), var(--gold-deep));
    background-size: 200% 100%;
    animation: goldShimmer 4s ease-in-out infinite;
    z-index: 3;
}

@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
}

.banner-shield {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(241, 196, 15, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.banner-shield i {
    font-size: 2.2rem;
    color: var(--green-deep);
}

.banner-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold-light);
    margin-bottom: 0.8rem;
}

.banner-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.banner-title .gold {
    color: var(--gold-light);
}

.banner-description {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.banner-gold-bottom {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.8;
    z-index: 3;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.gob-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--green-dark);
    background: rgba(15, 109, 47, 0.08);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    border: 1px solid rgba(15, 109, 47, 0.18);
    margin-bottom: 0.85rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3.8vw, 2.35rem);
    font-weight: 800;
    color: var(--green-dark);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.section-title .gold {
    color: var(--gold);
}

.section-subtitle {
    font-size: 1.02rem;
    color: var(--gray-600);
    max-width: 720px;
    margin: 0.6rem auto 0;
    line-height: 1.65;
}

/* ===== SECCIÓN MANUAL DE CONVIVENCIA INSTITUCIONAL ===== */
.definition-section {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.manual-header {
    text-align: center;
    margin-bottom: 2.8rem;
}

.manual-header .section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--green-dark);
    background: rgba(15, 109, 47, 0.08);
    padding: 0.45rem 1.4rem;
    border-radius: 50px;
    border: 1px solid rgba(15, 109, 47, 0.22);
    margin-bottom: 0.75rem;
}

.manual-header .section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 720px;
    margin: 0.6rem auto 0;
    line-height: 1.6;
}

.definition-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.6rem 2.8rem;
    border: 1px solid var(--gray-200);
    border-left: 6px solid #f1c40f;
    box-shadow: 0 10px 30px rgba(13, 59, 13, 0.07);
    max-width: 950px;
    margin: 2.8rem auto 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 1.8rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.definition-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.definition-icon-box {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 109, 47, 0.1), rgba(241, 196, 15, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-dark);
    font-size: 1.65rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.definition-text {
    flex: 1;
}

.definition-text p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #334155;
    margin: 0;
}

.definition-text strong {
    color: var(--green-dark);
    font-weight: 700;
}

/* ===== 2. TARJETAS DE INTEGRANTES (ESTILO ÁREAS) ===== */
.prof-section {
    margin-bottom: 4.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.prof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 32px;
    justify-content: center;
    margin: 2rem auto 0;
    width: 100%;
}

/* Tarjeta individual centrada para órganos unipersonales */
.prof-grid.single-member {
    grid-template-columns: minmax(280px, 360px);
    justify-content: center;
    margin: 2rem auto 0;
}

.prof-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 360px;
}

.prof-card:hover {
    border-color: var(--gold-light);
    box-shadow: 0 14px 34px rgba(15, 109, 47, 0.16);
    transform: translateY(-6px);
}

.prof-photo-wrap {
    position: relative;
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-200));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prof-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

.prof-card:hover .prof-photo {
    transform: scale(1.05);
}

.prof-photo-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 35%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent);
    pointer-events: none;
}

.prof-info {
    padding: 1.5rem 1.25rem 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    gap: 6px;
}

.prof-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--green-dark);
    line-height: 1.35;
    margin: 0;
}

.prof-role {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-deep);
    margin: 0;
}

/* ===== 3. COMPROMISOS GENERALES ===== */
.values-section {
    margin-top: 1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.value-card {
    background: var(--white);
    border-radius: 18px;
    padding: 2.2rem 1.8rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 0;
    background: linear-gradient(180deg, rgba(15, 109, 47, 0.04), transparent);
    transition: height 0.35s ease;
}

.value-card:hover {
    border-color: var(--gold-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.value-card:hover::before {
    height: 100%;
}

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 109, 47, 0.09), rgba(241, 196, 15, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.35s ease;
}

.value-card:hover .value-icon {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
}

.value-icon i {
    font-size: 1.55rem;
    color: var(--green-dark);
    transition: color 0.35s ease;
}

.value-card:hover .value-icon i {
    color: var(--gold-light);
}

.value-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--green-deep);
    margin-bottom: 0.65rem;
}

.value-card p {
    font-size: 0.94rem;
    color: var(--gray-600);
    line-height: 1.65;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .gob-banner {
        min-height: 330px;
        padding: 50px 15px 40px;
    }
    .banner-shield {
        width: 70px;
        height: 70px;
    }
    .banner-shield i {
        font-size: 1.8rem;
    }
    .gob-main {
        padding: 2.5rem 1rem 3.5rem;
    }
    .definition-card {
        padding: 1.8rem 1.4rem;
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
        text-align: center;
    }
    .definition-text p {
        font-size: 1rem;
        text-align: left;
    }
    .prof-section {
        align-items: center;
        text-align: center;
    }
    .prof-grid {
        grid-template-columns: minmax(0, 330px);
        max-width: 330px;
        margin: 2rem auto 0 !important;
        justify-content: center !important;
        width: 100%;
    }
    .prof-grid.single-member {
        grid-template-columns: minmax(0, 330px);
        max-width: 330px;
        margin: 2rem auto 0 !important;
        justify-content: center !important;
        width: 100%;
    }
    .prof-card {
        margin: 0 auto !important;
        width: 100%;
        max-width: 330px;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .prof-grid,
    .prof-grid.single-member {
        max-width: 100%;
        padding: 0 5px;
        margin: 1.5rem auto 0 !important;
        grid-template-columns: minmax(0, 320px);
    }
    .prof-card {
        max-width: 320px;
    }
}


/* ===== REPRESENTANTES POR GRADO (CONSEJO ESTUDIANTIL) ===== */
.rep-section {
    margin-bottom: 4.5rem;
}

.rep-search-bar-wrap {
    max-width: 620px;
    margin: 0 auto 2.2rem;
    position: relative;
}

.rep-search-input {
    width: 100%;
    padding: 13px 20px 13px 46px;
    border-radius: 50px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    font-size: 0.92rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-800);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.rep-search-input:focus {
    border-color: var(--green-dark);
    box-shadow: 0 0 0 4px rgba(15, 109, 47, 0.12);
}

.rep-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--green-dark);
    font-size: 1.05rem;
    pointer-events: none;
}

.rep-summary-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.rep-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.rep-pill.confirmed {
    color: var(--green-deep);
    border-color: rgba(15, 109, 47, 0.25);
    background: rgba(15, 109, 47, 0.05);
}

.rep-pill.pending {
    color: #b45309;
    border-color: rgba(217, 119, 6, 0.25);
    background: rgba(245, 158, 11, 0.05);
}

.grade-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.grade-group-card {
    background: var(--white);
    border-radius: 18px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grade-group-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 109, 47, 0.25);
}

.grade-group-header {
    background: linear-gradient(135deg, var(--green-deep), var(--green-dark));
    color: var(--white);
    padding: 13px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grade-group-header .header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.grade-group-header i {
    color: var(--gold-light);
}

.grade-group-header .grade-count-tag {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.18);
    padding: 3px 9px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.rep-rows-list {
    list-style: none;
    padding: 8px 12px;
    margin: 0;
}

.rep-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s ease;
    border-radius: 8px;
}

.rep-row:last-child {
    border-bottom: none;
}

.rep-row:hover {
    background: var(--gray-50);
}

.rep-name-col {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
}

.rep-status-icon {
    font-size: 0.95rem;
    flex-shrink: 0;
}

.rep-row.rep-confirmed .rep-status-icon {
    color: var(--green-dark);
}

.rep-row.rep-pending .rep-status-icon {
    color: #94a3b8;
}

.rep-name {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rep-row.rep-confirmed .rep-name {
    color: var(--green-deep);
    font-weight: 700;
}

.rep-row.rep-pending .rep-name {
    color: #64748b;
    font-style: italic;
    font-weight: 500;
}

.rep-tag-x {
    font-size: 0.78rem;
    color: #94a3b8;
    font-style: normal;
    margin-left: 4px;
}

.rep-divider {
    color: var(--gold);
    font-weight: 700;
    padding: 0 10px;
    opacity: 0.65;
    user-select: none;
    font-size: 1rem;
}

.rep-grade-col {
    flex-shrink: 0;
}

.rep-grade-badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(15, 109, 47, 0.08);
    color: var(--green-dark);
    border: 1px solid rgba(15, 109, 47, 0.16);
}

.rep-row.rep-confirmed .rep-grade-badge {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.18), rgba(212, 160, 23, 0.22));
    color: var(--green-deep);
    border-color: var(--gold);
}

@media (max-width: 768px) {
    .grade-groups-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== TABLA DE REPRESENTANTES POR GRADO ===== */
.rep-table-wrap {
    max-width: 680px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(13, 59, 13, 0.08);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.rep-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    text-align: left;
}

.rep-table thead {
    background: linear-gradient(135deg, #0D3B0D, #0f6d2f);
    color: #ffffff;
}

.rep-table th {
    padding: 16px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.rep-table th:last-child {
    text-align: right;
}

.rep-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.rep-table tbody tr:nth-child(even) {
    background: #fbfdfc;
}

.rep-table tbody tr:last-child {
    border-bottom: none;
}

.rep-table tbody tr:hover {
    background: rgba(15, 109, 47, 0.05);
}

.rep-table td {
    padding: 12px 24px;
    color: #1e293b;
    vertical-align: middle;
}

.rep-table td:first-child {
    font-weight: 600;
}

.rep-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: #0f6d2f;
}

@media (max-width: 600px) {
    .rep-table th, .rep-table td {
        padding: 10px 16px;
        font-size: 0.88rem;
    }
}
