@import url(root.css);


.back {
    z-index: 1;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 10px;
    left: 10px;
    background-color: var(--color-principal);
    gap: 10px;
    border-radius: 3px;
    padding: 10px 15px;
    color: var(--color-secundario-claro);
    transition: all 0.2s ease;
}

.back svg {
    width: 25px;
    height: 25px;
}

.back path {
    color: var(--color-secundario-claro);
}

.back:hover {
    color: var(--color-principal);
    background-color: var(--color-secundario-claro);
}

.back:hover svg path {
    color: var(--color-principal);
}

main {
    height: 100vh;
    display: flex;
    justify-content: space-between;
    background: var(--color-principal);
}

main .contact {
    position: relative;
    width: 50%;
    height: 100%;
    color: #fff;
    background: var(--color-principal);
    overflow: hidden;
    transition: all 0.2s ease;
}

main .students .contact-image {
    position: relative;
    background: url(/imagenes/frmEstudiantes.webp);
}

main .company .contact-image {
    background: url(/imagenes/frmEmpresas.webp);
}

main .contact .contact-image {
    height: 100%;
    background-position: center center;
    background-size: cover;
    overflow: hidden;
    transition: all 0.2s ease;
    filter: brightness(0.9);
}

main .students:hover .contact-image,
main .company:hover .contact-image {
    filter: brightness(1);
}

main .contact .contact-content {
    background-color: var(--color-opaco-principal);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 0 10px 10px;
    text-align: center;
}

main .contact .contact-content h2 {
    font-size: 1.7em;
    font-family: var(--fuente-secundaria);
    padding: 10px;
    border-bottom: 1px solid var(--color-secundario-claro);
}

main .contact .contact-content p {
    margin: 5px 0 25px;
    font-size: 0.9em;
    color: #e4e4e4;
    padding: 0 50px;
}

main .contact .contact-content .contact-button button {
    border: none;
    width: 200px;
    padding: 8px 0;
    background: var(--color-secundario-claro);
    color: var(--color-principal);
    font-family: var(--fuente-secundaria);
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

main .contact .contact-content .contact-button button:hover {
    background-color: var(--color-principal);
    color: var(--color-secundario-claro);
}

main .contact .contact-content .contact-button button:active {
    scale: 0.95;
}

@media (max-width: 1095px) {
    main {
        flex-direction: column;
        height: auto !important;
    }

    main .contact {
        width: 100%;
        height: 100vh;
        overflow: visible;
    }

    main .contact .contact-content {
        height: 100vh;
    }

    main .contact .contact-content p {
        padding: 0 0 15px;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-opaco-principal);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-panel {
    background-color: #fff;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transform: scale(0.85);
    transition: transform 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay.active .modal-panel {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    background: #fff;
    box-shadow: 0 0 2px var(--color-opaco-principal);
    border: none;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
    color: #333;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.modal-close:hover {
    transform: rotate(360deg);
    background: var(--color-principal);
    color: white;
}

.modal-body-custom {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.modal-form {
    flex: 1.4;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-form h2 {
    text-align: center;
    margin: 0 0 25px;
}

@media (min-width: 768px) {
    .modal-body-custom {
        flex-direction: row;
    }

    .modal-form {
        min-height: auto;
    }
}

/* Formulario Alumnos: Flujo vertical estándar (SIN Grid) */
#studentForm {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

/* Formulario Empresas: Grilla de 2 columnas en Escritorio */
#companyForm {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

/* ==========================================
   2. CONTENEDORES DE DATOS E INPUTS
   ========================================== */

/* Contenedor individual para cada par Label + Input */
.data-container {
    display: flex;
    flex-direction: column;
    gap: 12px !important;
    width: 100%;
}

/* Estilos compartidos de etiquetas */
label,
.data-container label {
    margin: 12px 0 0;
    font-size: 1em;
    letter-spacing: 0.5px;
    font-weight: 550;
}

/* Inputs de texto, teléfono y correo */
.data-container input[type="text"],
.data-container input[type="tel"],
.data-container input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.8em;
    border: none;
    background-color: #e4e4e4;
    border-radius: 1em;
    outline: none;
}

/* Textareas */
#studentForm textarea,
#companyForm textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 1em;
    border: 1px solid #c4c4c4;
    font-size: 14px;
    min-height: 110px;
    resize: vertical;
    outline: none;
}

/* Espaciados para títulos de secciones especificos */
#capacitacionesLabel,
#messageLabel {
    margin-bottom: 12px;
}

/* ==========================================
   3. REGLAS EXCLUSIVAS DE GRID (SOLO COMPANYFORM)
   ========================================== */

#companyForm .data-container:nth-child(7),
#companyForm textarea,
#companyForm>label,
#companyForm .accordion-container,
#companyForm button {
    grid-column: span 2;
}


/* ==========================================
   4. ACORDEÓN Y DESPLEGABLES (COMPARTIDO)
   ========================================== */

.accordion-container {
    width: 100%;
}

.accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #c4c4c4;
    border-radius: 1em;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.accordion-btn .instruction-text {
    margin: 0;
}

/* Rotación de la flecha */
.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.arrow.rotated {
    transform: rotate(90deg);
}

.accordion-content {
    display: none;
    width: 100%;
}

.accordion-content.active {
    display: block;
}

.option-list {
    margin: 6px 0 0;
    padding-bottom: 12px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e4e4e4;
    border-radius: 1em;
    overflow: hidden;
}

.option-list label {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-principal, #333);
}

.option-list label:hover {
    background-color: var(--color-secundario-claro);
}

.option-list input[type="radio"] {
    cursor: pointer;
    margin: 0 15px 0 0;
}

/* ==========================================
   5. CHECKBOXES (STUDENTFORM)
   ========================================== */

#studentForm label[for="charlas"],
#studentForm label[for="bolsaLaboral"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin: 20px 0;
}

