:root {
    --primary: #0b132b;
    --secondary: #ffffff;
    --accent-gold: #d4af37;
    --accent-red: #c8102e;
    --accent-green: #006847;
    --text-dark: #333333;
    --text-muted: #64748b;
    --bg-light: #f4f6f9;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
    --shadow-soft: 0 18px 45px rgba(11, 19, 43, 0.08);
    --shadow-hover: 0 25px 60px rgba(11, 19, 43, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilidades */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2.3rem, 4vw, 4rem);
    color: var(--primary);
    margin-bottom: 35px;
    font-weight: 900;
    line-height: 1.1;
}

.section-text {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 55px auto;
    font-size: 1.1rem;
    color: #475569;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--primary);
    color: var(--secondary);
}

.bg-dark .section-title,
.bg-dark p {
    color: var(--secondary);
}

.text-white {
    color: var(--secondary);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-nav {
    background-color: var(--accent-gold);
    color: var(--primary);
}

.btn-hero {
    background-color: var(--accent-red);
    color: var(--secondary);
    margin-top: 20px;
}

.btn-footer {
    background-color: var(--accent-gold);
    color: var(--primary);
    margin: 20px 0;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 78px;
    background-color: rgba(11, 19, 43, 0.97);
    padding: 16px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--secondary);
    white-space: nowrap;
}

.logo span {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* Hero */
.hero-section {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.16), transparent 35%),
        linear-gradient(135deg, var(--primary) 0%, #1a2a5c 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 130px 10% 80px;
    color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 640px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.3rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 22px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: #cbd5e1;
    max-width: 580px;
}

.hero-visual {
    z-index: 1;
}

.floating-ball {
    font-size: clamp(9rem, 18vw, 16rem);
    color: rgba(255, 255, 255, 0.1);
}

/* Tarjetas */
.card {
    background: var(--secondary);
    border-radius: 22px;
    padding: 44px 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border-bottom: 5px solid var(--accent-gold);
    opacity: 1;
    visibility: visible;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 18px;
}

.card h3 {
    font-size: 2.8rem;
    color: var(--accent-red);
    margin-bottom: 10px;
    font-weight: 900;
}

/* Info cards */
.info-cards {
    margin-top: 60px;
}

.info-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card p {
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 600;
}

/* Anfitriones */
.host-card {
    padding: 0;
    overflow: hidden;
    border-bottom: none;
}

.host-img {
    height: 220px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.usa-bg {
    background-image:
        linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
        url('https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?auto=format&fit=crop&w=800&q=80');
}

.mex-bg {
    background-image:
        linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
        url('https://images.unsplash.com/photo-1518105779142-d975f22f1b0a?auto=format&fit=crop&w=800&q=80');
}

.can-bg {
    background-image:
        linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
        url('https://images.unsplash.com/photo-1503614472-8c93d56e92ce?auto=format&fit=crop&w=800&q=80');
}

.host-content {
    padding: 28px;
}

.host-content h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Sedes Galería */
#venues {
    padding-top: 55px;
    padding-bottom: 90px;
}

#venues .container {
    max-width: 1500px;
}

#venues .section-title {
    margin-bottom: 35px;
}

.venues-gallery {
    gap: 28px;
    align-items: stretch;
}

.venue-item {
    height: 400px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    background: var(--primary);
}

.venue-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.venue-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.venue-item:hover img {
    transform: scale(1.08);
}

.venue-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(11, 19, 43, 0.98),
        rgba(11, 19, 43, 0.55),
        rgba(11, 19, 43, 0.05)
    );
    z-index: 1;
}

.venue-info {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    z-index: 2;
    color: var(--secondary);
}

.venue-info h3 {
    font-size: 1.45rem;
    font-weight: 900;
    margin-bottom: 6px;
    line-height: 1.2;
}

.venue-info p {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
}

/* Equipos */
.teams-content {
    text-align: center;
}

.teams-text {
    max-width: 760px;
    margin: 0 auto;
    color: #dbeafe;
}

.teams-visual {
    display: flex;
    justify-content: center;
    gap: 45px;
    margin-top: 45px;
    font-size: 4rem;
}

.trophy {
    color: var(--accent-gold);
}

/* Calendario */
.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding: 45px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-gold);
    top: 0;
    bottom: 0;
    left: 50px;
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    padding-left: 120px;
    margin-bottom: 42px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 29px;
    top: 0;
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border: 3px solid var(--accent-gold);
}

.final-icon {
    background: var(--accent-gold);
    color: var(--primary);
}

.timeline-content {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.timeline-content h3 {
    color: var(--primary);
    font-size: 1.25rem;
}

/* Analítica */
.analytics-grid {
    margin-top: 50px;
}

.analytic-metric {
    background: var(--secondary);
    padding: 28px;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.analytic-metric h4 {
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 13px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-gold));
    width: 0;
    border-radius: 999px;
}

.metric-val {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-muted);
    text-align: right;
}

/* ==========================
   VIDEO YOUTUBE
========================== */

.media-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
    flex-wrap:wrap;
}

.media-text-box{
    flex:1;
    min-width:320px;
}

.media-video-box{
    flex:1.2;
    min-width:420px;
}

.video-wrapper{
    position:relative;
    width:100%;
    padding-bottom:56.25%;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 20px 50px rgba(0,0,0,.20);
}

.video-wrapper iframe{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border:none;
}
/* Footer */
.footer {
    background: var(--primary);
    color: var(--secondary);
    text-align: center;
    padding: 70px 0 25px;
}

.footer-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 15px;
}

.social-links {
    margin: 25px 0;
    display: flex;
    justify-content: center;
    gap: 22px;
    font-size: 1.5rem;
}

.social-links a {
    color: var(--secondary);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-gold);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 1200px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .venue-item {
        height: 360px;
    }
}

@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .btn-nav {
        display: none;
    }

    .navbar {
        justify-content: center;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 14px;
        gap: 12px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 170px 7% 80px;
        justify-content: center;
        gap: 40px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0;
    }

    #venues {
        padding-top: 45px;
        padding-bottom: 70px;
    }

    .venue-item {
        height: 330px;
    }

    .info-cards {
        margin-top: 45px;
    }

    .timeline::after {
        left: 30px;
    }

    .timeline-item {
        padding-left: 85px;
    }

    .timeline-icon {
        left: 8px;
    }

    .teams-visual {
        font-size: 3rem;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    html {
        scroll-padding-top: 80px;
    }

    .container {
        width: 92%;
    }

    .nav-links {
        display: none;
    }

    .navbar {
        align-items: center;
        min-height: 70px;
    }

    .hero-section {
        padding-top: 120px;
    }

    .card {
        padding: 38px 20px;
    }

    .info-card {
        min-height: 240px;
    }

    .venue-item {
        height: 290px;
        border-radius: 20px;
    }

    .venue-info {
        left: 22px;
        right: 22px;
        bottom: 22px;
    }

    .venue-info h3 {
        font-size: 1.25rem;
    }

    .video-placeholder {
        height: 260px;
    }
}