/* =========================================
   VARIABLES GLOBALES & RESET
========================================= */
:root {
    --bg-dark: #050A18;
    --blue-main: #2B74BF;
    --green-main: #74B967;
    --quick-links-bg: #0B2545;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Evita que el navbar fijo tape el título al hacer clic en un enlace interno */
}

body {
    background: var(--bg-dark);
    color: var(--white);
    overflow-x: hidden;
    transition: background-color 0.5s ease-in-out;
}

/* =========================================
   1. NAVBAR & MENÚ MÓVIL
========================================= */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: max(20px, env(safe-area-inset-top)) 5% 20px;
    background: rgba(5, 10, 24, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1005;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--blue-main);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    position: absolute;
    left: 5%;
    z-index: 1005;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: var(--white);
    transition: all 0.3s ease-in-out;
}

/* --- CLASES DE TEXTO Y BOTONES --- */
.gradient-text {
    background: linear-gradient(90deg, var(--blue-main) 0%, var(--green-main) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.text-white {
    color: #fff;
    font-weight: 300;
    text-transform: lowercase;
}

.btn-gradient {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(90deg, var(--green-main) 0%, var(--blue-main) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.btn-outline-white {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--white);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--green-main);
}

/* =========================================
   2. HERO Y CARRUSEL
========================================= */
.hero-slogan {
    padding: 40px 5%;
    text-align: left;
}

.slogan-line {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.carousel-section {
    padding: 0 5%;
    margin-bottom: 50px;
}

.carousel-card {
    background: var(--quick-links-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slides-container {
    position: relative;
    width: 100%;
}

.slide {
    display: none;
    animation: fade 1.5s;
}

.slide.active {
    display: block;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.card-text h2 {
    font-size: 1.2rem;
    color: var(--blue-main);
    margin-bottom: 10px;
}

.card-text p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 20px;
}

.bar-indicators {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

/* Estilos de las líneas del carrusel del index */
.bar-indicators .dot {
    height: 4px;
    flex: 1;
    background: #333d4d;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
    width: auto;
    padding: 0;
}

.bar-indicators .dot.active {
    background: var(--green-main);
}

/* =========================================
   3. SECCIÓN NOSOTROS
========================================= */
.nosotros-section {
    padding: 80px 5%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nosotros-content {
    max-width: 800px;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
    letter-spacing: 2px;
}

.nosotros-image img.small-logo {
    width: 100%;
    max-width: 180px;
    margin-bottom: 30px;
    border-radius: 10px;
}

.nosotros-subtitle {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nosotros-content .section-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--white);
    font-weight: 400;
    max-width: 90%;
    margin: 0 auto 30px;
}

.valores-box {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.valores-box h4 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.valores-box p {
    font-size: 1rem;
    color: #e0e0e0;
    font-weight: 500;
}

/* =========================================
   4. SOLUCIONES QUE IMPULSAN (GLASSMORPHISM)
========================================= */
.soluciones-section {
    padding: 80px 5%;
    /* CAMBIO CLAVE: Quitamos var(--bg-dark) y ponemos transparent */
    background: transparent !important;
    text-align: center;
}

.soluciones-header {
    margin-bottom: 50px;
}

.soluciones-header .section-title {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 10px;
}

.soluciones-header .section-subtitle {
    font-size: 1.1rem;
    color: #ccc;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.solucion-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 60px 20px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: center;
    margin-top: 50px;
    position: relative;
}

.solucion-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-icon {
    width: 220px;
    height: 220px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: -100px auto 20px;
    position: relative;
    z-index: 2;
}

.card-icon img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5))
}

.solucion-card h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 15px;
}

.solucion-card p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* =========================================
   5. FOOTER
========================================= */
.site-footer {
    background: var(--quick-links-bg);
    color: #e0e0e0;
    padding-top: 60px;
    border-top: 2px solid rgba(43, 116, 191, 0.3);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--green-main);
    border-radius: 2px;
}

.footer-logo {
    max-width: 120px;
    margin-bottom: 20px;
}

.brand-col p,
.contact-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 10px;
}

.links-col ul {
    list-style: none;
}

.links-col li {
    margin-bottom: 12px;
}

.links-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.links-col a:hover {
    color: var(--green-main);
    padding-left: 5px;
}

.links-col a.footer-highlight {
    color: var(--blue-main);
    font-weight: bold;
}

.footer-bottom {
    background: var(--bg-dark);
    text-align: center;
    padding: 20px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #888;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--green-main);
    transform: translateY(-5px);
    color: var(--bg-dark);
    box-shadow: 0 5px 15px rgba(116, 185, 103, 0.4);
}

/* =========================================
   6. MEDIA QUERIES (MÓVIL Y ESCRITORIO)
========================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.6rem;
        font-weight: 400;
        letter-spacing: 1px;
    }

    .nav-links a.active-page {
        color: var(--green-main);
        font-weight: 700;
        text-shadow: 0 0 10px rgba(116, 185, 103, 0.3);
    }

    .nav-links a.menu-btn-gradient {
        background: linear-gradient(90deg, var(--green-main) 0%, var(--blue-main) 100%);
        padding: 15px 40px;
        border-radius: 30px;
        color: #fff !important;
        font-weight: 800;
        font-size: 1.4rem;
        box-shadow: 0 5px 15px rgba(43, 116, 191, 0.5);
        text-transform: uppercase;
        margin-top: 20px;
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .nav-links a.menu-btn-gradient:hover {
        transform: scale(1.05);
    }

    .nav-links a.gradient-text {
        background: linear-gradient(90deg, var(--blue-main) 0%, var(--green-main) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent !important;
        -webkit-text-fill-color: transparent !important;
        font-weight: 800;
        text-shadow: none;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: var(--green-main);
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: var(--green-main);
    }

    .ejes-container {
        flex-direction: row;
        /* Las pone una al lado de la otra */
        max-width: 1200px;
        /* Permite que el contenedor se expanda */
        align-items: stretch;
        /* Hace que todas las tarjetas midan lo mismo de alto */
    }

    .eje-card {
        flex: 1;
        /* Cada tarjeta toma un tercio del espacio disponible */
        display: flex;
        flex-direction: column;
    }

    .eje-pills {
        flex-grow: 1;
        /* Empuja el contenido para distribuir mejor el espacio vertical */
        justify-content: flex-start;
    }

    /* --- Ajuste para PC: Servicios Destacados --- */
    .destacados-content {
        flex-direction: row;
        /* Coloca imagen y texto lado a lado */
        align-items: center;
        justify-content: space-between;
    }

    .destacados-text {
        width: 60%;
        /* Columna de 60% */
        padding-right: 50px;
        z-index: 2;
        /* Para que el texto resalte si la imagen se acerca mucho */
    }

    .destacados-image {
        width: 40%;
        /* Columna de 40% */
        position: relative;
        z-index: 1;
    }

    .destacados-image img {
        width: 125%;
        /* Hacemos la imagen más grande que su caja... */
        max-width: 600px;
        transform: translateX(-15%);
        /* ...y la empujamos un poco a la izquierda para que 'invada' visualmente */
    }

    /* --- 1. AJUSTE HERO AFÍLIATE (Imagen Proporcionada) --- */
    .afiliate-img-container {
        max-width: 700px;
        /* Esto hace la imagen más pequeña y elegante */
        margin: 0 auto;
    }

    /* --- 2. BENEFICIOS (Diseño 2 arriba y 2 abajo) --- */
    .beneficios-container {
        display: grid;
        /* Esto obliga a que solo existan 2 columnas */
        grid-template-columns: repeat(2, 1fr);
        gap: 80px 40px;
        max-width: 1100px;
        margin: 60px auto 0;
    }

    .beneficio-card {
        padding: 60px 40px 40px;
    }

    /* --- 3. PÚBLICO OBJETIVO (Ajuste de imágenes hacia afuera) --- */
    .quienes-img {
        width: 280px;
    }

    .card-left .quienes-img {
        left: -100px;
        /* Empuja la imagen hacia afuera a la izquierda */
    }

    .card-right .quienes-img {
        right: -100px;
        /* Empuja la imagen hacia afuera a la derecha */
    }

    .card-left {
        padding: 40px 60px 40px 160px;
    }

    .card-right {
        padding: 40px 160px 40px 60px;
    }

    /* --- 4. FORMULARIO (Más fino en PC) --- */
    .form-container-glass {
        padding: 60px 80px;
        max-width: 600px;
    }
}