#studentForm input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ==========================================
   6. BOTONES UNIFICADOS (VERDE WHATSAPP)
   ========================================== */

#studentButton,
#companyButton {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 550;
    color: #ffffff;
    background-color: #25D366;
    border: 0.5px solid #25D366;
    border-radius: 1em;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
}

#studentButton:hover,
#companyButton:hover {
    background-color: #23c960;
}

/* ==========================================
   7. ADAPTACIÓN RESPONSIVE (MÓVILES)
   ========================================== */

@media (max-width: 599px) {

    .modal-form {
        padding: 30px 0px;
    }

    #studentForm,
    #companyForm {
        padding: 10px;
    }

    #studentForm {
        display: flex;
        flex-direction: column;
        gap: 1em;
    }

    #studentForm label[for="charlas"],
    #studentForm label[for="bolsaLaboral"] {
        margin: 5px 0;
    }

    #companyForm {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    label,
    .data-container label {
        font-size: 0.95em;
    }

    .opcional {
        font-size: 0.9em;
    }
}

.data-container input {
    border: 1px solid #fff !important;
}

.data-container input:hover {
    background-color: #dadada;
    transition: all 0.2s ease;
}

.data-container input:focus {
    border: 1px solid var(--color-opaco-principal) !important;
    transition: all 0.2s ease;
}

/* Contenedor principal (Fondo oscuro transparente) */
.custom-modal-overlay {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000080;
    z-index: 11;
    justify-content: center;
    align-items: center;
}

/* Caja de la alerta */
.custom-modal-box {
    background-color: #ffffff;
    padding: 24px 30px;
    border-radius: 6px;
    box-shadow: 0 10px 25px #00000033;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: fadeIn 0.3s ease-out;
}

.custom-modal-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.custom-modal-box p {
    color: #333333;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Botón de Aceptar */
.custom-modal-box button {
    background-color: var(--color-principal);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 550;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-modal-box button:hover {
    background-color: var(--color-secundario-claro);
}

/* Animación sutil de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}