/* Estilos para Área de Padres de Familia - Versión con Pestañas */

:root {
    --primary-blue: #193660;
    --secondary-blue: #2D4A73;
    --light-blue: #4A6FA5;
    --accent-blue: #E8F0FE;
    --primary-yellow: #FFD700;
    --dark-gray: #333;
    --light-gray: #F5F7FA;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 80px 0 50px;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2em;
    opacity: 0.95;
}

/* Tabs Navigation */
.tabs-wrapper {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 80px; /* Altura del header */
    z-index: 90; /* Menos que el header (100) */
    border-bottom: 3px solid var(--accent-blue);
    transition: top 0.3s ease;
}

/* Cuando el header está oculto, las tabs suben */
.header.hidden ~ * .tabs-wrapper,
body:has(.header.hidden) .tabs-wrapper {
    top: 0;
}

.tabs-navigation {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    flex: 1;
    min-width: 180px;
    padding: 20px 15px;
    background: white;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--dark-gray);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: var(--accent-blue);
    color: var(--primary-blue);
}

.tab-btn:hover svg {
    fill: var(--primary-blue);
}

.tab-btn.active {
    background: var(--accent-blue);
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-btn.active svg {
    fill: var(--primary-blue);
}

/* Tab Content */
.tabs-content-wrapper {
    min-height: 600px;
}

.tab-content {
    display: none;
    padding: 60px 0;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-section-title {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.2em;
    margin-bottom: 15px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--dark-gray);
    line-height: 1.8;
    font-size: 1.1em;
}

/* SIEWEB Tab Styles */
.sieweb-hero {
    text-align: center;
    background: linear-gradient(135deg, #4A6FA5 0%, #2D4A73 100%);
    padding: 60px 40px;
    border-radius: 20px;
    color: white;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(25, 54, 96, 0.3);
}

.sieweb-hero h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: white;
}

.sieweb-hero p {
    font-size: 1.3em;
    margin-bottom: 35px;
    opacity: 0.95;
}

.btn-sieweb-large {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary-yellow);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.2em;
    transition: all 0.3s ease;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-sieweb-large:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

.btn-manual {
    display: inline-block;
    padding: 15px 35px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    margin: 10px;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-manual:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
}

.sieweb-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.sieweb-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary-blue);
}

.sieweb-card h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.4em;
}

.sieweb-card ul {
    list-style: none;
    padding: 0;
}

.sieweb-card li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    color: var(--dark-gray);
}

.sieweb-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2em;
}

.alert-card {
    background: #FFF3CD;
    border-left: 6px solid #FFD700;
    border-top: none;
    grid-column: 1 / -1; /* Ocupa todo el ancho */
}

.alert-card h3 {
    color: #856404;
}

.alert-card p {
    color: #856404;
    margin: 0;
    line-height: 1.7;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-blue);
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.info-card h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.info-card p {
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.document-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.document-link:hover {
    background: var(--light-blue);
    transform: translateX(5px);
}

.document-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Document Sections */
.doc-section {
    margin-bottom: 60px;
}

.doc-section h3 {
    color: var(--primary-blue);
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-blue);
}

/* Vacantes Table */
.vacantes-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.table-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 25px;
    text-align: center;
}

.update-date {
    font-size: 1em;
    margin: 0;
    opacity: 0.95;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--primary-blue);
    color: white;
    padding: 18px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1em;
}

td {
    padding: 18px 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95em;
}

tbody tr:hover {
    background: var(--accent-blue);
}

tbody tr td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--primary-blue);
}

.vacantes-disponibles {
    color: #28a745;
    font-weight: 700;
    font-size: 1.1em;
}

.vacantes-agotadas {
    color: #dc3545;
    font-weight: 700;
    font-size: 1.1em;
}

.table-footer {
    padding: 20px;
    background: #f8f9fa;
    text-align: center;
}

.table-footer p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* Help Section */
.help-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 80px 0;
}

.help-content {
    text-align: center;
    color: white;
    max-width: 700px;
    margin: 0 auto;
}

.help-content h2 {
    color: var(--primary-yellow);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.help-content p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 35px;
}

.btn-contact {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary-yellow);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-contact:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

/* Footer Styles */
.footer {
    background: var(--primary-blue);
    color: white;
    padding: 40px 0 0;
}

.footer-main {
    padding-bottom: 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    color: var(--primary-yellow);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-column p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 968px) {
    .page-header {
        padding: 60px 0 40px;
        margin-top: 70px;
    }

    .page-header h1 {
        font-size: 2em;
    }

    .tabs-navigation {
        overflow-x: auto;
    }

    .tab-btn {
        min-width: 140px;
        padding: 15px 10px;
        font-size: 0.9em;
    }

    .tab-btn svg {
        width: 20px;
        height: 20px;
    }

    .tab-btn span {
        font-size: 0.85em;
    }

    .sieweb-hero h2 {
        font-size: 2em;
    }

    .sieweb-hero p {
        font-size: 1.1em;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .doc-section h3 {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8em;
    }

    .page-header p {
        font-size: 1em;
    }

    .tab-content {
        padding: 40px 0;
    }

    .tab-section-title {
        font-size: 1.8em;
    }

    .sieweb-hero {
        padding: 40px 25px;
    }

    .sieweb-hero h2 {
        font-size: 1.6em;
    }

    .btn-sieweb-large {
        padding: 15px 35px;
        font-size: 1em;
    }

    .sieweb-info-grid {
        grid-template-columns: 1fr;
    }

    .sieweb-card {
        padding: 25px;
    }

    .info-card {
        padding: 25px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    table {
        font-size: 0.85em;
    }

    th, td {
        padding: 12px 8px;
    }

    .help-content h2 {
        font-size: 2em;
    }

    .help-content p {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 50px 0 30px;
    }

    .page-header h1 {
        font-size: 1.5em;
    }

    .tab-btn {
        min-width: 120px;
        padding: 12px 8px;
        gap: 5px;
    }

    .tab-btn svg {
        width: 18px;
        height: 18px;
    }

    .tab-btn span {
        font-size: 0.8em;
    }

    .sieweb-hero h2 {
        font-size: 1.4em;
    }

    .sieweb-hero p {
        font-size: 1em;
    }

    .btn-sieweb-large,
    .btn-manual {
        display: block;
        margin: 10px auto;
        max-width: 280px;
    }

    .info-card h4 {
        font-size: 1.2em;
    }

    .document-link {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    table {
        font-size: 0.75em;
    }

    th, td {
        padding: 10px 5px;
    }

    .btn-contact {
        padding: 15px 35px;
        font-size: 1em;
    }
}