/* BAILES.CSS - ELECTRIC OCEAN THEME */
:root {
    --primary: #6C63FF;      /* Violeta */
    --secondary: #00D2FF;    /* Cyan */
    --accent: #FFD166;       /* Amarillo */
    --dark: #1A1A2E;         /* Azul Oscuro */
    --light: #FFFFFF;
    --gray-bg: #F4F6F8;
    --text: #2D3436;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: var(--gray-bg); color: var(--text); overflow-x: hidden; line-height: 1.5; }

/* CONTAINER GRID */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 30px; font-weight: 700; text-decoration: none; transition: all 0.3s; font-size: 0.95rem; cursor: pointer; border: none; }
.btn-primary { background: var(--gradient); color: white; box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4); }
.btn-outline { background: transparent; border: 2px solid var(--secondary); color: var(--dark); }
.btn-outline:hover { background: var(--secondary); color: white; }
.btn-giant { padding: 18px 45px; font-size: 1.1rem; }
.btn-back { background: rgba(255,255,255,0.1); color: white; font-size: 0.8rem; padding: 8px 20px; margin-top: 10px; }

/* SECTIONS */
.section { padding: 80px 0; position: relative; }
.gray-bg { background: white; }
.dark-section { background: var(--dark); color: white; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: 2.8rem; margin-bottom: 50px; text-align: center; position: relative; display: inline-block; width: 100%; }
.section-title.light { color: white; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--gradient); border-radius: 2px; }

/* LOADER */
.loader { position: fixed; inset: 0; background: var(--dark); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.5s; }
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-icon { width: 50px; height: 50px; border: 4px solid rgba(255,255,255,0.2); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }

