:root {
    --primary: #c62828;
    --primary-dark: #8e0000;
    --secondary: #1a237e;
    --light: #f5f5f5;
    --dark: #212121;
    --gray: #757575;
}

.seminario-header *,
.seminario-header,
#info,
#ponentes,
.schedule,
footer {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body .seminario-header,
body #info,
body #ponentes, 
body .schedule,
body footer {
    background-color: #f9f9f9;
    color: var(--dark);
    line-height: 1.6;
}

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

/* Header */
.seminario-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23c62828"/></svg>');
    background-size: cover;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.date {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: bold;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 10px 5px;
}

.btn:hover {
    background-color: #283593;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
}

/* Main Content */
#info,
#ponentes,
.schedule,
footer {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    margin: 15px auto;
}

.info-box {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.info-box h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.info-box ul {
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 10px;
}

/* Schedule */
.schedule {
    background-color: #f0f0f0;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.schedule-table th {
    background-color: var(--primary);
    color: white;
    padding: 15px;
    text-align: left;
}

.schedule-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

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

.schedule-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.mesa-title {
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 5px;
}

.mesa-content {
    font-size: 0.9rem;
    color: var(--gray);
}

.mesa-content ul {
    padding-left: 15px;
    margin-top: 5px;
}

.mesa-content li {
    margin-bottom: 3px;
}

/* Ponentes */
.ponentes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.ponente-card {
    background-color: white;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: 1px solid #f0f0f0;
}

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

.ponente-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ponente-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ponente-name {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--secondary);
    font-size: 1.2rem;
}

.ponente-descripcion {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.ponente-pais {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 500;
}

.ponente-organizacion {
    font-size: 0.85rem;
    color: var(--gray);
    font-style: italic;
}

/* Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
    overflow: visible !important;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: var(--gray);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

.popup-body {
    display: flex;
    padding: 40px;
    gap: 40px;
}

.popup-col-1 {
    flex: 0 0 40%;
    text-align: center;
}

.popup-col-2 {
    flex: 0 0 60%;
}

.popup-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin: 0 auto 25px;
    overflow: hidden;
    border: 6px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.popup-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.popup-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 10px;
}

.popup-descripcion {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.popup-pais {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 500;
}

.popup-organizacion {
    font-size: 0.95rem;
    color: var(--gray);
    font-style: italic;
    margin-bottom: 20px;
}

.popup-bio {
    margin-bottom: 25px;
}

.popup-bio h4 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.popup-redes h4 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.redes-sociales {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.red-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.red-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.red-social.facebook { background: #3b5998; }
.red-social.twitter { background: #1da1f2; }
.red-social.instagram { background: #e4405f; }
.red-social.linkedin { background: #0077b5; }

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.organizadores {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.organizador {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
}

.copyright {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive */
@media (max-width: 1024px) {
    .popup-body {
        gap: 30px;
        padding: 30px;
    }
    
    .popup-img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .schedule-table {
        display: block;
        overflow-x: auto;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .date {
        font-size: 1.1rem;
    }
    
    .ponentes-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .organizadores {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Popup Responsive */
    .popup-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .popup-body {
        flex-direction: column;
        gap: 25px;
        padding: 25px;
    }
    
    .popup-col-1,
    .popup-col-2 {
        flex: 1;
    }
    
    .popup-img {
        width: 140px;
        height: 140px;
        margin-bottom: 20px;
    }
    
    .popup-name {
        font-size: 1.3rem;
    }
    
    .popup-descripcion {
        font-size: 1rem;
    }
    
    .redes-sociales {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .seminario-header {
        padding: 40px 0;
    }
    
    .logo {
        font-size: 1.7rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .btn {
        display: block;
        margin: 10px auto;
        width: 200px;
    }
    
    .ponentes-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .popup-body {
        padding: 20px;
        gap: 20px;
    }
    
    .popup-img {
        width: 120px;
        height: 120px;
    }
    
    .popup-close {
        top: 15px;
        right: 20px;
        font-size: 1.8rem;
    }
}