@media (min-width: 992px) {
    .hero-slogan {
        text-align: center;
        padding: 60px 5% 30px;
    }

    .slogan-line {
        font-size: 3rem;
        line-height: 1.3;
    }

    .carousel-section {
        max-width: 1000px;
        margin: 0 auto 60px;
    }

    .card-content {
        flex-direction: row;
        align-items: center;
    }

    .card-image {
        width: 50%;
    }

    .card-text {
        width: 50%;
        padding: 0 30px;
    }

    .cards-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .solucion-card:nth-child(4) {
        grid-column: 2;
    }

    /* Mostrar 'Afíliate' con degradado en PC directamente en el menú */
    .nav-links a.gradient-text {
        background: linear-gradient(90deg, var(--blue-main) 0%, var(--green-main) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent !important;
        -webkit-text-fill-color: transparent !important;
        font-weight: 800;
        text-shadow: none;
    }

    /* --- Ajuste para PC: Hero Capacitación --- */
    .capacitacion-hero {
        flex-direction: row;
        /* Pone el texto y las fotos lado a lado */
        align-items: center;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
        padding: 80px 5%;
    }

    .hero-content {
        width: 50%;
        /* Ocupa la mitad izquierda */
        padding-right: 50px;
    }

    .cap-hero-title {
        font-size: 3.5rem;
        /* Título imponente en PC */
        margin-bottom: 30px;
    }

    .cap-hero-desc {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }

    .hero-btn {
        font-size: 1.1rem;
        /* Botón más grande */
        padding: 15px 40px;
    }

    .hero-images {
        width: 45%;
        /* Ocupa la mitad derecha */
        margin: 0;
        /* Quitamos el centrado de móvil */
        min-height: 450px;
    }

    /* En PC separamos un poco más las imágenes para que luzcan */
    .img-pos-1 {
        top: 20px;
        right: 0;
    }

    .img-pos-2 {
        top: 180px;
        left: 20px;
    }

    /* --- Ajuste PC: Hero Afíliate --- */
    .afiliate-hero {
        padding: 80px 5% 60px;
    }

    .afiliate-hero .section-title {
        font-size: 3.5rem;
        /* Crece el título para impactar en escritorio */
    }

    .afiliate-desc {
        font-size: 1.3rem;
        margin-bottom: 50px;
    }

    .afiliate-hero-img {
        border-radius: 35px;
        /* Bordes aún más suaves y grandes en PC */
    }

    /* --- Ajuste PC: Beneficios Afiliación --- */
    .beneficios-container {
        /* Cambiamos a Grid en PC para que se acomoden solas en columnas */
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        /* 70px vertical para que respiren los íconos, 30px horizontal entre tarjetas */
        gap: 70px 30px;
        max-width: 1200px;
        margin-top: 60px;
    }

    .beneficio-card {
        padding: 60px 25px 35px;
        /* Les damos un poco más de aire por dentro en monitores grandes */
    }

    /* --- Ajuste PC: Público Objetivo Afiliación --- */
    .quienes-container {
        gap: 70px;
        /* Más aire entre tarjetas */
        margin-top: 60px;
    }

    /* Hacemos las tarjetas más altas y con más espacio */
    .quienes-card {
        min-height: 200px;
    }

    /* Le damos un hueco masivo a los lados para la imagen grande */
    .card-left {
        padding: 40px 40px 40px 220px;
    }

    .card-right {
        padding: 40px 220px 40px 40px;
    }

    /* Hacemos crecer la ilustración 3D y la sacamos mucho de la caja */
    .quienes-img {
        width: 260px;
    }

    .card-left .quienes-img {
        left: -50px;
    }

    .card-right .quienes-img {
        right: -50px;
    }

    /* Textos más imponentes */
    .quienes-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .quienes-desc {
        font-size: 1.1rem;
    }

    /* --- Ajuste PC: Público Objetivo (Imágenes hacia afuera) --- */

    /* Hacemos la imagen un poco más grande para que la ruptura se note más */
    .quienes-img {
        width: 280px;
    }

    /* Sacamos la imagen casi a la mitad fuera de la tarjeta */
    .card-left .quienes-img {
        left: -100px;
    }

    .card-right .quienes-img {
        right: -100px;
    }

    /* Ajustamos el padding del texto para equilibrar el peso visual */
    .card-left {
        padding: 40px 60px 40px 160px;
    }

    .card-right {
        padding: 40px 160px 40px 60px;
    }

    /* --- Ajuste PC: Formulario Afiliación --- */
    .form-container-glass {
        padding: 60px 80px;
        /* Más espacio interno en PC */
    }

    .cta-form-btn {
        width: auto;
        /* El botón solo mide lo que su texto */
        min-width: 300px;
        font-size: 1.1rem;
        transition: transform 0.2s ease;
    }

    .cta-form-btn:hover {
        transform: scale(1.05);
    }

    /* --- 1. AJUSTE HERO AFÍLIATE (Imagen Proporcionada) --- */
    .afiliate-img-container {
        max-width: 700px;
        /* Esto hace la imagen más pequeña y elegante */
        margin: 0 auto;
    }

    /* --- 2. BENEFICIOS (Diseño 2 arriba y 2 abajo) --- */
    .beneficios-container {
        display: grid;
        /* Esto obliga a que solo existan 2 columnas */
        grid-template-columns: repeat(2, 1fr);
        gap: 80px 40px;
        max-width: 1100px;
        margin: 60px auto 0;
    }

    .beneficio-card {
        padding: 60px 40px 40px;
    }

    /* --- 3. PÚBLICO OBJETIVO (Ajuste de imágenes hacia afuera) --- */
    .quienes-img {
        width: 280px;
    }

    .card-left .quienes-img {
        left: -100px;
        /* Empuja la imagen hacia afuera a la izquierda */
    }

    .card-right .quienes-img {
        right: -100px;
        /* Empuja la imagen hacia afuera a la derecha */
    }

    .card-left {
        padding: 40px 60px 40px 160px;
    }

    .card-right {
        padding: 40px 160px 40px 60px;
    }

    /* --- 4. FORMULARIO (Más fino en PC) --- */
    .form-container-glass {
        padding: 60px 80px;
        max-width: 600px;
    }
}

/* =========================================
   PÁGINA: CAPACITACIÓN
========================================= */

/* --- 1. HERO CAPACITACIÓN (MÓVIL) --- */
.capacitacion-hero {
    padding: 40px 5% 80px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cap-hero-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--green-main) 0%, var(--blue-main) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.cap-hero-desc {
    font-size: 1rem;
    color: #e0e0e0;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 25px;
}

.hero-btn {
    width: auto !important;
    padding: 12px 30px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contenedor de Imágenes en Diagonal */
.hero-images {
    position: relative;
    width: 100%;
    max-width: 450px;
    min-height: 380px;
    margin: 0 auto;
}

.img-diag-container {
    position: absolute;
    width: 60%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.glass-border {
    width: 100%;
    height: auto;
    display: block;
}

.img-pos-1 {
    top: 0;
    right: 0;
    z-index: 2;
    transform: rotate(3deg);
}

.img-pos-2 {
    top: 120px;
    left: 0;
    z-index: 1;
    transform: rotate(-4deg);
}


/* --- 2. EJES DE FORMACIÓN (MÓVIL) --- */
.ejes-formacion-section {
    padding: 60px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-center {
    text-align: center;
    margin-bottom: 50px;
}

.ejes-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 500px;
}

/* Tarjetas Efecto Cristal */
.eje-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 35px 20px;
    text-align: center;
}

.eje-title {
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 30px;
}

.eje-pills {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Píldora 3D */
.eje-pill {
    background-color: #e6e8eb;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 0.95rem;
    width: 90%;
    padding: 14px 15px;
    border-radius: 50px;
    line-height: 1.3;
    box-shadow: 0 5px 0 #9ca3af, 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: default;
}

.eje-pill:hover {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #9ca3af, 0 5px 10px rgba(0, 0, 0, 0.4);
}


/* --- 3. SERVICIOS DESTACADOS & CTA (MÓVIL) --- */
.servicios-destacados-section {
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.destacados-content {
    display: flex;
    flex-direction: column-reverse;
    /* Imagen arriba en móvil */
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 90px;
}

.destacados-text {
    text-align: left;
}

.destacados-subtitle {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.destacados-desc {
    color: #a3a3a3;
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.6;
}

.destacados-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.destacados-list li {
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 15px;
    line-height: 1.4;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background-color: var(--green-main);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    flex-shrink: 0;
}

.destacados-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.destacados-image img {
    width: 100%;
    max-width: 380px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
}

.cta-final-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.cta-desc {
    color: var(--white);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 35px;
}

.cta-btn {
    padding: 16px 45px;
    font-size: 1.1rem;
    line-height: 1.4;
    border-radius: 40px;
}


/* =========================================
   MEDIA QUERIES - AJUSTES PARA PC
========================================= */
@media (min-width: 992px) {

    /* 1. Ajuste PC: Hero Capacitación */
    .capacitacion-hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
        padding: 80px 5%;
    }

    .hero-content {
        width: 50%;
        padding-right: 50px;
    }

    .cap-hero-title {
        font-size: 3.5rem;
        margin-bottom: 30px;
    }

    .cap-hero-desc {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }

    .hero-btn {
        font-size: 1.1rem;
        padding: 15px 40px;
    }

    .hero-images {
        width: 45%;
        margin: 0;
        min-height: 450px;
    }

    .img-pos-1 {
        top: 20px;
        right: 0;
    }

    .img-pos-2 {
        top: 180px;
        left: 20px;
    }

    /* 2. Ajuste PC: Ejes de Formación */
    .ejes-container {
        flex-direction: row;
        max-width: 1200px;
        align-items: stretch;
    }

    .eje-card {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .eje-pills {
        flex-grow: 1;
        justify-content: flex-start;
    }

    /* 3. Ajuste PC: Servicios Destacados */
    .destacados-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .destacados-text {
        width: 60%;
        padding-right: 50px;
        z-index: 2;
    }

    .destacados-image {
        width: 40%;
        position: relative;
        z-index: 1;
    }

    .destacados-image img {
        width: 125%;
        max-width: 600px;
        transform: translateX(-15%);
        /* Efecto visual invadiendo la izquierda */
    }
}

/* =========================================
   PÁGINA: AFÍLIATE
========================================= */

/* --- 1. HERO (MÓVIL) --- */
.afiliate-hero {
    padding: 60px 5% 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Ajuste específico para el título principal de Afíliate */
.afiliate-hero .section-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 20px;
    max-width: 800px;
}

/* Párrafo descriptivo */
.afiliate-desc {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 500;
    line-height: 1.5;
    max-width: 700px;
    margin-bottom: 40px;
}

/* Contenedor de la foto */
.afiliate-img-container {
    width: 100%;
    max-width: 900px;
    /* Evita que crezca infinitamente en pantallas grandes */
    margin: 0 auto;
}

/* La Fotografía con bordes muy redondeados */
.afiliate-hero-img {
    width: 100%;
    height: auto;
    border-radius: 25px;
    /* El borde marcadamente curvo que pidió el reporte */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    /* Sombra suave para darle profundidad */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Toque premium casi invisible */
    display: block;
}

/* --- 2. BENEFICIOS AFILIACIÓN (MÓVIL) --- */
.beneficios-section {
    padding: 60px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.beneficios-container {
    display: flex;
    flex-direction: column;
    /* Un GAP de 60px es vital aquí para dar espacio al ícono que sobresale de la tarjeta de abajo */
    gap: 60px;
    width: 100%;
    max-width: 500px;
    margin-top: 50px;
    /* Da espacio al ícono de la primera tarjeta */
}

/* Tarjeta base con efecto cristal */
.beneficio-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Trazo claro perimetral */
    border-radius: 20px;
    /* PADDING TOP de 50px: Empuja el texto hacia abajo para que el ícono no lo tape */
    padding: 50px 20px 30px;
    text-align: center;
    position: relative;
    /* ¡CLAVE! Permite que el ícono se posicione respecto a esta tarjeta */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.beneficio-card:hover {
    transform: translateY(-5px);
}

/* --- LA MAGIA DEL EFECTO OVERLAP (ÍCONO QUE ROMPE EL BORDE) --- */
.icono-flotante {
    position: absolute;
    /* Lo subimos 40 píxeles por encima del borde de la tarjeta */
    top: -40px;
    /* Lo centramos perfectamente */
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icono-flotante img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Una sombra paralela al ícono hace que resalte aún más el efecto 3D */
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.5));
}

.beneficio-title {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.beneficio-desc {
    color: #e0e0e0;
    /* Gris muy claro */
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
}

/* --- 3. PÚBLICO OBJETIVO AFILIACIÓN (MÓVIL) --- */
.quienes-section {
    padding: 60px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Esto previene que las imágenes que sobresalen causen scroll horizontal */
    overflow-x: hidden;
}

.quienes-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    /* Separación vertical entre tarjetas */
    width: 100%;
    max-width: 850px;
    margin-top: 40px;
}

/* Base de la Tarjeta de Cristal */
.quienes-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-height: 140px;
    /* Altura mínima para que quepa bien el texto y la imagen flotante */
}

/* Modificadores de asimetría para MÓVIL */
/* Tarjeta que tiene la imagen a la izquierda */
.card-left {
    padding: 25px 20px 25px 100px;
    /* Le damos mucho relleno izquierdo para empujar el texto */
    text-align: left;
}

/* Tarjeta que tiene la imagen a la derecha */
.card-right {
    flex-direction: row-reverse;
    /* Voltea el contenedor */
    padding: 25px 100px 25px 20px;
    /* Mucho relleno derecho */
    text-align: right;
}

/* Contenedor de la ilustración 3D */
.quienes-img {
    position: absolute;
    width: 130px;
    /* Tamaño controlado para móvil */
    top: 50%;
    /* Centrado verticalmente respecto a la tarjeta */
    transform: translateY(-50%);
}

/* Posiciones que rompen los bordes */
/* Tarjeta con imagen a la izquierda (Empresas y Gobierno) */
/* Posiciones que rompen los bordes agresivamente hacia afuera en Móvil */
.card-left .quienes-img {
    /* Lo alejamos más hacia la izquierda del borde */
    left: -40px;
}

.card-right .quienes-img {
    /* Lo alejamos más hacia la derecha del borde */
    right: -40px;
}

/* Ajuste del padding para que el texto no se sienta vacío al alejar la imagen */
.card-left {
    padding: 25px 20px 25px 85px;
}

.card-right {
    padding: 25px 85px 25px 20px;
}

/* Sobresale hacia la derecha */

/* Sombras 3D a las imágenes para darles volumen */
.quienes-img img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.5));
}

