:root{--header-offset:112px;}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling y offset para secciones */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

/* Import INTER font family */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
} 

/* Typography Hierarchy */
h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

p, span, div {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* Navigation and buttons use semibold */
.nav-item, .nav-link, .register-btn, .action-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* Dropdown links use medium */
.dropdown-link, .subdropdown-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}
/* Header */
.header {
    background: linear-gradient(90deg, #535858 0%, #2c3e50 100%);
    color: white;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 80px;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    gap: 1rem;
    min-height: 64px;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 100px;
    order: 1;
}

.sah-logo {
    height: 60px;
    width: auto;
    max-width: 120px;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    opacity: 0.9;
}

.sah-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    opacity: 1;
}

.sah-logo:not([src]) {
    opacity: 0.5;
    background: #f0f0f0;
    border-radius: 4px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    order: 3;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    flex: 1;
    overflow: visible;
    order: 2;
}

.nav-item, .nav-link {
    color: white;
    text-decoration: none;
    padding: 0.7rem 0.6rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    min-height: 40px;
    line-height: 1.2;
}

.nav-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.nav-link {
    padding: 0.7rem 0.6rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 1;
}

.nav-link::after {
    content: '▼';
    margin-left: 0.4rem;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.dropdown:hover .nav-link::after {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 300px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    padding: 0.5rem 0;
    border: 1px solid #e5e7eb;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    position: relative;
}

.dropdown-link {
    display: block;
    padding: 0.8rem 1.2rem;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    line-height: 1.3;
}

.dropdown-link:hover {
    background: #f8f9fa;
    border-left-color: #3498db;
    padding-left: 1.8rem;
}

/* Subdropdown Styles */
.subdropdown-content {
    position: absolute;
    top: 0;
    left: 100%;
    background: #f8f9fa;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    padding: 0.5rem 0;
    border: 1px solid #e5e7eb;
}

.dropdown-item:hover .subdropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.subdropdown-link {
    display: block;
    padding: 0.7rem 1rem;
    color: #1f2937;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    line-height: 1.3;
}

.subdropdown-link:hover {
    background: #e5e7eb;
    border-left-color: #f4a261;
    padding-left: 1.5rem;
    color: #f4a261;
}

.register-btn {
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: white;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    white-space: nowrap;
    min-height: 40px;
    box-shadow: 0 2px 8px rgba(244, 162, 97, 0.3);
    order: 4;
    flex-shrink: 0;
}

.register-btn:hover {
    background: linear-gradient(135deg, #e76f51, #d63031);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
}

/* Responsive mejorado */
@media (max-width: 1200px) {
    .header-content {
        max-width: 100%;
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .main-nav {
        gap: 0.1rem;
    }
    
    .nav-item, .nav-link {
        font-size: 0.8rem;
        padding: 0.6rem 0.4rem;
    }
    
    .register-btn {
        font-size: 0.85rem;
        padding: 0.7rem 0.9rem;
        flex-shrink: 0;
    }
    
    .dropdown-content {
        min-width: 250px;
    }
}
 
@media (max-width: 1024px) {
    .nav-item, .nav-link {
        font-size: 0.75rem;
        padding: 0.6rem 0.4rem;
    }
    
    .dropdown-content {
        min-width: 250px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .header-content {
        flex-wrap: nowrap;
        position: relative;
    }

    .logo-container {
        order: 1;
        flex: 1;
    }

    .register-btn {
        order: 2;
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }

    .main-nav {
        order: 3;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(90deg, #535858 0%, #2c3e50 100%);
        flex-direction: column;
        width: 100%;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        gap: 0;
        padding: 0;
        z-index: 999;
    }

    .main-nav.active {
        max-height: 90vh;
        padding: 1rem 0;
        overflow-y: auto;
    }

    .main-nav * {
        text-align: left !important;
    }

    .nav-item, .dropdown {
        width: 100%;
        text-align: left !important;
        display: block;
    }

    .nav-item {
        margin: 0;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: block;
        text-align: left !important;
        font-size: 1rem;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        width: 100%;
        display: flex;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: left !important;
        justify-content: space-between;
        font-size: 1rem;
    }

    /* Dropdowns móvil */
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255,255,255,0.95);
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        padding: 0;
        border: none;
    }

    .dropdown.active .dropdown-content {
        max-height: 1000px;
        padding: 0.5rem 0;
    }

    .dropdown-item {
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .dropdown-link {
        padding: 1rem 2.5rem;
        font-size: 0.95rem;
        border-left: none;
        background: transparent;
        position: relative;
        text-align: left !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-item.has-subdropdown .dropdown-link::after {
        content: '▶';
        font-size: 0.8rem;
        transition: transform 0.3s ease;
        color: #666;
        margin-left: auto;
    }

    .dropdown-item.has-subdropdown.active .dropdown-link::after {
        transform: rotate(90deg);
    }

    .dropdown-link:hover {
        background: rgba(0,0,0,0.1);
        padding-left: 2.5rem;
        border-left: none;
    }

    .subdropdown-content {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        margin: 0;
        background: rgba(230,230,230,0.95);
        box-shadow: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        padding: 0;
        border: none;
    }

    .dropdown-item.active .subdropdown-content {
        opacity: 1;
        visibility: visible;
        max-height: 600px;
        padding: 0.5rem 0;
    }

    .subdropdown-link {
        padding: 0.8rem 3.5rem !important;
        font-size: 0.9rem !important;
        border-left: none;
        color: #1f2937 !important;
        text-align: left !important;
        display: block;
        background: transparent !important;
    }

    .subdropdown-link:hover,
    .subdropdown-link:focus,
    .subdropdown-link:active {
        background: #e5e7eb !important;
        color: #f4a261 !important;
        padding-left: 3.5rem !important;
        border-left: none !important;
    }
}

/* Hero Section */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #4ABDD6;
    z-index: 1;
}

.hero {
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex: 1;
    text-align: left;
    margin-left: calc((100vw - 1200px) / 2 - 2rem + 1rem);
    max-width: calc(50% - 1.5rem);
}

.hero-text h1 {
    margin-bottom: 2rem;
    line-height: 0.85;
    letter-spacing: -0.02em;
}

.hero-number,
.hero-congreso,
.hero-argentino,
.hero-hematologia {
    font-size: 3.4rem !important;
    font-weight: 300 !important;
    color: #ecf0f1 !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0.85 !important;
    text-shadow: none !important;
}

.hero-info {
    margin-top: 2rem;
    line-height: 1.2;
}

.hero-date,
.hero-location {
    font-size: 1.4rem;
    color: #bdc3c7;
    font-weight: 500;
    letter-spacing: 0.1em;
    display: inline;
}

.hero-date::after {
    content: ' | ';
    color: #bdc3c7;
    margin: 0 0.5rem;
}

.hero-icons {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    margin-top: 1rem;
}

.hero-icons-image {
    max-width: 300px;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.2));
    opacity: 0.9;
    margin-top: -1rem;
}

.hero-icons-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.3));
    opacity: 1;
}

.hero-icons-image:not([src]) {
    opacity: 0.5;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.hero-icons-image1 {
    max-width: 450px;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.2));
    opacity: 0.9;
    margin-top: -1rem;
}

.hero-icons-image1:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.3));
    opacity: 1;
}

.hero-icons-image1:not([src]) {
    opacity: 0.5;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}


/* Action Section */
.action-section {
    background: linear-gradient(180deg, #4ABDD6 0%, #f9c4a6 30%);
    padding: 4rem 0;
    position: relative;
}

.action-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.action-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    gap: 2rem;
}

.action-left,
.action-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.action-left {
    justify-content: flex-start;
}

.action-right {
    justify-content: flex-end;
}

.sueltos-image,
.slogan-image {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.2));
}

.sueltos-image {
    max-width: 280px;
}

.slogan-image {
    max-width: 420px;
}

.sueltos-image:hover,
.slogan-image:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.3));
}

/* Info Section */
.info-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f4a261, #e76f51);
}

.info-section-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    padding: 0 2rem;
    gap: 3rem;
}

.info-section-title {
    width: 20%;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    margin: 0;
}

.info-grid {
    width: 80%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    grid-auto-rows: min-content;
}

.info-card {
    background: transparent;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.info-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.info-card .info-icon {
    width: 100%;
    height: auto;
    max-width: 120px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
    flex-shrink: 0;
}

.info-text {
    font-size: 0.75rem;
    color: white !important;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 0.5rem;
}

.info-card:hover .info-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.2));
}

/* Autoridades Section */
.autoridades-section {
    padding: 4rem 0;
    background: white;
    position: relative;
}

.autoridades-section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.autoridades-tabs-container {
    background: white;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
}

.autoridades-tabs {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    margin-bottom: 2rem;
    position: relative;
}

.autoridades-tab-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.tab-image {
    height: 50px;
    width: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.tab-image:hover {
    transform: scale(1.05);
    opacity: 1;
}

.autoridades-tab-btn {
    background: white;
    border: none;
    padding: 15px 25px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 45px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.autoridades-tab-wrapper:nth-child(1) .autoridades-tab-btn {
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: white;
}

.autoridades-tab-wrapper:nth-child(2) .autoridades-tab-btn {
    background: #4ABDD6;
    color: white;
}

.autoridades-tab-wrapper:nth-child(3) .autoridades-tab-btn {
    background: #666666;
    color: white;
}

.autoridades-tab-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.autoridades-tab-btn.active {
    opacity: 1;
}

.tab-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
    margin-left: 0;
}

.autoridades-content-wrapper {
    display: flex;
    gap: 0;
    border: none;
    border-radius: 0;
}

.autoridades-title-sidebar {
    width: 200px;
    background: white;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    flex-shrink: 0;
}

.autoridades-section-title {
    color: #2c3e50;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    writing-mode: horizontal-tb;
    transform: rotate(0deg);
    letter-spacing: 1px;
}

.autoridades-content {
    flex: 1;
    background: white;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.autoridades-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.autoridades-tab-content.active {
    display: block;
}

.autoridades-main-content {
    padding: 2rem;
}

.autoridades-section-block {
    margin-bottom: 3rem;
    position: relative;
}

.autoridades-section-block:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        #333 0,
        #333 8px,
        transparent 8px,
        transparent 16px
    );
}

.autoridades-section-header {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 0.5rem;
}

.autoridades-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: start;
}

.autoridades-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.autoridad-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* SOLUCIÓN COMPLETA PARA AUTORIDADES MÓVIL */
/* Reemplazar la sección de autoridades móvil en styles.css */

/* Base improvements for better readability */
.cargo-label {
    color: #666666;
    font-size: 0.75rem; /* Increased from 0.65rem */
    font-weight: 500; /* Increased from 400 */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3; /* Increased from 1.2 */
    margin-bottom: 0.5rem; /* Added margin */
}

.nombre-value {
    color: #2c3e50;
    font-size: 0.95rem; /* Increased from 0.85rem */
    font-weight: 500; /* Increased from 400 */
    line-height: 1.4; /* Increased from 1.3 */
}

