/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

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

/* Header */
header {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #FFD700;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.cta-button {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23333" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="%23000"/><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    animation: fadeIn 1.5s ease-out;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
}

/* Sections */
.section {
    padding: 80px 0;
    background: white;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-radius: 2px;
}

/* Speakers Grid */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.speaker-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.speaker-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

.speaker-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

.speaker-card .title {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.speaker-card .description {
    color: #555;
    line-height: 1.6;
}

/* Topics */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.topic-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    border-left: 5px solid #FFD700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.topic-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateX(5px);
}

.topic-card h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.topic-card .date {
    color: #FFD700;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.topic-card .speaker {
    color: #666;
    font-size: 0.9rem;
}

/* Videos Section */
.video-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.videos-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 3rem;
}

.main-video {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.main-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 25px;
}

.video-info h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.video-info p {
    color: #666;
    line-height: 1.6;
}

.additional-videos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.video-card .video-container {
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-card h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 15px 15px 8px 15px;
}

.video-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0 15px 15px 15px;
    line-height: 1.5;
}

.video-cta {
    text-align: center;
    margin-top: 2rem;
}

.video-cta .cta-button {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    display: inline-block;
}

.video-cta .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.final-cta h2 {
    color: white;
    margin-bottom: 2rem;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 30px 0;
}

footer p {
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-image {
        width: 40px;
        height: 40px;
    }

    .hero-logo {
        width: 120px;
        height: 120px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section {
        padding: 50px 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    .speakers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    /* Videos responsive */
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .additional-videos {
        flex-direction: row;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
    }

    .video-card {
        min-width: 250px;
        flex-shrink: 0;
    }

    .video-intro {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .hero-cta {
        padding: 12px 24px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .speaker-card {
        padding: 20px;
    }

    .topic-card {
        padding: 20px;
    }

    /* Videos en móviles pequeños */
    .video-intro {
        font-size: 1rem;
    }

    .additional-videos {
        flex-direction: column;
        overflow-x: visible;
    }

    .video-card {
        min-width: auto;
    }

    .video-info {
        padding: 20px;
    }

    .video-info h3 {
        font-size: 1.3rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

/* Print Styles */
@media print {
    header {
        position: static;
        background: white !important;
        color: black !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        min-height: auto;
    }
    
    .cta-button,
    .hero-cta {
        display: none;
    }
}