/*@font-face {
    font-family: PrincipalFont;
    src: url(./assets/AwesomeItalic.ttf);
}*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Roboto, Helvetica, sans-serif;
    /*font-family: 'JetBrains Mono';*/
}

body {
    overflow-x: hidden;
    background-color: var(--primary-black);
    color: var(--true-white);
    line-height: 1.6;
}

:root {
    --primary-black: #10181E;
    --primary-white: #eeeeee;
    --true-white: #fff;
    --accent-gray: #ccc;
    --border-color: #222;
    --party-color: #00CCFF;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    transition: background-color 0.6s ease;
    z-index: 1000;
}

.header.scrolled {
    background-color: var(--primary-white);
}

.header-section {
    height: 78px;
    display: flex;
    align-items: center;
}

.logo-section {
    border-right: 1.5px solid var(--primary-white);
    border-bottom: 1.5px solid var(--primary-white);
    width: 60%;
    display: flex;
    justify-content: center;
}

.logo-section h2 {
    font-weight: 800;
    font-size: clamp(20px, 7.5vw, 30px);
    font-family: Roboto, Helvetica, sans-serif;
    text-transform: uppercase;
    display: flex;
    gap: 5px;
}

.logo-section h2 span {
    font-weight: 300;
    font-family: Roboto, Helvetica, sans-serif;
    text-transform: lowercase;
}

.nav-section p {
    font-size: 15px;
    font-family: Roboto, Helvetica, sans-serif;
    font-weight: 100;
}

.nav-section {
    border-right: 1.5px solid var(--primary-white);
    border-bottom: 1.5px solid var(--primary-white);
    width: 20%;
    display: flex;
    justify-content: center;
}

.header-logo-link {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.header-logo {
    max-height: 55px;
    /* Adjust as needed */
    width: auto;
    object-fit: contain;
    transition: filter 0.6s ease;
}

.hamburger-section {
    border-bottom: 1.5px solid var(--primary-white);
    background-color: var(--primary-black);
    width: 20%;
    display: flex;
    justify-content: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--true-white);
}

.nav-links {
    display: flex;
    gap: 50px;
    align-items: center;
}

.nav-links a {
    color: var(--true-white);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ccc;
}

.language-toggle {
    background: none;
    border: 1px solid var(--primary-black);
    color: var(--primary-black);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.language-toggle:hover {
    background-color: var(--accent-gray);
    color: var(--primary-black);
}


/* Header scroll states */
.header.scrolled .nav-links p,
.header.scrolled .header-logo {
    filter: brightness(1) invert(0);
    /* Change to black logo on scroll */
}

.header.scrolled .logo-section,
.header.scrolled .nav-section,
.header.scrolled .hamburger-section {
    border-color: var(--primary-black);
}

.header.scrolled .logo-section h2,
.header.scrolled .nav-section p {
    color: var(--primary-black);
}

.header.scrolled a::after {
    background-color: var(--primary-black);
}

.header.hovered .nav-links a {
    color: var(--true-white);
}

.header.hovered .nav-links .language-toggle {
    color: var(--true-white);
    border: 1px solid var(--primary-white);
}

.header.hovered .logo-section,
.header.hovered .nav-section,
.header.hovered .hamburger-section {
    border-color: var(--true-white);
}

.header.hovered .whitelang {
    color: var(--true-white);
    border: 1px solid var(--true-white);
}

.header.hovered a::after {
    background-color: var(--true-white);
}

.header.hovered {
    background-color: var(--primary-black);
    color: var(--primary-white);
}

.header.scrolled.hovered .logo-section h2 {
    color: var(--primary-white);
}




/* Nav links animation */
.header a {
    position: relative;
    text-decoration: none;
    color: var(--primary-black);
    display: inline-block;
    padding: 4px 0;
}

.header a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--true-white);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.header a:hover::after {
    transform: scaleX(1);
}

/* Hamburger animation */
.hamburger {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1;
    overflow: hidden;
    background-color: var(--party-color);
}

.hamburger span {
    width: 70px;
    height: 2px;
    background-color: var(--true-white);
    transition: background-color 0.3s ease;
    z-index: 2;
    margin: 3px 0;
}

.hamburger::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--true-white);
    z-index: 1;
    transition: height 0.4s ease;
}

.hamburger:hover::before {
    height: 100%;
}

.hamburger:hover span {
    background-color: var(--primary-black);
}

/* Mega Menu */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background-color: var(--primary-black);
    padding: 2rem;
    z-index: 999;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.mega-menu.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    border-bottom: 1.5px solid var(--border-color);
}

.menu-content a {
    color: var(--true-white);
    display: block;
    padding: 1rem 0;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.menu-content a:hover {
    color: var(--accent-gray);
}

.menu-content h1 {
    color: var(--true-white);
    font-family: Roboto, Helvetica, sans-serif;
    font-size: 5rem;
    font-weight: 500;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.menu-content .language-toggle {
    border: 1px solid var(--primary-white);
    color: var(--primary-white);
}

.header.scrolled .menu-content .language-toggle {
    border: 1px solid var(--primary-white);
    color: var(--primary-white);
}

/* ---- Animación ---- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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


/*--------Hero section------------*/
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(255, 255, 255, 0) 45%), url('./assets/heroservir.jpg');
    background-size: cover;
    background-position: center;
}

.hero-title {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--true-white);
    padding: 0 1.5rem;
    display: flex;
    width: 100%;
    height: 80%;
    justify-content: center;
    align-items: flex-end;
}

