/* ========================================
   ESTILOS ESPECÍFICOS PARA ADMISIÓN UNSM
   ======================================== */

/* Banner de Admisión */
.admision-banner {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #43A047 100%);
    padding: 40px 20px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.banner-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.banner-contact {
    font-size: 1rem;
    line-height: 1.6;
}

.banner-contact p {
    margin: 5px 0;
}

.banner-contact strong {
    font-weight: 600;
}

/* Contenedor Principal */
.admision-main {
    background-color: #f5f5f5;
    min-height: calc(100vh - 300px);
    padding: 30px 20px;
}

.admision-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar con Tabs */
.admision-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.tabs-menu {
    display: flex;
    flex-direction: column;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: white;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.tab-button:first-child {
    border-radius: 8px 8px 0 0;
}

.tab-button:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.tab-button:hover {
    background: linear-gradient(90deg, #f0f7f1 0%, white 100%);
    padding-left: 25px;
}

.tab-button.active {
    background: linear-gradient(90deg, #2E7D32 0%, #43A047 100%);
    color: white;
    font-weight: 600;
    border-left: 4px solid #1B5E20;
}

.tab-button.active .tab-icon {
    transform: scale(1.2);
}

.tab-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.tab-text {
    flex: 1;
}

/* Contenido Principal */
.admision-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.tab-content.active {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
    padding: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-wrapper {
    padding-right: 25px;
}

.content-wrapper h2 {
    color: #1B5E20;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #43A047;
    font-weight: 700;
}

.content-wrapper h3 {
    color: #2E7D32;
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-wrapper p {
    line-height: 1.8;
    color: #424242;
    margin-bottom: 15px;
    text-align: justify;
}

/* Sección de Proceso de Admisión */
.proceso-section h2 {
    text-align: center;
    line-height: 1.3;
}

.proceso-subtitle {
    display: block;
    font-size: 1.2rem;
    color: #555;
    font-weight: 400;
    margin-top: 8px;
}

/* Grid de Sedes */
.sedes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.sede-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.sede-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: #F5C518;
}

/* Estilos del header de la sede (collapsible) */
.sede-header {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    gap: 15px;
}

.sede-header:hover {
    background: #f9f9f9;
}

.sede-card.active .sede-header {
    background: #e8f5e9;
}

.sede-icon {
    flex-shrink: 0;
}

.sede-header-content {
    flex: 1;
    text-align: left;
}

.sede-card h3 {
    color: #1B5E20;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-transform: uppercase;
}

.sede-subtitle {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

.sede-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #2E7D32;
    transition: transform 0.3s ease;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sede-card.active .sede-toggle {
    transform: rotate(180deg);
}

.sede-toggle:hover {
    color: #1B5E20;
}

/* Contenido desplegable */
.sede-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
}

.sede-card.active .sede-content {
    max-height: 1000px;
    padding: 0 20px 20px 20px;
}

.carreras-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.carreras-list li {
    padding: 8px 10px;
    margin: 4px 0;
    background: #f9f9f9;
    border-left: 3px solid #43A047;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.2s ease;
    position: relative;
}

.carreras-list li:hover {
    background: #e8f5e9;
    padding-left: 15px;
}

/* Badge Nuevo */
.badge-nuevo {
    background: linear-gradient(135deg, #D32F2F, #E53935);
    color: white;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.3);
}

/* Widget de Postulación */
.postulacion-widget {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.postulacion-widget h3 {
    color: #1B5E20;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #43A047;
}

.postulacion-widget h4 {
    color: #2E7D32;
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.evento-container {
    margin-bottom: 25px;
}

.evento-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.evento-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.evento-fecha {
    background: linear-gradient(135deg, #D32F2F, #E53935);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    min-width: 60px;
}

.evento-nombre {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.btn-postula {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #D32F2F 0%, #E53935 50%, #EF5350 100%);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin: 25px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
    text-transform: uppercase;
}

.btn-postula:hover {
    background: linear-gradient(135deg, #B71C1C 0%, #C62828 50%, #D32F2F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(211, 47, 47, 0.5);
}

.contacto-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2E7D32;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.contacto-box p {
    margin: 10px 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.contacto-box strong {
    color: #1B5E20;
    font-weight: 600;
}

/* Listas de funciones/requisitos */
.requisitos-list,
.funciones-list {
    list-style: none;
    padding: 0;
}

.requisitos-list li,
.funciones-list li {
    padding: 12px 15px 12px 40px;
    margin: 10px 0;
    background: #f9f9f9;
    border-left: 4px solid #43A047;
    position: relative;
    line-height: 1.6;
    color: #333;
}

.requisitos-list li::before,
.funciones-list li::before {
    content: "✓";
    position: absolute;
    left: 15px;
    top: 12px;
    color: #2E7D32;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Información de sedes */
.info-sedes {
    display: grid;
    gap: 20px;
    margin-top: 25px;
}

.sede-detalle {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #43A047;
}

.sede-detalle h3 {
    color: #1B5E20;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.sede-detalle p {
    margin: 8px 0;
    color: #555;
}

/* Tabla de cronograma */
.cronograma-table {
    margin-top: 25px;
    overflow-x: auto;
}

.cronograma-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.cronograma-table thead {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    color: white;
}

.cronograma-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.cronograma-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.cronograma-table tbody tr:hover {
    background: #f0f7f1;
}

.cronograma-table tbody tr:last-child td {
    border-bottom: none;
}

/* Modalidades */
.modalidades-section {
    display: grid;
    gap: 20px;
    margin-top: 25px;
}

.modalidad-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #43A047;
    transition: all 0.3s ease;
}

.modalidad-item:hover {
    background: #e8f5e9;
    transform: translateX(5px);
}

.modalidad-item h3 {
    color: #1B5E20;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.modalidad-item p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Lista de documentos */
.documentos-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.documentos-list li {
    margin: 15px 0;
}

.documento-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #43A047;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.documento-link:hover {
    background: #e8f5e9;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doc-icon {
    font-size: 1.5rem;
}

.doc-nombre {
    flex: 1;
    font-weight: 500;
}

/* Preguntas frecuentes (FAQ) */
.faq-section {
    display: grid;
    gap: 20px;
    margin-top: 25px;
}

.faq-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #43A047;
}

.faq-item h3 {
    color: #1B5E20;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-item p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

/* Tabs sin widget lateral (sedes, requisitos, etc.) */
.tab-content#sedes,
.tab-content#requisitos,
.tab-content#cronograma,
.tab-content#modalidades,
.tab-content#reglamento,
.tab-content#preguntas {
    grid-template-columns: 1fr;
    padding: 40px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .admision-container {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }

    .tab-content.active {
        grid-template-columns: 1fr;
    }

    .postulacion-widget {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 992px) {
    .admision-container {
        grid-template-columns: 1fr;
    }

    .admision-sidebar {
        position: static;
    }

    .tabs-menu {
        flex-direction: row;
        overflow-x: auto;
        border-radius: 8px;
    }

    .tab-button {
        flex-direction: column;
        min-width: 120px;
        border-right: 1px solid #e0e0e0;
        border-bottom: none;
        padding: 15px 10px;
        text-align: center;
    }

    .tab-button:first-child {
        border-radius: 8px 0 0 8px;
    }

    .tab-button:last-child {
        border-right: none;
        border-radius: 0 8px 8px 0;
    }

    .tab-button.active {
        border-left: none;
        border-bottom: 4px solid #1B5E20;
    }

    .tab-icon {
        font-size: 1.5rem;
    }

    .tab-text {
        font-size: 0.8rem;
    }

    .sedes-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .banner-container h1 {
        font-size: 2rem;
    }

    .banner-contact {
        font-size: 0.9rem;
    }

    .admision-main {
        padding: 20px 15px;
    }

    .tab-content.active,
    .tab-content#sedes,
    .tab-content#requisitos,
    .tab-content#cronograma,
    .tab-content#modalidades,
    .tab-content#reglamento,
    .tab-content#preguntas {
        padding: 20px;
    }

    .content-wrapper {
        padding-right: 0;
    }

    .content-wrapper h2 {
        font-size: 1.5rem;
    }

    .sedes-grid {
        grid-template-columns: 1fr;
    }

    .btn-postula {
        font-size: 1rem;
        padding: 14px 20px;
    }

    .cronograma-table {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .banner-container h1 {
        font-size: 1.6rem;
    }

    .tabs-menu {
        flex-wrap: wrap;
    }

    .tab-button {
        min-width: calc(50% - 1px);
        border-radius: 0;
    }

    .content-wrapper h2 {
        font-size: 1.3rem;
    }

    .proceso-subtitle {
        font-size: 1rem;
    }
}
