/* =========================================
   VARIABLES & RESET
========================================= */
:root {
    --eafit-black: #000000;
    --eafit-blue: #000066;
    --eafit-white: #ffffff;
    --text-dark: #1D1C1A;
    --text-gray: #4C4C4C;
    --eafit-yellow: #FFD500;
    --eafit-cyan: #00AEEF;
    --font-sys: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.bg-black { background-color: var(--eafit-black); }
.bg-blue { background-color: var(--eafit-blue); }
.bg-yellow { background-color: var(--eafit-yellow); }
.text-white { color: var(--eafit-white); }
.text-black { color: var(--eafit-black); }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sys);
    color: var(--text-dark);
    background-color: var(--eafit-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

/* =========================================
   HEADER / NAVEGACIÓN
========================================= */
.header-main {
    background-color: var(--eafit-white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logos img {
    height: 35px; 
}

button, .btn-light, .btn-outline-light, .btn-dark {
    font-family: var(--font-sys);
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-dark {
    background-color: var(--eafit-black);
    color: var(--eafit-white);
    border: 2px solid var(--eafit-black);
}

.btn-dark:hover {
    background-color: #333;
}

/* =========================================
   HERO SPLIT
========================================= */
.hero-split {
    background: linear-gradient(90deg, var(--eafit-black) 50%, var(--eafit-blue) 50%);
    display: flex;
    align-items: center; 
}

.hero-split .container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    position: relative;
}

.hero-left {
    color: var(--eafit-white);
    display: flex;
    align-items: center;
    width: 50%; 
    padding: 40px 40px 40px 0; 
}

.hero-content-left {
    width: 100%;
    max-width: 560px; 
    padding-right: 40px; 
}

.hero-left h1 {
    font-size: clamp(3rem, 4.5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-left p {
    font-size: 1rem;
    color: #a0a0a0;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-light {
    background-color: var(--eafit-white);
    color: var(--eafit-blue);
    border: 2px solid var(--eafit-white);
}

.btn-light span {
    margin-left: 8px;
}

.btn-outline-light {
    background-color: var(--eafit-black);
    color: var(--eafit-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    border-color: var(--eafit-white);
}

.hero-right {
    position: relative;
    display: flex;
    width: 50%; 
    align-items: flex-end;
    justify-content: center;
}

.typography-bg {
    position: absolute;
    top: 5%;
    left: 5%;
    z-index: 1;
    color: var(--eafit-white);
    font-size: clamp(6rem, 12vw, 15rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -5px;
}

.typo-line.indent {
    margin-left: 1em;
}

.hero-person {
    position: relative;
    z-index: 2;
    max-width: 85%;
    height: auto;
    display: block;
    margin-top: 3rem;
}

/* =========================================
   SECCIÓN: DEL MANDO OPERATIVO
========================================= */
.section-intro {
    padding: 40px 20px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.intro-title h2 {
    font-size: clamp(2.5rem, 3.5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1px;
}

.intro-desc p {
    font-size: 1rem;
    color: var(--text-gray);
    max-width: 500px;
}

.intro-methodology .methodology-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1px;
}

.tag-methodology {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-gray);
    margin-top: 10px;
}

h2.tag-methodology {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-gray);
    margin-top: 10px;
    text-transform: uppercase;
}

/* =========================================
   SECCIÓN: FEATURES / METODOLOGÍA
========================================= */
.features-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 55%;
}

.feature-box {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--eafit-white);
}

.feature-box h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.feature-icon {
    width: 50px;
    height: 50px;
}

.feature-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.feature-box p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* =========================================
   SECCIÓN: PROGRAMAS
========================================= */
.programas-section {
    padding: 80px 20px;
}

.section-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-gray);
    margin-bottom: 50px;
    text-transform: uppercase;
}

.card-subtitle {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

h2.section-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-gray);
    margin-bottom: 50px;
    text-transform: uppercase;
}

.programas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.programa-card {
    display: flex;
    flex-direction: column;
}
.card-link-wrapper {
    text-decoration: none !important;
    color: inherit; 
    display: flex; 
}

.programa-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.card-link-wrapper:hover .programa-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.card-big-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    text-align: center;
    padding: 20px 10px;
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1;
}