.hero-title h1 {
    font-size: clamp(1rem, 9vw, 5rem);
    margin-bottom: 1.5rem;
    font-family: Roboto, Helvetica, sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    max-width: 700px;
    text-align: center;
    line-height: 80%;
}

/* Responsive Design */
@media (max-width: 1000px) {
    .nav-section {
        display: none;
    }

    .logo-section {
        width: 70%;
        justify-content: flex-start;
        padding-left: 25px;
    }

    .hamburger-section {
        width: 30%;
    }
}

@media (max-width: 600px) {
    .header-section {
        height: clamp(55px, 25vw, 78px);
    }
}

@media (max-width: 350px) {
    .hamburger span {
        width: 40px;
    }

    .logo-section h2 {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        line-height: 20px;
    }
}

/* ========== Programas sección ========== */

/* Programas Section */
.programas-showcase-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background-color: var(--primary-white);
    position: relative;
}

.programas-showcase-header {
    text-align: center;
    margin-bottom: 4rem;
}

.programas-showcase-header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 300;
    font-family: Roboto, Helvetica, sans-serif;
    line-height: 0.8;
    color: var(--primary-black);
}

.programas-showcase-header h1 .bold {
    font-weight: 800;
    font-family: Roboto, Helvetica, sans-serif;
    text-transform: uppercase;
    display: block;
    letter-spacing: -4px;
}

.programas-showcase-header p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #666;
    font-weight: 300;
    margin-top: 8px;
}

/* Cards Container */
.programas-cards-container {
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    max-width: 1400px;
    position: relative;
    height: 420px;
}

/* Individual Card */
.programas-showcase-card {
    width: 340px;
    height: 400px;
    position: absolute;
    transition: all 0.6s cubic-bezier(0.34, 1.2, 0.64, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    left: 50%;
    margin-left: -160px;
}

.programas-showcase-card:nth-child(1) {
    transform: translateX(-280px) translateY(10px) rotateZ(-6deg) rotateY(-10deg);
    z-index: 1;
}

.programas-showcase-card:nth-child(2) {
    transform: translateX(0px) translateY(0px) rotateZ(0deg);
    z-index: 3;
}

.programas-showcase-card:nth-child(3) {
    transform: translateX(280px) translateY(10px) rotateZ(6deg) rotateY(10deg);
    z-index: 3;
}

/* Hover on individual cards */
.programas-showcase-card:nth-child(1):hover {
    transform: translateX(-280px) translateY(-40px) rotateZ(0deg) rotateY(0deg) scale(1.08);
    z-index: 10;
}

.programas-showcase-card:nth-child(2):hover {
    transform: translateX(0px) translateY(-40px) rotateZ(0deg) scale(1.08);
    z-index: 10;
}

.programas-showcase-card:nth-child(3):hover {
    transform: translateX(280px) translateY(-40px) rotateZ(0deg) rotateY(0deg) scale(1.08);
    z-index: 10;
}

.programas-showcase-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.6s ease;
    background-color: #000;
}

.programas-showcase-card:hover .programas-showcase-card-inner {
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 15px 30px rgba(11, 186, 239, 0.4);
}

.programas-showcase-card-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.65);
    transition: transform 0.6s ease, filter 0.6s ease;
    opacity: 1;
}

.programas-showcase-card:hover .programas-showcase-card-background {
    transform: scale(1.08);
    filter: brightness(0.75);
}

.programas-showcase-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
    z-index: 2;
}

.programas-showcase-card-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 300;
    font-family: Roboto, Helvetica, sans-serif;
    color: var(--true-white);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.programas-showcase-card-title .bold {
    font-weight: 800;
    font-family: Roboto, Helvetica, sans-serif;
    text-transform: uppercase;
    display: block;
}

.programas-showcase-card-button {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background-color: var(--true-white);
    color: var(--primary-black);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.programas-showcase-card-button:hover {
    background-color: var(--party-color);
    color: var(--true-white);
    transform: translateY(-2px);
}

/* Shadow effect below cards */
.programas-cards-shadow {
    width: 70%;
    max-width: 900px;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.15) 40%, transparent 70%);
    filter: blur(20px);
    margin-top: -30px;
    margin-bottom: 3rem;
    border-radius: 50%;
    opacity: 0.8;
}

/* Ver más button */
.programas-ver-mas-btn {
    padding: 1.2rem 4rem;
    background-color: var(--primary-black);
    color: var(--true-white);
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: Roboto, Helvetica, sans-serif;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: lowercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: programas-pulse 2s ease-in-out infinite;
}

.programas-ver-mas-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--party-color);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.programas-ver-mas-btn:hover::before {
    width: 400px;
    height: 400px;
}

.programas-ver-mas-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(11, 186, 239, 0.4);
    animation: none;
}

.programas-ver-mas-btn span {
    position: relative;
    z-index: 1;
}

@keyframes programas-pulse {

    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(11, 186, 239, 0.3);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .programas-cards-container {
        height: 400px;
    }

    .programas-showcase-card {
        width: 300px;
        height: 350px;
        margin-left: -140px;
    }

    .programas-showcase-card:nth-child(1) {
        transform: translateX(-270px) translateY(11px) rotateZ(-6deg) rotateY(-10deg);
    }

    .programas-showcase-card:nth-child(3) {
        transform: translateX(270px) translateY(11px) rotateZ(6deg) rotateY(10deg);
    }

    .programas-showcase-card:nth-child(1):hover {
        transform: translateX(-270px) translateY(-40px) rotateZ(0deg) rotateY(0deg) scale(1.08);
    }

    .programas-showcase-card:nth-child(3):hover {
        transform: translateX(270px) translateY(-40px) rotateZ(0deg) rotateY(0deg) scale(1.08);
    }
}

