:root {
    --primary-color: #0d47a1; /* Un azul más oscuro y profesional */
    --secondary-color: #ffab00; /* Un amarillo/dorado vibrante */
    --text-color: #333;
    --light-gray: #f9f9f9;
    --white-color: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    margin: 0;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}


/* --- Header --- */
#main-header {
    background: var(--white-color);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

#main-header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

#main-header .logo {
    height: 45px;
    margin-right: 15px;
    transition: height 0.3s ease;
}

#main-nav .nav-links { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    display: flex;
}

#main-nav .nav-links li { 
    margin-left: 30px; 
}

#main-nav .nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

#main-nav .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

#main-nav .nav-links a:hover {
    color: var(--primary-color);
}

#main-nav .nav-links a:hover::after {
    width: 100%;
}

.header-cta {
    display: block;
    margin-left: 30px; /* Añade separación del menú de navegación */
}

.mobile-menu-button {
    display: none; /* Oculto por defecto */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.cta-button {
    background-color: var(--secondary-color);
    color: #111;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 171, 0, 0.4);
    color: #000;
}

/* --- Hero Section (Full Background) --- */
#hero {
    position: relative;
    height: 95vh; /* Ligeramente más corto para que se vea el contenido de abajo */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    background: url('public/presentacion.png') no-repeat center center/cover;
    background-attachment: fixed; /* Efecto Parallax */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.2) 100%); /* Gradiente oscuro */
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
    padding-top: 60px; /* Espacio para el header */
}

.hero-content {
    max-width: 850px; /* Un poco más de ancho */
    margin: 0 auto;
    animation: fadeInDown 1s ease-out; /* Animación de entrada */
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero h1 {
    font-family: var(--font-heading);
    font-size: 3.8rem; /* Ligeramente más grande */
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 3px 6px rgba(0,0,0,0.5); /* Sombra más definida */
    letter-spacing: 1px;
}

#hero h2 {
    font-family: var(--font-body);
    font-size: 1.6rem; /* Ligeramente más grande */
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9); /* Color blanco con ligera transparencia */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#hero .date {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
    display: inline-block;
    padding: 0.6rem 2rem;
    border-radius: 50px;
    background-color: var(--secondary-color);
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}


.country-flags {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem; /* Add some space before the button */
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.country-flags img {
    height: 30px; /* Adjust height for small flags */
    width: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.country-flags img:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- General Section Styling --- */
section { padding: 5rem 0; }
section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}
section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Thematic Lines Section (Corrected) --- */
#themes {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.themes-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.theme-card-interactive {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-card-interactive:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.theme-icon-bg {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.theme-content-interactive h4 {
    display: none; /* Hide the number as it's redundant in this layout */
}

.theme-content-interactive h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.theme-content-interactive p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Responsive adjustments for the new grid */
@media (max-width: 992px) {
    .themes-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .themes-container {
        grid-template-columns: 1fr;
    }
}


/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.location-info {
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.location-info i {
    margin-right: 0.5rem;
}

.about-map iframe {
    width: 100%;
    height: 350px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* --- Themes Section --- */
.theme-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.theme-card {
    background: var(--white-color);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.theme-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.theme-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 0;
    color: var(--text-color);
}

.theme-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 700;
    color: #e0e0e0;
    z-index: 0;
    transition: color 0.3s ease;
}

.theme-card:hover .theme-number {
    color: var(--secondary-color);
}

/* --- Speakers Section --- */
.hidden-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.show-element {
    opacity: 1;
    transform: translateY(0);
}

/* --- Speakers Section --- */
#speakers {
    background-color: var(--light-gray);
}

.speakers-carousel-container {
    overflow: hidden;
    position: relative;
    padding: 0 44px; /* espacio para las flechas a ambos lados */
    width: 100%;
}

/* Asegura que las flechas siempre sean visibles sobre cualquier fondo */
#speakers .carousel-arrow i { pointer-events: none; font-size: 16px; }