.quienes-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.quienes-desc {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- 4. FORMULARIO DE AFILIACIÓN (MÓVIL) --- */
.afiliacion-form-section {
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Contenedor principal con efecto Cristal */
.form-container-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    /* Bordes muy redondeados */
    padding: 40px 25px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    margin-top: 40px;
}

.afiliacion-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Separación vertical uniforme */
}

/* Campos de entrada tipo Píldora */
.form-pill-input {
    background-color: #e6e8eb;
    /* Gris claro sólido */
    border: none;
    outline: none;
    padding: 16px 25px;
    border-radius: 50px;
    /* Forma de píldora */
    font-size: 1rem;
    color: #333;
    /* Texto oscuro para legibilidad */
    font-weight: 500;

    /* Sombra paralela inferior para volumen */
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.2);

    transition: all 0.3s ease;
}

.form-pill-input::placeholder {
    color: #888;
    /* Gris medio/claro */
}

/* Efecto al hacer clic en el campo */
.form-pill-input:focus {
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(116, 185, 103, 0.3);
}

.form-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

/* Botón con degradado específico */
.cta-form-btn {
    width: 100%;
    /* En móvil ocupa todo el ancho */
    padding: 16px 30px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 50px;
    /* Reutilizamos el degradado de verde a azul */
    background: linear-gradient(90deg, var(--green-main) 0%, var(--blue-main) 100%);
}