.programa-card img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.tag-programa {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.card-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.card-content p {
    font-size: 0.9rem;
    margin-bottom: 30px;
    line-height: 1.5;
    opacity: 0.85;
}

.card-content .btn-light,
.card-content .btn-dark {
    margin-top: auto;
    align-self: flex-start;
    font-size: 13px;
    padding: 10px 20px;
}

/* =========================================
   SECCIÓN: PLAN DE ESTUDIOS
========================================= */
.plan-estudios-section {
    padding: 0px 20px 40px;
}

.plan-header {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.plan-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-gray);
    min-width: 200px; 
    padding-top: 15px; 
}

h2.plan-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-gray);
    min-width: 200px;
    padding-top: 15px;
    text-transform: uppercase;
}

.plan-title {
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
}

.text-cyan {
    color: var(--eafit-cyan);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    gap: 40px;
    padding-top: 20px;
}

.timeline h4 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.fase-subtitle {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: inherit;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--eafit-black);
    z-index: 1;
}

.timeline-item {
    position: relative;
    padding-top: 30px; 
}

.timeline-marker {
    position: absolute;
    top: -5px; 
    left: 0;
    width: 12px;
    height: 12px;
    background-color: var(--eafit-black);
    z-index: 2;
}

.timeline-semanas {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-gray);
    display: block;
    margin-bottom: 10px;
}

.timeline h3 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.timeline p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* =========================================
   SECCIÓN: CTA FINAL
========================================= */
.cta-final {
    padding: 80px 20px;
}

.cta-heading {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0;
    line-height: 1.1;
}

.cta-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-wrapper h2 {
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0;
    line-height: 1.1;
}

.btn-light-solid {
    background-color: var(--eafit-white);
    color: var(--eafit-black);
    border: none;
    padding: 15px 35px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    white-space: nowrap; 
}

.btn-light-solid span {
    margin-left: 10px;
}

.btn-light-solid:hover {
    background-color: #e0e0e0;
}

/* =========================================
   SECCIÓN: INSCRIPCIÓN / FORMULARIO
========================================= */
.inscripcion-section {
    background-color: var(--eafit-white);
}

.inscripcion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Le da un poco más de espacio a la imagen */
    gap: 40px;
    align-items: end;
}

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

/* --- Tarjeta del Formulario --- */
.form-card {
    background-color: var(--eafit-black);
    color: var(--eafit-white);
    padding: 15px 30px; /* Aumentamos el padding para igualar el diseño */
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.form-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--eafit-white);
}

.form-subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: #cccccc;
    margin-bottom: 5px;
}

/* --- Contenedor de Inputs --- */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Separación uniforme entre campos */
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    /* Sobrescribimos el width: 98% en línea que tienes en el HTML para que queden alineados perfectos */
    width: 100% !important; 
    margin-bottom: 0 !important; 
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--eafit-white);
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 8px; /* Inputs más altos y estilizados */
    border-radius: 4px;
    border: 1px solid transparent;
    font-family: var(--font-sys);
    font-size: 0.8rem;
    background-color: #ffffff;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus {
    border-color: var(--eafit-yellow);
}

/* Ajuste específico para el select */
.form-group select {
    cursor: pointer;
    appearance: none; 
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1em;
}

/* --- Checkboxes (Términos y condiciones) --- */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    margin-top: 2px;
    width: 14px;
    height: 14px;
    accent-color: var(--eafit-yellow); /* Si el navegador lo soporta, el check se pinta amarillo */
    flex-shrink: 0;
}

.form-check span, .form-record {
    font-size: 0.7rem;
    color: #cccccc;
    line-height: 1.4;
}
.form-record{
    text-align: center;
    margin-top: 0.8rem;
}
.form-check span a {
    color: #ffffff;
    text-decoration: underline;
}

/* --- Botón Enviar --- */
.btn-submit {
    width: 100%;
    background-color: var(--eafit-yellow);
    color: var(--eafit-black);
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #e6c000;
}
/* =========================================
   POPUP / MODAL FORMULARIO
========================================= */
.form-check{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 11px;
}
#formulario-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    overflow-y: auto;
}

#formulario-popup .ContentForm {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
}

#formulario-popup .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--eafit-white);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

#formulario-popup .close:hover {
    color: var(--eafit-yellow);
}