@media (max-width: 900px) {
    .programas-showcase-section {
        padding: 3rem 1.5rem;
    }

    .programas-cards-container {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        padding: 0 1rem;
        height: auto;
        position: static;
    }

    .programas-showcase-card {
        width: 100%;
        max-width: none;
        height: 480px;
        position: relative;
        transform: none !important;
        margin-left: 0;
        left: auto;
    }

    .programas-showcase-card:nth-child(1),
    .programas-showcase-card:nth-child(2),
    .programas-showcase-card:nth-child(3) {
        transform: none !important;
    }

    .programas-cards-container:hover .programas-showcase-card:nth-child(1),
    .programas-cards-container:hover .programas-showcase-card:nth-child(2),
    .programas-cards-container:hover .programas-showcase-card:nth-child(3) {
        transform: none !important;
    }

    .programas-showcase-card:hover {
        transform: translateY(-20px) scale(1.03) !important;
        z-index: 10 !important;
    }

    .programas-showcase-header {
        margin-bottom: 2rem;
    }

    .programas-cards-shadow {
        width: 90%;
        max-width: 600px;
    }
}

@media (max-width: 600px) {
    .programas-showcase-section {
        padding: 2rem 1rem;
    }

    .programas-cards-container {
        padding: 0;
    }

    .programas-showcase-card {
        height: 450px;
    }

    .programas-showcase-card-overlay {
        padding: 1.5rem;
    }
}

@media (max-width: 400px) {
    .programas-showcase-card {
        height: 420px;
    }

    .programas-showcase-card-title {
        font-size: 1.5rem;
    }

    .programas-showcase-card-overlay {
        padding: 1.2rem;
    }
}

/* Programas Page Specific Styles */
.programas-page-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8rem 2rem 4rem;
    /* Adjust padding to account for fixed header */
    background-color: var(--primary-white);
    color: var(--primary-black);
}

.programas-page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
}

.programas-page-header h1 {
    font-size: clamp(2.6rem, 8vw, 5rem);
    font-weight: 300;
    font-family: Roboto, Helvetica, sans-serif;
    line-height: 0.8;
    color: var(--primary-black);
}

.programas-page-header h1 .bold {
    font-weight: 800;
    font-family: Roboto, Helvetica, sans-serif;
    text-transform: uppercase;
    display: block;
    letter-spacing: -4px;
    color: var(--party-color);
}

.programas-page-header p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #666;
    font-weight: 300;
    margin-top: 8px;
    line-height: 15px;
}

.programas-carousel-container {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory;
    /* Snap to cards */
    -webkit-overflow-scrolling: touch;
    padding: 2rem 1rem;
    max-width: 100vw;
    /* Ensure it doesn't overflow viewport */
    cursor: grab;
    align-items: center;
    height: 90vh;

    /* Removed old carousel centering and snap padding */
    scroll-padding-left: 0;
    padding-left: 0;
    padding-right: 0;
}

.programas-carousel-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for aesthetic */
}

.program-card {
    flex: 0 0 auto;
    /* Allow flex-basis to be determined by width */
    width: min(300px, 90vw);
    /* Make card width responsive */
    height: 500px;
    border-radius: 20px;
    border: 2px solid var(--primary-black);
    cursor: pointer;
    /* Removed old carousel snap alignment */
    scroll-snap-align: none;
    opacity: 0;
    /* Initially hidden for animation */
    transform: translateY(20px) scale(0.95);
    /* Initial state for animation */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    /* Animation properties */
    margin: 20px;
    /* Add margin for spacing */
}

.program-card.is-visible {
    opacity: 1;
    /* Fully visible when in view */
    transform: translateY(0) scale(1);
    /* Original size when in view */
    filter: blur(0px);
}

.program-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

.program-card-inner {
    background-color: var(--true-white);
    /* Inner background white */
    border-radius: 20px;
    /* Rounded corners for inner content */
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.program-card-background {
    padding: 15px;
    width: 100%;
    height: 280px;
    /* Image takes 60% of card height */
    object-fit: cover;
    border-radius: 30px;
    position: relative;
    /* Changed to relative */
    filter: brightness(1);
    /* No initial brightness filter */
    transition: filter 0.3s ease;
}

.program-card:hover .program-card-background {
    filter: brightness(1);
    /* No change on hover */
}

.program-card-content {
    padding: 1rem;
    color: var(--primary-black);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.program-card-title {
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    font-weight: 800;
    /* Made default bold */
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    /* All uppercase for title */
    min-height: 3.3em;
    /* Fixed height for 2-3 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    white-space: normal;
    /* Allow text to wrap */
}

.program-card-title span {
    font-weight: 300;
    /* First word lighter */
    text-transform: none;
    /* First word not uppercase */
    display: block;
}

.program-card-title .bold {
    font-weight: 800;
    text-transform: uppercase;
    display: block;
}

.program-details-separator {
    border-top: 1px dashed var(--accent-gray);
    margin: 1rem 0;
    padding-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

.program-label,
.social-label {
    font-weight: 600;
}

.program-barcode-and-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    /* Push to bottom */
}

.program-barcode {
    height: 20px;
    width: 35%;
    background: repeating-linear-gradient(90deg,
            #000 0px, #000 2px,
            transparent 2px, transparent 5px,
            #000 5px, #000 6px,
            transparent 6px, transparent 9px,
            #000 9px, #000 12px);
    opacity: 0.8;
}

.program-card-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.3rem 1rem;
    background-color: var(--primary-black);
    /* Changed to black background */
    color: var(--true-white);
    text-decoration: none;
    border-radius: 0px;
    /* No border radius */
    font-size: 0.7rem;
    /* Adjusted font size */
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.program-card-button:hover {
    background-color: var(--party-color);
    /* Hover color party color */
    color: var(--true-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 186, 239, 0.4);
    /* Added shadow on hover */
}

.program-card-button .arrow {
    font-size: 1.2rem;
    line-height: 1;
}

/* Program Modal Styles */
.program-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 2000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8);
    /* Black w/ opacity */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.program-modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--true-white);
    /* White background */
    margin: auto;
    padding: 20px;
    border: 2px solid var(--primary-black);
    /* Black border */
    border-radius: 20px;
    /* Rounded corners */
    width: 90%;
    max-width: 900px;
    /* Increased max width */
    position: relative;
    color: var(--primary-black);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
    display: flex;
    /* Flex container for left and right columns */
    gap: 20px;
    /* Space between columns */
    height: 600px;
    /* Fixed height for the modal on desktop */
    max-height: 95vh;
    /* Max height to ensure it fits the viewport */
    /* Removed overflow-y: auto, scrollbar-width, -ms-overflow-style, and ::-webkit-scrollbar from here */
}

