/* =========================================
   1. VARIABLES & FONTS
   ========================================= */
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans/PlusJakartaSans-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans/PlusJakartaSans-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans/PlusJakartaSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans/PlusJakartaSans-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans/PlusJakartaSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans/PlusJakartaSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans/PlusJakartaSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans/PlusJakartaSans-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans/PlusJakartaSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans/PlusJakartaSans-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans/PlusJakartaSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans/PlusJakartaSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans/PlusJakartaSans-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans/PlusJakartaSans-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}

:root {
    --color-1: #66cc00;
    --color-2: #ff9900;
    --color-3: #ff6633;

    --black: #000000;
    --white: #FFFFFF;
    --gray-1: #666666;
    --gray-2: #999999;
    --gray-3: #CCCCCC;

    --fs-h1: 48px;
    --fs-h2: 32px;
    --fs-p1: 20px;
    --fs-p2: 16px;
}

/* =========================================
   2. GLOBAL STYLES
   ========================================= */

/* Body & Resets */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--black);
    font-size: var(--fs-p1);
    font-weight: 400;
    line-height: normal;
}

a:not(.btn):not(.nav-link) {
    color: var(--color-1);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

a:not(.btn):not(.nav-link):hover {
    opacity: 0.6;
}

a:not(.btn):not(.nav-link):active,
a:not(.btn):not(.nav-link):focus {
    opacity: 0.4;
    outline: none;
}

/* Typography Utilities */
h1 {
    font-size: var(--fs-h1);
    line-height: 1.1;
}

h2 {
    font-size: var(--fs-h2);
    margin-bottom: 1.5rem;

}

h3 {
    font-size: var(--fs-p1);
}

.fs-h1 {
    font-size: var(--fs-h1);
    line-height: 1.1;
}

.fs-h2 {
    font-size: var(--fs-h2);
    line-height: 1.2;
}

.fs-p1 {
    font-size: var(--fs-p1);
    line-height: 1.5;
}

.fs-p2 {
    font-size: var(--fs-p2);
    line-height: 1.5;
}

/* Extra large text utilities for desktop, shrinking for mobile */
.fs-3rem {
    font-size: clamp(2rem, 5vw, 3rem) !important;
}

.fs-3-5rem {
    font-size: clamp(2.2rem, 6vw, 3.5rem) !important;
}

.fs-4rem {
    font-size: clamp(2.5rem, 7vw, 4rem) !important;
}

.fs-5rem {
    font-size: clamp(2.8rem, 8vw, 5rem) !important;
}

.fw-extrabold {
    font-weight: 800 !important;
}

/* Colors Utilities (Generic) */
.text-color-1 {
    color: var(--color-1) !important;
}

.text-color-2 {
    color: var(--color-2) !important;
}

.text-color-3 {
    color: var(--color-3) !important;
}

.text-black {
    color: var(--black) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-gray-1 {
    color: var(--gray-1) !important;
}

.text-gray-2 {
    color: var(--gray-2) !important;
}

.text-gray-3 {
    color: var(--gray-3) !important;
}

.line-height-1 {
    line-height: 1;
}

.text-gradient-1 {
    background: linear-gradient(90deg, var(--color-1) 0%, var(--color-2) 50%, var(--color-3) 85%);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-wrap {
    display: table;
    margin-left: auto;
    margin-right: auto;
}


.text-shadow {
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.68));
}

.text-shadow-white {
    filter: drop-shadow(2px 1px 0px rgba(255, 255, 255, 0.68));
}

.border-gradient-1 {
    position: relative;
    background: linear-gradient(to right, var(--color-1), var(--color-2), var(--color-3));
    border-radius: 30px;
    padding: 8px;
}

.bg-gradient-rounded-inner {
    background-color: var(--white);
    border-radius: 27px;
    /* Must be slightly smaller than the outer border-radius */
    height: 100%;
}

.bg-color-1 {
    background-color: var(--color-1);
}

.bg-color-2 {
    background-color: var(--color-2);
}

.bg-color-3 {
    background-color: var(--color-3);
}

.bg-black {
    background-color: var(--black);
}

.bg-white {
    background-color: var(--white);
}

.bg-gray-1 {
    background-color: var(--gray-1);
}

.bg-gray-2 {
    background-color: var(--gray-2);
}

.bg-gray-3 {
    background-color: var(--gray-3);
}

.bg-gradient-2 {
    background: linear-gradient(to bottom, var(--white), var(--gray-3));
}

.list-check-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}


