/* ============================================================
   CSS VARIABLES - SINGLE SOURCE OF TRUTH
   ============================================================ */
:root {
    /* Brand Colors */
    --ja-green: #7BB043;
    --ja-dark-blue: #22414E;
    --white: #ffffff;
    --gray: #f8f9fa;
    --bg-light: #f9f9f9;

    /* Pillar Colors - Requested */
    --color-emprendimiento: #00a0af;
    --color-finanzas: #bbd153;
    --color-trabajo: #295f75;

    /* Pillar Colors - Legacy (kept for compatibility) */
    --color-emprendedora: var(--color-emprendimiento);
    --color-financiera: var(--color-finanzas);
    --color-futuro: var(--color-trabajo);
    --color-stem: #00763d;

    /* Extended Brand Colors */
    --immersive-blue: #22404D;
    --resilient-turquoise: #00A0AF;
    --empowered-yellow: #E3E24F;
    --startup-white: #FFFFFF;
    --boundless-blue: #275d72;
    --gritty-green: #7BB043;
    --soft-gray: #F4F7F8;
    --ja-blue: #00a7e1;

    /* Page Specific Variables */
    --anuncio-texto: "Liderando el futuro de la juventud uruguaya";
    --titulo-pagina: "Consejo Directivo";
    --imagen-fondo-cabecera: linear-gradient(rgba(34, 65, 78, 0.8), rgba(34, 65, 78, 0.8)), url('../imagenes/Person with Symbol-17.png');

    /* New Programs Palette */
    --azul-negro: #1E3A46;
    --azul-ilimitado: #275D72;
    --transforming-teal: #00A0AF;
    --possibility-pearl: #FFFFFF;
    --optimistic-ice: #F0F4F7;
    --enterprise-aqua: #00A0AF;
    --liderazgo-lima: #7BB043;
    --startup-jade: #1AB1A8;
    --turquesa-resistente: #00A0AF;
    --shadow-soft: 0 10px 30px rgba(30, 58, 70, 0.08);
    --shadow-hover: 0 20px 40px rgba(30, 58, 70, 0.15);

    /* New Glassmorphism & Pro variables */
    --blur-intensity: 10px;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   PROFESSIONAL ADD-ONS
   ============================================================ */
/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--ja-green), var(--resilient-turquoise));
    z-index: 9999;
    will-change: width;
    transition: width 0.1s ease-out;
}

/* Floating Smart CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--ja-green);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(123, 176, 67, 0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(150px) scale(1);
    will-change: transform, opacity;
    opacity: 0;
    visibility: hidden;
    /* Hidden by default */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cta.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.floating-cta:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--ja-dark-blue);
    box-shadow: 0 15px 30px rgba(34, 65, 78, 0.3);
}

/* Glassmorphism Generic Class */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    border: 1px solid var(--glass-border);
}

/* Logo Ticker Styles */
.logo-ticker {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    background: var(--bg-light);
    position: relative;
}

.logo-ticker::before,
.logo-ticker::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.logo-ticker::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light), transparent);
}

.logo-ticker::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light), transparent);
}

.logo-ticker-track {
    display: flex;
    width: max-content;
    animation: scroll var(--scroll-duration, 40s) linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Al ser max-content, -50% desplaza exactamente un set entero de logos */
        transform: translateX(-50%);
    }
}

.logo-ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    width: 350px;
    height: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.ticker-item img {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.ticker-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Impact Counters Styles */
.impact-counters-section {
    padding: 80px 10%;
    background-color: var(--white);
    text-align: center;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.counter-item h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--ja-green);
    margin-bottom: 5px;
    line-height: 1;
}

.counter-item p {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ja-dark-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skeleton Loader Styles */
.skeleton-card {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 12px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}


/* ============================================================
   GLOBAL RESET & BASE STYLES
   ============================================================ */
html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray);
}

::-webkit-scrollbar-thumb {
    background: var(--ja-green);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ja-dark-blue);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--ja-green) var(--gray);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Performance: Use GPU acceleration for animations */
.glass-card,
.floating-cta,
.card,
.program-card,
.member-card,
.news-card,
.attribute-card,
.testimonial-slide-card,
.video-slide-card,
.info-card {
    will-change: transform;
    backface-visibility: hidden;
}

