/* =========================================================
   CICLO SUPERIOR
   Escuela Técnica N°1 - Chascomús
   ========================================================= */


/* =========================================================
   DESPLAZAMIENTO INICIAL
   ========================================================= */

.ciclo-offset-superior {
    height: 100px;
}


/* =========================================================
   TÍTULO PRINCIPAL
   ========================================================= */

.ciclo-superior-header {
    background: #ffffff;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.ciclo-superior-header h2 {
    color: #1e3a8a;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
}


/* =========================================================
   SECCIÓN ORIENTACIONES
   ========================================================= */

.ciclo-orientaciones-wrapper {
    background: linear-gradient(
        to bottom,
        #d5f7e9,
        #c9e8ff
    );

    padding: 3rem 1rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

.ciclo-orientaciones-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}


/* =========================================================
   TÍTULO ORIENTACIONES
   ========================================================= */

.orientaciones-title {
    color: #1e40af;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px #c7d2fe;
}


/* =========================================================
   TABS
   ========================================================= */

.tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.tabs-btn-group {
    display: flex;
    overflow: hidden;

    background: #ffffff;
    border-radius: 0.6rem;

    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.1);
}

.tab-button {
    border: none;
    padding: 0.75rem 1.5rem;

    background: #e5e7eb;
    color: #1e293b;

    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.tab-button:hover {
    background: #dbeafe;
}

.tab-button-active,
.tab-button:focus {
    background: #1e40af;
    color: #ffffff;
}


/* =========================================================
   CONTENIDO DE TABS
   ========================================================= */

.ciclo-content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    padding: 2rem;

    background: rgba(255, 255, 255, 0.45);
    border-radius: 1rem;

    box-shadow:
        0 4px 16px rgba(30, 64, 175, 0.12);

    backdrop-filter: blur(2px);
}

.tab-content {
    display: none;
    min-height: 450px;
}

.tab-content.active {
    display: block;
    animation: cicloTabFade 0.3s ease;
}

@keyframes cicloTabFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   CAJA DE ORIENTACIÓN
   ========================================================= */

.orientacion-box {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    background: #ffffff;
    border-radius: 1rem;

    padding: 2rem;

    box-shadow:
        0 6px 22px rgba(15, 23, 42, 0.1);
}


/* =========================================================
   DISTRIBUCIÓN IMAGEN + INFORMACIÓN
   ========================================================= */

.tab-flex-row {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.columna-imagen {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 1rem;
}

.tab-info-col {
    flex: 1;
    min-width: 0;
}


/* =========================================================
   IMÁGENES DE ORIENTACIÓN
   ========================================================= */

.orientacion-imagen {
    display: block;

    width: 100%;
    max-width: 500px;
    max-height: 550px;

    height: auto;

    object-fit: contain;

    margin: 0 auto;

    border-radius: 0.75rem;

    box-shadow:
        0 4px 20px rgba(30, 64, 175, 0.1);
}


/* =========================================================
   INFORMACIÓN
   ========================================================= */

.tab-title {
    color: #1e40af;

    font-size: 1.5rem;
    font-weight: 700;

    margin-bottom: 1rem;
}

.tab-desc {
    color: #334155;

    line-height: 1.6;

    margin-bottom: 1.5rem;
}


/* =========================================================
   PLAN DE ESTUDIOS
   ========================================================= */

.tab-plan {
    margin-bottom: 1.5rem;
}

.tab-plan-title {
    color: #1e293b;

    font-size: 1.125rem;
    font-weight: 700;

    margin-bottom: 0.75rem;
}

.tab-plan-list {
    list-style: none;

    padding: 0;
    margin: 0;
}

.tab-plan-item {
    display: flex;
    align-items: flex-start;

    gap: 0.5rem;

    margin-bottom: 0.55rem;

    color: #475569;
    line-height: 1.5;
}

.tab-plan-item span {
    color: #475569;
}

.tab-plan-icon {
    width: 1.25rem;
    height: 1.25rem;

    flex-shrink: 0;

    margin-top: 0.15rem;

    color: #22c55e;
}


/* =========================================================
   ACORDEONES
   ========================================================= */

.tab-accordion {
    display: flex;
    flex-direction: column;

    gap: 1rem;

    margin-top: 2rem;
}

.tab-accordion-btn {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 1rem;

    padding: 1rem 1.25rem;

    background: #f3f4f6;

    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;

    color: #222;

    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.tab-accordion-btn:hover,
.tab-accordion-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;

    box-shadow:
        0 6px 18px rgba(30, 64, 175, 0.15);
}

.tab-accordion-btn:focus {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.2);
}

.tab-accordion-title {
    flex: 1;
    text-align: left;
}

.tab-accordion-arrow {
    margin-left: auto;

    font-size: 1rem;

    transition: transform 0.2s ease;
}

.tab-accordion-btn.active .tab-accordion-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   ICONOS DE ACORDEÓN
   ========================================================= */

.tab-lab-icon,
.tab-gov-pc-icon {
    width: 1.75rem;
    height: 1.75rem;

    flex-shrink: 0;

    color: #2563eb;

    transition: color 0.2s ease;
}

.tab-accordion-btn.active .tab-lab-icon,
.tab-accordion-btn.active .tab-gov-pc-icon {
    color: #ffffff;
}


/* =========================================================
   CONTENIDO ACORDEÓN
   ========================================================= */

