/* =========================================
   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: #791099;
    --color-2: #02ADEB;
    --color-3: #01A642;
    --color-4: #FFB72F;
    --color-5: #EC0100;
    --color-6: #F18F34;
    --color-7: #2C1796;
    --color-8: #b400ff;
    --black: #000000;
    --white: #FFFFFF;
    --gray-light: #EFEFEF;
    --gray-dark: #E2E2E2;

    --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;
}

.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-color-4 {
    color: var(--color-4) !important;
}

.text-color-5 {
    color: var(--color-5) !important;
}

.text-color-6 {
    color: var(--color-6) !important;
}

.text-color-7 {
    color: var(--color-7) !important;
}

.text-color-8 {
    color: var(--color-8) !important;
}

.text-black {
    color: var(--black) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-gray-light {
    color: var(--gray-light) !important;
}

.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-color-4 {
    background-color: var(--color-4);
}

.bg-color-5 {
    background-color: var(--color-5);
}

.bg-color-6 {
    background-color: var(--color-6);
}

.bg-color-7 {
    background-color: var(--color-7);
}

.bg-color-8 {
    background-color: var(--color-8);
}

.bg-black {
    background-color: var(--black);
}

.bg-white {
    background-color: var(--white);
}

.bg-gray-light {
    background-color: var(--gray-light);
}

.bg-gray-dark {
    background-color: var(--gray-dark);
}

.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-4,
.btn-color-4:hover {
    background-color: var(--color-4);
}

.btn-color-5,
.btn-color-5:hover {
    background-color: var(--color-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) !important;
    font-weight: 700;
    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 {
    background-color: var(--black);
    background-image: url('../../images/backgrounds/bg_1.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 1920 / 944;
    width: 100%;
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.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(--gray-light);
    border: none;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.bg-purple-bar {
    background-color: var(--color-1);
    color: white;
    padding: 35px 0;
    text-align: center;
}

/* Prismas (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;
}

.prisma-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 */

.prisma-carousel-card {
    min-width: 280px;
    white-space: normal;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.prisma-carousel-card:hover {
    transform: translateY(-5px);
}

.prisma-header-strip {
    border-radius: 50px;
    color: var(--white);
    margin: -25px 0px 15px 0px;
    height: 50px;
    text-align: center;
}

.prisma-header-strip span {
    line-height: normal;
}

.prisma-carousel-card .card-text {
    text-align: left;
}

.prisma-carousel-card .card-footer {
    font-size: var(--fs-p2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.prisma-card-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.prisma-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 {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 15px;
}

.mentor-logo {
    width: 160px;
    height: auto;
    object-fit: contain;
    max-width: 100%;
}

/* Requirements & Areas Section */
.bg-requirements {
    background-image: url('../../images/backgrounds/bg_6.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--black);
    /* Specific color, keeping as hex or mapped if needed */
}

/* 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;
}

.border-end-white {
    position: relative;
}

.border-end-white::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 75%;
    width: 1px;
    background-color: var(--white);
}

.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;
}

/* .logo-reduce removed */

/* =========================================
   4. MEDIA QUERIES
   ========================================= */

@media (min-width: 992px) {

    /* Hero Section */
    .btn-hero-cta {
        width: 60%;
    }

    /* 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 Section (Mobile Wrapper) */
    .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;
    }

    .border-end-white::after {
        display: none;
    }

    /* Navbar Mobile Adjustments */
    .navbar-brand img {
        height: 35px;
    }

    .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;
    }

    /* Hero Section (Mobile) */
    .hero-section {
        background-image: url('../../images/backgrounds/bg_7.webp');
        aspect-ratio: auto;
        /* Disable aspect ratio on mobile to fit content */
    }

    /* 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;
    }

    .prisma-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;
}

.prisma-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.prisma-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-dark) !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-dark);
    box-shadow: 0 0 0.3rem var(--gray-dark);
}

.card-estado {
    transition: transform .15s;
    cursor: default;
}

.card-estado:hover {
    transform: translateY(-3px);
}

.card-estado .total {
    font-size: 2rem;
    font-weight: 800;
}

.table-admin th {
    white-space: nowrap;
    font-size: .85rem;
}

.table-admin td {
    font-size: .85rem;
    vertical-align: middle;
}

.badge-estado {
    font-size: .75rem;
}