.modal-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.close-button {
    color: var(--true-white);
    font-size: 28px;
    font-weight: bold;
    position: fixed;
    /* Keep fixed */
    top: 3%;
    /* Adjusted position */
    right: 9%;
    /* Adjusted position */
    cursor: pointer;
    z-index: 2001;
}

.close-button:hover,
.close-button:focus {
    color: #ff0000;
    text-decoration: none;
    cursor: pointer;
}

.modal-left {
    flex: none;
    /* Do not allow it to grow or shrink */
    width: 45%;
    /* Fixed width for the image column */
    height: 100%;
    /* Take full height of modal-content */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 15px;
    max-height: none;
    /* Remove max-height from here */
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 0;
}

.modal-right {
    flex: 1;
    /* Allow the right column to take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 50px;
    position: relative;
    overflow-y: auto;
    /* Make the right column independently scrollable */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.modal-right::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.program-barcode-modal {
    height: 20px;
    width: 35%;
    background: repeating-linear-gradient(90deg,
            #000 0px, #000 2px,
            transparent 2px, transparent 5px,
            #000 5px, #000 6px,
            transparent 6px, transparent 9px,
            #000 9px, #000 12px);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--primary-black);
    margin-bottom: 0.3rem;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.program-details-separator-modal {
    border-top: 1px dashed var(--primary-black);
    margin: 1rem 0;
    padding-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--primary-black);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.modal-description {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
    /* Allow description to take available space */
}

/* Estilos para el carrusel 3D */
.carousel-3d-container {
    position: relative;
    width: 100%;
    height: 590px;
    perspective: 1000px;
    margin: 2rem 0;
    overflow: hidden;
}

.carousel-3d-track {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-card {
    position: absolute;
    width: 300px;
    height: 500px;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    transform-origin: center center;
    backface-visibility: visible;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(1.5px);
}

.program-card.is-visible {
    opacity: 1;
    transform: none;
    box-shadow: 0 5px 35px rgba(0, 0, 0, 0.6);
}

.program-card.is-visible~.program-card {
    opacity: 0.6;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.carousel-nav-btn {
    background: var(--party-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: var(--true-white);
}

.carousel-nav-btn:hover {
    background: var(--primary-black);
    color: white;
    transform: scale(1.1);
}

.carousel-nav-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.carousel-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* Ajustes para móviles */
@media (max-width: 768px) {

    .program-card {
        width: 250px;
        height: auto;
    }

    .program-barcode {
        width: 20%;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }
}

/* Responsive for Program Modal */
@media (max-width: 750px) {
    .programas-page-section {
        padding: 6rem 0rem 3rem;
    }

    .programas-page-header {
        margin-bottom: 2rem;
    }

    .programas-carousel-container {
        padding: 1rem 0.5rem;
        padding-left: 0;
        scroll-padding-left: 0;
        padding-right: 0;
        height: auto;
        /* Auto height when wrapping */
    }

    .program-card {
        width: min(280px, 90vw);
        height: auto;
        margin: 10px auto;
        /* Center individual cards when wrapped */
        transform: translateY(10px) scale(0.98);
        /* Adjust initial state for mobile */
    }

    .program-barcode {
        width: 25%;
    }

    .program-card.is-visible {
        transform: translateY(0) scale(1);
        /* Original size when in view */
    }

    .modal-content {
        flex-direction: column;
        /* Stack columns on smaller screens */
        height: auto;
        /* Auto height for stacked content */
        max-height: 90vh;
        /* Max height to allow scrolling */
        overflow-y: auto;
        padding: 15px;
        gap: 15px;
    }

    .close-button {
        position: absolute;
        /* Change to absolute on mobile */
        top: 10px;
        right: 20px;
        background-color: var(--primary-black);
    }

    .modal-left {
        width: 100%;
        /* Full width on mobile */
        height: 250px;
    }

    .modal-right {
        padding-top: 0;
        /* No top padding on mobile */
        padding: 0 15px;
        padding-bottom: 20px;
    }

    .program-barcode-modal {
        width: 50%;
    }

    .modal-title {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }
}

@media (max-width: 480px) {
    .programas-carousel-container {
        padding-left: 0;
        scroll-padding-left: 0;
        padding-right: 0;
    }

    .program-card {
        width: min(240px, 90vw);
        height: auto;
        margin: 10px auto;
        /* Adjust margin for mobile */
    }

    .program-barcode {
        width: 20%;
    }

    .modal-content {
        width: 95%;
        padding: 10px;
    }

    .modal-left {
        height: 200px;
    }

    .program-barcode-modal {
        width: 60%;
    }

    .modal-title {
        font-size: clamp(1rem, 6vw, 1.8rem);
    }

    .modal-description {
        font-size: clamp(0.8rem, 2vw, 1rem);
    }
}


/* ------- form section ---------- */

/* ========== NUEVA SECCIÓN FORM ========== */
.form-section {
    background-color: var(--primary-white);
    color: var(--primary-black);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    flex-direction: column;
}

.afiliacion-pagina {
    padding: 10rem 1.5rem;
}

.form-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-title {
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-end;
    gap: 30px;
}

.form-title h1 {
    font-family: Roboto, Helvetica, sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 300;
    color: var(--primary-black);
    line-height: 0.8;
    text-align: left;
}

.form-title h1 .bold {
    font-weight: 800;
    font-family: Roboto, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: -4px;
}

.form-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: #555;
    line-height: 1;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    text-align: right;
}

.form-wrapper {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 1.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-black);
}

.form-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 1fr;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 1fr 1fr;
}

.form-group {
    position: relative;
}

.phone-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.country-code {
    flex: 0 0 120px;
    padding: 0.8rem 0.5rem;
    border: none;
    border-radius: 10px;
    background-color: rgba(200, 200, 200, 0.4);
    color: var(--primary-black);
    font-size: 1rem;
    font-family: Roboto, Helvetica, sans-serif;
    transition: all 0.3s ease;
    outline: none;
    text-align: left;
    padding-left: 0.8rem;
}

.country-code:focus {
    background-color: rgba(200, 200, 200, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-input {
    width: 100%;
    padding: 0.65rem 1.2rem;
    border: none;
    border-radius: 10px;
    background-color: rgba(200, 200, 200, 0.4);
    color: var(--primary-black);
    font-size: 1rem;
    font-family: Roboto, Helvetica, sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #888;
    opacity: 1;
}

.form-input:focus {
    background-color: rgba(200, 200, 200, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 10px;
    background-color: rgba(200, 200, 200, 0.4);
    color: var(--primary-black);
    font-size: 1rem;
    font-family: Roboto, Helvetica, sans-serif;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' 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 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.form-select:focus {
    background-color: rgba(200, 200, 200, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-select option {
    background-color: var(--true-white);
    color: var(--primary-black);
    padding: 0.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #666;
    max-width: 400px;
    margin: 25px auto;
    line-height: 20px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 30px;
    height: 30px;
    accent-color: var(--party-color);
}

.submit-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--party-color);
    color: var(--true-white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    font-family: Roboto, Helvetica, sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #0aa3d1;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 186, 239, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.optional-text {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0;
    /* Eliminar margen superior, manejado por el contenedor flex */
    text-align: right;
    /* Alineado a la derecha dentro del flex container */
}

.tse-link {
    display: block;
    margin-top: 0;
    /* Eliminar margen superior, manejado por el contenedor flex */
    color: var(--party-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-align: left;
    /* Alineado a la izquierda dentro del flex container */
    font-family: Roboto, Helvetica, sans-serif;
    transition: color 0.3s ease;
}

.tse-link:hover {
    color: #0aa3d1;
}

.empadronamiento-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

/* ------- banner section ----------  */

.banner-section {
    background-color: var(--primary-black);
    color: var(--true-white);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    flex-direction: column;
    text-align: center;
}

.banner-section h1 {
    font-family: Roboto, Helvetica, sans-serif;
    font-size: clamp(1.2rem, 7vw, 4rem);
    font-weight: 300;
    line-height: 0.9;
    text-align: center;
}

.banner-section h1 .bold {
    font-weight: 800;
    font-family: Roboto, Helvetica, sans-serif;
    letter-spacing: -2px;
}

.banner-section img {
    width: 90px;
    height: auto;
    margin-top: 1rem;
}



/* ========== SECCIÓN PILARES ========== */
.pilares-section {
    background-color: var(--primary-white);
    padding: 5rem 6rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pilares-container {
    max-width: 1200px;
    width: 100%;
}

.pilares-title {
    text-align: center;
    margin-bottom: 4rem;
}

.pilares-title h1 {
    font-family: Roboto, Helvetica, sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 300;
    color: var(--primary-black);
    line-height: 0.8;
    margin-bottom: 1rem;
}

.pilares-title h1 .bold {
    font-weight: 800;
    font-family: Roboto, Helvetica, sans-serif;
    text-transform: uppercase;
    display: block;
    letter-spacing: -4px;
}

.pilares-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr;
}

.pilar-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    min-height: 150px;
    transition: transform 0.3s ease;
}

.pilar-card:hover {
    transform: translateY(-5px);
    z-index: 10;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pilar-title {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.pilar-impulsar .pilar-title,
.pilar-rescatar .pilar-title {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding-bottom: 15px;
    padding-left: 10px;
}

.pilar-title h2 {
    font-family: Roboto, Helvetica, sans-serif;
    font-size: clamp(1.5rem, 5vw, 3rem);
    text-align: center;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.pilar-content {
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.5rem;
    background-color: var(--primary-black);
    justify-content: flex-end;
}


.pilar-rescatar .pilar-content {
    border-bottom: none;
}



.pilar-content p {
    font-family: Roboto, Helvetica, sans-serif;
    font-size: clamp(0.8rem, 2.2vw, 1rem);
    color: var(--primary-white);
    line-height: 1;
    margin: 0;
    text-align: right;
    max-width: 500px;
}

.pilar-construir .pilar-title,
.blue-pilar {
    background-color: var(--party-color);
    color: var(--primary-white);
    padding-bottom: 15px;
    padding-left: 10px;
}

.pilar-construir {
    border: 2px solid var(--primary-black);
}



/* Footer */

/* ========== FOOTER SECTION ========== */
.footer-section {
    background-color: var(--primary-black);
    color: var(--primary-white);
    border-top: 1.5px solid var(--primary-white);
}

/* Footer Header - Similar to main header */
.footer-header {
    display: flex;
    align-items: center;
    height: 78px;
    border-bottom: 1.5px solid var(--border-color);
}

.footer-section-item {
    height: 78px;
    display: flex;
    align-items: center;
    border-right: 1.5px solid var(--border-color);
}

.footer-logo-section {
    width: 60%;
    display: flex;
    justify-content: center;
}

.footer-logo-section h2 {
    font-weight: 800;
    font-size: 30px;
    font-family: Roboto, Helvetica, sans-serif;
    text-transform: uppercase;
    display: flex;
    gap: 5px;
    color: var(--primary-white);
}

.footer-logo-section h2 span {
    font-weight: 300;
    font-family: Roboto, Helvetica, sans-serif;
    text-transform: lowercase;
}

.footer-info-section {
    width: 20%;
    display: flex;
    justify-content: center;
}

.footer-info-section p {
    font-size: 15px;
    font-family: Roboto, Helvetica, sans-serif;
    font-weight: 100;
    color: var(--primary-white);
}

.footer-social-section {
    width: 20%;
    display: flex;
    justify-content: center;
    background-color: var(--party-color);
    position: relative;
    overflow: hidden;
}

.footer-social-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--true-white);
    z-index: 1;
    transition: height 0.4s ease;
}

.footer-social-section:hover::before {
    height: 100%;
}

.footer-social-section p {
    font-size: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 100;
    color: var(--primary-white);
    z-index: 2;
    position: relative;
    transition: color 0.4s ease;
}

.footer-social-section:hover p {
    color: var(--primary-black);
}

/* Footer Main Content */
.footer-main {
    padding: 3rem 0;
    border-bottom: 1.5px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    gap: 0;
}

.footer-column {
    padding: 2rem 3rem;
    border-right: 1.5px solid var(--border-color);
}

.footer-column:last-child {
    border-right: none;
}

.footer-column h3 {
    font-family: Roboto, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--primary-white);
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 1.2rem;
}

.footer-column ul li a {
    color: var(--accent-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 100;
    transition: color 0.3s ease;
    font-family: Roboto, Helvetica, sans-serif;
}

.footer-column ul li a:hover {
    color: var(--primary-white);
}

.footer-column p {
    color: var(--accent-gray);
    font-size: 0.9rem;
    font-weight: 100;
    line-height: 1.6;
    font-family: Roboto, Helvetica, sans-serif;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-item {
    font-size: 0.9rem;
    font-weight: 100;
    color: var(--accent-gray);
    font-family: Roboto, Helvetica, sans-serif;
}

/* Footer Bottom */
.footer-bottom {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-black);
}

.footer-bottom p {
    font-size: 0.8rem;
    font-weight: 100;
    color: var(--accent-gray);
    font-family: Roboto, Helvetica, sans-serif;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1000px) {
    .footer-info-section {
        display: none;
    }

    .footer-logo-section {
        width: 70%;
        justify-content: flex-start;
        padding-left: 25px;
    }

    .footer-social-section {
        width: 30%;
    }
}

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

    .footer-column {
        border-right: none;
        border-bottom: 1.5px solid var(--border-color);
        padding: 2rem 1.5rem;
    }

    .footer-column:last-child {
        border-bottom: none;
    }

    .footer-header {
        height: clamp(55px, 25vw, 78px);
    }

    .footer-section-item {
        height: clamp(55px, 25vw, 78px);
    }
}

@media (max-width: 350px) {
    .footer-logo-section h2 {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        line-height: 20px;
    }

    .footer-column {
        padding: 1.5rem 1rem;
    }
}

/* Responsive Design */


@media (max-width: 768px) {
    .form-title {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .form-title h1,
    .form-title p {
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-wrapper {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .pilares-section {
        padding: 3rem 1rem;
    }

    .pilar-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .pilar-title {
        border-right: none;
        padding: 1.5rem;
    }

    .pilar-content {
        padding: 1.5rem;
        text-align: center;
        justify-content: center;
    }

    .pilar-content p {
        text-align: center;
        font-weight: 100;
    }

    .pilares-title {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 600px) {

    .form-section {
        padding: 2rem 1rem;
    }

    .afiliacion-pagina {
        padding: 7rem 1.5rem;
    }

    .checkbox-wrapper {
        text-align: left;
    }

    .checkbox-wrapper label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .phone-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .country-code {
        flex: none;
        width: 100%;
        padding: 0.8rem 0.5rem;
    }

    .pilar-title {
        padding: 1rem;
    }

    .pilar-content {
        padding: 2rem 1.2rem;
    }

    .pilar-content p {
        font-size: 0.8rem;

    }
}

@media (max-width: 350px) {

    .form-wrapper {
        padding: 1.5rem 1rem;
    }
}

.form-row-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* Espacio entre los checkboxes */
    margin-bottom: 20px;
    justify-content: center;
}

.checkbox-wrapper-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /* Añadido para responsive */
    background-color: rgba(200, 200, 200, 0.4);
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    justify-content: center;
}

.checkbox-wrapper-inline .form-select {
    width: 100%;
    padding: 5px 10px;
    /* Ajustar padding para que quepa bien */
    font-size: 0.9rem;
    background-color: transparent;
    /* Fondo transparente para que se vea el del wrapper */
    border: none;
    /* Sin borde propio */
    box-shadow: none;
    /* Sin sombra propia */
    height: auto;
    /* Altura automática */
    color: var(--primary-black);
    /* Color de texto consistente */
    cursor: pointer;
}

.checkbox-wrapper-inline .form-select:focus {
    background-color: transparent;
    transform: none;
    box-shadow: none;
}

.checkbox-wrapper-inline input[type="checkbox"] {
    order: -1;
    /* Mover el checkbox al inicio */
    margin-right: 10px;
    accent-color: var(--party-color);
    /* Color del check */
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-wrapper-inline label {
    cursor: pointer;
    flex-grow: 1;
    white-space: nowrap;
    /* Asegura que el texto no se rompa */
}

.checkbox-wrapper-inline:hover {
    border-color: var(--party-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tse-link-below {
    display: block;
    /* Para que ocupe su propia línea */
    color: var(--party-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    /* Centrar el texto */
    margin-top: 5px;
    /* Pequeño espacio superior */
    width: 100%;
}

.tse-link-below:hover {
    color: #0aa3d1;
}

/* Optional text and TSE link styles */

/* Hide number input arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    appearance: none;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: none;
}

/* Form Grid for two columns */

.custom-select-wrapper {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.custom-select-display {
    /* Reusa estilos de form-input */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 3rem;
    /* Espacio para el icono de flecha */
    user-select: none;
}

.custom-select-display::after {
    content: '\23F7';
    /* Icono de flecha hacia abajo */
    font-size: 1.2rem;
    color: #888;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.custom-select-wrapper.open .custom-select-display::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
}

.custom-select-wrapper.open .custom-select-dropdown {
    display: flex;
}

.custom-select-search {
    width: calc(100% - 20px);
    margin: 10px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--true-white);
    color: var(--primary-black);
    outline: none;
}

.custom-select-search::placeholder {
    color: #888;
}

.custom-select-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-select-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--text-secondary);
}

.custom-select-option:hover,
.custom-select-option:focus {
    background-color: var(--bg-hover);
    outline: none;
}

.custom-select-option.no-results {
    color: #888;
    font-style: italic;
    cursor: default;
}

.custom-select-option.no-results:hover,
.custom-select-option.no-results:focus {
    background-color: transparent;
}


/* Styles for Digital ID Card */
.digital-id-card {
    background: var(--party-color);
    /* Fondo celeste */
    border: 2px solid black;
    /* Borde negro sólido */
    color: white;
    padding: 20px;
    border-radius: 0px;
    /* Bordes menos redondeados */
    max-width: 500px;
    /* Ajustar el tamaño máximo */
    height: 250px;
    /* Altura fija para el carnet */
    margin: 30px auto;
    display: flex;
    /* Usar flexbox para las columnas */
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
    /* Eliminar sombra, si no es deseada */
    animation: none;
    /* Eliminar animación */
    overflow: hidden;
    /* Asegurar que no se desborde el contenido */
}

/* Comentado porque no es parte del nuevo diseño
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
*/

/* Comentado porque no es parte del nuevo diseño
.digital-id-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: rotate(45deg);
} */

.idcarnet-title {
    color: var(--primary-black);
    margin-bottom: 10px;
    font-size: clamp(1.5rem, 8vw, 2rem);
    font-weight: 300;
    text-transform: uppercase;
    line-height: 27px;
}

.idcarnet-title .bold {
    font-weight: 800;
    font-family: Roboto, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.id-card-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-right: 20px;
    height: 100%;
    /* Asegurar que ocupe toda la altura */
}

.id-card-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* Asegurar que ocupe toda la altura */
}

.id-card-party-name {
    font-size: 2.8rem;
    /* Tamaño de fuente grande */
    font-weight: 800;
    line-height: 0.9;
    /* Espaciado de línea ajustado */
    margin-bottom: 5px;
    text-transform: uppercase;
}

.id-card-name-box {
    background-color: black;
    /* Recuadro oscuro para el nombre */
    padding: 0px 20px;
    border-radius: 0px;
    margin-bottom: 5px;
}

.id-card-user-name {
    font-size: 1rem;
    font-weight: 400;
    color: white;
    margin: 0;
    text-transform: uppercase;
}

.id-card-affiliate-number {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0px;
    margin-top: 2px;
}

.id-card-thank-you {
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
    margin: 0;
}

.id-card-logo {
    width: 120px;
    /* Ajustar tamaño del logo */
    height: auto;
    display: block;
}

/* Media queries para responsividad */
@media (max-width: 480px) {
    .digital-id-card {
        flex-direction: column;
        /* Apilar columnas en pantallas pequeñas */
        height: auto;
        padding: 15px;
    }

    .id-card-left {
        padding-right: 0;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }

    .id-card-right {
        margin-bottom: 10px;
        /* Espacio debajo del logo en móvil */
    }

    .id-card-party-name {
        font-size: 2.2rem;
    }

    .id-card-user-name {
        font-size: 1rem;
    }

    .id-card-thank-you {
        font-size: 1rem;
    }

    .id-card-logo {
        width: 100px;
    }
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


@media (max-width: 600px) {
    .digital-id-card {
        padding: 25px;
        margin: 20px auto;
    }

    .id-card-title {
        font-size: 1.5rem;
    }

    .digital-id-card p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}


/* ========== Coordinadores Section ========== */
.coordinadores-section {
    padding: 6rem 1rem;
    background-color: #f0f0f0;
    /* Light gray background like in the image */
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Roboto', sans-serif;
}

.coordinadores-header {
    text-align: center;
    margin-bottom: 2rem;
}

.coordinadores-header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 300;
    line-height: 0.8;
    color: var(--primary-black);
    letter-spacing: -1px;
}

.coordinadores-header h1 .bold {
    font-weight: 900;
    display: block;
    letter-spacing: -2px;
}

/* Toggle Buttons */
.coordinadores-controls {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.coord-toggle-btn {
    padding: 0.8rem 2rem;
    border-radius: 0px;
    border: 2px solid var(--border-color);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 6px 9px 10px rgba(0, 0, 0, 0.4);
}

.coord-toggle-btn:not(.active) {
    background-color: #1a1a1a;
    color: white;
}

.coord-toggle-btn.active {
    background-color: var(--party-color);
    /* Cyan color from image */
    color: white;
    transform: scale(1.05);
}

/* Card Container */
.coordinadores-card-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
}

.coordinadores-card {
    background-color: white;
    border-radius: 30px;
    padding: 2rem;
    width: 100%;
    box-shadow:
        0 0 0 15px #ccc,
        /* Outer gray border simulation */
        0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
}

/* Search Bar */
.coordinadores-search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-dropdown {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.search-badge {
    background-color: white;
    color: #1a1a1a;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.search-input-wrapper {
    flex-grow: 1;
    background-color: #f5f5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.8rem;
}

.search-icon {
    color: #999;
}

.search-input-wrapper input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: #333;
    outline: none;
}

/* List */
.coordinadores-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 550px;
    /* Adjusted to show approx 5 items before scrolling */
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Scrollbar styling */
.coordinadores-list::-webkit-scrollbar {
    width: 6px;
}

.coordinadores-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.coordinadores-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.coordinator-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.coordinator-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.coord-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.coord-index {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    width: 25px;
}

.coord-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    /* Prevent squashing on mobile */
}

/* Custom Dropdown Styles */
.search-dropdown {
    position: relative;
    /* For absolute positioning of the menu */
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 200px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    z-index: 100;
    display: none;
    /* Hidden by default */
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    padding: 0.8rem 1.2rem;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: var(--party-color);
}

.dropdown-item.selected {
    background-color: #e0f7fa;
    color: #006064;
    font-weight: 700;
}

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

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

/* Avatar colors based on index/random */
.coord-avatar.blue {
    background-color: #00ccff;
}

.coord-avatar.black {
    background-color: #10181e;
}

.coord-avatar.gray {
    background-color: #eeeeee;
    color: #333;
}

.coord-details {
    display: flex;
    flex-direction: column;
}

.coord-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: -1px;
    font-size: clamp(0.8rem, 5vw, 1.3rem);
    line-height: 19px;
}

.coord-role {
    font-size: clamp(0.7rem, 4.8vw, 1rem);
    color: #00b4d8;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: normal;
}

.coord-role::before {
    content: "•";
    font-size: 1.2rem;
}

.coord-location-badge {
    background-color: #d8f7ff;
    color: #00beed;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid var(--party-color);
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Responsive */
@media (max-width: 590px) {
    .coordinadores-card {
        padding: 1.2rem;
        box-shadow:
            0 0 0 6px #ccc,
            0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .coordinadores-search-bar {
        flex-direction: column;
    }

    .search-dropdown {
        width: 100%;
        justify-content: space-between;
    }

    .coord-info {
        gap: 0.6rem;
    }

    .coord-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .coord-name {
        letter-spacing: -1px;
    }

    .coord-location-badge {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Stack content on mobile to prevent horizontal scroll */
    .coordinator-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .coord-location-badge {
        width: 100%;
    }
}
/* ========== Sedes Section ========== */
.sedes-section {
    padding: 4rem 0rem;
    background-color: var(--primary-white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sedes-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sedes-header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 300;
    font-family: Roboto, Helvetica, sans-serif;
    color: var(--primary-black);
    line-height: 0.8;
}

.sedes-header h1 .bold {
    font-weight: 800;
    font-family: Roboto, Helvetica, sans-serif;
    text-transform: uppercase;
    display: block;
    letter-spacing: -2px;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.guatemala-map {
    width: 100%;
    height: auto;
    display: block;
}

/* Pins */
.sede-pin {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #ff0000;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 10;
}

.sede-pin:hover {
    transform: translate(-50%, -50%) scale(1.2);
    background-color: #00aadd;
}

.sede-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 0, 0, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-pin 2s infinite;
    z-index: -1;
}

@keyframes pulse-pin {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Popup */
.sede-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: #00BFFF; /* Cyan blue like the image */
    border-radius: 20px;
    padding: 3px; /* Border thickness */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 100;
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 2px solid #000;
    min-width: 300px;
    max-width: 90%;
}

.sede-popup.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.popup-content {
    background-color: #00BFFF;
    border-radius: 18px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    color: white;
}

.popup-icon {
    background-color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.popup-icon svg {
    color: #00BFFF;
    width: 24px;
    height: 24px;
}

.popup-info {
    flex-grow: 1;
}

.popup-info h3 {
    font-family: Roboto, Helvetica, sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 2px;
    text-transform: uppercase;
    color: white;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
    line-height: 1.1;
}

.popup-info p {
    font-family: Roboto, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: white;
    line-height: 1.2;
}

.close-popup {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.close-popup:hover {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .sede-popup {
        width: 90%;
        min-width: auto;
    }
    
    .popup-info h3 {
        font-size: clamp(0.8rem, 4.5vw, 1.3rem);
    }
    
    .popup-info p {
        font-size: clamp(0.8rem, 4.5vw, 1.3rem);
    }
}