/* =========================================
   ESTILOS ESPECÍFICOS: PÁGINA PROYECTOS
========================================= */

.proyectos-hero {
    padding: 80px 5% 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.proyectos-header {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.title-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.proyectos-title-bg {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(4rem, 17vw, 22rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.211);
    z-index: 0;
    pointer-events: none;
    letter-spacing: 5px;
    white-space: nowrap;
}

.proyectos-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 0;
    margin-top: -20px;
    color: var(--white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.proyectos-subtitle {
    max-width: 1000px;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 80px auto 60px;
    font-weight: 500;
    text-shadow: 0 0 10px rgb(255, 255, 255), 0 0 20px rgb(255, 255, 255);
    position: relative;
    z-index: 1;
}

/* LA TARJETA DEL CARRUSEL */
.carousel-container {
    width: 100%;
    max-width: 900px;
    position: relative;
    overflow: visible;
    /* Cambiado de hidden a visible para no ocultar ni recortar los dots ni las flechas */
    padding-bottom: 50px;
    /* Agregamos padding extra abajo para dar espacio real a los dots */
}

.carousel-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 20px;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-wrapper:active {
    cursor: grabbing;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 30px;
    /* Reducimos el padding para hacerla menos alta */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    min-width: calc(100% - 2px);
    flex: 0 0 calc(100% - 2px);
    scroll-snap-align: center;
    box-sizing: border-box;
    text-align: center;
    /* Centramos el texto de toda la tarjeta */

    /* EQUAL HEIGHT FIX */
    display: flex;
    flex-direction: column;
}

.card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card-title {
    font-size: 1.6rem;
    /* Reducimos ligeramente el tamaño de fuente */
    font-weight: 700;
    margin-bottom: 10px;
    /* Reducimos el margen inferior que era de 40px */
    color: var(--white);
    line-height: 1.2;
}

/* GRID INTERNO DE LA CARD */
.card-grid {
    display: flex;
    /* Cambiamos a flex column para apilar siempre la imagen sobre el texto */
    flex-direction: column;
    gap: 25px;
    /* Reducimos el espacio entre imagen y texto */
    align-items: center;
    flex-grow: 1;
    /* Permite que el grid ocupe el espacio restante si hay diferencias de altura */
    justify-content: space-between;
    /* Mantiene la imagen y el texto separados equilibradamente */
}

.card-image-box {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Centra las imágenes verticalmente sin importar si son más anchas o altas */
    height: 280px;
    /* Establecemos altura fija para estandarizar las tarjetas */
}

.floating-img {
    width: 100%;
    max-width: 420px;
    /* Hacemos la imagen grande */
    height: 100%;
    /* Se ciñe al contenedor de 280px */
    object-fit: contain;
    /* ¡Importante! Hace que no se deformen sino que se ajusten de manera proporcional centradas en la caja */
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s ease;
}

.project-card:hover .floating-img {
    transform: translateY(-10px) scale(1.05);
    /* Efecto sutil de flotación */
}

.card-text-box {
    text-align: center;
    /* Centramos el texto descriptivo */
    max-width: 800px;
    /* Limitamos el ancho para que no sea muy largo y difícil de leer */
}

.card-text-box p {
    font-size: 1.05rem;
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 15px;
    /* Reducido de 20px */
}

.card-text-box p:last-child {
    margin-bottom: 0;
    /* Quitamos el margen del último párrafo para evitar espacio vacío abajo */
}

/* --- CAROUSEL NAVIGATION CONTROLS --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    /* Quitamos el fondo */
    color: white;
    /* Color de la flecha */
    border: none;
    /* Quitamos el borde redondo */
    font-size: 3rem;
    /* Hacemos la flecha mucho más grande (era 1.5rem) */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-btn:hover {
    color: var(--green-main);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -90px;
    /* Movemos las flechas ligeramente hacia adentro para que no se corten */
}

.next-btn {
    right: -90px;
    /* Movemos las flechas ligeramente hacia adentro para que no se corten */
}

/* Ocultar botones en móviles */
@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* Separamos un poco más los dots para un mejor look */
    position: absolute;
    /* Anclado al contenedor padre */
    bottom: 0px;
    /* Pegados al padding inferior del contenedor que creamos */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Puntos redondos del carrusel de proyectos */
.carousel-dots .dot {
    width: 15px;
    /* Hicimos los dots un poco más grandes para mejor visibilidad y clics */
    height: 15px;
    border-radius: 50%;
    /* Esto los hace perfectamente redondos */
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex: none;
    /* Evita que crezcan como las barras del index */
}

.carousel-dots .dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-dots .dot.active {
    background: var(--green-main);
    border-color: var(--green-main);
    width: 15px;
    /* Hacemos que siga siendo redondo pero más grande (ancho = alto) */
    height: 15px;
    /* Hacemos que siga siendo redondo pero más grande (ancho = alto) */
    border-radius: 50%;
    /* Mantenemos el círculo perfecto */
}

/* FIN TARJETAS PROYECTOS */
/* =========================================
   ESTILOS: SECCIÓN PROGRAMAS
========================================= */

.programas-hero {
    padding: 100px 5% 80px;
    text-align: center;
}

.programas-title-bg {
    position: absolute;
    top: 30%;
    left: 50%;
    margin-top: -30px;
    transform: translate(-50%, -50%);
    font-size: clamp(4rem, 17vw, 22rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.211);
    z-index: 0;
    pointer-events: none;
    letter-spacing: 5px;
    white-space: nowrap;
}

.programas-main-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 80px;
    margin-top: -40px;
    letter-spacing: 1px;
    color: var(--white);
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.programas-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* LA CARD ESTILO GLASSMORPHISM */
.programa-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    transition: transform 0.3s ease;
}

.programa-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

/* DISTRIBUCIÓN INTERNA */
.card-layout {
    display: grid;
    grid-template-columns: 1fr;
    /* Móvil: una sola columna */
    gap: 30px;
    align-items: center;
    text-align: left;
}

@media (min-width: 992px) {
    .card-layout.icon-left {
        grid-template-columns: 0.8fr 1.2fr;
    }

    .card-layout.icon-right {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.programa-icon img {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
}

.programa-info h2 {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
}

.programa-info ul {
    list-style: none;
    padding: 0;
}

.programa-info li {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 12px;
    position: relative;
    padding-left: 0;
}



/* --- SECCIÓN SERVICIOS --- */
.servicios-intro {
    padding-top: 60px;
    text-align: center;
}

.servicios-title-bg {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(4rem, 17vw, 22rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.211);
    z-index: 0;
    pointer-events: none;
    letter-spacing: 5px;
    white-space: nowrap;
}

.servicios-title-text {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    margin-top: 10px;
    color: var(--white);
    text-shadow: 0 0 10px rgb(255, 255, 255), 0 0 20px rgb(255, 255, 255);
    position: relative;
    z-index: 1;
    max-width: 900px;
    line-height: 1.5;
    margin-left: auto;
    margin-right: auto;
}

/* --- SECCIÓN CARDS SERVICIOS --- */
.servicios-cards-section {
    position: relative;
    overflow: visible;
    /* Cambiado a visible para que los círculos de luz no se corten en líneas rectas al salir del contenedor */
    padding-bottom: 50px;
}

/* Efecto de luces circulares de fondo */
.servicios-cards-section::before,
.servicios-cards-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    /* Asegura que no bloqueen los clicks a las tarjetas */
}

/* Círculo izquierdo (Verde) */
.servicios-cards-section::before {
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(43, 114, 184, 0.25) 0%, rgba(43, 114, 184, 0) 70%);
    top: -40%;
    left: -100px;
    filter: none;
}

/* Círculo derecho (Azul/Teal) */
.servicios-cards-section::after {
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(116, 185, 103, 0.25) 0%, rgba(116, 185, 103, 0) 70%);
    bottom: -40%;
    right: -100px;
    filter: none;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.servicio-category-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 30px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.servicio-category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--white);
}