/* Smooth focus styles for accessibility */
:focus-visible {
    outline: 3px solid var(--ja-green);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Announcement Bar moved to Consolidated Header Section */

/* Animations moved to Consolidated Header Section */

/* Navigation Styles moved to Consolidated Header Section */

/* ============================================================
   ANIMATED TITLES
   ============================================================ */
.animated-title {
    display: block;
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    margin: 50px auto 25px auto;
    background: linear-gradient(-45deg, #22414E, #7BB043, #22414E, #5a8ca0);
    background-size: 300% 300%;
    animation: gradientBG 8s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: -1px;
    width: 100%;
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
/* Hero Mini moved to Consolidated Index Section */

.page-hero {
    min-height: 350px;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #000;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(34, 65, 78, 0.4), rgba(0, 0, 0, 0.8)), var(--imagen-fondo-cabecera);
    background-size: cover;
    background-position: center;
    opacity: 1;
}

.programs-header {
    background-color: var(--ja-dark-blue);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.programs-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
}

/* ============================================================
   SECTIONS & LAYOUT
   ============================================================ */
section {
    padding: 80px 10%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.intro-text {
    text-align: center;
    max-width: 950px;
    margin: 0 auto 50px;
    padding: 0 20px;
    color: #555;
    font-size: 1.15rem;
    font-weight: 400;
}

.section-subtitle {
    font-size: 1.6rem;
    color: var(--ja-dark-blue);
    text-transform: uppercase;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

/* Intermediate Grid Responsiveness */
@media (max-width: 1024px) {

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

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    section {
        padding: 40px 5%;
    }
}

.grid-center {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

/* ============================================================
   PILLAR SECTION
   ============================================================ */
.pilares-section {
    background-color: var(--gray);
    padding: 80px 0;
    font-family: var(--font-main);
}

/* Base Card Styles */
.card {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Softer border */
    cursor: default;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-soft);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-emprendedora:hover {
    border-color: var(--color-emprendimiento);
}


.pillar-icon-container {
    width: 120px;
    height: 120px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pillar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
}

.programs-page .pillar-img,
.programs-page .program-icon {
    filter: grayscale(100%) brightness(0);
    /* Default black ONLY on programs page */
}

/* Hover effects for logos - Restricted to programs page or specific IDs */
.programs-page .card-emprendedora:hover .pillar-img,
#emprendimiento .program-icon-wrapper:hover .program-icon {
    filter: brightness(0) saturate(100) invert(46%) sepia(99%) saturate(1600%) hue-rotate(145deg) brightness(92%) contrast(101%);
    /* Color #00a0af approximation */
}

.programs-page .card-financiera:hover .pillar-img,
#finanzas .program-icon-wrapper:hover .program-icon {
    filter: brightness(0) saturate(100%) invert(86%) sepia(40%) saturate(600%) hue-rotate(30deg) brightness(95%) contrast(85%);
    /* Color #bbd153 approximation */
}

.programs-page .card-futuro:hover .pillar-img,
#trabajo .program-icon-wrapper:hover .program-icon {
    filter: brightness(0) saturate(100%) invert(32%) sepia(35%) saturate(800%) hue-rotate(155deg) brightness(90%) contrast(90%);
    /* Color #295f75 approximation */
}

.card h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 15px 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Pillar Card Effects */
.card-emprendedora {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-emprendedora h4 {
    color: white;
}

.card-emprendedora:hover {
    transform: translateY(-15px);
    border-color: var(--color-emprendedora);
    box-shadow: 0 0 15px rgba(26, 177, 168, 0.5),
        0 0 30px rgba(26, 177, 168, 0.3),
        0 0 50px rgba(26, 177, 168, 0.2);
}

.card-financiera {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-financiera h4 {
    color: white;
}

.card-financiera:hover {
    transform: translateY(-15px);
    border-color: var(--color-financiera);
    box-shadow: 0 0 15px rgba(188, 221, 106, 0.6),
        0 0 35px rgba(188, 221, 106, 0.4),
        0 0 60px rgba(188, 221, 106, 0.2);
}

.card-futuro {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-futuro h4 {
    color: white;
}

.card-futuro:hover {
    transform: translateY(-15px);
    border-color: var(--color-futuro);
    box-shadow: 0 0 15px rgba(48, 100, 114, 0.5),
        0 0 30px rgba(48, 100, 114, 0.3),
        0 0 50px rgba(48, 100, 114, 0.2);
}

.card:hover .pillar-img {
    transform: scale(1.1);
}

/* ============================================================
   PROGRAMS SECTION
   ============================================================ */
.pilar-title {
    color: var(--ja-dark-blue);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 20px 0 15px;
    border-left: 8px solid var(--ja-dark-blue);
    padding-left: 20px;
    text-transform: uppercase;
}

#emprendimiento .pilar-title {
    color: var(--color-emprendimiento);
    border-color: var(--color-emprendimiento);
}

#trabajo .pilar-title {
    color: var(--color-trabajo);
    border-color: var(--color-trabajo);
}

#finanzas .pilar-title {
    color: var(--color-finanzas);
    border-color: var(--color-finanzas);
}

.pilar-section {
    padding: 30px 0;
    margin-bottom: 20px;
}

.programs-page-content {
    background-color: var(--optimistic-ice);
    padding: 40px 0;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.program-card {
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    color: var(--ja-dark-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.program-logo {
    width: auto;
    max-height: 70px;
    margin-bottom: 25px;
}

.program-card h3 {
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1.3rem;
}

.program-card p {
    font-weight: 500;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

.card-emprendimiento {
    background-color: var(--color-emprendimiento);
}

.card-trabajo {
    background-color: var(--color-trabajo);
}

.card-finanzas {
    background-color: var(--color-finanzas);
}

.social-ej {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-ej a img {
    width: 30px;
    height: 30px;
    transition: filter 0.3s;
}

.social-ej a:hover img {
    filter: brightness(0.5);
}

/* ============================================================
   TEAM/MEMBER CARDS
   ============================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.member-card {
    background: #fff;
    /* Solid white background */
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Softer initial shadow */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.member-card:hover {
    transform: translateY(-5px);
    /* More subtle hover */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}



.member-card img.staff-photo,
.staff-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--resilient-turquoise);
    margin-bottom: 20px;
    background-color: #f0f0f0;
    transition: border-color 0.3s ease;
}

.member-card:hover img.staff-photo,
.member-card:hover .staff-photo {
    border-color: var(--resilient-turquoise);
    /* Keep original border color on hover */
}

.member-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--immersive-blue);
    width: 100%;
}

.role {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--resilient-turquoise);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company,
.company-text {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    font-weight: 500;
    min-height: 40px;
}

.name {
    font-weight: 700;
    color: var(--ja-dark-blue);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.card-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: #eee;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================================
   SE PARTE PAGE SPECIFIC STYLES
   ============================================================ */
.se-parte-page .page-hero {
    background: linear-gradient(135deg, #22404D 0%, #162a33 100%) !important;
    height: auto !important;
    padding: 80px 20px 60px !important;
    color: white !important;
}

.se-parte-page .page-hero-bg {
    display: none !important;
}

.se-parte-page .hero-content {
    text-align: center;
}

.se-parte-page .animated-title {
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: white !important;
    margin-bottom: 0;
    text-shadow: none;
}

.info-card {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.info-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.info-card.selected::after {
    border-color: var(--ja-green);
    box-shadow: 0 0 20px rgba(123, 176, 67, 0.3);
}

.info-card.selected {
    transform: translateY(-5px);
    background: #fdfdfd;
}

/* ============================================================
   SOCIAL LINKS
   ============================================================ */
.staff-social {
    display: flex;
    justify-content: center;
    gap: 0;
    /* Reduced to 0 because SVG files already have internal whitespace */
    margin-top: 5px;
    width: 100%;
}

.social-link {
    text-decoration: none;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #707070;
    font-size: 14px;
}

.social-link img {
    width: 85px;
    /* Significant increase to make the icon inside the SVG visible */
    height: 85px;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    filter: none !important;
    opacity: 1 !important;
    margin: -15px;
    /* Pull them closer and make them feel larger within the container */
}

.social-link.email-link:hover img,
.email-link:hover img,
.social-link.linkedin-link:hover img,
.linkedin-link:hover img,
.social-link.video-link:hover img {
    transform: scale(1.15);
    filter: none !important;
}

.social-link:hover img {
    transform: scale(1.1);
}

.ln-link {
    margin-top: auto;
    color: #0077b5;
    font-size: 1.4rem;
    transition: 0.2s;
}

.ln-link:hover {
    color: var(--ja-dark-blue);
}

/* ============================================================
   VIDEO CONTAINER
   ============================================================ */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================================
   FOOTER
   ============================================================ */
.Footer,
footer {
    padding: 40px 5%;
    background-color: var(--bg-light);
    text-align: center;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #999;
}

.footer-separator {
    position: relative;
    height: 1px;
    background-color: #e5e5e5;
    margin: 40px auto 60px;
    max-width: 1100px;
    width: 90%;
}

.footer-separator-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 20px;
    background-color: var(--bg-light);
}

.footer-separator-logo img {
    height: 40px;
    width: auto;
    opacity: 0.8;
}

.social-icons-footer {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 20px 0 40px;
}

.social-icons-footer a {
    color: var(--ja-dark-blue);
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-icons-footer a:hover {
    color: var(--ja-green);
}

.Footer-business-info {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
}

/* ============================================================
   SE PARTE PAGE STYLES
   ============================================================ */
.se-parte-page {
    padding-top: 1px;
}

.se-parte-page .page-hero {
    display: flex;
    align-items: center;
    justify-content: center;
}

.se-parte-page .page-hero-bg {
    opacity: 0.8;
    z-index: 1;
}

.se-parte-page .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    width: 100%;
    max-width: 1200px;
}

.se-parte-page .animated-title {
    margin: 0;
    font-size: 3.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: var(--white);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: var(--white);
}

.join-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.se-parte-page .intro-text {
    margin-bottom: 60px;
    font-size: 1.2rem;
    color: #444;
}

.join-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.join-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.icon-emprendedora {
    color: var(--resilient-turquoise, #00A0AF);
}

.icon-ja-green {
    color: var(--ja-green, #7BB043);
}

.icon-trabajo {
    color: var(--color-futuro, #306472);
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ja-dark-blue, #22414E);
    margin-bottom: 10px;
    line-height: 1.2;
}

.card-content p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.form-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 120px;
    align-self: flex-start;
    /* Required for sticky to work in flex container */
}

.contact-form,
.alternate-view {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--ja-green, #7BB043);
}

.contact-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--ja-dark-blue, #22414E);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    background: #fdfdfd;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--ja-green, #7BB043);
    background: #fff;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--ja-dark-blue, #22414E);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
    background-color: var(--ja-green, #7BB043);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(123, 176, 67, 0.3);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1100px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .grid-3 {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .card {
        padding: 40px 25px;
    }

    .join-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .se-parte-page .animated-title {
        font-size: 2.5rem;
    }

    .form-wrapper {
        position: relative;
        top: 0;
    }

    .se-parte-page {
        padding-top: 60px;
    }
}

@media (max-width: 768px) {
    .animated-title {
        font-size: 28px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .member-card {
        padding: 30px 15px;
    }

    .member-card img,
    .staff-photo {
        /* ensure full color on all devices */
        filter: none;
        opacity: 1;
    }

    .member-card .staff-social {
        opacity: 1;
        transform: none;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .grid-2,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding: 40px 0 0;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .info-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .se-parte-page .animated-title {
        font-size: 2rem;
    }
}

/* ============================================================
   BOARD PAGE STYLES
   ============================================================ */
/* Board page wrapper - respects fixed header */
.board-page {
    padding-top: 1px;
    min-height: 100vh;
}

.board-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.board-page .animated-title {
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.board-page .intro-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.board-page .section-subtitle {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ja-dark-blue);
    margin: 60px 0 40px;
    text-transform: uppercase;
}

/* Grid for centered single item (President) */
.board-page .grid-center {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

/* Role badge for executive committee */
.board-page .role {
    background: var(--ja-green);
    color: white;
    padding: 10px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
}

.board-page .role {
    background: var(--ja-green);
    color: white;
    padding: 10px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .board-page {
        padding-top: 70px;
    }

    .board-page .section-subtitle {
        font-size: 1.5rem;
        margin: 40px 0 30px;
    }
}

/* ============================================================
   STAFF PAGE STYLES
   ============================================================ */
/* Staff page wrapper - respects fixed header */
.staff-page {
    padding-top: 1px;
    min-height: 100vh;
}

.staff-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.staff-page .animated-title {
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.staff-page .intro-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Email link styling */
.staff-page .email-link {
    transition: opacity 0.3s ease;
}

.staff-page .email-link:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .staff-page {
        padding-top: 1px;
    }

    .staff-page .intro-text {
        font-size: 1rem;
        margin-bottom: 40px;
    }
}

/* ============================================================
   ALIADOS PAGE STYLES (Strategic Partners)
   ============================================================ */
/* Consolidated from css/aliados.css - removed duplicate variables and reset styles */

/* Hero Section */
.aliados-hero {
    background: var(--ja-dark-blue);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.aliados-hero .page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.aliados-hero .hero-text {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Partners Container */
.partners-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.partner-section {
    margin-bottom: 80px;
}

/* Category Titles with Color Coding */
.category-title {
    font-size: 1.8rem;
    color: var(--ja-dark-blue);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #eee;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
}

.category-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--ja-green);
    margin: 10px auto 0;
}

/* Category-specific colors */
.category-title.platinum {
    color: #5a5a5a;
}

.category-title.gold {
    color: #bfa326;
}

.category-title.silver {
    color: #8a8a8a;
}

.category-title.bronze {
    color: #cd7f32;
}

.category-title.support {
    color: var(--ja-dark-blue);
}

/* Grid Layouts by Partner Tier */
.grid {
    display: grid;
    gap: 30px;
    justify-content: center;
}

/* Platinum: Large logos, 3-4 per row */
.platinum-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Gold and Silver: Standard size */
.gold-grid,
.silver-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* Bronze and Support: Smaller, denser layout */
.bronze-grid,
.support-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

/* Partner Logo Cards */
.partner-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 160px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* Small cards for support category */
.partner-card.small {
    height: 120px;
    padding: 15px;
}

.partner-card img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* Hover Effects - Color reveal */
.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--ja-green);
}

.partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .aliados-hero .page-title {
        font-size: 2rem;
    }

    .grid {
        gap: 15px;
    }

    .partner-card {
        height: 140px;
    }

    /* Ensure 2 columns on mobile for support grid */
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   INDEX PAGE STYLES (Homepage)
   ============================================================ */
/* Consolidated from css/navbar.css - removed duplicate variables and reset styles */

/* Hero Mini Section */
.hero-mini {
    background-color: var(--ja-dark-blue);
    padding: 80px 5%;
    display: flex;
    justify-content: center;
}

.hero-container {
    display: flex;
    align-items: center;
    max-width: 1100px;
    width: 100%;
}

.hero-image {
    flex: 0 0 45%;
}

.hero-image img {
    width: 85%;
}

.hero-text {
    flex: 0 0 55%;
    color: white;
    padding-left: 40px;
}

.hero-text h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
}

.hero-text h1 span {
    display: block;
}

/* Tablet breakpoint - stack hero on small tablets */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-image {
        flex: none;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        width: auto;
        max-height: 300px;
        max-width: 100%;
    }

    .hero-text {
        flex: none;
        padding-left: 0;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }
}

/* Section Layouts */
.index-page section {
    padding: 80px 10%;
}

.index-page .about-section {
    padding: 80px 10%;
}

.index-page .pillars-section {
    background-color: var(--gray);
    padding: 80px 10%;
}

.index-page .pillars-header {
    text-align: center;
    margin-bottom: 50px;
}

.index-page .history-section {
    padding: 80px 10%;
}

.index-page .history-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

/* Pillar Cards with Gradients */
.card {
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
    color: white;
    min-height: 320px;
}

.card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 20px 0 15px;
    text-transform: uppercase;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pillar-specific gradient backgrounds */
.card-emprendedora {
    background: linear-gradient(135deg, #1ab1a8, #179d95);
}

.card-financiera {
    background: linear-gradient(135deg, #bcdd6a, #a8c95a);
}

.card-futuro {
    background: linear-gradient(135deg, #306472, #254d58);
}

.card-stem {
    background: linear-gradient(135deg, #00763d, #005a2e);
}

.pillar-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.pillar-img {
    max-width: 80px;
    height: auto;
}

/* Nobel Prize Section */
.nobel-section {
    padding: 60px 10% !important;
    background-color: var(--white);
}

.nobel-card {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, #ffffff 0%, #fffdf0 100%);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(188, 221, 106, 0.15);
    border: 1px solid rgba(188, 221, 106, 0.2);
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: fadeInUp 1s forwards ease-out;
}

.nobel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(188, 221, 106, 0.25);
}

.nobel-logo-container {
    flex: 0 0 300px;
    background-color: #fcfcfc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.nobel-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.nobel-card:hover .nobel-logo {
    transform: scale(1.05) rotate(2deg);
}

.nobel-content {
    flex: 1;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nobel-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ja-dark-blue);
    margin-bottom: 25px;
    text-transform: none;
    line-height: 1.3;
}

.nobel-content p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 500;
}

.nobel-content p:last-child {
    margin-bottom: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base Video Container Reset for Consistency */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .nobel-card {
        flex-direction: column;
    }

    .impact-card {
        flex-direction: column-reverse;
        /* Brings logo to top on mobile */
    }

    .nobel-logo-container {
        flex: 0 0 200px;
        padding: 30px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nobel-content {
        padding: 40px 30px;
        text-align: center;
    }

    .nobel-title {
        font-size: 1.4rem;
    }
}


/* ============================================================
   IMPACT SECTION (Uruguay Impact - 3 items)
   ============================================================ */
.impact-section {
    background: #f7f9fc;
    padding: 70px 10% !important;
}

.impact-section-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.impact-section-title {
    margin-bottom: 50px;
}

.impact-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* —— Each column item —— */
.impact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 300px;
    max-width: 350px;
    padding: 20px;
    text-align: center;
}

/* —— Uruguay Map with overlay text —— */
.impact-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
}

.impact-icon-uruguay {
    width: 240px;
    /* Slightly larger for better impact */
    height: auto;
    display: block;
}

.impact-overlay {
    position: absolute;
    top: 55%;
    /* Slightly below mathematical center to hit visual center of the map */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
    text-align: center;
}

.impact-overlay * {
    margin: 0 !important;
    /* Reset any default margins */
}

/* —— Generic icon (Graduados / Conexión) —— */
.impact-icon-plain {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

/* —— Text block below icon —— */
.impact-text {
    text-align: center;
    width: 100%;
}

/* —— Big numbers / headline —— */
.impact-big-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ja-dark-blue);
    text-transform: uppercase;
    text-align: center;
}

/* On the map overlay, the number is white */
.impact-overlay .impact-big-number {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 5px !important;
}

/* —— Labels —— */
.impact-label {
    font-size: 0.95rem;
    color: #444;
    margin: 10px 0 0;
    line-height: 1.3;
    text-align: center;
}

.impact-overlay .impact-label {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
}

.impact-label--bold {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ja-dark-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.impact-label--conexion {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ja-dark-blue);
    text-transform: uppercase;
    margin-bottom: 5px !important;
}

/* —— Sub-labels (smaller) —— */
.impact-sublabel {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
    font-style: italic;
    text-align: center;
}

.impact-sublabel--conexion {
    font-size: 0.9rem;
    color: #444;
    font-style: normal;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.impact-sublabel--conexion strong {
    color: var(--ja-dark-blue);
    font-weight: 800;
}

/* Divider lines between items */
.impact-items .impact-item {
    border-right: none;
}

/* —— Responsive —— */
@media (max-width: 992px) {
    .impact-items {
        gap: 20px;
    }

    .impact-item {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    .impact-items {
        flex-direction: column;
        gap: 40px;
    }

    .impact-item {
        width: 100%;
        max-width: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 40px;
    }

    .impact-item:last-child {
        border-bottom: none;
    }

    .impact-icon-uruguay {
        width: 200px;
    }
}

/* Footer Social Title */
.footer-social-title {
    color: var(--ja-dark-blue);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        flex: 1;
        margin-bottom: 30px;
    }

    .hero-text {
        flex: 1;
        padding-left: 0;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .index-page section {
        padding: 40px 5%;
    }
}

/* ============================================================
   HEADER / NAVBAR STYLES (Global Navigation)
   ============================================================ */
/* Consolidated from css/navbar.css - removed duplicate variables and reset styles */

/* Announcement Bar with Gradient Animation */
.announcement-bar {
    background: linear-gradient(-45deg, #22414E, #3d6b7e, #22414E, #5a8ca0);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Main Header / Navbar */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    background: rgba(255, 255, 255, 0.85);
    /* Glass base */
    backdrop-filter: blur(10px);
    /* Glass blur */
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.main-header.scrolled {
    padding: 10px 5%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.menu-toggle {
    display: none;
    /* Hidden on desktop */
}

.logo img {
    height: 55px;
}

.logo a {
    display: inline-block;
}

/* Navigation Styles */
nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 30px;
    position: relative;
}

nav li.dropdown {
    padding-bottom: 10px;
    margin-bottom: -10px;
}

nav a {
    text-decoration: none;
    color: var(--ja-dark-blue);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s;
    display: inline-block;
}

nav a:hover {
    color: var(--ja-green);
}

/* CTA Link (Sé Parte) - Styled as a Button */
.cta-link {
    background-color: var(--ja-green) !important;
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: 8px;
    margin-top: -8px;
    /* Offset padding to keep vertical alignment */
    transition: all 0.3s ease !important;
}

.cta-link:hover {
    background-color: var(--ja-dark-blue) !important;
    color: var(--ja-green) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Dropdown Icon */
.dropdown-icon {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.dropdown-content::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-content a {
    font-size: 0.75rem;
    padding: 12px 25px;
    display: block;
    font-weight: 600;
    color: var(--ja-dark-blue);
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: var(--ja-green);
}

/* ============================================================
   ATTRIBUTES SECTION
   ============================================================ */
.attributes-section {
    padding: 80px 10%;
    background-color: var(--white);
}

.attributes-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title-left {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.8rem;
    color: var(--ja-dark-blue);
    position: relative;
    font-weight: 800;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.attribute-card {
    position: relative;
    height: 550px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.attribute-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.attribute-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.attribute-card:hover .attribute-bg {
    transform: scale(1.05);
}

.attribute-card--bolsa .attribute-bg {
    object-position: 70% center;
    /* Se desliza más a la derecha para mostrar mejor la acción */
}

.attribute-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

.attribute-content {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.attribute-icon-circle {
    width: 130px;
    height: 130px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    padding: 12px;
}

.attribute-icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.attribute-label {
    background: white;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--ja-dark-blue);
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    white-space: normal;
    text-align: center;
    max-width: 90%;
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .attributes-section {
        padding: 60px 5%;
    }
}

@media (max-width: 1100px) {
    .attributes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .attribute-card {
        height: 450px;
    }
}

@media (max-width: 600px) {
    .attributes-grid {
        grid-template-columns: 1fr;
    }

    .section-title-left {
        font-size: 2rem;
        text-align: center;
    }
}

/* ============================================================
   PROFILE SELECTOR COMPONENT (Shared)
   ============================================================ */
.profile-selector {
    margin: 30px auto 0;
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px;
    border-radius: 50px;
    position: relative;
    width: 340px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: transparent;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
    z-index: 2;
    text-align: center;
    transition: color 0.3s;
}

.profile-btn.active {
    color: var(--ja-dark-blue) !important;
}

.selector-bg {
    position: absolute;
    height: calc(100% - 10px);
    width: calc(33.333% - 5px);
    background: var(--color-financiera);
    border-radius: 40px;
    top: 5px;
    left: 5px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

/* Docente = 2nd button */
.body-docentes .selector-bg {
    transform: translateX(calc(100% + 5px));
}

/* Empresa = 3rd button */
.body-empresas .selector-bg,
.profile-selector.company-active .selector-bg {
    transform: translateX(calc(200% + 10px));
}

@media (max-width: 768px) {
    .profile-selector {
        width: 90%;
    }
}

/* ============================================================
   PROGRAMAS PAGE STYLES
   ============================================================ */

/* Hero Section */
.programas-hero {
    position: relative;
    min-height: 400px;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, var(--ja-dark-blue) 0%, #162a33 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px 0;
    /* Respects header height */
    z-index: 1;
}

.programas-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
}

/* Content Wrapper with curved top */
.content-wrapper {
    position: relative;
    z-index: 5;
    background-color: var(--bg-light);
    border-radius: 50px 50px 0 0;
    margin-top: -50px;
    box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.1);
}

/* Pilar Header */
.pilar-header {
    margin-bottom: 50px;
    text-align: center;
}

.pilar-icon {
    height: 90px;
    margin-bottom: 15px;
}

/* Program Cards */
.card-logo {
    height: 75px;
    margin-bottom: 30px;
    object-fit: contain;
    align-self: flex-start;
}

.desc-empresa,
.desc-docente {
    display: none;
}

.body-empresas .desc-estudiante,
.body-docentes .desc-estudiante {
    display: none;
}

.body-empresas .desc-empresa {
    display: block;
}

.body-docentes .desc-docente {
    display: block;
}

/* Overriding card styles for Programas page */
.grid .card.card-emprende {
    background-color: var(--color-emprendedora);
    color: var(--ja-dark-blue);
}

.grid .card.card-trabajo {
    background-color: var(--color-trabajo);
    color: var(--white);
}

.grid .card.card-finanzas {
    background-color: var(--color-financiera);
    color: var(--ja-dark-blue);
}

.programas-hero+.content-wrapper .card {
    align-items: center;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 50px 40px;
    border-radius: 40px;
}

.programas-hero+.content-wrapper .card:hover {
    transform: translateY(-10px);
}

/* Social Icons in cards */
.social-box {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-box img {
    width: 24px;
    filter: brightness(0) saturate(100%) invert(13%) sepia(16%) saturate(1243%) hue-rotate(156deg) brightness(96%) contrast(91%);
}

@media (max-width: 768px) {
    .programas-hero {
        height: 450px;
    }
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .main-header {
        padding: 20px 3%;
    }

    .logo img {
        height: 45px;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .announcement-bar {
        font-size: 0.65rem;
        padding: 10px;
    }
}

/* ============================================================
   PROGRAMAS PAGE ENHANCEMENTS (Píldoras y Transiciones)
   ============================================================ */
.program-tag {
    display: inline-block;
    background-color: var(--soft-gray);
    color: var(--ja-dark-blue);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.program-tag i {
    color: var(--ja-green);
    margin-right: 5px;
}

/* ============================================================
   SÉ PARTE PAGE ENHANCEMENTS (Social Proof & Live Validation)
   ============================================================ */
/* form-wrapper is defined above in the Sé Parte section */

.social-proof-quote {
    background: linear-gradient(135deg, var(--ja-dark-blue), #162a33);
    color: var(--white);
    padding: 25px 30px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 25px rgba(34, 65, 78, 0.15);
}

.quote-icon {
    font-size: 2rem;
    color: var(--ja-green);
    opacity: 0.4;
    position: absolute;
    top: 20px;
    left: 20px;
}

.social-proof-quote p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    padding-left: 30px;
}

.quote-author {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ja-green);
    text-align: right;
}

.input-with-icon {
    position: relative;
}

.validation-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) scale(0.5);
    color: #10b981;
    /* Success Green */
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.form-group input.input-valid {
    border-color: #10b981;
    padding-right: 40px;
    background-color: rgba(16, 185, 129, 0.02);
}

/* ============================================================
   GLOBAL RESPONSIVE STYLES (Consolidated)
   ============================================================ */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {

    /* Global Layout & Typography */
    section {
        padding: 60px 5%;
    }

    .container {
        padding: 40px 5%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1.3rem;
    }

    /* Collapse All Grids */
    .grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* EXCEPTION: Partner Grids (Keep multi-column) */
    .platinum-grid,
    .gold-grid,
    .silver-grid,
    .bronze-grid,
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .grid-center {
        flex-direction: column;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Header & Nav */
    .main-header {
        position: relative;
        padding: 15px 5%;
    }

    .menu-toggle {
        display: block !important;
        /* Show hamburger */
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--ja-dark-blue);
        cursor: pointer;
        position: fixed;
        /* Fixed position so it stays visible while scrolling when active */
        right: 20px;
        top: 25px;
        z-index: 2005;
        /* higher than navigation */
    }

    nav {
        width: 100%;
        display: none;
        /* Hide menu by default */
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    nav.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: white;
        z-index: 2000;
        padding: 40px;
        opacity: 1;
    }

    nav.active ul {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Hide logo when menu is open */
    .menu-open .logo {
        opacity: 0;
        pointer-events: none;
    }

    /* Ensure toggle button is above nav */
    .menu-toggle {
        z-index: 2001;
    }

    nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    nav li a {
        display: block;
        padding: 15px;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        /* Stack directly */
        transform: none;
        box-shadow: none;
        background: #f9f9f9;
        display: none;
        min-width: 100%;
        opacity: 0;
        visibility: hidden;
    }

    .dropdown.active .dropdown-content {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    /* Rotating chevron */
    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }

    /* CTA Link in menu */
    .cta-link {
        background-color: var(--ja-green) !important;
        color: var(--white) !important;
        margin-top: 15px !important;
        border-radius: 8px;
        text-align: center;
        padding: 15px !important;
    }

    /* Profile Selector (Programas/Se Parte) */
    .profile-selector {
        width: 100%;
        max-width: 340px;
        flex-direction: column;
        border-radius: 20px;
        height: auto;
    }

    .selector-bg {
        width: 100%;
        height: 33.333%;
    }

    /* Docente = 2nd button (vertical) */
    .body-docentes .selector-bg {
        transform: translateY(100%);
    }

    /* Empresa = 3rd button (vertical) */
    .body-empresas .selector-bg,
    .profile-selector.company-active .selector-bg {
        transform: translateY(200%);
    }

    /* Hero Sections */
    .page-hero {
        height: auto;
        min-height: 300px;
        padding: 60px 20px;
    }

    .programas-hero h1,
    .animated-title {
        font-size: 2rem !important;
    }

    /* Cards */
    .card,
    .member-card,
    .info-card {
        padding: 30px 20px;
    }

    /* Footer */
    .footer-separator {
        width: 100%;
        margin: 30px auto;
    }

    .Footer,
    footer {
        padding: 30px 5%;
    }

    .social-icons-footer {
        gap: 20px;
        margin: 15px 0 25px;
    }
}

@media (max-width: 600px) {
    /* ---- Animated Title ---- */
    .animated-title {
        font-size: 1.6rem;
        letter-spacing: -0.5px;
        margin: 30px auto 20px;
    }

    /* ---- Logo Ticker — scale down items so they fit on mobile ---- */
    .ticker-item {
        width: 200px;
        height: 130px;
        padding: 0 10px;
    }

    .ticker-item img {
        max-height: 80px;
        padding: 15px;
    }

    /* ---- Impact Counters — 2-column grid on tablet, stacked on phone ---- */
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }

    .counter-item h2 {
        font-size: 2.5rem;
    }

    /* ---- Hero Section ---- */
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hero-text {
        padding: 20px 20px 0;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

    .hero-image img {
        max-height: 280px;
        width: auto;
        margin: 0 auto;
        display: block;
    }

    /* ---- Pillar Cards ---- */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .card {
        padding: 35px 20px;
    }

    /* ---- Programs Page ---- */
    .programs-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        padding: 25px 20px;
    }

    .pilar-title {
        font-size: 1.5rem;
    }

    /* ---- Program Toggle ---- */
    .program-toggle-container {
        padding: 0 15px;
    }

    .program-toggle,
    .profile-selector {
        width: 100%;
        max-width: 340px;
    }

    /* ---- Sé Parte — stacked layout ---- */
    .join-grid {
        flex-direction: column;
        gap: 30px;
    }

    .join-info,
    .form-wrapper {
        width: 100%;
    }

    .contact-form,
    .alternate-view {
        padding: 25px 15px;
    }

    .social-proof-quote {
        padding: 20px;
    }

    .social-proof-quote p {
        font-size: 1rem;
        padding-left: 20px;
    }

    /* ---- Member Cards (Staff & Board) — always colored on mobile ---- */
    .member-card img,
    .staff-photo {
        filter: grayscale(0%) !important;
        opacity: 1 !important;
    }

    .member-card .staff-social {
        opacity: 1 !important;
        transform: none !important;
    }

    /* ---- Nobel / Impact Sections ---- */
    .nobel-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .nobel-logo-container {
        margin: 0 auto;
    }

    /* ---- Floating CTA — smaller on mobile ---- */
    .floating-cta {
        bottom: 15px;
        right: 15px;
        padding: 12px 18px;
        font-size: 0.8rem;
    }

    /* ---- Form Group Touch Targets ---- */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* Prevents iOS from auto-zooming */
        padding: 14px 12px;
    }

    /* ---- Info Cards (Sé Parte) ---- */
    .info-card {
        padding: 20px 15px;
        gap: 15px;
    }

    .card-icon {
        font-size: 1.8rem;
    }

    /* ---- Aliados page ---- */
    .platinum-grid,
    .gold-grid,
    .silver-grid,
    .bronze-grid,
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .partner-card {
        padding: 15px 10px;
    }

    /* ---- Page Hero ---- */
    .page-hero {
        min-height: 200px;
        padding: 40px 15px;
    }

    /* ---- News controls ---- */
    .news-controls {
        flex-direction: column;
        gap: 10px;
    }

    .search-container,
    .filters-dropdowns {
        width: 100%;
        min-width: unset;
    }

    .filters-dropdowns {
        flex-direction: column;
    }

    /* ---- Board page ---- */
    .board-page .container,
    .staff-page .container {
        padding: 20px 15px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .member-card {
        padding: 20px 12px;
    }

    .staff-photo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 5%;
    }

    h1 {
        font-size: 1.75rem;
    }

    .announcement-bar {
        font-size: 0.6rem;
    }

    .programas-hero {
        padding-top: 40px;
    }

    .grid {
        gap: 30px;
    }

    /* ---- Impact Counters — Full column on tiny screens ---- */
    .counter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .counter-item h2 {
        font-size: 2rem;
    }

    /* ---- Team grid — single column on tiny screens ---- */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* ---- Ticker — even smaller ---- */
    .ticker-item {
        width: 150px;
        height: 100px;
    }

    .ticker-item img {
        max-height: 60px;
        padding: 10px;
    }

    /* ---- Aliados — single column ---- */
    .platinum-grid,
    .gold-grid,
    .silver-grid,
    .bronze-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    /* ---- Pilar buttons ---- */
    .card h4 {
        font-size: 1rem;
    }

    /* ---- Page titles ---- */
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .animated-title {
        font-size: 1.5rem;
    }
}

/* ============================================================
   NEWS PAGE STYLES (PREMIUM REDESIGN)
   ============================================================ */

/* News Controls (Search, Filter & Sort) */
.news-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 50px;
    gap: 15px;
    flex-wrap: wrap;
    /* Good for responsiveness */
}

.search-container {
    flex: 2;
    /* Search takes more space */
    min-width: 300px;
    position: relative;
}

.filters-dropdowns {
    display: flex;
    flex: 3;
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ja-dark-blue);
    opacity: 0.6;
}

#news-search {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 1px solid rgba(34, 65, 78, 0.2);
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ja-dark-blue);
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

#news-search:focus {
    outline: none;
    border-color: var(--ja-dark-blue);
    box-shadow: 0 4px 15px rgba(34, 65, 78, 0.1);
}

.filter-container select,
.sort-container select {
    padding: 12px 20px;
    padding-right: 40px;
    border: 1px solid rgba(34, 65, 78, 0.2);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--ja-dark-blue);
    background-color: white;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322414E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1em;
    appearance: none;
    -webkit-appearance: none;
    min-width: 200px;
    transition: all 0.3s ease;
}

.filter-container select:focus,
.sort-container select:focus {
    outline: none;
    border-color: var(--ja-dark-blue);
    box-shadow: 0 4px 10px rgba(34, 65, 78, 0.05);
}

@media (max-width: 768px) {
    .filters-dropdowns {
        justify-content: stretch;
    }

    .filter-container,
    .sort-container {
        flex: 1;
        min-width: 150px;
    }

    .filter-container select,
    .sort-container select {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .filters-dropdowns {
        flex-direction: column;
    }
}

/* Loading State */
.news-loader {
    text-align: center;
    font-size: 1.2rem;
    color: var(--ja-dark-blue);
    padding: 60px;
    display: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* Premium News Card */
.news-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    /* Soft, elegant shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.news-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.news-card.has-placeholder .news-img-container {
    height: 120px;
    /* Minimized height */
    background-color: var(--soft-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.news-card.has-placeholder .news-img {
    width: auto;
    height: 60px;
    /* Small logo */
    object-fit: contain;
    opacity: 0.5;
}

.news-card.has-placeholder:hover .news-img {
    transform: scale(1.1);
    opacity: 0.8;
}

.news-img-container {
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-img {
    transform: scale(1.08);
}

/* Elegant Tag */
.news-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--ja-green);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

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

.news-title {
    font-size: 1.3rem;
    color: var(--ja-dark-blue);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
    text-transform: none;
    /* More modern look */
}

.news-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
    flex-grow: 1;
    font-weight: 400;
}

/* Elegant Button / Link */
.read-more-btn {
    align-self: flex-start;
    color: var(--ja-dark-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--ja-green);
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--ja-green);
    padding-left: 5px;
    /* Subtle movement */
}

/* ============================================================
   PREMIUM MODAL STYLES
   ============================================================ */
.news-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    /* Always on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    /* Enable scroll if content is long */
    background-color: rgba(34, 65, 78, 0.85);
    /* Deep Blue with opacity */
    backdrop-filter: blur(10px);
    /* Frosted glass effect */
    align-items: center;
    /* Center vertically */
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.news-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.news-modal-content {
    background-color: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 750px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    max-height: 90vh;
    /* Prevent it from being taller than screen */
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    will-change: transform, opacity;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
}

.news-modal.active .news-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    color: var(--ja-dark-blue);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.close-modal:hover {
    transform: rotate(90deg);
    color: var(--ja-green);
}

.modal-body-content {
    overflow-y: auto;
    /* Scroll inside the modal if needed */
    flex-grow: 1;
}

.modal-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.modal-text {
    padding: 40px;
    color: #444;
}

.modal-text .news-tag {
    position: static;
    /* Reset absolute positioning */
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: none;
    background: rgba(123, 176, 67, 0.15);
    /* Soft green bg */
    color: var(--ja-green);
    padding: 8px 18px;
    font-size: 0.75rem;
}

.modal-text h2 {
    color: var(--ja-dark-blue);
    margin: 0 0 25px 0;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.modal-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .news-modal-content {
        max-height: 95vh;
    }

    .modal-img {
        height: 250px;
    }

    .modal-text {
        padding: 25px;
    }

    .modal-text h2 {
        font-size: 1.6rem;
    }
}

/* ============================================================
   PROGRAMS PAGE STYLES (PREMIUM REDESIGN)
   ============================================================ */

.programs-page-content {
    background-color: var(--optimistic-ice);
    padding: 60px 0 100px;
}

/* Switch Component */
.program-toggle-container {
    display: flex;
    justify-content: center;
    margin: 40px 0 60px;
}

.program-toggle {
    display: flex;
    background: var(--possibility-pearl);
    padding: 6px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    position: relative;
    border: 1px solid rgba(39, 93, 114, 0.1);
}

/* Programs Page Header Redesign */
.programs-page .programs-hero {
    background: linear-gradient(135deg, #22404D 0%, #162a33 100%);
    padding: 80px 20px 60px;
    text-align: center;
    color: white;
}

.programs-page .animated-title {
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: white !important;
    margin-top: 0;
    margin-bottom: 30px;
    text-shadow: none;
    font-size: clamp(2rem, 8vw, 2.5rem);
    /* Responsive font size */
}

/* Redesign Toggle to match Se Parte */
.programs-page .program-toggle-container {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.programs-page .program-toggle {
    margin: 0 auto;
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px;
    border-radius: 50px;
    position: relative;
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.programs-page .toggle-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: transparent;
    color: white;
    font-weight: 700;
    cursor: pointer;
    z-index: 2;
    text-align: center;
    transition: color 0.3s;
    text-transform: none;
    letter-spacing: normal;
}

.programs-page .toggle-btn.active {
    color: #22404D !important;
}

.programs-page .toggle-slider {
    position: absolute;
    height: calc(100% - 10px);
    width: calc(33.333% - 5px);
    background: #bcdd6a;
    border-radius: 40px;
    top: 5px;
    left: 5px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

/* Docente = middle button → shift right by one slot */
.programs-page.body-docentes .toggle-slider {
    transform: translateX(calc(100% + 5px));
    background: #bcdd6a;
}

/* Empresa = last button → shift right by two slots */
.programs-page.body-empresas .toggle-slider {
    transform: translateX(calc(200% + 10px));
    background: #bcdd6a;
}

/* Program Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* Program Card */
.program-card {
    background: var(--possibility-pearl);
    border-radius: 30px;
    padding: 35px 25px 25px;
    /* Reduced vertical padding */
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--enterprise-aqua), var(--liderazgo-lima));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 160, 175, 0.1);
}

.program-card:hover::before {
    opacity: 1;
}

/* Icon Container */
.program-icon-wrapper {
    width: 100px;
    /* Slightly smaller */
    height: 100px;
    background: var(--optimistic-ice);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    /* Reduced air */
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.program-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--enterprise-aqua);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.program-card:hover .program-icon-wrapper {
    background: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 160, 175, 0.1);
}

.program-card:hover .program-icon-wrapper::after {
    opacity: 0.4;
    transform: scale(1.2);
}

.program-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: all 0.4s ease;
}

/* Text Logo (used when no icon image is available) */
.program-text-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    text-align: center;
    color: var(--azul-negro, #1e3a46);
}

.program-text-logo span {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    display: block;
}

.program-text-logo span:last-child {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}


/* Card Typography */
.program-name {
    font-size: 1.4rem;
    /* Slightly smaller */
    color: var(--azul-negro);
    font-weight: 800;
    margin-bottom: 12px;
    /* Reduced air */
    line-height: 1.2;
}

.program-desc {
    font-size: 1.05rem;
    color: var(--azul-ilimitado);
    line-height: 1.7;
    margin-bottom: 10px;
    /* Reduced since there's no button */
    flex-grow: 1;
    opacity: 0.85;
}

/* Profile Content Visibility — three profiles */
.desc-estudiante,
.desc-empresa,
.desc-docente {
    display: none;
    animation: slideUpFade 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Default (no modifier class) = estudiante */
body:not(.body-empresas):not(.body-docentes) .desc-estudiante {
    display: block;
}

body.body-empresas .desc-empresa {
    display: block;
}

body.body-docentes .desc-docente {
    display: block;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Button */
.btn-more {
    background: var(--enterprise-aqua);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 160, 175, 0.2);
    display: inline-block;
}

.btn-more:hover {
    background: var(--liderazgo-lima);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(123, 176, 67, 0.4);
    color: white;
}

/* Pilar Sections */
.pilar-section {
    margin-bottom: 30px;
}

.pilar-title {
    font-size: 1.8rem;
    color: var(--azul-negro);
    font-weight: 800;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pilar-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, rgba(30, 58, 70, 0.1), transparent);
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .program-card {
        padding: 30px 20px 20px;
    }
}

@media (max-width: 650px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }

    .program-toggle {
        width: 100%;
        max-width: 400px;
    }

    .toggle-btn {
        flex: 1;
        padding: 12px 10px;
        font-size: 0.8rem;
    }

    .program-name {
        font-size: 1.3rem;
    }
}

/* ============================================================
   SE PARTE ALTERNATE VIEWS (Capacitacion & Donaciones)
   ============================================================ */
.alternate-view {
    background: white;
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease;
}

.view-content .view-icon {
    font-size: 3rem;
    color: var(--ja-green);
    margin-bottom: 20px;
}

.view-content h3 {
    color: var(--ja-dark-blue);
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 800;
}

.view-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Mauricio Contact View */
.view-content-mauricio {
    padding: 40px 30px;
}

.view-content-mauricio .mauricio-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--ja-green);
}

.view-content-mauricio h3 {
    color: var(--ja-dark-blue);
    margin-bottom: 5px;
    font-size: 1.6rem;
    font-weight: 800;
}

.mauricio-role {
    color: var(--ja-green) !important;
    font-weight: 700;
    font-size: 1rem !important;
    margin-bottom: 20px !important;
}

.mauricio-description {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.mauricio-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.mauricio-contact .btn-link {
    min-width: 250px;
}

.mauricio-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f8fcfd 0%, #e8f5e9 100%);
    padding: 12px 25px;
    border-radius: 50px;
    border: 2px solid var(--ja-green);
    color: var(--ja-dark-blue);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.mauricio-email:hover {
    background: var(--ja-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 176, 67, 0.3);
}

.mauricio-email i {
    color: var(--ja-green);
    font-size: 1.2rem;
}

.mauricio-email:hover i {
    color: white;
}

.bank-details {
    background: #f8fcfd;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--ja-green);
    text-align: left;
    display: inline-block;
    max-width: 100%;
}

.bank-details strong {
    color: var(--ja-dark-blue);
    display: block;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.bank-details p {
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.btn-link {
    text-decoration: none;
    display: inline-block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   CUSTOM SUCCESS MODAL
   ============================================================ */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-card {
    background: white;
    width: 90%;
    max-width: 450px;
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.9);
    will-change: transform, opacity;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.custom-modal-overlay.active .custom-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-icon-success {
    width: 80px;
    height: 80px;
    background: var(--ja-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(121, 188, 67, 0.3);
}

.custom-modal-card h2 {
    color: var(--ja-dark-blue);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.custom-modal-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-modal-close {
    background: var(--ja-dark-blue);
    color: white;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-modal-close:hover {
    background: var(--liderazgo-lima);
    transform: scale(1.05);
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonios-section {
    background-color: var(--white);
    padding: 80px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--ja-green);
}

.testimonial-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 4px solid var(--ja-green);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   TESTIMONIAL SLIDER SECTION
   ============================================================ */
.testimonials-slider-section {
    padding: 80px 0;
    background-color: var(--white);
    overflow: hidden;
}

/* ============================================================
   MODAL STYLES
   ============================================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 65, 78, 0.8);
    /* DESEM Dark Blue with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    border-radius: 30px;
    position: relative;
    padding: 40px;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
    transform: translateY(30px) scale(0.95);
    will-change: transform, opacity;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    color: var(--ja-dark-blue);
    cursor: pointer;
    line-height: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.modal-profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--ja-green);
}

.modal-titles h3 {
    font-size: 1.8rem;
    color: var(--ja-dark-blue);
    margin: 0;
}

.modal-titles .company {
    font-size: 1.1rem;
    color: var(--ja-green);
    font-weight: 700;
    text-transform: uppercase;
}

.modal-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    white-space: pre-line;
}

.modal-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-footer .social-link {
    font-size: 1.1rem;
    color: var(--ja-dark-blue);
    text-decoration: none;
    font-weight: 700;
}

.modal-footer .social-link:hover {
    color: var(--ja-green);
}

@media (max-width: 640px) {
    .modal-content {
        padding: 30px 20px;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
    }

    .modal-titles h3 {
        font-size: 1.5rem;
    }
}

.overflow-visible {
    overflow: visible !important;
}

.testimonials-swiper {
    padding: 20px 10px 80px !important;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.swiper-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    /* Allow slides to have natural height based on content */
}

/* Grid Containers */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 1024px) {

    .testimonial-grid,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .testimonial-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Optimized Testimonials Styles - "Authority & Success" */
.testimonials-header {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.authoritative-title {
    font-size: 3.1rem;
    font-weight: 900;
    color: var(--ja-dark-blue);
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--ja-dark-blue), var(--resilient-turquoise));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: -1px;
    /* Slightly adjusted for uppercase readability */
}

.authoritative-subtitle {
    font-size: 1.3rem;
    color: #444;
    line-height: 1.6;
    font-weight: 500;
    max-width: 850px;
    margin: 0 auto;
}

.video-grid--optimized {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    width: 100%;
}

.video-grid--optimized .video-slide-card {
    flex: none;
    max-width: none;
    min-width: 0;
}



.current-role {
    font-size: 1rem;
    color: var(--resilient-turquoise);
    font-weight: 700;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.current-role strong {
    color: var(--ja-dark-blue);
    font-weight: 800;
    display: block;
    font-size: 1.2rem;
    margin-top: 2px;
}

.micro-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-top: 15px;
    font-style: italic;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
}

@media (max-width: 1200px) {
    .video-grid--optimized {
        grid-template-columns: repeat(3, 1fr);
    }

    .authoritative-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .video-grid--optimized {
        grid-template-columns: 1fr;
    }

    .authoritative-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }
}

/* Hide swiper arrows when they reach the start or end */
.testimonials-slider-section .swiper-button-disabled {
    display: none !important;
}

/* Card Styles */
.testimonial-slide-card,
.video-slide-card {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 160, 175, 0.1);
    margin: 5px;
    width: 100%;
    /* Ensure card takes full grid cell width */
}

.video-slide-card {
    padding: 15px;
    /* More compact for videos */
}

.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    border-color: var(--ja-green);
}

.preview-text {
    margin-bottom: 5px !important;
}

.read-more {
    display: inline-block;
    color: var(--ja-green);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.testimonial-slide-card:hover,
.video-slide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Text Card Specific */
.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--ja-green);
}

.testimonial-slide-card h3 {
    color: var(--ja-dark-blue);
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.testimonial-slide-card .company {
    color: var(--ja-green);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.testimonial-slide-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
}

.testimonial-slide-card .social-link {
    color: var(--ja-dark-blue);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.testimonial-slide-card .social-link:hover {
    color: var(--ja-green);
}

/* Video Card Specific */
.video-slide-card {
    padding: 0;
    overflow: hidden;
}

.video-slide-card .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-slide-card .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-slide-card .video-info {
    padding: 20px;
    text-align: center;
}

.video-slide-card h4 {
    color: var(--ja-dark-blue);
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.video-slide-card p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

/* Swiper Navigation Customization */
.slider-nav-btn {
    color: var(--ja-dark-blue) !important;
    background: var(--white);
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    top: 50% !important;
    margin-top: -40px !important;
}

.slider-nav-btn::after {
    font-size: 18px !important;
    font-weight: 800;
}

.slider-nav-btn:hover {
    background: var(--ja-dark-blue);
    color: var(--white) !important;
}

.swiper-button-next {
    right: 5px !important;
}

.swiper-button-prev {
    left: 5px !important;
}

.slider-dots {
    bottom: 20px !important;
}

.slider-dots .swiper-pagination-bullet {
    background: var(--ja-dark-blue) !important;
    opacity: 0.3;
}

.slider-dots .swiper-pagination-bullet-active {
    background: var(--ja-green) !important;
    opacity: 1;
    width: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .slider-nav-btn {
        display: none !important;
    }

    .testimonials-swiper {
        padding: 40px 10px 60px !important;
    }
}

/* ============================================================
   MOBILE RESPONSIVE FIX — COMPREHENSIVE (≤ 768px)
   ============================================================ */

/* ============================================================
   MOBILE RESPONSIVE — Extra Small (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {

    /* ---- Impact Counters — Full column on tiny screens ---- */
    .counter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .counter-item h2 {
        font-size: 2rem;
    }

    /* ---- Team grid — single column on tiny screens ---- */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* ---- Ticker — even smaller ---- */
    .ticker-item {
        width: 150px;
        height: 100px;
    }

    .ticker-item img {
        max-height: 60px;
        padding: 10px;
    }

    /* ---- Aliados — single column ---- */
    .platinum-grid,
    .gold-grid,
    .silver-grid,
    .bronze-grid,
    .support-grid {
        grid-template-columns: 1fr !important;
    }

    /* ---- Pilar buttons ---- */
    .card h4 {
        font-size: 1rem;
    }

    /* ---- Page titles ---- */
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .animated-title {
        font-size: 1.5rem;
    }
}

/* ============================================================
   PROGRAM COORDINATOR CTA (Within Cards)
   ============================================================ */
.program-coordinator-cta {
    margin-top: auto;
    padding-top: 25px;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coord-label {
    font-size: 0.85rem;
    color: #666;
    text-align: left;
}

.coord-label strong {
    color: var(--ja-dark-blue);
    display: block;
    font-size: 0.95rem;
}

.coord-actions {
    display: flex;
    gap: 8px;
}

.btn-coord-mini {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--optimistic-ice);
    color: var(--ja-dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-coord-mini:hover {
    background: var(--ja-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(123, 176, 67, 0.2);
}

@media (max-width: 480px) {
    .program-coordinator-cta {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .coord-label {
        text-align: center;
    }
}

/* ============================================================
   PROGRAMS STAFF BANNER
   ============================================================ */
.programs-staff-banner {
    padding: 60px 0;
    text-align: center;
}

.banner-content {
    background: white;
    padding: 60px 40px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.banner-content:hover {
    transform: translateY(-5px);
}

.banner-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ja-dark-blue);
    margin-bottom: 15px;
    text-transform: none;
}

.banner-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 35px;
}

.btn-staff-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--ja-dark-blue);
    color: white;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-staff-link:hover {
    background: var(--ja-green);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(123, 176, 67, 0.3);
}

.btn-staff-link i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .banner-content {
        padding: 40px 25px;
    }

    .banner-content h2 {
        font-size: 1.8rem;
    }

    .btn-staff-link {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* Replaces inline style="margin-left: 10px" on inline icons */
.icon-gap {
    margin-left: 10px;
}

/* ============================================================
   MOBILE AUDIT FIXES (max-width: 600px)
   ============================================================ */

/* Fix: Logo ticker items cause horizontal overflow on small phones */
@media (max-width: 600px) {
    .ticker-item {
        width: 200px;
        height: 140px;
        padding: 0 10px;
    }

    .ticker-item img {
        max-height: 90px;
        padding: 15px;
    }

    /* Fix: section padding too large on very small screens */
    section {
        padding: 35px 4%;
    }

    /* Fix: ensure containers don't overflow */
    .container {
        padding: 20px 15px;
    }

    /* Fix: hero text sizing on tiny screens */
    .hero-text h1 {
        font-size: 1.8rem;
    }

    /* Fix: animated titles on small screens */
    .animated-title {
        font-size: 1.4rem;
        letter-spacing: -0.5px;
    }
}