* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Header */
.header {
    background: linear-gradient(90deg, #0a0a2e, #1a1a4e, #0d3b66, #1a1a4e, #0a0a2e);
    background-size: 300% 100%;
    animation: headerShift 8s ease-in-out infinite;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,212,255,0.2);
}

@keyframes headerShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
}

.header-logo-img {
    height: 42px;
    width: auto;
    filter: invert(1) brightness(1.5) contrast(1.3);
    mix-blend-mode: screen;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: invert(1) brightness(1.5) contrast(1.3) drop-shadow(0 0 0 transparent);
    }
    50% {
        filter: invert(1) brightness(1.8) contrast(1.5) drop-shadow(0 0 10px rgba(0,212,255,0.6));
    }
}

.header-logo:hover .header-logo-img {
    animation: none;
    transform: scale(1.12);
    filter: invert(1) brightness(2) contrast(1.5) drop-shadow(0 0 15px rgba(0,212,255,0.9)) drop-shadow(0 0 35px rgba(0,212,255,0.5));
}

.header-logo-img:active {
    transform: scale(0.9);
    filter: invert(1) brightness(2.5) contrast(2) drop-shadow(0 0 25px rgba(0,212,255,1));
}

.header-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.header-logo h1 span {
    color: #00d4ff;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s;
}

.nav-list a:hover {
    color: #00d4ff;
}

.nav-list a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15,12,41,0.8), rgba(48,43,99,0.7), rgba(36,36,62,0.8));
    z-index: 1;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0,212,255,0.4), 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content h2 span {
    color: #00d4ff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0,0,0,0.8), 0 2px 4px rgba(0,0,0,0.6);
    background: rgba(0,0,0,0.65);
    display: inline-block;
    padding: 10px 25px;
    border-radius: 8px;
    backdrop-filter: blur(2px);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 10px;
    padding: 15px 20px;
    min-width: 90px;
    backdrop-filter: blur(5px);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00d4ff;
    line-height: 1;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero {
    background: #00d4ff;
    color: #0f0c29;
}

.btn-hero:hover {
    background: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,212,255,0.4);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #00d4ff;
}

.btn-hero-outline:hover {
    background: #00d4ff;
    color: #0f0c29;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,212,255,0.4);
}

.btn-hero-outline i {
    margin-right: 6px;
}

/* Ponentes */
.ponentes {
    padding: 100px 0;
    background: linear-gradient(180deg, #f0f4ff, #e8eeff);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #0f0c29;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #302b63);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #1a1a2e;
    font-weight: 500;
    margin-bottom: 50px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 25px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card-horario {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #302b63, #00d4ff);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 10px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.card-horario i {
    margin-right: 5px;
    animation: clockPulse 1.5s ease-in-out infinite;
}

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

.card:hover .card-horario {
    background: linear-gradient(90deg, #00d4ff, #302b63);
    letter-spacing: 1px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.08), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,212,255,0.15), 0 10px 20px rgba(0,0,0,0.1);
    border-color: #00d4ff;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #302b63, #00d4ff);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::after {
    transform: scaleX(1);
}

.card-img {
    margin-bottom: 20px;
    position: relative;
}

.card-img img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #302b63;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.card-img::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.4s;
}

.card:hover .card-img img {
    transform: scale(1.1) rotate(3deg);
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0,212,255,0.4);
}

.card:hover .card-img::after {
    border-color: rgba(0,212,255,0.3);
    width: 145px;
    height: 145px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #1a1a2e;
    transition: all 0.3s;
}

.card:hover h3 {
    color: #302b63;
    transform: scale(1.05);
}

.card-especialidad {
    color: #00d4ff;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.card:hover .card-especialidad {
    letter-spacing: 1.5px;
}

.card-temas {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    text-align: left;
}

.card-temas li {
    padding: 7px 0;
    font-size: 0.88rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.card:hover .card-temas li {
    padding-left: 8px;
    color: #222;
}

.card-temas li:last-child {
    border-bottom: none;
}

.card-temas li i {
    color: #302b63;
    font-size: 0.85rem;
    min-width: 18px;
    text-align: center;
    transition: all 0.3s;
}

.card-temas li:hover i {
    color: #00d4ff;
    transform: scale(1.3);
}

.card-temas li:hover {
    color: #302b63;
    font-weight: 600;
}

.card-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.card-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #302b63;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
}

.card-social a:hover {
    background: #00d4ff;
    color: #fff;
    transform: translateY(-4px) scale(1.15);
    box-shadow: 0 5px 15px rgba(0,212,255,0.4);
}

/* Inscripcion */
.inscripcion {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
}

.inscripcion .section-title {
    color: #fff;
}

.inscripcion .section-subtitle {
    color: rgba(255,255,255,0.8);
}

.form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.08);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #00d4ff;
}

.required {
    color: #ff4444;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    color: #333;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00d4ff;
}

.btn-submit {
    width: 100%;
    background: #00d4ff;
    color: #0f0c29;
    font-size: 1.1rem;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,212,255,0.4);
}

/* Footer */
.footer {
    background: #0f0c29;
    color: #fff;
    padding: 60px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-info h3,
.footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #00d4ff;
}

.footer-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info i {
    color: #00d4ff;
    width: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #00d4ff;
    color: #0f0c29;
    transform: translateY(-3px);
}

.footer-map {
    padding: 0 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-map iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(0,212,255,0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(90deg, #0a0a2e, #1a1a4e, #0d3b66);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.active {
        max-height: 300px;
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

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

    .hero-content h2 {
        font-size: 2.2rem;
    }

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

    .countdown {
        gap: 12px;
    }

    .countdown-item {
        min-width: 65px;
        padding: 10px 12px;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-info p {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .form {
        padding: 25px;
    }

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

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }

    .header-logo h1 {
        font-size: 1.2rem;
    }

    .header-logo i {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .card {
        padding: 30px 20px;
    }

    .countdown-item {
        min-width: 55px;
        padding: 8px 10px;
    }

    .countdown-number {
        font-size: 1.4rem;
    }
}