/* MÓVIL - REDISEÑO COMPLETO PARA MEJOR LEGIBILIDAD */
@media (max-width: 768px) {
    .autoridades-content {
        padding: 0; /* Remove extra padding */
    }
    
    .autoridades-main-content {
        padding: 1rem; /* Reduced from 2rem */
    }
    
    .autoridades-section-block {
        margin-bottom: 2rem; /* Reduced from 3rem */
    }
    
    .autoridades-section-header {
        font-size: 1.1rem; /* Increased from 1rem */
        margin-bottom: 1.2rem; /* Reduced from 1.5rem */
        font-weight: 700;
        text-align: center;
        color: #f4a261;
        background: rgba(244, 162, 97, 0.1);
        padding: 0.8rem;
        border-radius: 8px;
        border-left: 4px solid #f4a261;
    }
    
    .autoridades-grid-layout {
        display: block; /* Change from grid to block */
        gap: 0;
    }
    
    .autoridades-column {
        margin-bottom: 0; /* Remove bottom margin */
    }
    
    /* REDISEÑO COMPLETO DE TARJETAS INDIVIDUALES */
    .autoridad-row {
        margin-bottom: 1.5rem; /* Increased spacing between items */
        padding: 1rem; /* Add padding for better touch targets */
        background: white; /* Clean white background */
        border-radius: 12px; /* More rounded corners */
        border: 2px solid #f8f9fa; /* Subtle border */
        box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* Soft shadow */
        transition: all 0.3s ease;
        position: relative;
    }
    
    .autoridad-row:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(244, 162, 97, 0.15);
        border-color: #f4a261;
    }
    
    /* INDICADOR VISUAL LATERAL */
    .autoridad-row::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(to bottom, #f4a261, #e76f51);
        border-radius: 4px 0 0 4px;
    }
    
    .cargo-label {
        font-size: 0.85rem; /* Significantly increased */
        font-weight: 700; /* Bolder */
        color: #f4a261; /* More prominent color */
        margin-bottom: 0.8rem; /* Increased margin */
        letter-spacing: 0.8px;
        text-transform: uppercase;
        display: block;
        text-align: left;
        padding-left: 0.5rem; /* Add some left padding */
    }
    
    .nombre-value {
        font-size: 1.1rem; /* Significantly increased */
        font-weight: 500;
        line-height: 1.6; /* More breathing room */
        color: #2c3e50;
        display: block;
        text-align: left;
        padding-left: 0.5rem; /* Add some left padding */
        word-wrap: normal;
        hyphens: auto;
    }
    
    /* MEJORAR TABS MÓVIL */
    .autoridades-tabs-container {
        margin-bottom: 1.5rem;
    }
    
    .autoridades-tabs {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
        background: #f8f9fa;
        border-radius: 12px;
    }
    
    .autoridades-tab-wrapper {
        width: 100%;
        justify-content: flex-start;
    }
    
    .autoridades-tab-btn {
        width: 100%;
        padding: 1rem; /* Increased padding */
        min-height: 60px; /* Ensure touch-friendly height */
        text-align: left;
        justify-content: flex-start;
        border-radius: 8px;
        font-size: 0.85rem;
    }
    
    .tab-image {
        height: 40px; /* Slightly smaller for mobile */
        margin-right: 0.8rem;
    }
    
    .tab-text {
        font-size: 0.8rem; /* Increased from 0.75rem */
        font-weight: 700;
        line-height: 1.3;
        flex: 1;
    }
    
    /* MEJORAR TÍTULO SIDEBAR */
    .autoridades-title-sidebar {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 1rem 0.5rem;
        background: linear-gradient(135deg, #f4a261, #e76f51);
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }
    
    .autoridades-section-title {
        font-size: 1.4rem; /* Increased */
        line-height: 1.3;
        color: white;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        margin: 0;
    }
    
    /* LAYOUT CONTENEDOR */
    .autoridades-content-wrapper {
        flex-direction: column;
        gap: 0;
    }
}