/* Buttons */
.btn-pill {
    border-radius: 50px;
    padding: 10px 30px;
    transition: all 0.3s ease;
}

.btn-pill[class*="btn-color-"] {
    color: var(--white);
    border: none;
    transition: all 0.3s ease;
}

.btn-pill[class*="btn-color-"]:hover {
    opacity: 0.85;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-pill[class*="btn-color-"]:active,
.btn-pill[class*="btn-color-"]:focus {
    opacity: 0.75;
    color: var(--white) !important;
    transform: translateY(0);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn-color-1,
.btn-color-1:hover {
    background-color: var(--color-1);
}

.btn-color-2,
.btn-color-2:hover {
    background-color: var(--color-2);
}

.btn-color-3,
.btn-color-3:hover {
    background-color: var(--color-3);
}

.btn-color-gray-2,
.btn-color-gray-2:hover {
    background-color: var(--gray-2);
}

/* Fixed size menu buttons */
.btn-menu-fixed {
    width: 130px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.25rem 0.5rem !important;
    line-height: 1.2;
    white-space: normal;
}

@media (min-width: 992px) {
    .btn-menu-fixed {
        width: 190px;
        height: 54px;
        font-size: var(--fs-p1);
    }
}

/* List Separated */
.list-separated {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

@media (min-width: 768px) {
    .list-separated {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }

    .list-separated li:not(:last-child)::after {
        content: "|";
        margin-left: 1rem;
        margin-right: 0.5rem;
        color: inherit;
        opacity: 0.5;
    }
}

/* Common Layout Utils */
.section-padding {
    padding: 40px 0;
}

.rounded-box-white {
    background-color: var(--white);
    border-radius: 30px;
    padding: 60px 40px;
}

.list-separated .list-inline-item:not(:last-child)::after {
    content: "|";
    margin-left: 1rem;
    margin-right: 0.5rem;
    color: var(--black);
    opacity: 0.5;
}

/* =========================================
   3. SECTIONS (Ordered by home.php)
   ========================================= */

/* Navbar */
.navbar {
    background-color: var(--black);
    padding: 1rem 0;
}

.navbar-brand img {
    height: 70px;
}

.nav-link {
    color: var(--white);
    margin-right: 15px;
    transition: opacity 0.3s ease;
}

.nav-link:not(.btn):hover {
    opacity: 0.8;
}

.nav-link:not(.btn):active,
.nav-link:not(.btn):focus {
    opacity: 0.6;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    /* Adjust height based on needs, previously was aspect-ratio */
    color: var(--white);
    padding: 100px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Dark overlay to improve text readability */
    z-index: 1;
}

.hero-section>.container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.btn-hero-cta {
    width: 90%;
}

/* Impact Section Background */
.bg-impact-section {
    background-image: url('../../images/backgrounds/bg_2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Problemas (Features) */
.feature-card {
    background: var(--white);
    border: 5px solid var(--gray-1);
    border-radius: 50px;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s;
}

.feature-card:hover,
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.bg-purple-bar {
    background-color: var(--black);
    color: white;
    padding: 35px 0;
    text-align: center;
}

/* Module Carousel */
.scrolling-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.scrolling-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.scrolling-wrapper>[class*="col-"] {
    white-space: normal;
    display: inline-block;
    float: none;
    vertical-align: top;
}

.module-carousel-wrapper {
    position: relative;
}

.carousel-control-prev-custom,
.carousel-control-next-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.carousel-control-prev-custom {
    left: 10px;
}

.carousel-control-next-custom {
    right: 10px;
}

.carousel-control-prev-custom i,
.carousel-control-next-custom i {
    font-size: 18px;
    color: var(--color-1);
    transition: color 0.3s ease;
}

.carousel-control-prev-custom:hover i,
.carousel-control-next-custom:hover i {
    color: var(--white);
}

.carousel-control-prev-custom:hover,
.carousel-control-next-custom:hover {
    background: var(--color-1);
}

.carousel-control-prev-custom:hover img,
.carousel-control-next-custom:hover img {
    filter: brightness(0) invert(1);
}

.carousel-control-prev-custom.disabled,
.carousel-control-next-custom.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* .carousel-dots-container removed */
/* .carousel-dot removed */
/* .carousel-dot.active removed */

.module-carousel-card {
    min-width: 280px;
    white-space: normal;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.module-carousel-card:hover {
    transform: translateY(-5px);
}

.module-title {
    background: linear-gradient(to right, var(--color-1), var(--color-2), var(--color-3));
    color: var(--white);
    display: inline-block;
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 15px;
    padding: 8px 16px;
}

.module-header-strip {
    border-radius: 50px;
    color: var(--white);
    margin: -25px 0px 15px 0px;
    height: 50px;
    text-align: center;
}

.module-header-strip span {
    line-height: normal;
}

.module-carousel-card .card-text {
    text-align: left;
}

.module-carousel-card .card-footer {
    align-items: center;
    background-color: var(--white);
    border: 0;
    display: flex;
    font-size: var(--fs-p2);
    font-weight: 800;
    justify-content: space-between;
    padding: 1rem;
    width: 100%;
}

.module-card-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.module-meta-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 0.5rem;
}

.methodology-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
}

/* Methodology Section */
.methodology-section {
    background-image: url('../../images/backgrounds/bg_5.webp');
    background-color: var(--black);
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    padding: 120px 60px;
    border-radius: 1.5rem;
    color: var(--white);
}

/* Mentors Section */
.mentor-img-container {
    /* width: auto;
    height: 250px; */
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.mentor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mentor-logo {
    width: 250px;
    height: auto;
    object-fit: contain;
    max-width: 100%;
}

.mentor_name {
    font-weight: 800;
    margin: 0;
    min-height: 1.2em;
    font-size: 1.2rem;
}

.mentor_cargo {
    color: var(--gray-1);
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 5px;
    min-height: 2.4em;
    /* Preserva espacio para 2 líneas y mantiene alineación */
    display: flex;
    align-items: center;
    justify-content: center;
}

.mentor_emp {
    color: var(--color-3);
    font-size: 1rem;
    line-height: 1.2;
    position: relative;
    padding-bottom: 10px;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mentor_emp::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background-color: var(--color-1);
}

/* Finalizar Programa */
.program-card {
    background: var(--black);
    border-radius: 50px;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s;
}

/* Requirements & Areas Section */
.bg-requirements {
    position: relative;
    background-color: var(--black);
}

/* Programas Section */
.bg-program-card {
    background-color: var(--color-1);
}

.program-card {
    transition: transform 0.3s ease;
    color: var(--white);
    border-radius: 2rem !important;
}

.program-card-img-container {
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
    margin-bottom: -1.5rem !important;
    margin-top: auto;
}

.program-card-title {
    min-height: 2.5em;
}

.program-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.program-card:hover {
    transform: translateY(-5px);
}

/* Footer Section */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.logo-box {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 100%;
}

.footer-logo {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.footer-logo-title {
    color: var(--white);
    font-size: var(--fs-p2);
    display: block;
}

.footer-logos {
    margin-bottom: 2rem;
}

.footer-logos .footer-label {
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.2;
}

.footer-logos .logo-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logos .footer-logo-img {
    height: 80px;
    /* Tamaño de los logos (se puede achicar o agrandar aquí) */
    width: auto;
    object-fit: contain;
}

.footer-logos .corfo {
    height: 70px;
}

/* Footer logos: móvil */
@media (max-width: 767px) {
    .footer-logos [class*="col-"] {
        text-align: center !important;
    }

    .footer-logos .footer-label {
        text-align: center;
    }

    .footer-logos .logo-group {
        justify-content: center;
        gap: 20px;
    }

    .footer-logos .footer-logo-img {
        height: 50px;
        /* Logos más pequeños en móvil */
    }
}

/* =========================================
   4. MEDIA QUERIES
   ========================================= */

@media (min-width: 992px) {

    /* Hero Section */
    .btn-hero-cta {
        width: 85%;
    }

    /* Footer Section (Desktop Grid) */
    .col-custom-1 {
        flex: 0 0 12.5%;
        max-width: 12.5%;
    }

    .col-custom-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-custom-3 {
        flex: 0 0 37.5%;
        max-width: 37.5%;
    }
}

@media (max-width: 991px) {

    .footer-logos-container .footer-logo-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }

    .footer-logo-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    /* Navbar Mobile Adjustments */
    .navbar-brand img {
        height: 30px;
    }

    .navbar .btn-pill.d-lg-none {
        padding: 8px 20px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    :root {
        --fs-h1: 32px;
        --fs-h2: 24px;
        --fs-p1: 16px;
        --fs-p2: 14px;
    }

    /* Methodology Section (Mobile) */
    .methodology-section {
        padding: 30px;
        background-size: cover;
    }

    /* Problemas Section (Mobile) */
    .rounded-box-white h2 {
        font-size: var(--fs-h1);
    }

    .feature-card p:first-child {
        font-size: var(--fs-h2);
        line-height: 1.2;
    }

    /* Mobile Carousel for Programas */
    .mobile-carousel-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        margin-right: -0.75rem;
        /* Align with container padding somewhat */
    }

    .mobile-carousel-row::-webkit-scrollbar {
        height: 0px;
        /* Hide scrollbar or style it */
        background: transparent;
    }

    .module-carousel-card .card-footer {
        font-size: 0.8rem;
    }

    .carousel-control-prev-custom,
    .carousel-control-next-custom {
        width: 35px;
        height: 35px;
    }

    .carousel-control-prev-custom {
        left: 5px;
    }

    .carousel-control-next-custom {
        right: 5px;
    }

    .carousel-control-prev-custom i,
    .carousel-control-next-custom i {
        font-size: 14px;
    }

    .mentor-img {
        height: 100%;
    }
}

/* =========================================
   5. UNUSED / DEPRECATED STYLES
   ========================================= */

.text-justify {
    text-align: justify;
}

.text-color-2-deprecated {
    /* Was text-cyan */
    color: var(--color-2);
}

.text-color-3-deprecated {
    /* Was text-green */
    color: var(--color-3);
}

.text-color-4-deprecated {
    /* Was text-yellow */
    color: var(--color-4);
}

.text-color-5-deprecated {
    /* Was text-red */
    color: var(--color-5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.border-box-color-5 {
    /* Was border-box-red */
    border: 2px solid var(--color-5) !important;
}

.module-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.module-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    color: var(--white);
    font-weight: bold;
    text-align: center;
}

/* =========================================
   6. FAQ PAGE STYLES
   ========================================= */

.accordion {
    --bs-accordion-border-color: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button::after {
    display: none !important;
}

.accordion-item {
    background: none;
    border: none;
}

.accordion-item .accordion-header {
    border: none;
    border-radius: 50px;
    background-color: var(--gray-3) !important;
    position: relative;
    z-index: 999;
}

.accordion-item .accordion-collapse {
    background-color: var(--white);
    border-radius: 25px;
    margin-top: -4%;
    padding-top: 4%;
    position: relative;
}

.accordion-item .accordion-header .accordion-button {
    background: none;
    color: var(--black);
    font-size: var(--fs-p1);
    font-weight: var(--fw-bold);
}

.modal-dialog-scrollable .modal-content {
    border-color: var(--gray-1);
    box-shadow: 0 0 0.3rem var(--gray-1);
}

.card-estado {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent !important;
}

.card-estado:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.card-estado.active {
    border-color: var(--color-1) !important;
    background-color: #f8f9fa !important;
}

.card-estado .total {
    font-size: 2rem;
    font-weight: 800;
}

.sortable {
    cursor: pointer;
    white-space: nowrap;
}

.sortable:hover {
    background-color: rgba(0, 0, 0, .05);
}

.sortable i {
    font-size: 0.8em;
}

.table-admin th {
    white-space: nowrap;
    font-size: .85rem;
}

.table-admin td {
    font-size: .85rem;
    vertical-align: middle;
}

.badge-estado {
    font-size: .75rem;
}