/* Colores base */
:root {
    --naranja: #FE6106;
    --gris-oscuro: #4a4a4a;
    --gris-texto: #333333;
    --naranja-claro: #f7a94a;
    --azul: #0012A9;
    --borde-input: #c9c9c9;
    --azul-oscuro: #16375c;

}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background-color: #ffffff;
}

.top-bar {
    height: 8px;
    background-color: #1a1a1a;
    width: 100%;
}

.content-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 20px;

}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--gris-texto);
    margin-bottom: 40px;
}

.info-cards {
    border: 2px solid var(--naranja);
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    height: 25%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 25%;
    align-items: center;
    justify-content: flex-start;
}

.info-card-col {
    flex: 1 1 250px;
    max-width: 100%;
    display: ruby-text;
    box-sizing: border-box;
}

/* En pantallas grandes, forzar exactamente 4 columnas por fila */
@media (min-width: 992px) {
    .info-card-col {
        flex: 1 1 calc(25% - 20px);
        max-width: calc(25% - 20px);
    }
}

.info-card {
    border: 2px solid var(--naranja);
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    width: 25% !important;
    height: 25% !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.card-icon {
    font-size: 32px;
    color: var(--naranja);
    margin-bottom: 20px;
}

.card-text {
    font-size: 14px;
    color: var(--gris-texto);
    line-height: 1.5;
    margin: 0;
}

.form-header {
    margin-top: 20px;
}

.form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gris-texto);
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 17px !important;
    color: var(--gris-oscuro);
    margin-top: 0;
}

.form-subtitle-central {
    font-size: 16px !important;
    color: var(--gris-oscuro);
    margin-top: 0;
}

.form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.form-field-col {
    flex: 1 1 250px;
}

@media (min-width: 768px) {
    .form-field-col {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}




body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background-color: #ffffff;
}

.top-bar {
    height: 8px;
    background-color: #1a1a1a;
    width: 100%;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--gris-texto);
    margin-bottom: 40px;
}

.info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
    align-items: stretch;
}

.info-card-col {
    flex: 1 1 250px;
    max-width: 100%;
    display: flex;
    box-sizing: border-box;
}

/* En pantallas grandes, forzar exactamente 4 columnas por fila */
@media (min-width: 992px) {
    .info-card-col {
        flex: 1 1 calc(25% - 20px);
        max-width: calc(25% - 20px);
    }
}

.info-card {
    border: 2px solid var(--naranja);
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.card-icon {
    font-size: 32px;
    color: var(--naranja);
    margin-bottom: 20px;
}

.card-text {
    font-size: 14px;
    color: var(--gris-texto);
    line-height: 1.5;
    margin: 0;
}

.form-header {
    margin-top: 20px;
}

.form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gris-texto);
    margin-bottom: 6px;
}

.form-field-col {
    flex: 1 1 250px;
}

@media (min-width: 768px) {
    .form-field-col {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

.form-field-col-puntajes {
    flex: 1 1 250px;
}

@media (min-width: 768px) {
    .form-field-col-puntajes {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(15% - 20px);
    }
}

.form-field-col-puntaje-ranking {
    flex: 1 1 250px;
}



.form-field-full {
    width: 100%;
    margin-bottom: 20px;
}

/* Encabezado de paso (círculo numerado + título) */
.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0 30px 0;
}

.step-number {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--naranja-claro);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    font-size: 25px !important;
    font-weight: 700;
    color: var(--azul) !important;
    margin: 0;
    padding-left: 3% !important;
}

.step-body {
    padding-left: 0;
}

@media (min-width: 768px) {
    .step-body {
        padding-left: 15px !important;
    }
}

.field-label {
    display: block;
    font-size: 14px;
    color: var(--azul-oscuro);
    margin-bottom: 8px;
    font-weight: 400;
}

/* Inputs y selects de PrimeFaces */
.step-body .ui-inputtext,
.step-body .ui-selectonemenu {
    border: 1px solid var(--borde-input) !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    color: var(--gris-texto) !important;
    box-shadow: none !important;
}

.step-body .ui-selectonemenu .ui-selectonemenu-label {
    padding: 0 !important;
    line-height: 1.4;
}