/* HEADER */
header { background: rgba(255,255,255,0.98); position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.header-wrapper { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo-brand { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.logo-brand img { height: 45px; }
.logo-brand span { font-weight: 800; font-size: 1.1rem; color: var(--dark); display: none; }
.hamburger-btn { display: block; background: none; border: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }

.main-nav { position: fixed; top: 75px; left: 0; width: 100%; height: calc(100vh - 75px); background: white; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 2rem; gap: 1.5rem; transform: translateX(-100%); transition: transform 0.3s ease; display: flex; }
.main-nav.active { transform: translateX(0); }
.main-nav a { text-decoration: none; color: var(--text); font-weight: 600; }

/* USER WIDGET */
.user-widget { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 8px; cursor: pointer; background: var(--gray-bg); padding: 6px 12px 6px 6px; border-radius: 20px; }
.u-avatar { width: 32px; height: 32px; background: var(--gradient); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.8rem; }
.u-name { font-weight: 600; font-size: 0.9rem; }
.user-menu { position: absolute; top: 100%; right: 0; margin-top: 10px; background: white; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); min-width: 200px; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s; }
.user-widget:hover .user-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 12px 20px; text-decoration: none; color: var(--text); font-size: 0.9rem; }
.menu-item:hover { background: var(--gray-bg); }
.menu-item.highlight { background: var(--gradient); color: white; }
.menu-item.logout { color: #dc3545; }
.btn-cta-nav { background: var(--primary); color: white; padding: 8px 20px; border-radius: 20px; border: none; font-weight: 600; cursor: pointer; }

/* HERO */
.hero-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--dark); position: relative; padding: 100px 20px 60px; }
.hero-overlay { position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1514525253161-7a46f19f8197?w=1920') center/cover; opacity: 0.3; filter: grayscale(0.5); }
.hero-content { position: relative; z-index: 2; text-align: center; color: white; }
.hero-tag { background: rgba(255,255,255,0.1); padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; margin-bottom: 1rem; display: inline-block; border: 1px solid rgba(255,255,255,0.3); }
.hero-title { font-family: 'Space Grotesk', sans-serif; font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; background: linear-gradient(to right, #fff, var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2.5rem; }
.hero-actions { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }

/* ABOUT */
.about-layout { display: grid; gap: 3rem; }
.about-main .lead { font-size: 1.1rem; font-weight: 500; color: #555; }
.info-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.info-box { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); border-left: 4px solid var(--primary); }
.info-box h4 { font-size: 1rem; margin-bottom: 0.3rem; color: var(--primary); }
.info-box.full { grid-column: span 2; }
.about-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.style-item { background: white; padding: 1rem; border-radius: 10px; display: flex; align-items: center; gap: 10px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.style-item i { color: var(--secondary); font-size: 1.2rem; }

/* RITMOS */
.ritmos-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.ritmo-card { position: relative; height: 280px; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.1); cursor: pointer; }
.ritmo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.ritmo-card:hover img { transform: scale(1.05); }
.ritmo-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: white; }
.ritmo-label .tag { background: var(--accent); color: var(--dark); padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.ritmo-label h3 { font-size: 1.5rem; margin: 5px 0; }

/* TIMELINE */
.timeline { position: relative; padding: 2rem 0; }
.timeline-line { position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: #e0e0e0; }
.timeline-item { position: relative; margin-bottom: 3rem; padding-left: 60px; width: 100%; }
.timeline-content { background: white; padding: 1.5rem; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); border: 1px solid #eee; }
.t-icon { width: 40px; height: 40px; background: var(--gradient); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.t-list { margin-top: 1rem; padding-left: 20px; color: #666; }
.t-list li { margin-bottom: 0.3rem; }

/* CRITERIOS */
.criterios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.c-card { background: white; padding: 2rem; border-radius: 15px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.c-icon { width: 60px; height: 60px; background: rgba(108, 99, 255, 0.1); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1rem; }
.c-score { font-size: 2rem; font-weight: 900; color: var(--primary); margin: 0.5rem 0; }
.progress-bar { width: 100%; height: 6px; background: #eee; border-radius: 3px; margin-top: 1rem; overflow: hidden; }
.p-fill { height: 100%; background: var(--gradient); }

/* JURADO */
.jurado-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.j-card { background: white; padding: 2rem 1rem; border-radius: 15px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: transform 0.3s; }
.j-card:hover { transform: translateY(-5px); }
.j-avatar { font-size: 2.5rem; margin-bottom: 1rem; }

/* TECNOLOGIA */
.tech-grid { display: grid; gap: 3rem; }
.t-feature { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; align-items: flex-start; }
.tf-icon { width: 50px; height: 50px; background: rgba(255,255,255,0.1); color: var(--secondary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.tf-text h4 { margin-bottom: 0.2rem; }
.tech-visual { background: rgba(255,255,255,0.05); padding: 2rem; border-radius: 20px; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
.tv-demo { height: 150px; background: rgba(0,0,0,0.3); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--secondary); font-size: 3rem; margin-bottom: 1rem; }

/* SPONSORS */
.sponsors-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.sp-item { background: white; padding: 1rem 2rem; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.sp-item img { height: 40px; filter: grayscale(1); opacity: 0.7; transition: all 0.3s; }
.sp-item:hover img { filter: grayscale(0); opacity: 1; }

/* CTA */
.cta-section { background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(0, 210, 255, 0.05) 100%); }
.cta-title { font-size: 3rem; margin-bottom: 1rem; }
.logged-card { background: white; padding: 3rem; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); max-width: 500px; margin: 0 auto; }
.logged-card h3 { color: var(--primary); margin-bottom: 0.5rem; }

/* GALLERY */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.g-card { border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.g-thumb { height: 180px; background: var(--dark); display: flex; align-items: center; justify-content: center; color: white; font-size: 3rem; }
.g-info { padding: 1rem; background: white; }

/* PRIZES */
.prizes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.p-card { background: white; padding: 2rem; border-radius: 15px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.p-icon { font-size: 3rem; margin-bottom: 1rem; }

/* FOOTER */
footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 20px 30px; }
.footer-wrapper { max-width: 1200px; margin: 0 auto; text-align: center; }
.f-logo { height: 60px; margin-bottom: 2rem; filter: brightness(10); }
.f-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
.f-contact a { color: white; text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 5px; }
.f-social { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.f-social a { width: 45px; height: 45px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; transition: all 0.3s; }
.f-social a:hover { background: var(--primary); border-color: var(--primary); }
.f-legal { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }

/* BACK HOME BTN */
.back-home-btn { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--gradient); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1.2rem; box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4); z-index: 999; transition: transform 0.2s; }
.back-home-btn:hover { transform: scale(1.1); }

/* MODAL */
.modal-content { border: none; border-radius: 15px; overflow: hidden; }
.modal-header { background: var(--gradient); color: white; border: none; }

/* RESPONSIVE - TABLET */
@media (min-width: 768px) {
    .logo-brand span { display: block; }
    .hero-title { font-size: 5rem; }
    .hero-actions { flex-direction: row; }
    .about-layout { grid-template-columns: 1fr 1fr; }
    .ritmos-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    
    /* Timeline Tablet */
    .timeline-line { left: 50%; transform: translateX(-50%); }
    .timeline-item { width: 50%; padding-left: 0; padding-right: 30px; }
    .timeline-item.right { margin-left: 50%; padding-left: 30px; padding-right: 0; }
    
    /* Header */
    .hamburger-btn { display: none; }
    .main-nav { position: static; height: auto; width: auto; background: none; flex-direction: row; padding: 0; transform: none; gap: 1.5rem; box-shadow: none; }
    .nav-user-zone { margin-left: 1rem; }
}

/* RESPONSIVE - PC */
@media (min-width: 1024px) {
    .ritmos-grid { grid-template-columns: repeat(4, 1fr); }
    .tech-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}