.tab-accordion-content {
    display: none;

    background: #ffffff;

    padding: 1rem 1.25rem 1.25rem 3.5rem;

    margin-top: -0.5rem;

    border: 1px solid #e5e7eb;
    border-top: none;

    border-radius: 0 0 0.75rem 0.75rem;

    color: #334155;

    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.08);

    animation: fadeInAccordion 0.25s ease;
}

.tab-accordion-content.active {
    display: block;
}

.tab-lab-title,
.tab-gov-pc-title {
    color: #1e40af;

    font-size: 1.05rem;
    font-weight: 700;

    margin-bottom: 0.5rem;
}

.tab-lab-desc,
.tab-gov-pc-desc {
    color: #475569;
    line-height: 1.5;
}

@keyframes fadeInAccordion {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   PLAN DE ESTUDIOS COMPLETO
   ========================================================= */

.ciclo-plan-wrapper {
    background: #f3f6fb;

    padding: 2.5rem 2rem;

    border-radius: 1rem;

    margin-bottom: 3rem;
}

.ciclo-plan-title {
    text-align: center;

    color: #1e3a8a;

    font-size: 1.5rem;
    font-weight: 700;

    margin-bottom: 2rem;
}


/* =========================================================
   TABLA
   ========================================================= */

.ciclo-plan-table-wrapper {
    width: 100%;

    overflow-x: auto;

    margin-top: 1rem;
    padding-bottom: 8px;

    border-radius: 0.75rem;

    -webkit-overflow-scrolling: touch;
}

.ciclo-plan-table-wrapper table {
    width: 100%;
    min-width: 750px;

    border-collapse: collapse;

    background: #ffffff;

    border-radius: 0.75rem;
    overflow: hidden;
}

.ciclo-plan-table-wrapper th,
.ciclo-plan-table-wrapper td {
    padding: 0.75rem;

    text-align: left;

    border-bottom: 1px solid #e5e7eb;

    font-size: 0.95rem;

    color: #1e293b;
}

.ciclo-plan-table-wrapper th {
    background: #dbeafe;

    color: #1e3a8a;

    font-weight: 700;
}

.ciclo-plan-table-wrapper tr:last-child td {
    border-bottom: none;
}


/* =========================================================
   CARDS DE DISEÑO CURRICULAR
   ========================================================= */

.ciclo-plan-cards {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1.25rem;

    margin-top: 1.5rem;
}

.ciclo-plan-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    background: #ffffff;

    padding: 1.75rem;

    border-radius: 0.75rem;

    border: 1px solid #d1d5db;

    box-shadow:
        0 2px 10px rgba(15, 23, 42, 0.06);
}

.ciclo-plan-card h4 {
    color: #1e40af;

    font-weight: 700;

    margin-bottom: 0.75rem;
}

.ciclo-plan-card p {
    color: #475569;

    margin-bottom: 1rem;
}

.ciclo-plan-card a {
    margin-top: auto;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .ciclo-offset-superior {
        height: 80px;
    }

    .ciclo-orientaciones-wrapper {
        padding: 1.5rem 0.75rem;
        margin-bottom: 2rem;
    }

    .ciclo-orientaciones-container {
        padding: 0.5rem 0;
    }

    .orientaciones-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .tabs-nav {
        margin-bottom: 1rem;
    }

    .tabs-btn-group {
        width: 100%;
    }

    .tab-button {
        flex: 1;

        padding: 0.7rem 0.8rem;

        font-size: 0.9rem;
    }

    .ciclo-content-wrapper {
        padding: 1rem;

        border-radius: 0.75rem;
    }

    .orientacion-box {
        padding: 1.2rem;
    }

    .tab-flex-row {
        flex-direction: column;
        gap: 1rem;
    }

    .columna-imagen {
        padding: 0.5rem;
    }

    .orientacion-imagen {
        width: 100%;
        max-width: 350px;
        max-height: 220px;

        object-fit: contain;
    }

    .tab-info-col {
        padding: 0;
    }

    .tab-title {
        font-size: 1.3rem;
    }

    .tab-desc {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .tab-plan-title {
        font-size: 1rem;
    }

    .tab-plan-item {
        font-size: 0.9rem;
    }

    .tab-accordion {
        margin-top: 1rem;
        gap: 0.75rem;
    }

    .tab-accordion-btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }

    .tab-accordion-content {
        padding: 0.9rem 1rem 1rem 1rem;
        font-size: 0.9rem;
    }

    .ciclo-plan-wrapper {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }

    .ciclo-plan-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .ciclo-plan-table-wrapper table {
        min-width: 650px;
    }

    .ciclo-plan-table-wrapper th,
    .ciclo-plan-table-wrapper td {
        padding: 0.55rem;
        font-size: 0.85rem;
    }

    .ciclo-plan-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ciclo-plan-card {
        padding: 1.2rem;
    }
}


/* =========================================================
   PANEL LATERAL / GALERÍA
   ========================================================= */

#panel-content {
    transition: transform 0.3s ease;
}

#panel-img {
    object-fit: cover;
}

#panel-title {
    color: #1e40af;
}


/* =========================================================
   PANEL RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    #panel-content {
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
    }

    #panel-img {
        object-fit: contain !important;
        height: 50vh !important;
    }

    #panel-title {
        font-size: 1.4rem !important;
    }
}