/* Radio buttons en línea */
.radio-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.radio-inline .radio-label {
    margin-right: 20px;
    font-size: 14px;
    color: var(--gris-texto);
    cursor: pointer;
}

.step-body .ui-radiobutton .ui-radiobutton-box.ui-state-active {
    background-color: var(--naranja) !important;
    border-color: var(--naranja) !important;
}

/* Link "Saber más" */
.saber-mas-link {
    color: var(--naranja) !important;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    margin: 6px 0 4px 0;
}

.saber-mas-link:hover {
    text-decoration: underline;
}

/* Ícono de información circular junto a labels */
.field-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--azul-oscuro, #3255f9);
    border-radius: 50%;
    color: var(--azul-oscuro, #3255f9);
    font-size: 10px;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
    cursor: help;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1;
    flex-shrink: 0;
}

.field-label-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.field-label-row .field-label {
    margin-bottom: 0;
}

/* Tooltip de PrimeFaces con estilo propio (opcional) */
.ui-tooltip .ui-tooltip-text {
    background-color: #16375c !important;
    color: #ffffff !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
}

.banner-container {
    width: 100%;
    max-width: 100%;
    margin-bottom: 5%;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.img-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.toggle-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.toggle-fields-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24%;
    margin: 20px 0;
}

@media (max-width: 650px) {
    .toggle-fields-row {
        gap: 20px;
    }
}

.button-simular{
    background-color: #FE6106 !important;
    height: 50px;
    width: 200px;
}

.titulo-admision{
    color: #0012A9 !important;
    font-weight: bold !important;
    font-size: 50px !important;
    margin-bottom: 1% !important;
}


/*---------------------------------------------*/
/*--------------- ADAPTADO MOVIL -----------*/
/*-------------------------------------------*/

@media (max-width: 1025px) {
    .form-fields {
        flex-direction: column;
    }

    .form-field-col {
        max-width: calc(100% - 20px);
    }

    .input-puntajes {
        width: 50% !important;
    }

    .img-banner {
        width: 100%;
        height: auto;
    }

    .button-simular {
        background-color: #FE6106 !important;
        height: 50px;
        width: 100%;
    }

    .form-field-col {
        text-align: left;
    }

    .toggle-fields-row {
        gap: 20%;
    }
    .titulo-admision {
        text-align: center;
    }

    .form-subtitle-central {
        text-align: center;
        font-size: 20px !important;
    }


    .panelgroud-beca-estatal{
        width: 55%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .toggle-pill.ui-selectonebutton {
        width: 100% !important;
        max-width: 100% !important;
    }


@media (min-width: 768px) {
    .form-field-col-puntaje-ranking  {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(20% - 20px);
    }
}
}

/* --------------------------------------------- */
/* ------------------- FOOTER ------------------ */
/* --------------------------------------------- */

.site-footer {
    background-color: #0C54FF;
    color: #ffffff;
    margin-top: 60px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.footer-brand,
.footer-links,
.footer-contact {
    flex: 1;
    text-align: center;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.footer-brand p {
    color: #e5e5e5;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    max-width: 350px;
}

.footer-links h4,
.footer-contact h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 9px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--naranja);
}

.footer-contact p {
    color: #e5e5e5;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    padding: 18px 20px;
}

.footer-bottom p {
    color: #cccccc;
    font-size: 12px;
    margin: 0;
}

/* ----------- FOOTER EN MÓVIL ----------- */

@media (max-width: 768px) {

    .footer-container {
        flex-direction: column;
        gap: 30px;
        padding: 35px 20px;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-links,
    .footer-contact {
        width: 100%;
    }
}

/* Mantiene estable la distribución de beneficios en escritorio. */
@media screen and (min-width: 993px) {
    .toggle-fields-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }

    .toggle-fields-row > .toggle-field {
        min-width: 0;
    }

    .panelgroud-beca-estatal{
      text-align: center;
    }

}

.mensaje-beca-seccion {
    width: 100%;
    box-sizing: border-box;
}

.mensaje-beca-seccion .ui-message-error {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    margin-top: 12px !important;
}