/* =========================================
   FOOTER
========================================= */
.footer-main {
    background-color: var(--eafit-black);
    color: var(--eafit-white);
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; 
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 5px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none !important; 
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact img {
    width: 16px;
    height: 16px;
    margin-top: 3px;
}

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

.footer-bottom p {
    font-size: 0.8rem;
    font-weight: 700;
    color: #cccccc;
}

/* =========================================
   RESPONSIVE (Tablets max-width: 992px)
========================================= */
@media (max-width: 992px) {
    .hero-split {
        background: var(--eafit-black);
        padding-bottom: 40px;
    }
    .hero-split .container {
        flex-direction: column;
    }
    .hero-left {
        width: 100%;
        padding: 60px 20px;
        justify-content: center;
    }
    .hero-content-left {
        text-align: center;
        padding-right: 0;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-right {
        width: 100%;
        background-color: var(--eafit-blue); 
        min-height: 450px;
        padding-top: 40px; 
    }
    .typography-bg {
        font-size: clamp(6rem, 20vw, 10rem); 
    }
    .hero-person {
        max-width: 90%; 
        margin: 0 auto; 
    }
.inscripcion-grid {
        grid-template-columns: 1fr; 
    }
    .form-card {
        padding: 30px 20px;
        border-radius: 0px;

    }
    .footer-grid {
        grid-template-columns: 1fr; 
        gap: 40px;
        text-align: center; 
    }
    .footer-contact li {
        justify-content: center; 
    }
}

/* =========================================
   RESPONSIVE (Móviles max-width: 767px)
========================================= */
@media (max-width: 767px) {
    .inscripcion-imagen{
        display: none;
    }
    .intro-grid{
        grid-template-rows: 0fr 1fr !important;
        grid-template-columns: none;
    }
    .header-wrapper {
        flex-direction: row;
        justify-content: space-around;
        padding: 5px 0;
    }
    .logos {
        gap: 8px;
    }
    .logos img {
        height: 22px; 
    }
    .popup-trigger {
        padding: 8px 12px;
        font-size: 11px;
    }
    .hero-split {
        background: var(--eafit-black);
        min-height: 85vh; 
        position: relative;
        padding: 0;
        display: block;
        overflow: hidden; 
    }
    .hero-split::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 65%;
        height: 75%; 
        /* background-color: var(--eafit-blue); */
        z-index: 0;
    }
    .hero-split .container {
        display: block;
        position: static;
        height: 100%;
    }
    .hero-left {
        width: 100%;
        padding: 40px 20px 30px 20px;
        position: relative;
        z-index: 2; 
    }
    .hero-content-left {
        display: flex;
        flex-direction: column;
        min-height: 75vh; 
        text-align: left; 
    }
    .hero-left h1 {
        font-size: 3.2rem; 
        line-height: 1;
        margin-bottom: 20px;
    }
    .hero-left p {
        max-width: 55%; 
        margin-bottom: 0;
    }
    .hero-actions {
        margin-top: auto; 
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        padding-top: 100px; 
    }
    .btn-light, .btn-outline-light {
        font-size: 13px;
        padding: 12px 5px;
        width: 100%;
    }
    .hero-right {
        position: absolute;
        bottom: 80px; 
        right: -5%; 
        width: 85%;
        height: auto;
        background: transparent;
        z-index: 1; 
        display: block;
    }
    .typography-bg {
        display: none; 
    }
    .hero-person {
        width: 100%;
        height: auto;
        display: block;
    }
    .features-section {
        grid-template-columns: 1fr; 
    }
    .features-section{
        width: 90%;
    }
    .programas-grid {
        grid-template-columns: 1fr; 
        gap: 30px; 
    }
    .feature-box {
        padding: 40px 20px;
    }
    .plan-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 50px;
    }
    .plan-label {
        padding-top: 0;
        min-width: auto;
    }
    .timeline {
        grid-template-columns: 1fr;
        padding-left: 20px;
        padding-top: 0;
        gap: 40px;
    }
    .timeline-line {
        top: 0;
        bottom: 0; 
        left: 5px; 
        right: auto;
        width: 1px;
        height: 100%;
    }
    .timeline-item {
        padding-top: 0;
        padding-left: 30px; 
    }
    .timeline-marker {
        top: 5px; 
        left: -1px;
    }
    .cta-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .btn-light-solid {
        width: 100%;
    }
}