/* ==========================================================================
   LA QUINIELA DEL MUNDIAL — Plus Ultra Líneas Aéreas
   Mobile First
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FUENTE - Grtsk Tera
   -------------------------------------------------------------------------- */

@font-face {
    font-family: 'Grtsk Tera';
    src: url('../fonts/GrtskTera-Regular.woff2') format('woff2'),
         url('../fonts/GrtskTera-Regular.ttf')   format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Grtsk Tera';
    src: url('../fonts/GrtskTera-Medium.woff2') format('woff2'),
         url('../fonts/GrtskTera-Medium.ttf')   format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Grtsk Tera';
    src: url('../fonts/GrtskTera-Semibold.woff2') format('woff2'),
         url('../fonts/GrtskTera-Semibold.ttf')   format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


/* --------------------------------------------------------------------------
   2. TOKENS DE DISEÑO
   -------------------------------------------------------------------------- */

:root {
    --color-bg:        #12435b;
    --color-text:      #ffffff;
    --color-yellow:    #fac300;
    --color-red:       #e52a22;
    --color-yellow-dk: #d6a700;

    --font-base: 'Grtsk Tera', 'Inter', system-ui, -apple-system,
                 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    --radius-card: 14px;
}


/* --------------------------------------------------------------------------
   3. RESET / BASE
   -------------------------------------------------------------------------- */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    color: var(--color-text);
    font-family: var(--font-base);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--color-bg) url('../images/bg-mobile.png') center center / cover no-repeat;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; padding: 0; margin: 0; }


/* --------------------------------------------------------------------------
   4. LAYOUT PRINCIPAL
   -------------------------------------------------------------------------- */

.quiniela-hero {
    position: relative;
    width: 100%;
    margin: 0;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    padding: 0;
    isolation: isolate;
}


/* --------------------------------------------------------------------------
   5. NAVIGATION
   -------------------------------------------------------------------------- */

.quiniela-nav {
    position: relative;
    z-index: 5;
    padding: 20px 0 0;
}

/* Logo */
.nav-logo {
    display: block;
    width: 200px;
    height: auto;
}

/* Menú desktop (oculto en mobile) */
.nav-list {
    display: flex;
    justify-content: flex-end;
    gap: 90px;
    padding-right: 30px;
}

.nav-list a {
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: .02em;
    color: var(--color-text);
    transition: opacity .2s ease;
}

.nav-list a:hover,
.nav-list a:focus {
    opacity: .7;
    outline: none;
}

/* Toggle hamburguesa */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    float: right;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Drawer mobile */
.mobile-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 0 24px;
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s ease, padding .35s ease;
    z-index: 4;
}

.mobile-menu.is-open {
    max-height: 280px;
    padding: 10px 24px 25px;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    font-weight: 500;
    font-size: 18px;
    color: var(--color-bg);
    border-bottom: 1px solid rgba(0,0,0,.08);
}


/* --------------------------------------------------------------------------
   6. HERO CONTENT
   -------------------------------------------------------------------------- */

.hero-content {
    position: relative;
    z-index: 2;
    padding: 30px 0 60px;
}

.hero-text {
    text-align: center;
    margin-bottom: 30px;
}

.hero-title {
    font-family: var(--font-base);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.25;
    color: var(--color-text);
    margin: 0 0 25px;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-family: var(--font-base);
    font-size: 14px;
    line-height: 1.35;
    color: var(--color-text);
}

.btn-juega {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 24px;
    background: var(--color-yellow);
    color: var(--color-bg);
    font-family: var(--font-base);
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 4px 0 rgba(0,0,0,.08);
}

.btn-juega:hover,
.btn-juega:focus {
    background: var(--color-yellow-dk);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,.18);
    text-decoration: none;
    outline: none;
}

.btn-juega:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 rgba(0,0,0,.1);
}


/* --------------------------------------------------------------------------
   7. VISUAL
   -------------------------------------------------------------------------- */

.hero-visual {
    position: relative;
    text-align: center;
}

.quiniela-visual {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
}


/* --------------------------------------------------------------------------
   8. RESPONSIVE — mobile first (min-width)
   -------------------------------------------------------------------------- */

@media (min-width: 481px) {
    .nav-toggle { width: 36px; height: 26px; }
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(11.5px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-11.5px) rotate(-45deg); }

    .hero-title { font-size: 30px; }
    .hero-sub   { font-size: 21px; }
    .btn-juega  { font-size: 19px; padding: 12px 34px; }
}

@media (min-width: 768px) {
    body {
        background: var(--color-bg) url('../images/bg-desktop.png') center center / cover no-repeat;
    }
}

@media (min-width: 992px) {
    .quiniela-nav   { padding: 32px 0; }
    .nav-logo       { width: 350px; }

    .hero-content   { padding: 50px 0 70px; }
    .hero-text      { 
        max-width: 600px;
        text-align: left; 
    }
    .hero-title { font-size: 36px; margin-bottom: 30px; }
    .hero-sub   { font-size: 20px; }
    .hero-visual {
        position: absolute;
        width: 645px;
        top: 0;
        right: 0;
    }
    .hero-visual .quiniela-visual {
        max-width: 560px;
    }
    .btn-juega  { font-size: 20px; padding: 8px 24px; }
}