.speaker-grid {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    width: max-content;
    will-change: transform;
    position: relative;
    z-index: 1;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(13, 71, 161, 0.9);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(13,71,161,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    z-index: 5;
    opacity: 1;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}
.carousel-arrow:hover { transform: translateY(-50%) scale(1.05); box-shadow: 0 10px 28px rgba(13,71,161,0.35); }
.carousel-arrow:active { transform: translateY(-50%) scale(0.98); }
.arrow-left { left: 8px; }
.arrow-right { right: 8px; }

/* Mostrar flechas siempre y elevar sobre todo */
#speakers .carousel-arrow { display: inline-flex !important; }

@media (max-width: 768px) {
    .speakers-carousel-container { padding: 0 28px; }
    .carousel-arrow { width: 36px; height: 36px; }
    .arrow-right { right: 18px; }
}

@media (max-width: 480px) {
    .speakers-carousel-container { padding: 0 34px; }
    .arrow-left { left: 2px; }
    .arrow-right { right: 50px; }
}

/* ---- Speaker preview modal ---- */
.speaker-preview {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1200;
}
.speaker-preview.open { display: block; }
.speaker-preview .preview-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.4);
}
.speaker-preview .preview-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: min(560px, 92vw);
    max-height: 80vh;
    height: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: modalIn 220ms ease-out forwards;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
}
.speaker-preview .preview-card .preview-close {
    position: absolute;
    top: 10px; right: 10px;
    border: none; background: transparent; font-size: 22px; cursor: pointer; color: #333;
}
.speaker-preview .preview-content { padding: 0.5rem 0.25rem 0.75rem; display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start; }
.speaker-preview .preview-photo img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; }
.speaker-preview .preview-info h4 { margin: 0 0 0.5rem 0; font-family: var(--font-heading); color: var(--primary-color); }
.speaker-preview .preview-info .preview-talk { margin: 0; font-style: italic; color: #444; line-height: 1.5; }

@keyframes modalIn {
    from { transform: translate(-50%, -50%) scale(0.96); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.speaker-preview .preview-backdrop { backdrop-filter: blur(2px); background: rgba(0,0,0,0.45); }

@media (max-width: 576px) {
    .speaker-preview .preview-content { grid-template-columns: 1fr; text-align: center; }
    .speaker-preview .preview-photo { display: flex; justify-content: center; }
    .speaker-preview .preview-info h4 { margin-top: 0.25rem; }
}

.speaker-card {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 12px;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.15s ease;
}

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

.speaker-photo {
    width: 84px;
    height: 84px;
    overflow: hidden;
    margin: 0.1rem auto 0;
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease, filter 0.25s ease;
    display: block;
    filter: grayscale(10%);
    border-radius: 50%; /* Circular avatar */
}

.speaker-card:hover .speaker-photo img {
    transform: scale(1.02);
    filter: grayscale(0%);
}

/* Eliminada animación CSS; ahora el movimiento es controlado por JS */

.speaker-info {
    position: static;
    padding: 0.35rem 0.4rem 0.45rem;
    background: transparent;
    color: var(--text-color);
    text-align: center;
}

/* Allow a bit more width for text to prevent wrapping issues */
.speaker-card { max-width: 220px; margin-left: auto; margin-right: auto; }

.speaker-info h4 {
    font-family: var(--font-heading);
    font-size: 0.76rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin: 0.12rem 0 0.06rem 0;
    font-weight: 700;
    word-break: normal;
    white-space: normal;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset; /* standard */
    -webkit-box-orient: initial;
    overflow: visible;
}

.speaker-info p {
    color: #666;
    margin: 0;
    font-size: 0.64rem;
    font-style: normal;
}

/* Concise talk title styling with ellipsis and tooltip support */
.speaker-info .talk-title {
	display: block;
	white-space: normal;
	overflow: visible;
	text-overflow: initial;
	-webkit-line-clamp: unset;
	-webkit-box-orient: initial;
	max-height: none;
	font-style: italic;
	margin-top: 0.15rem;
	max-width: 18rem;
	margin-left: auto;
	margin-right: auto;
}

/* Toggle button styles */
.speakers-toggle { text-align: center; margin-top: 0.75rem; }
.speakers-toggle-btn {
    background: linear-gradient(135deg, var(--primary-color), #0a2b59);
    color: #fff;
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 16px rgba(13,71,161,0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.speakers-toggle-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(13,71,161,0.35); }
.speakers-toggle-btn:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(13,71,161,0.25); }
.speakers-toggle-btn:focus { outline: 3px solid rgba(255,171,0,0.5); outline-offset: 2px; }

/* Slightly denser layout on very wide screens */
@media (min-width: 1400px) {
    .speaker-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* --- Schedule Section --- */
.tabs {
    text-align: center;
    margin-bottom: 3rem;
}

.tab-link {
    background: none;
    border: 2px solid #e0e0e0;
    color: #777;
    padding: 1rem 2rem;
    margin: 0 0.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-link:hover {
    background-color: #f5f5f5;
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.tab-link.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3);
}

.tab-link i { margin-right: 0.5rem; }

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.schedule-table th, .schedule-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.schedule-table thead {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-table tbody tr:nth-child(even) {
    background-color: var(--light-gray);
}

.schedule-table tbody tr:hover {
    background-color: #e9e9e9;
}

.schedule-table .type-column {
    width: 150px;
    text-align: center;
}

.schedule-table td[data-label="Tipo"] {
    text-align: center;
}

.activity-type {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white-color);
}

.activity-type.registration { background-color: #2196f3; } /* Blue */
.activity-type.workshop { background-color: #ff9800; } /* Orange */
.activity-type.conference { background-color: #9c27b0; } /* Purple */
.activity-type.main-event { background-color: #4caf50; } /* Green */
.activity-type.closing { background-color: #f44336; } /* Red */

/* --- Pricing Section --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    background: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--primary-color);
}

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

.pricing-card.featured {
    transform: scale(1.05);
    border-top-color: var(--secondary-color);
}

.pricing-header .pricing-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pricing-card.featured .pricing-header .pricing-icon {
    color: var(--secondary-color);
}

.pricing-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.price sup {
    font-size: 1.5rem;
    font-weight: 600;
    top: -1.5em;
}

.price-usd {
    font-size: 1rem;
    color: #777;
    margin-bottom: 2rem;
}

.payment-info {
    background-color: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.payment-info .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.payment-info h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.payment-details {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.payment-details h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.bank-info {
    margin-bottom: 1.5rem;
}

.bank-info p {
    font-size: 1.1rem;
    color: #495057;
    margin: 0.75rem 0;
    line-height: 1.6;
}

.bank-info strong {
    color: #2c3e50;
    font-weight: 600;
}

.payment-instructions {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 4px;
}

.payment-instructions p {
    margin: 0 0 0.75rem 0;
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
}

.payment-instructions i {
    color: #3498db;
    margin-right: 0.5rem;
}

.instructions-list {
    margin: 0.75rem 0 0 1.25rem;
    padding: 0;
    list-style-type: none;
}

.instructions-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #495057;
    line-height: 1.5;
}

.instructions-list li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.mt-2 {
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .payment-info {
        padding: 2rem 0;
    }
    
    .payment-details {
        padding: 1.5rem;
    }
    
    .payment-details h3 {
        font-size: 1.3rem;
    }
    
    .bank-info p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .payment-info {
        padding: 1.5rem 0;
    }
    
    .payment-details {
        padding: 1.25rem;
    }
    
    .payment-details h3 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .bank-info p {
        font-size: 0.95rem;
    }
    
    .payment-instructions {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* ===== Sección de Información de Pago ===== */
#payment-methods {
    text-align: center;
    margin-bottom: 4rem;
}

#payment-methods .section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.payment-method-card {
    background: var(--white-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.payment-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.payment-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: rgba(13, 71, 161, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-method-card h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.payment-method-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.payment-details {
    margin: 1.5rem 0;
}

.payment-detail {
    display: flex;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed #e9ecef;
}

.payment-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    min-width: 130px;
    flex-shrink: 0;
}

.detail-.ponencia-title {
    font-style: italic;
    color: #555;
    display: block;
    margin-top: 5px;
    font-weight: normal;
}value {
    color: #212529;
    flex-grow: 1;
}

.payment-description {
    color: #6c757d;
    margin: 1.5rem 0;
    line-height: 1.7;
}

.payment-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white !important;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-top: 1rem;
}

.payment-button:hover {
    background: #0b3d91;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3);
}

.payment-button i {
    font-size: 1.1rem;
}

.accepted-cards {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.accepted-cards i {
    font-size: 2rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.accepted-cards i:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.payment-instructions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    border-right: 3px solid var(--secondary-color);
}

.payment-instructions p {
    margin: 0;
    color: #495057;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.payment-instructions i {
    color: var(--secondary-color);
    margin-top: 0.2rem;
}

.payment-instructions strong {
    color: var(--primary-color);
}

.payment-security {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.security-badge i {
    font-size: 1.2rem;
}

.payment-security p {
    color: #6c757d;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-detail {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    .payment-security {
        padding: 1.5rem;
    }
}

/* --- Sponsors --- */
#sponsors {
    background-color: var(--light-gray);
    padding: 4rem 0;
}

#sponsors h2 {
    margin-bottom: 1rem;
}

.organizer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.organizer-logos img {
    max-height: 90px;
    max-width: 220px;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.organizer-logos img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.sponsors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.sponsors-column {
    display: flex;
    flex-direction: column;
}

.sponsors-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.sponsors-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    align-items: center;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-item img {
    max-height: 60px;
    max-width: 140px;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-item img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* --- Footer (Modern) --- */
.site-footer {
    background: linear-gradient(135deg, #0b3a7e 0%, #0a2b59 100%);
    color: #e6eef7;
    padding: 3.5rem 0 1.2rem;
}

.site-footer a { color: #ffcf66; text-decoration: none; }
.site-footer a:hover { color: #ffffff; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-col h4 {
    margin: 0 0 1rem 0;
    font-family: var(--font-heading);
    color: #ffffff;
}

.footer-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
    color: #ffffff;
    letter-spacing: 0.2px;
    text-transform: none;
}

.footer-brand p { margin: 0 0 1rem 0; opacity: 0.9; }

/* Distinct tagline styling */
.footer-tagline {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
    color: #f1f5fb;
    border-left: 3px solid var(--secondary-color);
    padding-left: 0.6rem;
}

.brand-logos { display: flex; gap: 0.75rem; align-items: center; }
.brand-logos img { height: 36px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)); }

.footer-links, .footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li { margin: 0.4rem 0; }
.footer-links a { font-weight: 600; }

.footer-contact li { margin: 0.5rem 0; display: flex; align-items: center; gap: 0.6rem; }
.footer-contact i { color: var(--secondary-color); }

.footer-social { margin-top: 0.75rem; display: flex; gap: 0.6rem; }
.footer-social a {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    transition: all 0.25s ease;
}
.footer-social a:hover {
    background: var(--secondary-color);
    color: #111;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 2.2rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    color: #d6deea;
}

/* Footer responsive */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
    .brand-logos { flex-wrap: wrap; }
}

.sponsor-list-container {
    margin-top: 3rem;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.8rem 2rem; /* Espacio vertical y horizontal */
    text-align: center;
}

.sponsor-item {
    font-family: 'Montserrat', sans-serif; /* Estilo de letra de títulos */
    font-size: 0.75rem; /* Tamaño de letra más pequeño */
    color: #000000; /* Color de letra negro */
    font-weight: 700; /* Estilo negrita */
    padding: 0.2rem; /* Espacio interno ligero */
}


/* -------------------
   Schedule Section
-------------------- */

#schedule .day-subtitle {
    text-align: center;
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

#schedule .schedule-session {
    margin-bottom: 3rem;
}

#schedule .schedule-session h4 {
    font-size: 1.5em;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.schedule-table th, .schedule-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.schedule-table thead {
    background-color: #f9f9f9;
}

.schedule-table th {
    font-weight: 700;
    color: var(--secondary-color);
}

.schedule-table .time-col { width: 15%; }
.schedule-table .event-col { width: 40%; }
.schedule-table .speaker-col { width: 35%; }
.schedule-table .location-col { width: 10%; }

.schedule-table .schedule-location-block {
    text-align: center;
    background-color: var(--primary-color); /* Or a lighter shade of primary */
    color: var(--white-color);
    font-weight: 700;
    font-size: 1.1em;
    padding: 0.8rem 1rem;
    border-bottom: 2px solid var(--secondary-color); /* A subtle separator */
}

.schedule-table .schedule-break-block {
    text-align: center;
    background-color: var(--light-gray); /* A subtle background */
    color: var(--text-color);
    font-weight: 600;
    font-size: 1em;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.schedule-table .schedule-afternoon-block {
    text-align: center;
    background-color: #fff3e0; /* A lighter shade of the yellow */
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1em;
    padding: 0.8rem 1rem;
    border: 2px solid var(--secondary-color); /* The yellow border */
    border-bottom: 2px solid var(--secondary-color) !important; /* Ensure bottom border is always there */
    margin-top: 1rem; /* Add some space above it */
    margin-bottom: 1rem; /* Add some space below it */
    border-radius: 8px; /* Slightly rounded corners */
}

.schedule-table td strong {
    color: var(--primary-color);
}

/* Work Tables Grid */
.work-tables-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.work-table-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-self: start; /* Added to prevent stretching */
}

.work-table-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.work-table-card h5 {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.work-table-card .table-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.work-table-card p {
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.work-table-card .table-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f0f4f8;
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.work-table-card .table-location i {
    color: var(--primary-color);
}

.work-table-card .table-location-detail {
    display: none;
}

.work-table-card .moderator-info {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1rem;
    display: block;
}

.moderator-info i {
    color: var(--secondary-color);
}

.table-schedule {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.table-schedule li {
    font-size: 0.9em;
    padding: 0.5rem 0;
    display: block;
}

.table-schedule .time {
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 60px;
    display: block;
    margin-bottom: 0.5rem;
}

.table-schedule .details {
    flex-grow: 1;
}

.table-schedule strong {
    color: var(--text-color);
    font-weight: 600;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    #main-nav {
        display: none; /* Ocultar navegación principal */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    #main-nav.active {
        display: block;
    }

    #main-nav .nav-links {
        flex-direction: column;
        padding: 1rem 0;
    }

    #main-nav .nav-links li {
        margin: 0;
        text-align: center;
    }

    #main-nav .nav-links a {
        display: block;
        padding: 1rem;
    }

    .header-cta {
        display: none; /* Ocultar CTA en el header */
    }

    .mobile-menu-button {
        display: block; /* Mostrar botón de menú */
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #main-header .container {
        flex-direction: column;
    }

    #main-header nav {
        margin-top: 1rem;
    }

    #hero h1 { font-size: 2.5rem; }
    #hero h2 { font-size: 1.2rem; }

    section h2 { font-size: 2.2rem; }

    .schedule-table thead {
        display: none;
    }

    .schedule-table, .schedule-table tbody, .schedule-table tr, .schedule-table td {
        display: block;
        width: 100%;
    }

    .schedule-table tr {
        margin-bottom: 1rem;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 1rem;
    }

    .schedule-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: none;
    }

    .schedule-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: calc(50% - 2rem);
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: var(--primary-color);
    }

    .schedule-table .time-col, .schedule-table .event-col, .schedule-table .speaker-col {
        width: 100%;
    }
}

@media (max-width: 576px) {
    #main-header nav ul li {
        display: block;
        margin: 10px 0;
        text-align: center;
    }

    .tab-link {
        display: block;
        margin-bottom: 0.5rem;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-time {
        margin-bottom: 1rem;
    }
}

footer {
    background: var(--primary-color);
    color: #e0e0e0;
    text-align: center;
    padding: 3rem 0;
}
footer p { margin: 0.5rem 0; }
footer a { color: var(--secondary-color); text-decoration: none; font-weight: 600; }

.ponencia-title {
    font-style: italic;
    color: #555;
    display: block;
    margin-top: 5px;
    font-weight: normal;
}

.schedule-session .schedule-subtitle {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.schedule-session .schedule-location {
    font-size: 1.2em;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Estilo especial para la hora del café */
.coffee-break {
    font-size: 1.2em !important;
    font-weight: bold !important;
    color: #8B4513 !important; /* Brown color for coffee */
    background-color: #FFF8DC !important; /* Light cream background */
    padding: 0.5rem !important;
    border-radius: 8px !important;
    display: inline-block !important;
    text-align: center !important;
    border: 2px solid #D2691E !important; /* Coffee brown border */
}

@media (max-width: 1200px) {
    .work-tables-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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