/* Pantallas muy pequeñas (teléfonos en portrait) */
@media (max-width: 480px) {
    .autoridades-main-content {
        padding: 0.8rem;
    }
    
    .autoridad-row {
        padding: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .cargo-label {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .nombre-value {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .autoridades-section-header {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding: 0.6rem;
    }
    
    .tab-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .autoridades-section-title {
        font-size: 1.2rem;
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .cargo-label {
        font-size: 0.8rem;
    }
    
    .nombre-value {
        font-size: 1rem;
    }
    
    .autoridades-grid-layout {
        grid-template-columns: repeat(2, 1fr); /* 2 columns instead of 3 */
        gap: 2rem;
    }
}

/* TÍTULOS DINÁMICOS MEJORADOS */
.autoridades-section-title {
    color: #2c3e50;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    writing-mode: horizontal-tb;
    transform: rotate(0deg);
    letter-spacing: 1px;
    line-height: 1.2;
    transition: all 0.3s ease;
}

/* Responsive para títulos más largos */
@media (max-width: 1024px) {
    .autoridades-section-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
}

@media (max-width: 768px) {
    .autoridades-title-sidebar {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 1rem 0.5rem;
    }
    
    .autoridades-section-title {
        font-size: 1.2rem;
        line-height: 1.4;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .autoridades-section-title {
        font-size: 1rem;
        line-height: 1.5;
        letter-spacing: 0.5px;
    }
}

/* Resumenes Section */
.resumenes-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #4ABDD6 0%, #f9c4a6 100%);
    position: relative;
}

.resumenes-section-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resumenes-section-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.resumenes-section-subtitle {
    color: black;
    font-size: 1.5rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    text-align: center;
    margin-bottom: 3rem;
}

.resumenes-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    width: 100%;
    max-width: 800px;
}

.resumenes-card {
    background: transparent;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    width: 300px;
    flex-shrink: 0;
}

.resumenes-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.resumenes-card .resumenes-icon {
    width: 100%;
    height: auto;
    max-width: 140px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
    flex-shrink: 0;
}

.resumenes-text {
    font-size: 0.85rem;
    color: black !important;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 1rem;
}

.resumenes-text a {
    color: black !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resumenes-text a:hover {
    text-decoration: underline;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.resumenes-card:hover .resumenes-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.2));
}

/* Responsive para tablets */
@media (max-width: 1024px) {
    .resumenes-grid {
        gap: 3rem;
        max-width: 700px;
    }
    
    .resumenes-card {
        width: 280px;
        min-height: 180px;
        padding: 1.8rem;
    }
    
    .resumenes-card .resumenes-icon {
        max-width: 120px;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .resumenes-grid {
        flex-direction: column;
        gap: 2.5rem;
        max-width: 350px;
    }
    
    .resumenes-card {
        width: 100%;
        max-width: 320px;
        min-height: 180px;
        padding: 1.5rem;
    }
    
    .resumenes-card .resumenes-icon {
        max-width: 110px;
        margin-bottom: 1rem;
    }
    
    .resumenes-text {
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .resumenes-section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .resumenes-section-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
}

/* Programa Section - CON FONDO DEGRADÉ SUAVE */
/* REEMPLAZAR DESDE AQUÍ EN TU styles.css (buscar "/* Programa Section" y reemplazar todo hasta "/* Inscripciones Section") */

/* REEMPLAZAR COMPLETAMENTE LA SECCIÓN PROGRAMA EN styles.css */

/* Programa Section - CON SCROLL HORIZONTAL FORZADO */
.programa-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #E8F4FD 0%, #FFF2E8 100%);
    position: relative;
    overflow-x: visible; /* IMPORTANTE */
}

.programa-section-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow-x: visible; /* IMPORTANTE */
}

.programa-section-title {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.tabs-container {
    background: #f8f9fa;
    padding: 0;
    border-bottom: 1px solid #dee2e6;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 20px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    flex: 1;
    min-width: 200px;
}

.tab-btn:hover {
    color: #495057;
    background: rgba(108, 117, 125, 0.1);
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: white;
}

.tab-content {
    display: none;
    padding: 30px 15px; /* Reducido padding lateral */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 10px 10px;
    animation: fadeIn 0.5s ease;
    backdrop-filter: blur(10px);
    overflow-x: visible; /* IMPORTANTE */
}

.tab-content.active {
    display: block;
}

#miercoles.tab-content {
    background: linear-gradient(135deg, #F0F8FF 0%, #E6F3FF 100%);
    backdrop-filter: blur(10px);
}

#jueves.tab-content {
    background: linear-gradient(135deg, #F0FFF4 0%, #E6FFE6 100%);
    backdrop-filter: blur(10px);
}

#viernes.tab-content {
    background: linear-gradient(135deg, #FFFEF0 0%, #FFF9E6 100%);
    backdrop-filter: blur(10px);
}

#sabado.tab-content {
    background: linear-gradient(135deg, #FFF5F8 0%, #FFE6F0 100%);
    backdrop-filter: blur(10px);
}

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

.day-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 300;
}

.venue-section {
    margin-bottom: 40px;
    overflow-x: visible; /* IMPORTANTE */
}

.venue-title {
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.venue-title.sheraton {
    background: linear-gradient(135deg, #f4a261, #e76f51);
}

.venue-title.costa-galana {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* CONTENEDOR DE SCROLL - CLAVE PARA EL FIX */
.schedule-wrapper {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: white;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #3498db #f1f1f1;
    /* FORZAR ANCHO MÍNIMO */
    width: 100%;
    min-width: 100%;
    position: relative;
}

.schedule-wrapper::-webkit-scrollbar {
    height: 14px;
}

.schedule-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.schedule-wrapper::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
}

.schedule-wrapper::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* GRID BASE - CLAVE: display: grid NO SE PUEDE CAMBIAR */
.schedule-grid {
    display: grid !important;
    gap: 1px;
    background: #dee2e6;
    border-radius: 10px;
    overflow: visible;
    margin-bottom: 0;
    /* FORZAR ANCHOS MÍNIMOS ABSOLUTOS */
    width: max-content !important;
    min-width: max-content !important;
}

/* GRIDS ESPECÍFICOS CON ANCHOS FIJOS ABSOLUTOS */
.sheraton-grid {
    grid-template-columns: 70px 120px 120px 120px 120px 120px 120px 120px 120px 120px 120px 120px !important;
    width: 1510px !important;
    min-width: 1510px !important;
}

.costa-galana-grid {
    grid-template-columns: 70px 120px 120px 120px 120px 120px !important;
    width: 670px !important;
    min-width: 670px !important;
}

/* CELDAS CON ANCHOS MÍNIMOS */
.time-header, 
.room-header {
    background: #495057;
    color: white;
    padding: 8px 4px;
    font-weight: 600;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    min-width: 120px; /* FORZAR ANCHO MÍNIMO */
    max-width: 120px;
    word-wrap: normal;
    hyphens: auto;
    white-space: normal;
    overflow-wrap: normal;
    box-sizing: border-box;
}

.time-slot {
    background: #6c757d;
    color: white;
    padding: 8px 4px;
    text-align: center;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    min-width: 70px; /* FORZAR ANCHO MÍNIMO */
    max-width: 70px;
    font-size: 0.7rem;
    line-height: 1.1;
    white-space: nowrap;
    box-sizing: border-box;
}

.activity-slot {
    background: white;
    padding: 6px 4px;
    min-height: 50px;
    min-width: 120px; /* FORZAR ANCHO MÍNIMO */
    max-width: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.activity-slot:hover {
    background: #f8f9fa;
    border-color: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.2);
}

.activity-slot.empty {
    background: #f8f9fa;
    cursor: default;
    color: #6c757d;
}

.activity-slot.empty:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
    background: #f8f9fa;
}

.activity-slot.cafe {
    background: #d4edda;
    color: #155724;
    font-weight: 600;
}

.activity-slot.cafe:hover {
    background: #c3e6cb;
}

.activity-title {
    font-weight: 600;
    color: inherit;
    margin: 0;
    line-height: 1.2;
    text-align: center;
    word-wrap: normal;
    hyphens: auto;
    white-space: normal;
    overflow-wrap: normal;
    max-width: 100%;
}

/* RESPONSIVE - MANTENER ANCHOS FIJOS */
@media (max-width: 1400px) {
    .sheraton-grid {
        grid-template-columns: 65px 110px 110px 110px 110px 110px 110px 110px 110px 110px 110px 110px !important;
        width: 1375px !important;
        min-width: 1375px !important;
    }
    
    .costa-galana-grid {
        grid-template-columns: 65px 110px 110px 110px 110px 110px !important;
        width: 615px !important;
        min-width: 615px !important;
    }
    
    .time-header, .room-header {
        min-width: 110px;
        max-width: 110px;
        font-size: 0.7rem;
        padding: 6px 3px;
        min-height: 55px;
    }
    
    .time-slot {
        min-width: 65px;
        max-width: 65px;
        font-size: 0.65rem;
        padding: 6px 3px;
        min-height: 45px;
    }
    
    .activity-slot {
        min-width: 110px;
        max-width: 110px;
        font-size: 0.65rem;
        padding: 4px 3px;
        min-height: 45px;
    }
}

@media (max-width: 1200px) {
    .programa-section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .sheraton-grid {
        grid-template-columns: 60px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px !important;
        width: 1260px !important;
        min-width: 1260px !important;
    }
    
    .costa-galana-grid {
        grid-template-columns: 60px 100px 100px 100px 100px 100px !important;
        width: 560px !important;
        min-width: 560px !important;
    }
    
    .time-header, .room-header {
        min-width: 100px;
        max-width: 100px;
        font-size: 0.65rem;
        padding: 5px 2px;
        min-height: 50px;
    }
    
    .time-slot {
        min-width: 60px;
        max-width: 60px;
        font-size: 0.6rem;
        padding: 5px 2px;
        min-height: 40px;
    }
    
    .activity-slot {
        min-width: 100px;
        max-width: 100px;
        font-size: 0.6rem;
        padding: 3px 2px;
        min-height: 40px;
    }
    
    .tab-btn {
        padding: 15px 30px;
        font-size: 1rem;
        min-width: 150px;
    }
    
    .venue-title {
        font-size: 1.2rem;
        padding: 12px 20px;
    }
}

@media (max-width: 1024px) {
    .sheraton-grid {
        grid-template-columns: 55px 90px 90px 90px 90px 90px 90px 90px 90px 90px 90px 90px !important;
        width: 1145px !important;
        min-width: 1145px !important;
    }
    
    .costa-galana-grid {
        grid-template-columns: 55px 90px 90px 90px 90px 90px !important;
        width: 505px !important;
        min-width: 505px !important;
    }
    
    .time-header, .room-header {
        min-width: 90px;
        max-width: 90px;
        font-size: 0.6rem;
        padding: 4px 2px;
        min-height: 45px;
    }
    
    .time-slot {
        min-width: 55px;
        max-width: 55px;
        font-size: 0.55rem;
        padding: 4px 2px;
        min-height: 35px;
    }
    
    .activity-slot {
        min-width: 90px;
        max-width: 90px;
        font-size: 0.55rem;
        padding: 2px 1px;
        min-height: 35px;
    }
}

@media (max-width: 768px) {
    .programa-section-content {
        padding: 0 1rem;
    }
    
    .programa-section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .tab-content {
        padding: 20px 5px; /* Padding aún más reducido */
    }
    
    .venue-title {
        font-size: 1.1rem;
        padding: 10px 15px;
        margin-bottom: 15px;
    }
    
    /* INDICADOR DE SCROLL VISIBLE */
    .schedule-wrapper::before {
        content: "👈 Desliza horizontalmente para ver todas las columnas 👉";
        display: block;
        text-align: center;
        padding: 10px;
        background: #fff3cd;
        color: #856404;
        font-size: 0.8rem;
        font-weight: 600;
        border: 1px solid #ffeaa7;
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .sheraton-grid {
        grid-template-columns: 50px 85px 85px 85px 85px 85px 85px 85px 85px 85px 85px 85px !important;
        width: 1085px !important;
        min-width: 1085px !important;
    }
    
    .costa-galana-grid {
        grid-template-columns: 50px 85px 85px 85px 85px 85px !important;
        width: 475px !important;
        min-width: 475px !important;
    }
    
    .time-header, .room-header {
        min-width: 85px;
        max-width: 85px;
        font-size: 0.55rem;
        padding: 3px 1px;
        min-height: 40px;
    }
    
    .time-slot {
        min-width: 50px;
        max-width: 50px;
        font-size: 0.5rem;
        padding: 3px 1px;
        min-height: 30px;
    }
    
    .activity-slot {
        min-width: 85px;
        max-width: 85px;
        font-size: 0.5rem;
        padding: 2px 1px;
        min-height: 30px;
    }
    
    .activity-title {
        font-size: 0.5rem;
        line-height: 1.1;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: auto;
        width: 100%;
        border-bottom: 1px solid #dee2e6;
        border-radius: 0;
    }
    
    .tab-btn.active {
        border-bottom-color: #3498db;
        border-left: 3px solid #3498db;
    }
    
    .schedule-wrapper::-webkit-scrollbar {
        height: 12px;
    }
}

@media (max-width: 480px) {
    .sheraton-grid {
        grid-template-columns: 45px 80px 80px 80px 80px 80px 80px 80px 80px 80px 80px 80px !important;
        width: 1005px !important;
        min-width: 1005px !important;
    }
    
    .costa-galana-grid {
        grid-template-columns: 45px 80px 80px 80px 80px 80px !important;
        width: 445px !important;
        min-width: 445px !important;
    }
    
    .time-header, .room-header {
        min-width: 80px;
        max-width: 80px;
        font-size: 0.5rem;
        padding: 2px 1px;
        min-height: 35px;
    }
    
    .time-slot {
        min-width: 45px;
        max-width: 45px;
        font-size: 0.45rem;
        padding: 2px 1px;
        min-height: 25px;
    }
    
    .activity-slot {
        min-width: 80px;
        max-width: 80px;
        font-size: 0.45rem;
        padding: 1px;
        min-height: 25px;
    }
    
    .activity-title {
        font-size: 0.45rem;
    }
    
    .venue-title {
        font-size: 1rem;
        padding: 8px 12px;
    }
}

 
/* Inscripciones Section - BASE */
        .inscripciones-section {
            padding: 4rem 0;
            background: linear-gradient(180deg, #4ABDD6 0%, #f9c4a6 100%);
            position: relative;
        }

        .inscripciones-section-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .inscripciones-section-title {
            color: white;
            font-size: 2.5rem;
            font-weight: 700;
            font-family: 'Inter', sans-serif;
            text-align: center;
            margin-bottom: 3rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        /* Contenedor unificado para inscripciones */
        .inscripciones-unified-container {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            border: 2px solid #ddd;
        }

        /* TABLA DESKTOP - GRID NORMAL */
        .pricing-table {
            margin: 0;
            padding: 0;
            width: 100%;
        }

        .pricing-grid {
            display: grid;
            grid-template-columns: 200px repeat(9, 1fr);
            margin: 0;
            padding: 0;
            width: 100%;
        }

        .pricing-grid > div {
            border: 1px solid #ccc;
            box-sizing: border-box;
            padding: 0.7rem 0.5rem;
            font-size: 0.8rem;
            text-align: center;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* CATEGORÍA ocupa 2 filas */
        .pricing-grid .categoria-combinada {
            grid-row: span 2;
            grid-column: 1;
            background: #666666;
            color: white;
            font-weight: 700;
            font-size: 0.8rem;
            text-align: center;
        }

        /* Títulos de congresos */
        .pricing-grid .congress-title-argentino {
            grid-column: 2 / 4;
            background: #f4a261;
            color: white;
            font-weight: 700;
        }

        .pricing-grid .congress-title-pediatria {
            grid-column: 4 / 6;
            background: #e76f51;
            color: white;
            font-weight: 700;
        }

        .pricing-grid .congress-title-citometria {
            grid-column: 6 / 9;
            background: #4ABDD6;
            color: white;
            font-weight: 700;
        }

        .pricing-grid .congress-title-enfermeria {
            grid-column: 9 / 11;
            background: #666666;
            color: white;
            font-weight: 700;
        }

        /* Subcategorías - estilos base */
        .pricing-grid .subcategory {
            font-size: 0.7rem;
            color: white;
            font-weight: 600;
        }

        /* Subcategorías con colores específicos por congreso */
        .pricing-grid .subcategory.socios-sah,
        .pricing-grid .subcategory.no-socios {
            background: #f4a261; /* Congreso Argentino */
        }

        .pricing-grid .subcategory.socios-sah-pediatria,
        .pricing-grid .subcategory.no-socios-pediatria {
            background: #e76f51; /* Congreso Pediatría */
        }

        .pricing-grid .subcategory.socios-sah-citometria,
        .pricing-grid .subcategory.socios-grcf,
        .pricing-grid .subcategory.no-socios-citometria {
            background: #4ABDD6; /* Citometría */
        }

        .pricing-grid .subcategory.socios-sah-enfermeria,
        .pricing-grid .subcategory.no-socios-enfermeria {
            background: #666666; /* Enfermería */
        }

        /* Categorías de filas */
        .pricing-grid .category-label {
            background: #666666;
            color: white;
            font-weight: 700;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            min-height: 70px;
            padding: 1.2rem 1rem;
        }

        /* Precios */
        .pricing-grid .price,
        .pricing-grid .price-sin-cargo {
            color: #2c3e50;
            font-family: 'Inter', sans-serif;
            font-size: 0.9rem;
            font-weight: 700;
            min-height: 70px;
        }

        .pricing-grid .price-sin-cargo {
            color: #f4a261;
            font-weight: 700;
        }

        /* Celdas vacías */
        .pricing-grid .empty-cell {
            background-color: #f9f9f9;
            color: transparent;
        }

        /* VERSIÓN MÓVIL ALTERNATIVA - OCULTA POR DEFECTO */
        .pricing-mobile {
            display: none;
            width: 100%;
        }

        .pricing-congress {
            margin-bottom: 2rem;
            border: 2px solid #ddd;
            border-radius: 10px;
            overflow: hidden;
            background: white;
        }

        .congress-header {
            padding: 1rem;
            font-weight: 700;
            color: white;
            text-align: center;
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .congress-header.argentino {
            background: #f4a261;
        }

        .congress-header.pediatria {
            background: #e76f51;
        }

        .congress-header.citometria {
            background: #4ABDD6;
        }

        .congress-header.enfermeria {
            background: #666666;
        }

        .pricing-rows {
            background: white;
        }

        .pricing-row {
            display: flex;
            border-bottom: 1px solid #e9ecef;
            min-height: 60px;
        }

        .pricing-row:last-child {
            border-bottom: none;
        }

        .category-mobile {
            flex: 2;
            background: #666666;
            color: white;
            padding: 1rem;
            font-weight: 700;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            text-transform: uppercase;
        }

        .price-columns {
            flex: 3;
            display: flex;
        }

        .price-column {
            flex: 1;
            padding: 1rem 0.5rem;
            border-left: 1px solid #e9ecef;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 60px;
        }

        .price-column-header {
            font-size: 0.65rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            text-transform: uppercase;
            color: #666;
            text-align: center;
            line-height: 1.2;
        }

        .price-column-value {
            font-size: 0.8rem;
            font-weight: 700;
            color: #2c3e50;
            text-align: center;
        }

        .price-column-value.sin-cargo {
            color: #f4a261;
        }

        .price-column-value.empty {
            color: transparent;
        }

        /* Separador entre secciones */
        .section-divider {
            height: 2px;
            background: #666666;
            margin: 0;
            border: none;
        }

        /* Secciones de contenido */
        .payment-section,
        .bank-info,
        .registration-info {
            width: 100% !important;
            background: transparent;
            padding: 2.5rem;
            border-radius: 0;
            margin-bottom: 0;
            box-shadow: none;
        }

        /* Formas de pago */
        .payment-title {
            color: #2c3e50;
            font-size: 1.5rem;
            font-weight: 700;
            font-family: 'Inter', sans-serif;
            text-align: center;
            margin-bottom: 2rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .payment-methods {
            display: flex;
            justify-content: center;
            gap: 3rem;
            flex-wrap: wrap;
            align-items: flex-start;
        }

        .payment-method {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            max-width: 180px;
            transition: transform 0.3s ease;
        }

        .payment-method:hover {
            transform: translateY(-5px);
        }

        .payment-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
        }

        .payment-label {
            font-size: 0.85rem;
            color: #2c3e50;
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            line-height: 1.4;
            text-align: center;
        }

        /* Información bancaria */
        .bank-notice {
            text-align: center;
            margin-bottom: 2.5rem;
            color: #2c3e50;
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            line-height: 1.6;
            padding: 1.5rem;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #f4a261;
            font-size: 0.9rem;
        }

        .bank-notice strong {
            color: #f4a261;
            font-weight: 700;
        }

        .bank-details {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .bank-item {
            text-align: center;
            padding: 1.5rem;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #e9ecef;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .bank-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .bank-item h4 {
            color: #2c3e50;
            font-size: 1rem;
            font-weight: 700;
            font-family: 'Inter', sans-serif;
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .bank-item p {
            color: #6c757d;
            font-family: 'Inter', sans-serif;
            font-size: 0.85rem;
            line-height: 1.5;
            font-weight: 500;
        }

        /* Registro */
        .registration-info {
            text-align: center;
        }

        .registration-info p {
            color: #2c3e50;
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            margin-bottom: 2rem;
            line-height: 1.6;
            font-size: 0.95rem;
        }

        .registration-info strong {
            color: #f4a261;
            font-weight: 700;
        }

        .registration-btn {
            background: linear-gradient(135deg, #f4a261, #e76f51);
            color: white;
            border: none;
            padding: 1.5rem 3rem;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 700;
            font-family: 'Inter', sans-serif;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 15px rgba(244, 162, 97, 0.3);
            text-decoration: none;
        }

        .registration-btn:hover {
            background: linear-gradient(135deg, #e76f51, #d63031);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(244, 162, 97, 0.4);
        }

        .registration-btn:active {
            transform: translateY(-1px);
        }

        .cursor-icon {
            font-size: 1.5rem;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-5px);
            }
            60% {
                transform: translateY(-3px);
            }
        }

        /* RESPONSIVE BREAKPOINTS */

        /* Tablet responsive */
        @media (max-width: 1024px) {
            .pricing-grid {
                grid-template-columns: 160px repeat(9, 1fr);
            }
            
            .pricing-grid .category-label {
                font-size: 0.8rem;
                padding: 1rem 0.5rem;
            }
            
            .pricing-grid .subcategory {
                font-size: 0.7rem;
                padding: 0.8rem 0.3rem;
            }
            
            .pricing-grid .price,
            .pricing-grid .price-sin-cargo {
                font-size: 0.8rem;
                padding: 0.8rem 0.3rem;
            }
            
            .payment-methods {
                gap: 2rem;
            }
            
            .bank-details {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.5rem;
            }
        }

        /* MÓVIL - CAMBIO COMPLETO A LAYOUT VERTICAL */
        @media (max-width: 768px) {
            .inscripciones-section-title {
                font-size: 2rem;
                margin-bottom: 2rem;
            }

            /* OCULTAR TABLA DESKTOP */
            .pricing-table {
                display: none !important;
            }

            /* MOSTRAR VERSIÓN MÓVIL */
            .pricing-mobile {
                display: block !important;
                width: 100%;
                padding: 0;
            }

            /* Formas de pago móvil */
            .payment-methods {
                flex-direction: column;
                gap: 1.5rem;
                align-items: center;
            }

            .payment-method {
                max-width: 250px;
            }
            
            .bank-details {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .registration-btn {
                padding: 1.2rem 2rem;
                font-size: 0.9rem;
            }

            .payment-section,
            .bank-info,
            .registration-info {
                padding: 2rem 1.5rem;
            }

            .payment-title {
                font-size: 1.3rem;
            }
        }

        @media (max-width: 480px) {
            .inscripciones-section-content {
                padding: 0 1rem;
            }

            .inscripciones-section-title {
                font-size: 1.8rem;
            }

            .congress-header {
                font-size: 0.9rem;
                padding: 0.8rem;
            }

            .category-mobile {
                font-size: 0.75rem;
                padding: 0.8rem;
            }

            .price-column {
                padding: 0.8rem 0.3rem;
            }

            .price-column-header {
                font-size: 0.6rem;
            }

            .price-column-value {
                font-size: 0.75rem;
            }

            .payment-section,
            .bank-info,
            .registration-info {
                padding: 1.5rem 1rem;
            }

            .payment-title {
                font-size: 1.2rem;
            }

            .registration-btn {
                padding: 1rem 1.5rem;
                font-size: 0.8rem;
            }
        }
    
 

/* Registro */
.registration-info {
    text-align: center;
}

.registration-info p {
    color: #2c3e50;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.registration-info strong {
    color: #f4a261;
    font-weight: 700;
}

.registration-btn {
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.3);
    text-decoration: none;
}

.registration-btn:hover {
    background: linear-gradient(135deg, #e76f51, #d63031);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 162, 97, 0.4);
}

.registration-btn:active {
    transform: translateY(-1px);
}

.cursor-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 1.5rem 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 2rem;
    position: relative;
}

/* Línea vertical separadora */
.footer-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: white;
}

.footer-section {
    width: 50%;
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 2rem;
    padding: 0 2rem;
}

.footer-logo {
    flex-shrink: 0;
}

/* Logo SAH normal */
.footer-section:first-child .footer-logo-img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

/* Logo Grupo Uno 40% más chico */
.footer-section:last-child .footer-logo-img {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.footer-logo-img:hover {
    transform: scale(1.05);
    opacity: 1;
}

.footer-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.footer-line {
    color: #bdc3c7;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    margin: 0.1rem 0;
    line-height: 1.2;
    display: block;
    width: 100%;
}

.footer-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.footer-line a {
    color: #87CEEB;
    text-decoration: none;
}

.footer-line a:hover {
    color: white;
    text-decoration: underline;
}

/* Línea horizontal separadora */
.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid white;
    color: #bdc3c7;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card, .invitado-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive mejorado */
@media (max-width: 1200px) {
    .main-nav {
        gap: 1.5rem;
    }
    
    .nav-item,
    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
    }
    
    .dropdown-content {
        min-width: 250px;
    }
}

@media (max-width: 1024px) {
    .main-nav {
        gap: 1.2rem;
    }
    
    .nav-item,
    .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.5rem;
    }
    
    /* Tablet responsive para tabla de inscripciones */
    .pricing-grid {
        grid-template-columns: 160px repeat(9, 1fr);
    }
    
    .pricing-grid .category-label {
        font-size: 0.8rem;
        padding: 1rem 0.5rem;
    }
    
    .pricing-grid .subcategory {
        font-size: 0.7rem;
        padding: 0.8rem 0.3rem;
    }
    
    .pricing-grid .price,
    .pricing-grid .price-sin-cargo {
        font-size: 0.8rem;
        padding: 0.8rem 0.3rem;
    }
    
    .payment-methods {
        gap: 2rem;
    }
    
    .bank-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }

    .schedule-grid {
        grid-template-columns: 100px repeat(auto-fit, minmax(120px, 1fr));
        font-size: 0.7rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Hero móvil */
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        margin-left: 0;
        max-width: 100%;
        text-align: center;
    }

    .hero-number,
    .hero-congreso,
    .hero-argentino,
    .hero-hematologia {
        font-size: 2.5rem !important;
    }

    .hero-date, .hero-location {
        font-size: 1.2rem;
    }

    .hero-icons {
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        margin-top: 0;
    }
    
    .hero-icons-image {
        margin-top: 0;
    }

    /* Action section móvil */
    .action-content {
        flex-direction: column;
        background: linear-gradient(180deg, #5DADE2 0%, #F8C471 100%);
        align-items: center;
    }

    /* Info section móvil */
    .info-section-content {
        flex-direction: column;
        gap: 2rem;
    }

    .info-section-title {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }

    .info-grid {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .info-text {
        font-size: 0.65rem;
    }

    /* Tabla de inscripciones móvil */
    .pricing-grid {
        display: block;
        width: 100%;
    }
    
    .pricing-grid > div {
        display: block;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        min-height: 50px;
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .payment-methods {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .bank-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .payment-method {
        max-width: 250px;
    }
    
    .registration-btn {
        padding: 1.2rem 2rem;
        font-size: 0.9rem;
    }

    .inscripciones-section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Footer móvil */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-content::after {
        display: none;
    }
    
    .footer-section {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 0;
    }
    
    .footer-text-content {
        text-align: center;
        align-items: center;
    }
    
    .footer-section:first-child .footer-logo-img,
    .footer-section:last-child .footer-logo-img {
        height: 70px;
    }
}

@media (max-width: 1200px) {
    .dropdown-content {
        min-width: 250px;
    }
}

@media (max-width: 1024px) {
    .dropdown-content {
        min-width: 250px;
    }
}

/* Fix para Edge y Firefox - Ajuste adicional del contenedor */
@media (max-width: 1400px) {
    .header-content {
        max-width: 1300px;
        padding: 0 1rem;
    }
    
    .main-nav {
        gap: 0.2rem;
    }
    
    .nav-item, .nav-link {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .register-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
}

/* Fix específico para Chrome */
@media (max-width: 1400px) {
    @supports (-webkit-appearance: none) {
        .header-content {
            max-width: 1400px;
            gap: 0.4rem;
        }
        
        .main-nav {
            gap: 0.25rem;
        }
        
        .nav-item, .nav-link {
            padding: 0.7rem 0.6rem;
            font-size: 0.82rem;
        }
        
        .register-btn {
            padding: 0.75rem 1.1rem;
            font-size: 0.87rem;
        }
    }
}

@media (max-width: 1200px) {
    @supports (-webkit-appearance: none) {
        .nav-item, .nav-link {
            font-size: 0.8rem;
            padding: 0.6rem 0.45rem;
        }
        
        .register-btn {
            font-size: 0.85rem;
            padding: 0.7rem 0.95rem;
        }
    }
}

/* Fix específico para navegadores que no manejan bien flexbox */
@supports not (gap: 0.3rem) {
    .main-nav {
        margin-right: -0.3rem;
    }
    
    .main-nav > * {
        margin-right: 0.3rem;
    }
}

/* Asegurar que el botón de inscripciones no se corte */
.register-btn {
    flex-shrink: 0 !important;
    min-width: fit-content;
}

/*  cambio del css para tablas html */
/* =================================
   PLAN B - TABLAS HTML TRADICIONALES
   Agregar al FINAL del archivo styles.css
   ================================= */

/* Contenedor de la tabla con scroll horizontal */
.schedule-wrapper-table {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: white;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #3498db #f1f1f1;
    margin-bottom: 30px;
    position: relative;
	width: 100%;    
}

.schedule-wrapper-table::-webkit-scrollbar {
    height: 14px;
}

.schedule-wrapper-table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.schedule-wrapper-table::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
}

.schedule-wrapper-table::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Tabla base */
.schedule-table {
    width: 100%
    min-width: max-content !important;
    border-collapse: collapse;
    border-spacing: 1px;
    background: #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    table-layout: fixed !important;
}

.schedule-table th,
.schedule-table td {
    word-wrap: normal;   /* que el texto haga salto de línea */
    white-space: normal;     /* evita el corte con "…" */
    vertical-align: top;
    padding: 6px;
    font-size: 0.85rem;      /* opcional, para compactar un poco */
}


/* Anchos específicos para Sheraton (12 columnas) */
.sheraton-table {
    width: 1510px !important;
    min-width: 1510px !important;
}

.sheraton-table .time-header-cell,
.sheraton-table .time-slot-cell {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
}

.sheraton-table .room-header-cell,
.sheraton-table .activity-cell {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}

/* Anchos específicos para Costa Galana (6 columnas) */
.costa-galana-table {
    width: 670px !important;
    min-width: 670px !important;
}

.costa-galana-table .time-header-cell,
.costa-galana-table .time-slot-cell {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
}

.costa-galana-table .room-header-cell,
.costa-galana-table .activity-cell {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}

/* Headers de columnas */
.time-header-cell,
.room-header-cell {
    background: #495057 !important;
    color: white !important;
    padding: 8px 4px !important;
    font-weight: 600 !important;
    text-align: center !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    height: 60px !important;
    word-wrap: normal !important;
    hyphens: auto !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    box-sizing: border-box !important;
}

/* Celdas de horario */
.time-slot-cell {
    background: #6c757d !important;
    color: white !important;
    padding: 8px 4px !important;
    text-align: center !important;
    font-weight: 500 !important;
    vertical-align: middle !important;
    height: 50px !important;
    font-size: 0.7rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Celdas de actividades */
.activity-cell {
    background: white !important;
    padding: 6px 4px !important;
    height: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent !important;
    position: relative !important;
    font-size: 0.7rem !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

.activity-cell:hover {
    background: #f8f9fa !important;
    border-color: #3498db !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.2) !important;
}

/* Contenido de actividades */
.activity-content {
    font-weight: 600 !important;
    color: inherit !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    word-wrap: normal !important;
    hyphens: auto !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    max-width: 100% !important;
    display: block !important;
}

/* Tipos de celdas específicas */
.empty-cell {
    background: #f8f9fa !important;
    cursor: default !important;
    color: #6c757d !important;
}

.empty-cell:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
    background: #f8f9fa !important;
}

.receso-cell {
    /*background: linear-gradient(135deg, #f9dede 0%, #f77474 100%) !important;*/
	background: linear-gradient(to right, #f5f5f5, #e0e0e0, #cccccc) !important;
}
	
    backdrop-filter: blur(10px) !important;
    color: #721c24 !important;
    font-weight: 600 !important;
}

.receso-cell:hover {
   /* background: linear-gradient(135deg, #f1b0b7 0%, #e74c3c 100%) !important;*/
   background: linear-gradient(to right, #f5f5f5, #e0e0e0, #cccccc) !important;
}

.eha-session {
    background: linear-gradient(135deg, #c6f4db 0%, #E6FFE6 100%) !important;
    backdrop-filter: blur(10px) !important;
    color: #2d5016 !important;
    font-weight: 600 !important;
}

.sponsor-novartis {
    background: linear-gradient(135deg, #fcc5a1 0%, #f48046 100%) !important;
    backdrop-filter: blur(10px) !important;
    color: #721c24 !important;
    font-weight: 600 !important;
}

.sponsor-pfizer {
    background: linear-gradient(135deg, #e8f5e8 0%, #c3e6cb 100%) !important;
    color: #2d5016 !important;
    font-weight: 600 !important;
}

/* Indicador de scroll para móviles */
@media (max-width: 768px) {
    .schedule-wrapper-table::before {
        content: "👈 Desliza horizontalmente para ver todas las columnas 👉";
        display: block;
        text-align: center;
        padding: 12px;
        background: #fff3cd;
        color: #856404;
        font-size: 0.85rem;
        font-weight: 600;
        border: 2px solid #ffeaa7;
        border-radius: 8px;
        margin-bottom: 15px;
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0% { background: #fff3cd; }
        50% { background: #ffe8a1; }
        100% { background: #fff3cd; }
    }
}

/* Responsive - Mantener anchos fijos pero ajustar tamaños */
@media (max-width: 1400px) {
    .sheraton-table {
        width: 1375px !important;
        min-width: 1375px !important;
    }
    
    .sheraton-table .time-header-cell,
    .sheraton-table .time-slot-cell {
        width: 65px !important;
        min-width: 65px !important;
        max-width: 65px !important;
    }
    
    .sheraton-table .room-header-cell,
    .sheraton-table .activity-cell {
        width: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
    }
    
    .costa-galana-table {
        width: 615px !important;
        min-width: 615px !important;
    }
    
    .costa-galana-table .time-header-cell,
    .costa-galana-table .time-slot-cell {
        width: 65px !important;
        min-width: 65px !important;
        max-width: 65px !important;
    }
    
    .costa-galana-table .room-header-cell,
    .costa-galana-table .activity-cell {
        width: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
    }
    
    .time-header-cell, .room-header-cell {
        font-size: 0.7rem !important;
        padding: 6px 3px !important;
        height: 55px !important;
    }
    
    .time-slot-cell {
        font-size: 0.65rem !important;
        padding: 6px 3px !important;
        height: 45px !important;
    }
    
    .activity-cell {
        font-size: 0.65rem !important;
        padding: 4px 3px !important;
        height: 45px !important;
    }
}

@media (max-width: 1200px) {
    .sheraton-table {
        width: 1260px !important;
        min-width: 1260px !important;
    }
    
    .sheraton-table .time-header-cell,
    .sheraton-table .time-slot-cell {
        width: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
    }
    
    .sheraton-table .room-header-cell,
    .sheraton-table .activity-cell {
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
    }
    
    .costa-galana-table {
        width: 560px !important;
        min-width: 560px !important;
    }
    
    .costa-galana-table .time-header-cell,
    .costa-galana-table .time-slot-cell {
        width: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
    }
    
    .costa-galana-table .room-header-cell,
    .costa-galana-table .activity-cell {
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
    }
    
    .time-header-cell, .room-header-cell {
        font-size: 0.65rem !important;
        padding: 5px 2px !important;
        height: 50px !important;
    }
    
    .time-slot-cell {
        font-size: 0.6rem !important;
        padding: 5px 2px !important;
        height: 40px !important;
    }
    
    .activity-cell {
        font-size: 0.6rem !important;
        padding: 3px 2px !important;
        height: 40px !important;
    }
}

@media (max-width: 1024px) {
    .sheraton-table {
        width: 1145px !important;
        min-width: 1145px !important;
    }
    
    .sheraton-table .time-header-cell,
    .sheraton-table .time-slot-cell {
        width: 55px !important;
        min-width: 55px !important;
        max-width: 55px !important;
    }
    
    .sheraton-table .room-header-cell,
    .sheraton-table .activity-cell {
        width: 90px !important;
        min-width: 90px !important;
        max-width: 90px !important;
    }
    
    .costa-galana-table {
        width: 505px !important;
        min-width: 505px !important;
    }
    
    .costa-galana-table .time-header-cell,
    .costa-galana-table .time-slot-cell {
        width: 55px !important;
        min-width: 55px !important;
        max-width: 55px !important;
    }
    
    .costa-galana-table .room-header-cell,
    .costa-galana-table .activity-cell {
        width: 90px !important;
        min-width: 90px !important;
        max-width: 90px !important;
    }
    
    .time-header-cell, .room-header-cell {
        font-size: 0.6rem !important;
        padding: 4px 2px !important;
        height: 45px !important;
    }
    
    .time-slot-cell {
        font-size: 0.55rem !important;
        padding: 4px 2px !important;
        height: 35px !important;
    }
    
    .activity-cell {
        font-size: 0.55rem !important;
        padding: 2px 1px !important;
        height: 35px !important;
    }
}

@media (max-width: 768px) {
    .sheraton-table {
        width: 1085px !important;
        min-width: 1085px !important;
    }
    
    .sheraton-table .time-header-cell,
    .sheraton-table .time-slot-cell {
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
    }
    
    .sheraton-table .room-header-cell,
    .sheraton-table .activity-cell {
        width: 85px !important;
        min-width: 85px !important;
        max-width: 85px !important;
    }
    
    .costa-galana-table {
        width: 475px !important;
        min-width: 475px !important;
    }
    
    .costa-galana-table .time-header-cell,
    .costa-galana-table .time-slot-cell {
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
    }
    
    .costa-galana-table .room-header-cell,
    .costa-galana-table .activity-cell {
        width: 85px !important;
        min-width: 85px !important;
        max-width: 85px !important;
    }
    
    .time-header-cell, .room-header-cell {
        font-size: 0.55rem !important;
        padding: 3px 1px !important;
        height: 40px !important;
    }
    
    .time-slot-cell {
        font-size: 0.5rem !important;
        padding: 3px 1px !important;
        height: 30px !important;
    }
    
    .activity-cell {
        font-size: 0.5rem !important;
        padding: 2px 1px !important;
        height: 30px !important;
    }
    
    .activity-content {
        font-size: 0.5rem !important;
        line-height: 1.1 !important;
    }
    
    .schedule-wrapper-table::-webkit-scrollbar {
        height: 12px !important;
    }
}

@media (max-width: 480px) {
    .sheraton-table {
        width: 1005px !important;
        min-width: 1005px !important;
    }
    
    .sheraton-table .time-header-cell,
    .sheraton-table .time-slot-cell {
        width: 45px !important;
        min-width: 45px !important;
        max-width: 45px !important;
    }
    
    .sheraton-table .room-header-cell,
    .sheraton-table .activity-cell {
        width: 80px !important;
        min-width: 80px !important;
        max-width: 80px !important;
    }
    
    .costa-galana-table {
        width: 445px !important;
        min-width: 445px !important;
    }
    
    .costa-galana-table .time-header-cell,
    .costa-galana-table .time-slot-cell {
        width: 45px !important;
        min-width: 45px !important;
        max-width: 45px !important;
    }
    
    .costa-galana-table .room-header-cell,
    .costa-galana-table .activity-cell {
        width: 80px !important;
        min-width: 80px !important;
        max-width: 80px !important;
    }
    
    .time-header-cell, .room-header-cell {
        font-size: 0.5rem !important;
        padding: 2px 1px !important;
        height: 35px !important;
    }
    
    .time-slot-cell {
        font-size: 0.45rem !important;
        padding: 2px 1px !important;
        height: 25px !important;
    }
    
    .activity-cell {
        font-size: 0.45rem !important;
        padding: 1px !important;
        height: 25px !important;
    }
    
    .activity-content {
        font-size: 0.45rem !important;
    }
}

/* IMPORTANTE: Ocultar las grids CSS originales cuando se usan tablas */
.schedule-grid {
    display: none !important;
}

/* Mostrar solo las tablas HTML */
.schedule-table {
    display: table !important;
}

/* AGREGAR AL FINAL del CSS (después de los estilos de sponsors ya agregados) */

/* Sponsors adicionales para Viernes */
.sponsor-amgen {
    background: linear-gradient(135deg, #f3f7b9 0%, #e0dc79 100%) !important;
    backdrop-filter: blur(10px) !important;
    color: #2d5016 !important;
    font-weight: 600 !important;
}

.sponsor-amgen:hover {
    background: linear-gradient(135deg, #e8f2a5 0%, #d4d065 100%) !important;
}

.sponsor-knight {
    background: linear-gradient(135deg, #f3f7b9 0%, #e0dc79 100%) !important;
    backdrop-filter: blur(10px) !important;
    color: #2d5016 !important;
    font-weight: 600 !important;
}

.sponsor-knight:hover {
    background: linear-gradient(135deg, #e8f2a5 0%, #d4d065 100%) !important;
}

.sponsor-servier {
    background: linear-gradient(135deg, #f3f7b9 0%, #e0dc79 100%) !important;
    backdrop-filter: blur(10px) !important;
    color: #2d5016 !important;
    font-weight: 600 !important;
}

.sponsor-servier:hover {
    background: linear-gradient(135deg, #e8f2a5 0%, #d4d065 100%) !important;
}

.sponsor-gsk {
    background: linear-gradient(135deg, #f3f7b9 0%, #e0dc79 100%) !important;
    backdrop-filter: blur(10px) !important;
    color: #2d5016 !important;
    font-weight: 600 !important;
}

.sponsor-gsk:hover {
    background: linear-gradient(135deg, #e8f2a5 0%, #d4d065 100%) !important;
}

.sponsor-sanofi {
    background: linear-gradient(135deg, #f3f7b9 0%, #e0dc79 100%) !important;
    backdrop-filter: blur(10px) !important;
    color: #2d5016 !important;
    font-weight: 600 !important;
}

.sponsor-sanofi:hover {
    background: linear-gradient(135deg, #e8f2a5 0%, #d4d065 100%) !important;
}

.sponsor-roche {
    background: linear-gradient(135deg, #f3f7b9 0%, #e0dc79 100%) !important;
    backdrop-filter: blur(10px) !important;
    color: #2d5016 !important;
    font-weight: 600 !important;
}

.sponsor-roche:hover {
    background: linear-gradient(135deg, #e8f2a5 0%, #d4d065 100%) !important;
}

.sponsor-takeda {
    background: linear-gradient(135deg, #bdf4f9 0%, #57bed1 100%) !important;
    backdrop-filter: blur(10px) !important;
    color: #1a5a6b !important;
    font-weight: 600 !important;
}

.sponsor-takeda:hover {
    background: linear-gradient(135deg, #a8f1f7 0%, #46b5c9 100%) !important;
}

/* AGREGAR AL FINAL DE TU ARCHIVO styles.css */

/* Filas de RECESO con altura reducida */
.receso-cell {
    /*background: linear-gradient(135deg, #f9dede 0%, #f77474 100%) !important;*/
	background: linear-gradient(to right, #f5f5f5, #e0e0e0, #cccccc) !important;
    backdrop-filter: blur(10px) !important;
    color: #721c24 !important;
    font-weight: 600 !important;
    /* ALTURA REDUCIDA PARA RECESOS */
    height: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;
    padding: 2px 4px !important;
    font-size: 0.6rem !important;
    line-height: 1 !important;
}

.receso-cell:hover {
    /*background: linear-gradient(135deg, #f1b0b7 0%, #e74c3c 100%) !important;*/
	background: linear-gradient(to right, #f5f5f5, #e0e0e0, #cccccc) !important;
}

/* Clase específica para filas de receso - COMPATIBLE CON TODOS LOS NAVEGADORES */
.receso-row {
    height: 25px !important;
}

.receso-row td {
    height: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;
    padding: 2px 4px !important;
    vertical-align: middle !important;
}

/* Responsive para recesos */
@media (max-width: 768px) {
    .receso-cell {
        height: 20px !important;
        min-height: 20px !important;
        max-height: 20px !important;
        padding: 1px 2px !important;
        font-size: 0.5rem !important;
    }
    
    .receso-row {
        height: 20px !important;
    }
    
    .receso-row td {
        height: 20px !important;
        min-height: 20px !important;
        max-height: 20px !important;
        padding: 1px 2px !important;
    }
}

@media (max-width: 480px) {
    .receso-cell {
        height: 18px !important;
        min-height: 18px !important;
        max-height: 18px !important;
        padding: 1px !important;
        font-size: 0.45rem !important;
    }
    
    .receso-row {
        height: 18px !important;
    }
    
    .receso-row td {
        height: 18px !important;
        min-height: 18px !important;
        max-height: 18px !important;
        padding: 1px !important;
    }
}

/* Agregar estos estilos al final de styles.css */

/* Auspicios Section */
.auspicios-section {
    background: linear-gradient(180deg, #4ABDD6 0%, #f9c4a6 30%);
    padding: 4rem 0;
    position: relative;
}

.auspicios-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.auspicios-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    gap: 3rem;
}

.auspicios-title-sidebar {
    width: 20%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem 0;
    flex-shrink: 0;
}

.auspicios-section-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-align: left;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.auspicios-grid-container {
    width: 80%;
    padding: 2rem 0;
}

.auspicios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.auspicio-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 200px;
    height: 120px;
    border: 2px solid transparent;
}

.auspicio-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.3);
}

.auspicio-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    border-radius: 8px;
    max-width: 180px;
    max-height: 80px;
}

.auspicio-card:hover .auspicio-image {
    transform: scale(1.05);
}

.auspicio-image:not([src]) {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.8rem;
    text-align: center;
}

.auspicio-image:not([src])::before {
    content: "Logo Auspicio";
}

/* Responsive para Auspicios */
@media (max-width: 1024px) {
    .auspicios-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .auspicios-section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .auspicios-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .auspicios-title-sidebar {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 1rem 0;
    }
    
    .auspicios-grid-container {
        width: 100%;
        padding: 1rem 0;
    }
    
    .auspicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .auspicios-section-title {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .auspicio-card {
        max-width: 180px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .auspicios-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .auspicios-section-title {
        font-size: 1.4rem;
    }
    
    .auspicio-card {
        max-width: 160px;
        height: 90px;
    }
}

/* SECCIÓN AUTORIDADES - CORRECCIÓN DE LEGIBILIDAD MÓVIL */
/* Agregar estos estilos al final de tu archivo styles.css */

/* Base improvements for better readability */
.cargo-label {
    color: #666666;
    font-size: 0.75rem; /* Increased from 0.65rem */
    font-weight: 500; /* Increased from 400 */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3; /* Increased from 1.2 */
    margin-bottom: 0.5rem; /* Added margin */
}

.nombre-value {
    color: #2c3e50;
    font-size: 0.95rem; /* Increased from 0.85rem */
    font-weight: 500; /* Increased from 400 */
    line-height: 1.4; /* Increased from 1.3 */
}

/* Mobile specific improvements */
@media (max-width: 768px) {
    .autoridades-content {
        padding: 0; /* Remove extra padding */
    }
    
    .autoridades-main-content {
        padding: 1.5rem; /* Reduced from 2rem */
    }
    
    .autoridades-section-block {
        margin-bottom: 2rem; /* Reduced from 3rem */
    }
    
    .autoridades-section-header {
        font-size: 1.1rem; /* Increased from 1rem */
        margin-bottom: 1.2rem; /* Reduced from 1.5rem */
        font-weight: 700;
    }
    
    .autoridades-grid-layout {
        display: block; /* Change from grid to block */
        gap: 0;
    }
    
    .autoridades-column {
        margin-bottom: 1.5rem;
    }
    
    .autoridad-row {
        margin-bottom: 1.2rem; /* Increased spacing between items */
        padding: 0.8rem; /* Add padding for better touch targets */
        background: rgba(248, 249, 250, 0.5); /* Subtle background */
        border-radius: 6px;
        border-left: 3px solid #f4a261; /* Visual separator */
    }
    
    .cargo-label {
        font-size: 0.85rem; /* Significantly increased */
        font-weight: 600; /* Bolder */
        color: #f4a261; /* More prominent color */
        margin-bottom: 0.6rem;
        letter-spacing: 0.8px;
    }
    
    .nombre-value {
        font-size: 1.05rem; /* Significantly increased */
        font-weight: 500;
        line-height: 1.5;
        color: #2c3e50;
    }
    
    /* Tab buttons mobile improvements */
    .autoridades-tab-btn {
        padding: 12px 20px; /* Increased padding */
        min-height: 50px; /* Ensure touch-friendly height */
    }
    
    .tab-text {
        font-size: 0.8rem; /* Increased from 0.75rem */
        font-weight: 700;
        line-height: 1.3;
    }
    
    .autoridades-section-title {
        font-size: 1.4rem; /* Increased */
        line-height: 1.3;
    }
}

/* Very small screens (phones in portrait) */
@media (max-width: 480px) {
    .autoridades-main-content {
        padding: 1rem;
    }
    
    .cargo-label {
        font-size: 0.9rem; /* Even larger for very small screens */
        margin-bottom: 0.7rem;
    }
    
    .nombre-value {
        font-size: 1.1rem; /* Even larger for very small screens */
        line-height: 1.6;
    }
    
    .autoridades-section-header {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .autoridad-row {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .tab-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .cargo-label {
        font-size: 0.8rem;
    }
    
    .nombre-value {
        font-size: 1rem;
    }
    
    .autoridades-grid-layout {
        grid-template-columns: repeat(2, 1fr); /* 2 columns instead of 3 */
        gap: 2rem;
    }
}


/* ESTILOS PARA TÍTULOS DINÁMICOS DE AUTORIDADES */
/* Agregar al final de styles.css */

.autoridades-section-title {
    color: #2c3e50;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    writing-mode: horizontal-tb;
    transform: rotate(0deg);
    letter-spacing: 1px;
    line-height: 1.2; /* Mejorar espaciado entre líneas */
    transition: all 0.3s ease; /* Transición suave al cambiar */
}

/* Responsive para títulos más largos */
@media (max-width: 1024px) {
    .autoridades-section-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
}

@media (max-width: 768px) {
    .autoridades-title-sidebar {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 1rem 0.5rem;
    }
    
    .autoridades-section-title {
        font-size: 1.2rem;
        line-height: 1.4;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .autoridades-section-title {
        font-size: 1rem;
        line-height: 1.5;
        letter-spacing: 0.5px;
    }
}

/* ====== COMPACT MODE para Sede Sheraton en desktop ====== */
@media (min-width: 1200px) {
  /* Ancho total ~1050px: 60 (hora) + 11*90 (salones) */
  .sheraton-table {
    width: 1050px !important;
    min-width: 1050px !important;
  }

  .sheraton-table .time-header-cell,
  .sheraton-table .time-slot-cell {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
  }

  .sheraton-table .room-header-cell,
  .sheraton-table .activity-cell {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
  }

  /* Títulos de salas: más chicos, sin partir palabras */
  .time-header-cell,
  .room-header-cell {
    font-size: 0.68rem !important;
    line-height: 1.15 !important;
    padding: 6px 4px !important;
    white-space: normal !important;      /* permite varias líneas */
    word-break: normal !important;       /* no parte palabras */
    overflow-wrap: normal !important;    /* no fuerza cortes */
    hyphens: none !important;            /* sin guiones automáticos */
    height: 52px !important;
  }

  /* Horarios y actividades: compactos pero legibles */
  .time-slot-cell {
    font-size: 0.66rem !important;
    line-height: 1.1 !important;
    padding: 6px 3px !important;
    height: 46px !important;
  }

  .activity-cell,
  .activity-content {
    font-size: 0.64rem !important;
    line-height: 1.15 !important;
    padding: 4px 3px !important;
    height: 46px !important;
  }
}

/* En móviles y tablets se mantiene el scroll horizontal del contenedor */


/* === Program cell text integrity (no intra-word breaks) + visible borders (2025-08-31) === */
.schedule-table {
  border-collapse: collapse;
}

.schedule-table th, .schedule-table td {
  border: 1px solid rgba(0,0,0,0.85); /* better visibility; adjust color/alpha as needed */
}

.activity-cell, .room-header-cell, .time-header-cell {
  word-break: keep-all;       /* do not break words */
  overflow-wrap: normal;      /* don't wrap within long words */
  hyphens: manual;            /* no auto hyphenation */
}

.activity-cell .activity-content, 
.activity-cell .activity-content * {
  white-space: normal;        /* allow wrapping at spaces/BR only */
}

.activity-cell .activity-content strong {
  font-weight: 700;
}
/* === end Program cell text integrity === */

/* ============================================ */
/* ACTUALIZACIONES PARA PROGRAMA Y MODAL */
/* AGREGAR AL FINAL DE styles.css */
/* ============================================ */

/* TABLAS AL 100% DEL ANCHO DEL CONTENEDOR */
.schedule-wrapper-table {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

.sheraton-table {
    width: 100% !important;
    min-width: 100% !important;
    table-layout: fixed !important;
}

.costa-galana-table {
    width: 100% !important;
    min-width: 100% !important;
    table-layout: fixed !important;
}

/* COLUMNAS CON ANCHOS PROPORCIONALES */
.sheraton-table .time-header-cell,
.sheraton-table .time-slot-cell {
    width: 6% !important;
    min-width: 6% !important;
    max-width: 6% !important;
}

.sheraton-table .room-header-cell,
.sheraton-table .activity-cell {
    width: 8.5% !important;
    min-width: 8.5% !important;
    max-width: 8.5% !important;
}

.costa-galana-table .time-header-cell,
.costa-galana-table .time-slot-cell {
    width: 12% !important;
    min-width: 12% !important;
    max-width: 12% !important;
}

.costa-galana-table .room-header-cell,
.costa-galana-table .activity-cell {
    width: 17.6% !important;
    min-width: 17.6% !important;
    max-width: 17.6% !important;
}

/* TEXTO MÁS GRANDE Y LEGIBLE */
.time-header-cell, 
.room-header-cell {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    padding: 8px 6px !important;
    height: auto !important;
    min-height: 60px !important;
    word-wrap: break-word !important;
    hyphens: none !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.time-slot-cell {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    padding: 8px 6px !important;
    height: auto !important;
    min-height: 50px !important;
}

.activity-cell {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    padding: 8px 6px !important;
    height: auto !important;
    min-height: 50px !important;
}

.activity-content {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    hyphens: none !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

/* SEPARADORES DE CELDAS MÁS VISIBLES */
.schedule-table {
    border-collapse: separate !important;
    border-spacing: 1px !important;
    background: #dee2e6 !important;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #495057 !important;
    background: white !important;
}

.time-header-cell,
.room-header-cell {
    background: #495057 !important;
    border: 1px solid #343a40 !important;
}

.time-slot-cell {
    background: #6c757d !important;
    border: 1px solid #495057 !important;
}

.receso-cell {
    background: linear-gradient(to right, #f5f5f5, #e0e0e0, #cccccc) !important;
    border: 1px solid #999 !important;
}

/* RESPONSIVE MEJORADO PARA TEXTO MÁS GRANDE */
@media (max-width: 1200px) {
    .time-header-cell, .room-header-cell {
        font-size: 0.8rem !important;
        padding: 6px 4px !important;
        min-height: 55px !important;
    }
    
    .time-slot-cell {
        font-size: 0.75rem !important;
        padding: 6px 4px !important;
        min-height: 45px !important;
    }
    
    .activity-cell,
    .activity-content {
        font-size: 0.75rem !important;
        padding: 6px 4px !important;
        min-height: 45px !important;
    }
}

@media (max-width: 768px) {
    .time-header-cell, .room-header-cell {
        font-size: 0.75rem !important;
        padding: 5px 3px !important;
        min-height: 50px !important;
    }
    
    .time-slot-cell {
        font-size: 0.7rem !important;
        padding: 5px 3px !important;
        min-height: 40px !important;
    }
    
    .activity-cell,
    .activity-content {
        font-size: 0.7rem !important;
        padding: 5px 3px !important;
        min-height: 40px !important;
    }
}

@media (max-width: 480px) {
    .time-header-cell, .room-header-cell {
        font-size: 0.7rem !important;
        padding: 4px 2px !important;
        min-height: 45px !important;
    }
    
    .time-slot-cell {
        font-size: 0.65rem !important;
        padding: 4px 2px !important;
        min-height: 35px !important;
    }
    
    .activity-cell,
    .activity-content {
        font-size: 0.65rem !important;
        padding: 4px 2px !important;
        min-height: 35px !important;
    }
}

/* MEJORAS DEL MODAL */
.modal-header {
    position: relative !important;
    padding: 20px 30px !important;
}

/* Nuevo campo FORMATO */
.modal-formato {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Título más pequeño */
.modal-title {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

/* Botón X más funcional */
.modal-close {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: white !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg) !important;
}

/* Meta información en filas separadas */
/* Chips en línea y del largo del contenido */
.modal-meta {
  margin-top: 10px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.modal-meta-item {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  opacity: 0.9 !important;
}


.modal-meta-icon {
    margin-right: 8px !important;
}

/* Sección de integrantes mejorada */
.modal-body {
    padding: 25px !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
}

.modal-section-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 15px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #3498db !important;
}

#m-integrantes {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#m-integrantes li {
    padding: 8px 0 !important;
    border-bottom: 1px solid #e9ecef !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    color: #495057 !important;
}

#m-integrantes li:last-child {
    border-bottom: none !important;
}

/* Asegurar que el overlay funcione */
.activity-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s ease !important;
}

.activity-modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.activity-modal {
    background: white !important;
    border-radius: 20px !important;
    max-width: 90vw !important;
    width: 600px !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    transform: scale(0.8) translateY(30px) !important;
    transition: all 0.4s ease !important;
}

.activity-modal-overlay.active .activity-modal {
    transform: scale(1) translateY(0) !important;
}

/* ==== FIX COLORES Y LEGIBILIDAD (sobrescribe al final) ==== */

/* Dejá que las reglas específicas pinten el fondo; evitamos forzar blanco */
.schedule-table th, 
.schedule-table td {
  background: initial !important; /* conserva bordes existentes */
}

/* Cabeceras (fila 1) y columna de horarios (columna 1) con sus colores */
.schedule-table .time-header-cell,
.schedule-table .room-header-cell {
  background: #495057 !important;
  color: #fff !important;
}

.schedule-table .time-slot-cell {
  background: #6c757d !important;
  color: #fff !important;
}

/* Texto más grande, con salto de línea, sin modificar anchos */
.schedule-table .time-header-cell,
.schedule-table .room-header-cell,
.schedule-table .time-slot-cell,
.schedule-table .activity-cell,
.schedule-table .activity-cell .activity-content {
  font-size: 0.95rem !important;   /* subir tamaño base */
  line-height: 1.35 !important;
  height: auto !important;
  min-height: 50px !important;
  white-space: normal !important;   /* permitir wraps */
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

/* ===== Ajuste de tamaño en celdas (~60%) ===== */
.schedule-table .activity-cell .activity-content {
  font-size: 0.68em !important;  /* ~60% de lo actual */
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}


/* ====== Fix overflow general y hero en móviles ====== */
html, body { max-width: 100%; overflow-x: hidden; }

/* No cortar nada del hero ni secciones, pero sin “empujar” el viewport */
.hero, .header, .action-section, .info-section, .autoridades-section, .programa-section {
  overflow-x: clip;
}

/* Refuerzo para hero en pantallas chicas */
@media (max-width: 768px){
  .hero-content { margin-left: 0 !important; padding: 0 1rem; }
  .hero-text { margin-left: 0 !important; max-width: 100% !important; }
  .sah-logo, .hero-icons-image, .hero-icons-image1 { max-width: 100%; height: auto; }
}

/* Cuando el menú está abierto, evitamos el scroll de fondo */
body.menu-open { overflow: hidden; }

/* Por si alguna tabla no tiene ancho específico, forzamos mínimo para que haya scroll horizontal */
.schedule-table { min-width: 900px; }

/* ===== FIX PROGRAMA: ancho + scroll horizontal ===== */

/* El contenedor debe scrollear en X */
.schedule-wrapper-table {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Quitar el layout fijo y el width:100% que afina columnas */
.schedule-wrapper-table .schedule-table,
.schedule-wrapper-table .sheraton-table,
.schedule-wrapper-table .costa-galana-table {
  width: auto !important;
  table-layout: auto !important;
  min-width: 1200px !important; /* base; luego ajustamos por sede */
}

/* Anchos reales por sede (crea el scroll) */
.schedule-wrapper-table .sheraton-table  { min-width: 1510px !important; }
.schedule-wrapper-table .costa-galana-table { min-width: 670px !important; }

/* Evitar que las celdas clave se encojan */
.schedule-wrapper-table .time-header-cell,
.schedule-wrapper-table .time-slot-cell {
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
}
.schedule-wrapper-table .room-header-cell,
.schedule-wrapper-table .activity-cell {
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
}

/* (opcional) una pista visual en móviles */
@media (max-width: 768px){
  .schedule-wrapper-table::before{
    content:"👈 Deslizá para ver más columnas 👉";
    display:block; text-align:center; padding:10px; margin-bottom:8px;
    background:#fff3cd; border:1px solid #ffeaa7; border-radius:8px; font-weight:600;
  }
}

/* Invitados Section (tabs + cards) */
.invitados-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, #4ABDD6 0%, #f9c4a6 100%);
  position: relative;
}

.invitados-section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Tabs */
.invitados-tabs-container { margin-bottom: 1.5rem; }
.invitados-tabs {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
}
.invitados-tab-btn {
  background: rgba(255,255,255,0.9);
  border: 0;
  padding: .9rem 1.2rem;
  font-weight: 700;
  letter-spacing: .5px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.invitados-tab-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.invitados-tab-btn.active {
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  outline: 2px solid rgba(255,255,255,.6);
}

/* Contenido de tabs */
.invitados-tab-content { display: none; }
.invitados-tab-content.active { display: block; animation: fadeIn .35s ease; }

/* Grid de cards */
.invitados-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .invitados-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .invitados-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .invitados-grid { grid-template-columns: 1fr; }
}

/* Card */
.invitado-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem 1rem 1.2rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.invitado-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }

/* Foto (elige circle o rounded) */
 
.invitado-foto {
  width: 100px;   /* antes 160px */
  height: 100px;  /* antes 160px */
  margin: 0 auto 0.6rem;  /* un poco menos de margen inferior */
  overflow: hidden;
  background: #f3f4f6;
  display: grid;
  place-items: center;
}

.invitado-foto img { width: 100%; height: 100%; object-fit: cover; }
.invitado-foto.circle { border-radius: 50%; }
.invitado-foto.rounded { border-radius: 14px; }

/* Tipografías */
.invitado-nombre {
  font-weight: 400;
  font-size: 0.6rem;
  color: #111827;
  margin: 0 0 .35rem 0;
}
.invitado-pais, .invitado-inst {
  margin: 0; line-height: 1.35;
  color: #374151; font-size: .9rem;
}
.invitado-pais { opacity: .85; }
.invitado-inst { opacity: .9; }

/* === Ajustes Invitados: cards angostas + foto rectangular === */

/* 1) Más columnas (cards más angostas) en desktop */
.invitados-grid {
  grid-template-columns: repeat(5, minmax(160px, 1fr)); /* antes 4 */
  gap: 1rem; /* un poco menos de espacio */
}

/* 2) Card más angosta */
.invitado-card {
  max-width: 190px;      /* fuerza ancho menor */
  margin: 0 auto;        /* centra cada card en su celda */
  padding: 0.8rem 0.7rem; /* menos padding */
}

/* 3) Foto POR DEFECTO: mantené cuadrada (para quienes quieran 'circle') */
.invitado-foto {
  width: 90px;  /* un poco más chica */
  height: 90px; /* cuadrada por si usás .circle */
  margin-bottom: 0.6rem;
}

/* 4) Foto RECTANGULAR (vertical): usá también esta clase extra 'portrait' en el HTML */
.invitado-foto.portrait {
  width: 90px;         /* más angosta */
  height: 120px;       /* más alta = rectangular */
  border-radius: 12px; /* bordes redondeados agradables */
}

/* Tipos de borde compatibles */
.invitado-foto.rounded { border-radius: 12px; } /* rectangulares */
.invitado-foto.circle  { border-radius: 50%; }  /* solo si es cuadrada */

/* === Invitados: layout responsive 6/4/2/1 + cards angostas + foto rectangular === */

/* Base: 6 columnas en desktop grande */
.invitados-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

/* 4 columnas en tablet/desktop chico */
@media (max-width: 1200px) {
  .invitados-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 2 columnas en móviles medianos */
@media (max-width: 768px) {
  .invitados-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 1 columna en móviles chicos */
@media (max-width: 460px) {
  .invitados-grid {
    grid-template-columns: 1fr;
  }
}

/* Título sección invitados con degradé tipo inscripciones */
.invitados-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: 1px;

  background: linear-gradient(90deg, #004a6b, #097da4, #ef781a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}


/* Card más angosta y compacta */
.invitado-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 0.9rem 0.8rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.invitado-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 26px rgba(0,0,0,.15);
}

/* Foto rectangular (vertical). Usar junto con .rounded para bordes suaves */
.invitado-foto {
  width: 110px;              /* tamaño compacto por defecto */
  height: 110px;             /* si usás .circle, queda cuadrada */
  margin: 0 auto 0.6rem;
  overflow: hidden;
  display: grid; place-items: center;
  background: #f3f4f6;
}
.invitado-foto img { width: 100%; height: 100%; object-fit: cover; }

/* Rectangular vertical */
.invitado-foto.portrait {
  width: 110px;
  height: 140px;            /* hace la forma rectangular */
  border-radius: 12px;      /* bordes redondeados */
}

/* Bordes según estilo */
.invitado-foto.rounded { border-radius: 12px; }
.invitado-foto.circle  { border-radius: 50%; } /* usar solo cuando sea cuadrada */

/* Tipografías un poco más chicas para cards angostas */
.invitado-nombre { font-size: 0.8rem; font-weight: 400; margin: 0 0 .3rem; }
.invitado-pais, .invitado-inst { font-size: 0.8rem; line-height: 1.0; margin: 0; }

/* Logos en tabs de invitados */
.invitado-tab-logo {
  height: 22px;          /* ajusta el tamaño según necesidad */
  margin-right: 8px;
  vertical-align: middle;
}
.invitados-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;              /* espacio entre logo y texto */
  font-weight: 700;
}

/* Base */
.invitados-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  padding: .7rem 1rem;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  color: #fff;
}

/* Colores específicos */









 

/* Logo */
.invitado-tab-logo {
  height: 22px;
  margin-right: 6px;
  vertical-align: middle;
}



/* === Programa: spacing & scroll alignment (2025-09-25) === */
.programa-tabs-container { margin-top: 10px; }
.programa-tabs { margin-bottom: 18px; justify-content: center; }
.programa-tab-content { 
  display: none; 
  scroll-margin-top: var(--header-offset, 112px); 
  text-align: center;
  padding: 8px 0 0;
}
.programa-tab-content.active { display: block; animation: fadeIn .35s ease; }

/* Títulos dentro de los paneles del programa */
.programa-tab-content .programa-section-title {
  margin: 8px auto 16px;
  text-align: center;
}

/* Botón PDF centrado y separado de tabs */
.programa-tab-content .btn-programa {
  display: inline-block;
  margin: 12px auto 8px;
}

/* Mayor separación visual entre barra de tabs y contenido */
.programa-tabs + .programa-tab-content,
.programa-tabs + .invitados-tab-content {
  margin-top: 12px;
}

/* Back-to-top button */
.btn-backtop{ z-index:10000; 
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #4ABDD6;
  background: #EAF7FB;
  color: #0b4a5a;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(74,189,214,.18);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
  z-index: 50;
}
.btn-backtop svg{ width: 22px; height: 22px; }
.btn-backtop:hover{ box-shadow: 0 10px 26px rgba(74,189,214,.24); }
.btn-backtop.show{
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
/* === Fin Programa spacing & back-to-top === */


/* === Paleta tabs suave FINAL (2025-09-25) === */
:where(.invitados-tabs,.programa-tabs) .invitados-tab-btn,
:where(.invitados-tabs,.programa-tabs) .programa-tab-btn{
  background:#EAF7FB !important;
  border:1px solid #4ABDD6 !important;
  color:#0b4a5a !important;
}
:where(.invitados-tabs,.programa-tabs) .invitados-tab-btn:hover,
:where(.invitados-tabs,.programa-tabs) .invitados-tab-btn:focus-visible,
:where(.invitados-tabs,.programa-tabs) .programa-tab-btn:hover,
:where(.invitados-tabs,.programa-tabs) .programa-tab-btn:focus-visible{
  background:#F1FBFE !important;
  color:#0b4a5a !important;
}
:where(.invitados-tabs,.programa-tabs) .invitados-tab-btn.active,
:where(.invitados-tabs,.programa-tabs) .programa-tab-btn.active{
  background:linear-gradient(135deg,#f4a261,#ffb676) !important;
  color:#fff !important;
  border-color:transparent !important;
}
/* Acentos */
:where(.invitados-tabs,.programa-tabs) .tab-accent--sah{box-shadow:inset 4px 0 0 0 #f4a261;}
:where(.invitados-tabs,.programa-tabs) .tab-accent--eha{box-shadow:inset 4px 0 0 0 #4ABDD6;}
:where(.invitados-tabs,.programa-tabs) .tab-accent--grcf{box-shadow:inset 4px 0 0 0 #097da4;}
:where(.invitados-tabs,.programa-tabs) .tab-accent--enf{box-shadow:inset 4px 0 0 0 #ffb676;}
/* Tipos invitados */
.invitado-nombre{font-weight:800 !important;}
.invitado-pais{font-style:italic !important; color:rgba(11,74,90,.85);}
/* === Fin paleta FINAL === */


/* === Programa altura/espaciado y botones (2025-09-25) === */
section.programa-section { padding-top: 48px; padding-bottom: 56px; }
.programa-tabs-container { margin-top: 16px; }
.programa-tab-content { padding: 12px 0 6px; min-height: 32vh; } /* más alto visual */
.programa-tab-content .programa-section-title { margin: 12px auto 18px; }
.programa-tab-content .btn-programa {
  display: inline-block;
  width: min(520px, 50%); /* 50% en desktop con tope 520px */
  min-width: 260px;
  text-align: center;
  margin: 14px auto 10px;
}
@media (max-width: 768px){
  .programa-tab-content .btn-programa { width: 92%; min-width: 0; }
}
/* === Fin programa altura/espaciado === */


/* === Header fijo en desktop (2025-09-25) === */
@media (min-width: 992px){
  header{ position: sticky; top: 0; z-index: 1000; }
  body{ scroll-padding-top: 100px; }
}
/* === Fin header fijo desktop === */

/* === Botón PDF (programa) estilo suave === */
a.btn-programa, .btn-programa {
  background:#EAF7FB;
  border:1px solid #4ABDD6;
  color:#0b4a5a;
  border-radius:12px;
  padding:.85rem 1.25rem;
  font-weight:700;
  text-decoration:none;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
  display:inline-block;
}
a.btn-programa:hover, .btn-programa:hover { background:#F1FBFE; transform:translateY(-1px); box-shadow:0 8px 18px rgba(74,189,214,.18); }
a.btn-programa:active, .btn-programa:active { transform:translateY(0); box-shadow:none; }

/* ============================================
   CORRECCIONES CSS - Header Fixed y Back-to-Top
   Agregar al FINAL de styles.css
   ============================================ */

/* === HEADER FIXED EN DESKTOP (CORREGIDO) === */
@media (min-width: 992px) {
    .header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
    }
    
    /* Asegurar scroll-padding para anclas */
    html {
        scroll-padding-top: 120px !important;
    }
    
    body {
        scroll-padding-top: 120px !important;
    }
}

/* === BACK-TO-TOP BUTTON (CORREGIDO) === */
.btn-backtop {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: 2px solid #4ABDD6 !important;
    background: rgba(234, 247, 251, 0.95) !important;
    color: #0b4a5a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 22px rgba(74, 189, 214, 0.25) !important;
    cursor: pointer !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) scale(0.8) !important;
    pointer-events: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 9999 !important;
    backdrop-filter: blur(10px) !important;
    text-decoration: none !important;
}

.btn-backtop svg {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2.5 !important;
}

.btn-backtop:hover {
    background: rgba(241, 251, 254, 0.98) !important;
    border-color: #097da4 !important;
    color: #097da4 !important;
    box-shadow: 0 12px 28px rgba(74, 189, 214, 0.35) !important;
    transform: translateY(0) scale(1.05) !important;
}

.btn-backtop.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .btn-backtop {
        right: 20px !important;
        bottom: 20px !important;
        width: 46px !important;
        height: 46px !important;
    }
    
    .btn-backtop svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* === MEJORAS ADICIONALES PARA SCROLL SUAVE === */
html {
    scroll-behavior: smooth !important;
}

/* Asegurar que las secciones tengan ID para el scroll */
section[id] {
    scroll-margin-top: 140px;
}

/* En móviles, menor offset porque el header no es sticky */
@media (max-width: 991px) {
    section[id] {
        scroll-margin-top: 100px;
    }
}

/* === OVERRIDE PARA ASEGURAR QUE EL BOTÓN APAREZCA === */
/* Si el botón sigue sin aparecer, usar este CSS más específico */
button.btn-backtop[aria-label="Volver arriba"] {
    display: flex !important;
    position: fixed !important;
    z-index: 10000 !important;
}

/* === FIX PARA EL SCRIPT DEL BACK-TO-TOP === */
/* El JavaScript ya está en tu script.js, pero si no funciona, 
   asegúrate de que este código esté presente: */
   
/* ============================================
   CORRECCIONES FINALES - Agregar al FINAL de styles.css
   ============================================ */

/* === 1. HEADER FIXED PARA DESKTOP/TABLET (CORREGIDO) === */
@media (min-width: 769px) {
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        box-shadow: 0 2px 20px rgba(0,0,0,0.15) !important;
    }
    
    /* Compensar la altura del header fijo */
    body {
        padding-top: 90px !important;
    }
    
    /* Scroll padding para anclas */
    html {
        scroll-padding-top: 110px !important;
    }
    
    section[id] {
        scroll-margin-top: 110px !important;
    }
}

/* === 2. TÍTULO "PROGRAMAS CIENTÍFICOS" === */
.programa-section-main-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    /* Mismo degradé que invitados */
    background: linear-gradient(90deg, #004a6b, #097da4, #ef781a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Responsive para el título */
@media (max-width: 768px) {
    .programa-section-main-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .programa-section-main-title {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
}   

/* === Integrantes: lista con viñetas, renglón normal === */
#m-integrantes {
  list-style: disc !important;
  padding-left: 1.25rem !important;
  margin: 0 !important;
}
#m-integrantes li {
  border: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  margin-top: 0 !important;
}

/* === SCROLL HORIZONTAL MEJORADO === */
.scroll-hint-wrapper {
  position: relative;
}

.scroll-hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 60px;
  background: rgba(52, 152, 219, 0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  user-select: none;
}

.scroll-hint:hover {
  background: rgba(41, 128, 185, 1);
  transform: translateY(-50%) scale(1.1);
}

.scroll-hint-left {
  left: 10px;
}

.scroll-hint-right {
  right: 10px;
}

/* Ocultar flechas en móviles */
@media (max-width: 768px) {
  .scroll-hint {
    display: none;
  }
}

/* Cursor mejorado para tabla scrolleable */
.schedule-wrapper-table {
  cursor: grab;
}

.schedule-wrapper-table:active {
  cursor: grabbing;
}