/* --- Contenido Principal --- */
.content-detail {
    padding: 50px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.header-section {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.main-title {
    font-size: 2.8em;
    color: #1ab192;
    margin-bottom: 10px;
    font-weight: 700;
    padding-bottom: 20px;
    position: relative;
    text-shadow: none;
}

    .main-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background-color: #1ab192;
        border-radius: 2px;
    }

.subtitle {
    font-size: 1.3em;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

/* Alertas */
.alerta-cerrada {
    background-color: #fce4e4;
    color: #c0392b;
    border: 2px solid #c0392b;
    border-radius: 12px;
    padding: 20px;
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

    .alerta-cerrada i {
        margin-right: 10px;
        font-size: 1.2em;
    }

/* Información */
.info-section {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    border-top: 5px solid #1ab192;
}

.beca-logo-container {
    text-align: center;
    padding: 30px 20px;
    background-color: #f9f9f9;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

    .beca-logo-container:hover {
        border-color: #1ab192;
    }

.beca-logo-display {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    border-radius: 10px;
}

.beca-logo-text {
    margin-top: 20px;
}

.logo-title {
    color: #1ab192;
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 8px;
    line-height: 1.3;
}

.logo-subtext {
    font-size: 0.95em;
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.tipo-beca-display {
    font-size: 1em;
    font-weight: 700;
    color: #1ab192;
    margin: 15px 0;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #1ab192;
    border-radius: 8px;
}

.beca-fechas-inline {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

    .beca-fechas-inline p {
        margin: 0;
        line-height: 1.4;
        font-size: 0.9em;
        color: #555;
        flex: 1;
    }

    .beca-fechas-inline strong {
        color: #1ab192;
        display: block;
        font-size: 1.1em;
        margin-top: 5px;
    }

/* Descripción */
.description-text {
    padding: 20px 0;
}

    .description-text p {
        font-size: 1.1em;
        line-height: 1.8;
        margin-bottom: 25px;
        color: #555;
        text-align: justify;
    }

    .description-text h3 {
        color: #1ab192;
        font-size: 1.4em;
        margin-top: 30px;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .description-text ul {
        list-style: none;
        padding: 0;
        margin-bottom: 30px;
    }

        .description-text ul li {
            position: relative;
            padding-left: 35px;
            margin-bottom: 12px;
            font-size: 1.05em;
            line-height: 1.7;
            color: #555;
        }

            .description-text ul li:before {
                content: '\f00c';
                font-family: 'Font Awesome 5 Free';
                font-weight: 900;
                position: absolute;
                left: 0;
                top: 2px;
                color: #1ab192;
                font-size: 1em;
                width: 25px;
                height: 25px;
                border: 1px solid #1ab192;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                background-color: white;
            }

/* Botones */
.btn-tramite {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    background-color: #1ab192;
    color: white !important;
    padding: 18px 35px;
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 30px;
    transition: opacity 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    .btn-tramite:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }

    .btn-tramite i {
        font-size: 1.1em;
        pointer-events: none;
    }

.decorative-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: #f0f0f0;
    border-radius: 50%;
    top: -50px;
    right: -50px;
    z-index: 0;
    opacity: 0.5;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.header-section {
    animation: fadeInUp 0.8s ease;
}

.beca-logo-container {
    animation: slideInLeft 0.8s ease;
}

.description-text {
    animation: slideInRight 0.8s ease;
}

    .description-text ul li {
        opacity: 0;
        animation: fadeInUp 0.6s ease forwards;
    }

        .description-text ul li:nth-child(1) {
            animation-delay: 0.1s;
        }

        .description-text ul li:nth-child(2) {
            animation-delay: 0.2s;
        }

        .description-text ul li:nth-child(3) {
            animation-delay: 0.3s;
        }

        .description-text ul li:nth-child(4) {
            animation-delay: 0.4s;
        }

        .description-text ul li:nth-child(5) {
            animation-delay: 0.5s;
        }

/* Responsive */
@media (max-width: 1024px) {
    .info-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }

    .beca-logo-container {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    
    .content-detail {
        padding: 30px 15px;
    }

    .main-title {
        font-size: 2.2em;
    }

    .subtitle {
        font-size: 1.2em;
    }

    .info-section {
        padding: 25px 20px;
    }

    .description-text p {
        text-align: left;
    }

    .btn-tramite {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-container {
        padding: 8px;
    }

    .main-title {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .info-section {
        padding: 20px 15px;
    }

    .btn-tramite {
        padding: 16px 25px;
        font-size: 1.1em;
    }
}

.fechas-postulacion-container {
    display: none;
}