.service-pills {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-pills span {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-dark);
    text-align: center;
    line-height: 1.2;
}

.theme-green .service-pills span {
    background: #74B967;
    /* Same as var(--green-main) */
}

.theme-teal .service-pills span {
    background: linear-gradient(90deg, #74B967 0%, #5A9BCF 100%);
    /* Teal to blue gradient */
}

.theme-blue .service-pills span {
    background: #5A9BCF;
    /* Light blue */
}

.btn-outline-white-small {
    border: 1px solid var(--white);
    color: var(--white);
    text-decoration: none;
    padding: 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-outline-white-small:hover {
    background: var(--white);
    color: var(--bg-dark);
}

/* --- DETALLE EXTENSO (GLASSMORPHISM) --- */
.detalle-servicios-section {
    padding: 60px 5%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.detalle-card-glass {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 50px 40px;
}

.badge-socio {
    position: absolute;
    top: 0px;
    right: -25px;
    background: var(--green-main);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    transform: rotate(30deg);
}

.detalle-list {
    list-style: none;
    margin-top: 25px;
}

.detalle-list li {
    margin-bottom: 18px;
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
}

.detalle-list li::before {
    content: "⦿";
    color: var(--white);
    margin-right: 10px;
}

/* --- CTA FINAL --- */
.cta-afiliacion {
    background: linear-gradient(180deg, transparent, rgba(116, 185, 103, 0.1));
    padding: 20px 5%;
    text-align: center;
}

.cta-afiliacion h2 {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-afiliacion p {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: bold;
}

.btn-gradient-cta {
    display: inline-block;
    margin-top: 30px;
    margin-bottom: 30px;
    background: linear-gradient(90deg, var(--green-main) 0%, var(--blue-main) 100%);
    color: var(--white);
    padding: 25px 50px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
}

.btn-gradient-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(116, 185, 103, 0.4);
}

/* =========================================
   AJUSTES FINALES PARA PC (AFÍLIATE)
   Pega esto al final de tu archivo style.css
========================================= */
@media (min-width: 992px) {

    /* 1. Hace la imagen de la intro más pequeña y elegante */
    .afiliate-img-container {
        max-width: 700px !important;
        margin: 0 auto !important;
    }

    /* 2. Pone los beneficios 2 arriba y 2 abajo */
    .beneficios-container {
        display: grid !important;
        /* Forzamos 2 columnas exactas */
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 80px 40px !important;
        max-width: 1100px !important;
        margin: 60px auto 0 !important;
    }

    .beneficio-card {
        padding: 60px 40px 40px !important;
    }
}

/* =========================================
   AJUSTES RESPONSIVOS (MÓVILES)
========================================= */
@media (max-width: 768px) {

    /* Achicar títulos de fondo (PROYECTOS, PROGRAMAS, SERVICIOS) para que no se corten */
    .proyectos-title-bg,
    .programas-title-bg,
    .servicios-title-bg {
        font-size: clamp(3rem, 13vw, 8rem);
        top: 50%;
        margin-top: 0;
        letter-spacing: 2px;
    }

    /* Ajustar títulos estelares y remover márgenes negativos apretados de escritorio */
    .proyectos-title,
    .programas-main-title,
    .servicios-title-text {
        margin-top: 0;
        margin-bottom: 30px;
    }
}

/* --- AJUSTE DE ESPACIOS EN PROYECTOS --- */

/* 1. Reducimos el espacio que el párrafo empuja hacia abajo */
.proyectos-subtitle {
    margin-bottom: 15px !important;
    /* Menos espacio con el botón */
    line-height: 1.6;
}

/* 2. Ajustamos el contenedor del botón */
.download-container {
    margin-top: 10px;
    /* Espacio pequeño con el texto de arriba */
    margin-bottom: 50px;
    /* Espacio grande para no pegar el carrusel */
    display: flex;
    justify-content: center;
    /* Mantiene el botón centrado */
}

/* 3. Estilo específico para el botón de descarga */
#btnDescargar {
    width: auto;
    padding: 14px 40px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    /* Evita que el texto se parta en dos líneas */
}

/* Ajustes para PC */
@media (min-width: 992px) {
    .download-container {
        margin-bottom: 70px;
        /* Más espacio en pantallas grandes */
    }

    #btnDescargar {
        font-size: 1rem;
        min-width: 350px;
        /* Para que se vea imponente en PC */
    }
}

/* Agrega el ID de servicios a tu regla de PC en el media query */
@media (min-width: 992px) {

    #btnDescargar,
    #btnDescargarCursos,
    #btnDescargarServicios {
        width: auto !important;
        min-width: 350px;
        border: none;
        cursor: pointer;
    }
}

/* --- MODAL DE GRACIAS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.modal-content-glass h2 {
    color: var(--green-main);
    margin-bottom: 15px;
}

.modal-content-glass p {
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Mostrar modal */
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.show .modal-content-glass {
    transform: translateY(0) scale(1);
}

/* --- ESTILOS PÁGINA PRIVACIDAD --- */
.privacidad-main {
    padding: 120px 5% 60px;
    background: var(--bg-dark);
    min-height: 100vh;
}

.privacidad-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 30px;
}

.last-update {
    font-size: 0.9rem;
    color: var(--green-main);
    margin-bottom: 30px;
    font-style: italic;
}

.privacidad-content h3 {
    color: #fff;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.privacidad-content p,
.privacidad-content li {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 15px;
}

.privacidad-content ul {
    margin-left: 20px;
    list-style-type: circle;
}

@media (max-width: 768px) {
    .privacidad-container {
        padding: 25px;
    }
}