:root {
    --bg-main: #F4F4F9;
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --dark: #2D3142;
    --white: #FFFFFF;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --padding-mobile: 1rem;
    --border-radius: 8px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-main);
    color: var(--dark);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    line-height: 1.6;
}

/* =========================================
   CARD NAV HEADER (NUEVO)
   ========================================= */
.card-nav-header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 900;
    /* EFECTO BANDERA ARGENTINA MANTENIDO */
    border-top: 10px solid;
    border-bottom: 10px solid;
    border-left: 0;
    border-right: 0;
    border-image: linear-gradient(to bottom, #74ACDF 0%, #74ACDF 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #74ACDF 66.66%, #74ACDF 100%) 1;
}

.top-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1350px;
    margin: 0 auto;
}

/* Menú Hamburguesa */
.hamburger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 901;
}

.hamburger-btn .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-btn.open .bar:nth-child(2) { opacity: 0; }
.hamburger-btn.open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Contenedor del Menú Desplegable */
/* Contenedor del Menú Desplegable */
.card-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-main);
    padding: 30px 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: top;
    
    max-height: calc(100vh - 85px); /* Calcula el alto total de la pantalla menos el alto del header */
    overflow-y: auto; /* Activa la barra de desplazamiento vertical automática */
    padding-bottom: 50px; /* Un poco de espacio extra al final para que la última tarjeta no quede pegada al borde */
}

.card-nav-menu.hidden {
    opacity: 0;
    transform: scaleY(0);
    pointer-events: none;
}

.card-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-card {
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.nav-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
    font-size: 1.2rem;
}

.nav-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-card li { margin-bottom: 12px; }

.card-link {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 1.05rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.card-link:hover {
    opacity: 0.7;
    transform: translateX(5px);
}

/* =========================================
   SECCIONES GENERALES
   ========================================= */
.hero-section {
    background-color: rgba(45, 49, 66, 0.85); 
    background-blend-mode: overlay;
    min-height: 60vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: contain; 
    background-position: center center; 
    background-repeat: no-repeat;
    transition: background-image 1.5s ease-in-out;
    color: var(--white);
    text-align: center;
    padding: 40px 20px; 
}

.cta-button {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 22px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    font-size: 1rem;
    display: inline-block;
    white-space: nowrap;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    margin-top: 15px;
}

.cta-button:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
}

.btn-perfil {
    background-color: #f6961a !important; 
    color: #046b33 !important; 
    border: 2px solid #f6961a !important;
    box-shadow: 0 4px 15px rgba(246, 150, 26, 0.4) !important;
    font-weight: 900 !important;
}

.btn-perfil:hover {
    background-color: #046b33 !important; 
    color: #f6961a !important; 
    border: 2px solid #046b33 !important;
    box-shadow: 0 4px 15px rgba(4, 107, 51, 0.4) !important;
}

.about-section, .speakers-section, .agenda-section, .sponsors-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-section h2, .speakers-section h2, .agenda-section h2, .sponsors-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
}

.about-section p {
    font-size: 1.1rem;
    color: var(--dark);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: center;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.speaker-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--secondary);
    text-align: center;
}

.speaker-card:hover { transform: translateY(-10px); }

.speaker-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.agenda-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.agenda-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

.agenda-table th, .agenda-table td {
    border: 1px solid #E2E8F0;
    padding: 15px;
    vertical-align: top;
}

.agenda-table th {
    background-color: var(--dark);
    color: var(--white);
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.turno-col {
    background-color: var(--bg-main);
    font-weight: bold;
    color: var(--dark);
    text-align: center;
    vertical-align: middle !important;
    width: 120px;
    letter-spacing: 1px;
}

.taller-card {
    background: var(--white);
    margin: 0 0 15px 0;
    padding: 15px;
    border-radius: 12px;
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s;
    height: calc(100% - 15px);
}

.taller-card:last-child { margin-bottom: 0; }
.taller-card:active { transform: scale(0.98); }
.taller-card h4 { margin: 0 0 10px 0; }
.taller-card p { margin: 5px 0; font-size: 0.9rem; }

.sponsors-grid {
    display: grid;
    /* Ajusta dinámicamente las columnas asegurando un ancho mínimo */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    /* align-items: stretch es la clave principal. Obliga a que todas las tarjetas en la misma fila tengan la altura de la tarjeta más alta */
    align-items: stretch; 
    justify-items: center;
}

.sponsor-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 300px;
    text-align: center;
    border: 2px solid #E2E8F0;
    transition: transform 0.2s, border-color 0.2s;
    text-decoration: none;
    
    /* Convertimos el interior de la tarjeta en un contenedor Flex para alinear sus elementos */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja el texto hacia abajo y el logo hacia arriba */
    align-items: center;
    height: 100%; /* Le indicamos a la tarjeta que ocupe toda la altura que el grid le otorga */
}

.sponsor-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.sponsor-card img {
    width: 100%;
    /* Fijamos una altura estricta para el contenedor de la imagen */
    height: 110px; 
    /* object-fit: contain asegura que el logo escale para entrar en la caja de 110px de alto sin deformarse ni estirarse */
    object-fit: contain; 
    margin-bottom: 15px;
}

.sponsors-grid .sponsor-card {
    max-width: 350px !important;
    width: 100%;
}

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(45, 49, 66, 0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: var(--white); width: 90%; max-width: 550px;
    border-radius: 16px; padding: 25px; max-height: 85vh; overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: scale(0.9); transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content { transform: scale(1); }

.btn-cerrar {
    background: var(--bg-main); border: none; font-size: 1.2rem;
    font-weight: bold; color: var(--dark); padding: 5px 12px;
    border-radius: 50%; float: right; cursor: pointer;
}

.form-inscripcion {
    margin-top: 20px; background: #F8F9FA; padding: 15px;
    border-radius: 12px; border: 2px dashed var(--secondary);
}

.campo-grupo { margin-bottom: 12px; }
.campo-grupo label { display: block; font-weight: bold; margin-bottom: 5px; font-size: 0.9rem; }
.campo-grupo input { width: 100%; padding: 10px; border: 2px solid #E2E8F0; border-radius: 8px; font-size: 1rem; }
.campo-grupo input:focus { border-color: var(--primary); outline: none; }

.btn-anotarse {
    background: var(--primary); color: var(--white); border: none; padding: 12px;
    width: 100%; border-radius: 8px; font-size: 1.1rem; font-weight: bold; cursor: pointer; margin-top: 10px; transition: background 0.2s;
}
.btn-anotarse:hover { background-color: #ff5252; }

#custom-alert-overlay,
#custom-confirm-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(30, 30, 40, 0.7); display: flex; justify-content: center; align-items: center;
    z-index: 9999; backdrop-filter: blur(3px);
}
#custom-alert-overlay.hidden,
#custom-confirm-overlay.hidden { display: none; }

.custom-alert-box {
    background-color: #ffffff; width: 90%; max-width: 400px; padding: 2rem 1.5rem;
    border-radius: 12px; text-align: center; border: 2px dashed #40E0D0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); animation: popIn 0.3s ease-out forwards;
}

#custom-alert-icon svg { margin-bottom: 1rem; }
#custom-alert-message { color: #4a4a4a; font-size: 1.05rem; margin-bottom: 1.5rem; line-height: 1.5; }
#custom-alert-btn { background-color: #ff6b6b; color: white; border: none; padding: 12px 24px; border-radius: 8px; font-size: 1rem; font-weight: bold; cursor: pointer; width: 100%; }

@keyframes popIn { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.link-taller-cruzado {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: color 0.2s, transform 0.2s;
}

.link-taller-cruzado:hover {
    color: var(--secondary);
    transform: translateX(5px); 
}

.perfil-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.taller-inscrito-card {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-baja {
    background: #FF6B6B;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.taller-card.inscrito {
    border-left: 5px solid #FF9F1C; 
    background-color: #FFF9F0;      
}

.cupos-altos { color: var(--secondary); font-weight: bold; }
.cupos-medios { color: #FF9F1C; font-weight: bold; }
.cupos-bajos { color: var(--primary); font-weight: bold; }
.cupos-agotados { color: #999999; font-weight: bold; text-decoration: line-through; }

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.countdown-box {
    background-color: var(--white);
    color: var(--dark);
    width: 85px;
    height: 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 8px 0 var(--secondary), 0 15px 20px rgba(0,0,0,0.2);
    border: 3px solid var(--dark);
    transform: translateY(0);
    transition: transform 0.2s, box-shadow 0.2s;
}

.countdown-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 13px 0 var(--secondary), 0 20px 25px rgba(0,0,0,0.2);
}

.countdown-box span {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: #f6961a;
}

.countdown-box small {
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #666;
    margin-top: 5px;
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: var(--white);
    border: 2px solid #046b33;
    color: #046b33;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    background-color: #046b33;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(4, 107, 51, 0.3);
}

.agenda-dia-card {
    background-color: #046b33; 
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    color: var(--white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    animation: fadeIn 0.4s ease-in-out;
}

.agenda-dia-card h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-top: 0;
    border-bottom: 2px solid #f6961a;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.evento-item {
    background-color: var(--white);
    color: #2D3142;
    border-radius: 30px;
    padding: 12px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.evento-hora {
    color: #046b33;
    width: 130px;
    font-size: 1.1rem;
    border-right: 2px solid #E2E8F0;
    margin-right: 15px;
}

.evento-titulo { font-size: 1.05rem; }

.org-selector {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.org-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 50%;
    cursor: pointer;
    border: 4px solid transparent;
    transition: all 0.3s ease;
    filter: grayscale(80%) opacity(0.6);
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.org-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-5px);
}

.org-logo.active {
    filter: grayscale(0%) opacity(1);
    border-color: #f6961a;
    box-shadow: 0 10px 20px rgba(246, 150, 26, 0.3);
}

.org-content-box {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: fadeIn 0.4s ease-in-out;
}

.complex-footer {
    background-color: #1a1c23; 
    color: #e2e8f0;
    padding: 60px 20px 20px 20px;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    border-bottom: 1px solid #2d3142;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: #f6961a;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p { margin: 10px 0; line-height: 1.6; }

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #cbd5e1; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: #046b33; }

.social-links { display: flex; gap: 15px; margin-bottom: 25px; }
.social-links a svg { width: 24px; height: 24px; fill: currentColor; color: #cbd5e1; transition: color 0.2s, transform 0.2s; }
.social-links a:hover svg { color: #f6961a; transform: scale(1.1); }

.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input { padding: 10px; border-radius: 4px; border: none; background: #2d3142; color: white; }
.footer-bottom { text-align: center; padding-top: 20px; color: #64748b; }

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

/* =========================================
   EFECTOS DE SCROLL: BLUR Y TYPING
   ========================================= */
.blur-animated {
    transition: filter 1.2s ease-out, opacity 1.2s ease-out, transform 1.2s ease-out;
}

.blur-hidden {
    filter: blur(12px);
    opacity: 0;
    transform: translateY(30px);
}

.typing-cursor::after {
    content: '_';
    font-weight: bold;
    color: #f6961a;
    animation: blinkCursor 0.8s step-end infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes bounceInText {
    0% { opacity: 0; transform: translateY(40px); }
    60% { opacity: 1; transform: translateY(-10px); }
    80% { transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

.char-anim {
    display: inline-block;
    opacity: 0;
    animation: bounceInText 0.8s cubic-bezier(0.28, 0.84, 0.42, 1) forwards;
}

@media screen and (max-width: 768px) {
    .hero-section { padding: 30px 15px; min-height: auto; }
    .hero-section h1 { font-size: 1.8rem; line-height: 1.2; }
    .hero-section p { font-size: 1rem; }
    .countdown-box { width: 65px; height: 65px; border-width: 2px; }
    .countdown-box span { font-size: 1.5rem; }
    .countdown-box small { font-size: 0.75rem; }
    .agenda-table-wrapper { margin: 20px -20px; border-radius: 0; }
    .modal-content { width: 95%; padding: 20px 15px; }
    .speaker-avatar { width: 70px; height: 70px; font-size: 1.5rem; }
    .evento-item { flex-direction: column; align-items: flex-start; text-align: left; }
    .evento-hora { border-right: none; border-bottom: 2px solid #E2E8F0; width: 100%; margin-bottom: 5px; padding-bottom: 5px; margin-right: 0; }
}

@media screen and (max-width: 380px) {
    .countdown-box { width: 55px; height: 55px; }
    .countdown-box span { font-size: 1.2rem; }
}

/* =========================================
   ZONA DE STANDS (EDITORIALES)
   ========================================= */
.editoriales-slider {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; 
    margin-bottom: 20px;
}

.editorial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
    border: 2px solid #E2E8F0;
    width: 200px;
    text-align: center;
    flex-shrink: 0;
}

.editorial-card:hover {
    transform: translateY(-5px);
    border-color: #f6961a;
}

.editorial-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.editorial-card h4 {
    color: #046b33;
    margin: 0;
    font-size: 1.1rem;
}

/* =========================================
   EFECTO GRADUAL BLUR (TRANSICIÓN DE SECCIONES)
   ========================================= */
.seccion-relativa {
    position: relative; 
}

.gradual-blur-bottom {
    position: absolute;
    bottom: -3.5rem; 
    left: 0;
    width: 100%;
    height: 7rem; 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 50; 
}

/* =========================================
   GRILLA ESPECÍFICA PARA CREADORAS
   ========================================= */
.creadoras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* =========================================
   EFECTO SHINY PILL (INTERÉS MUNICIPAL)
   ========================================= */
.shiny-pill-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 10px;
}

.shiny-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem; /* Tamaño para PC */
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    overflow: hidden; 
    white-space: nowrap; /* Obliga al texto a no saltar de línea */
}

.shiny-text-base {
    color: var(--white);
    position: relative;
    /* Aseguramos que la base se mantenga en el nivel 1 */
    z-index: 1; 
}

.shiny-text-shine {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f6961a;
    pointer-events: none;
    /* Forzamos que la capa de brillo esté por encima */
    z-index: 2; 
    /* Forzamos la aceleración por hardware en móviles */
    transform: translateZ(0); 
    -webkit-mask-image: linear-gradient(to right, transparent 30%, #000 50%, transparent 70%);
    mask-image: linear-gradient(to right, transparent 30%, #000 50%, transparent 70%);
    -webkit-mask-size: 200% auto;
    mask-size: 200% auto;
    animation: shinyPillSweep 2.5s ease-in-out infinite;
}

@keyframes shinyPillSweep {
    0% { -webkit-mask-position: 200%; mask-position: 200%; }
    100% { -webkit-mask-position: -100%; mask-position: -100%; }
}

/* REGLA PARA MÓVILES */
@media screen and (max-width: 768px) {
    .shiny-pill {
        font-size: 0.75rem; /* Letra más pequeña solo en celulares */
        padding: 10px 20px; /* Reducimos un poco el relleno para que entre bien */
    }
    .about-section h2, .speakers-section h2, .agenda-section h2, .sponsors-section h2 {
        font-size: 1.6rem; /* Reducimos de 2rem a 1.6rem */
        padding: 0 10px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    #titulo-congreso {
        font-size: 1.7rem; /* Un poco más de jerarquía para el título principal, pero contenido */
    }
    /* =========================================
       AJUSTES MOBILE: Z-INDEX Y BLUR
       ========================================= */
    .gradual-blur-bottom {
        height: 4rem; /* Reducimos el tamaño del difuminado en móviles */
        bottom: -2rem; 
    }
    
    .about-section h2, 
    .about-section p {
        position: relative;
        z-index: 10; /* Forzamos a que el texto quede por encima del efecto blur de la sección anterior */
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow);
}
.slider-btn:hover { background: var(--dark); }

.institucion-slide {
    flex: 0 0 calc(25% - 15px); /* 4 elementos a la par en PC */
    box-sizing: border-box;
    text-align: center;
    background: var(--bg-main);
    padding: 15px;
    border-radius: var(--border-radius);
    text-decoration: none; /* Porque será un link */
    color: var(--dark);
    border: 2px solid #E2E8F0;
    transition: transform 0.3s, border-color 0.3s;
}
.institucion-slide:hover {
    transform: translateY(-5px);
    border-color: #046b33;
}
.institucion-slide img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Mobile-First: Ajustes para pantallas más pequeñas */
@media screen and (max-width: 900px) {
    .institucion-slide { flex: 0 0 calc(50% - 10px); } /* 2 a la par en tablets */
}
@media screen and (max-width: 600px) {
    .institucion-slide { flex: 0 0 100%; } /* 1 a la par en móviles */
}