
/* ==========================
   RESET
========================== */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#ffffff;
    color:#222222;
    overflow-x:hidden;
}

body.menu-open{
    overflow:hidden;
}

body.loading{
    overflow:hidden;
}

/* ==========================
   VARIABLES
========================== */

:root{
    --rojo:#d50000;
    --amarillo:#ffd600;
    --verde:#2e7d32;
    --negro:#222222;
    --gris:#f5f5f5;
    --blanco:#ffffff;
}

/* ==========================
   PAGE LOADER
========================== */

.page-loader{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:#fff;
    z-index:99999;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:opacity .6s ease, visibility .6s ease;
}

.page-loader.hidden{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
}

.loader-content{
    text-align:center;
}

.loader-logo{
    height:120px;
    animation:loaderPulse 1.2s ease-in-out infinite;
}

.loader-bar{
    width:200px;
    height:4px;
    background:rgba(0,0,0,.08);
    border-radius:10px;
    margin:25px auto 15px;
    overflow:hidden;
}

.loader-bar-fill{
    width:0%;
    height:100%;
    background:linear-gradient(90deg, var(--rojo), var(--amarillo));
    border-radius:10px;
    animation:loaderFill 1.8s ease forwards;
}

.loader-text{
    font-size:.85rem;
    color:#999;
    font-weight:400;
    animation:loaderTextPulse 1s ease infinite;
}

@keyframes loaderPulse{
    0%,100%{ transform:scale(1); }
    50%{ transform:scale(1.08); }
}

@keyframes loaderFill{
    0%{ width:0%; }
    50%{ width:60%; }
    80%{ width:85%; }
    100%{ width:100%; }
}

@keyframes loaderTextPulse{
    0%,100%{ opacity:1; }
    50%{ opacity:.4; }
}

/* ==========================
   SCROLL PROGRESS
========================== */

.scroll-progress{
    position:fixed;
    top:0;
    left:0;
    width:0%;
    height:3px;
    background:linear-gradient(90deg, var(--rojo), var(--amarillo), var(--verde));
    z-index:10000;
    transition:width .05s linear;
}

/* ==========================
   CURSOR GLOW
========================== */

.cursor-glow{
    position:fixed;
    width:300px;
    height:300px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(213,0,0,.06) 0%, transparent 70%);
    pointer-events:none;
    z-index:0;
    transform:translate(-50%,-50%);
    transition:left .15s ease, top .15s ease, opacity .3s;
    opacity:0;
}

.cursor-glow.active{
    opacity:1;
}

/* ==========================
   CONTENEDORES
========================== */

.container{
    width:90%;
    max-width:1400px;
    margin:auto;
}

/* ==========================
   NAVBAR
========================== */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    z-index:1000;
    box-shadow:0 2px 20px rgba(0,0,0,.08);
    transition:all .4s cubic-bezier(.4,0,.2,1);
}

.navbar.scrolled{
    background:rgba(255,255,255,.98);
    box-shadow:0 8px 32px rgba(0,0,0,.1);
    padding:0;
}

.navbar.scrolled .logo{
    height:60px;
}

.nav-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 0;
    transition:padding .4s ease;
}

.logo-link{
    display:flex;
    align-items:center;
}

.logo{
    height:85px;
    transition:all .4s cubic-bezier(.4,0,.2,1);
}

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

.nav-desktop{
    display:flex;
    gap:28px;
}

.nav-link{
    text-decoration:none;
    color:var(--negro);
    font-weight:500;
    transition:.3s;
    position:relative;
    font-size:.92rem;
    letter-spacing:.3px;
}

.nav-link:hover{
    color:var(--rojo);
}

.nav-link::after{
    content:'';
    position:absolute;
    left:50%;
    bottom:-6px;
    width:0;
    height:2.5px;
    background:var(--rojo);
    transition:all .35s cubic-bezier(.4,0,.2,1);
    border-radius:10px;
    transform:translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after{
    width:100%;
}

/* ==========================
   HAMBURGER
========================== */

.hamburger{
    display:none;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:6px;
    width:44px;
    height:44px;
    border:none;
    background:transparent;
    cursor:pointer;
    padding:8px;
    z-index:1100;
    border-radius:10px;
    transition:background .3s;
}

.hamburger:hover{
    background:rgba(0,0,0,.05);
}

.hamburger span{
    display:block;
    width:24px;
    height:2.5px;
    background:var(--negro);
    border-radius:4px;
    transition:all .35s cubic-bezier(.4,0,.2,1);
    transform-origin:center;
}

.hamburger.active span:nth-child(1){
    transform:rotate(45deg) translate(6px,6px);
}

.hamburger.active span:nth-child(2){
    opacity:0;
    transform:scaleX(0);
}

.hamburger.active span:nth-child(3){
    transform:rotate(-45deg) translate(6px,-6px);
}

/* ==========================
   MOBILE OVERLAY
========================== */

.mobile-overlay{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.5);
    z-index:998;
    opacity:0;
    transition:opacity .35s ease;
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
    pointer-events:none;
}

.mobile-overlay.open{
    opacity:1;
    pointer-events:auto;
}

/* ==========================
   MOBILE MENU
========================== */

.mobile-menu{
    display:none;
    position:fixed;
    top:0;
    right:-100%;
    width:80%;
    max-width:350px;
    height:100vh;
    background:#fff;
    z-index:999;
    flex-direction:column;
    padding:110px 35px 40px;
    gap:0;
    box-shadow:-10px 0 40px rgba(0,0,0,.15);
    transition:right .4s cubic-bezier(.4,0,.2,1);
    overflow-y:auto;
}

.mobile-menu a{
    text-decoration:none;
    color:var(--negro);
    font-weight:500;
    font-size:1.1rem;
    padding:18px 0;
    border-bottom:1px solid rgba(0,0,0,.06);
    transition:all .3s;
    display:block;
    transform:translateX(30px);
    opacity:0;
}

.mobile-menu.open a{
    transform:translateX(0);
    opacity:1;
}

.mobile-menu.open a:nth-child(1){ transition-delay:.05s; }
.mobile-menu.open a:nth-child(2){ transition-delay:.1s; }
.mobile-menu.open a:nth-child(3){ transition-delay:.15s; }
.mobile-menu.open a:nth-child(4){ transition-delay:.2s; }
.mobile-menu.open a:nth-child(5){ transition-delay:.25s; }
.mobile-menu.open a:nth-child(6){ transition-delay:.3s; }
.mobile-menu.open a:nth-child(7){ transition-delay:.35s; }
.mobile-menu.open a:nth-child(8){ transition-delay:.4s; }

.mobile-menu a:hover{
    color:var(--rojo);
    padding-left:8px;
}

.mobile-menu .mobile-reservar{
    margin-top:25px;
    text-align:center;
    padding:16px 24px;
    border-radius:14px;
    border-bottom:none;
    font-size:1rem;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    color: white !important;
}

/* ==========================
   BOTONES
========================== */

.btn-primary{
    background:var(--rojo);
    color:white;
    text-decoration:none;
    padding:16px 32px;
    border-radius:14px;
    font-weight:600;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    transition:all .35s cubic-bezier(.4,0,.2,1);
    box-shadow:0 10px 25px rgba(213,0,0,.25);
    font-size:.95rem;
    position:relative;
    overflow:hidden;
}

.btn-primary:hover{
    transform:translateY(-4px) scale(1.02);
    box-shadow:0 18px 40px rgba(213,0,0,.35);
}

.btn-primary:active{
    transform:translateY(-1px) scale(.98);
}

/* GLOW EFFECT */
.btn-glow::before{
    content:'';
    position:absolute;
    top:-2px;
    left:-2px;
    right:-2px;
    bottom:-2px;
    background:linear-gradient(45deg, var(--rojo), var(--amarillo), var(--rojo), var(--amarillo));
    background-size:400% 400%;
    border-radius:16px;
    z-index:-1;
    animation:glowShift 3s ease infinite;
    opacity:0;
    transition:opacity .4s;
    filter:blur(8px);
}

.btn-glow:hover::before{
    opacity:1;
}

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

/* SHIMMER EFFECT */
.btn-primary::after{
    content:'';
    position:absolute;
    top:0;
    left:-100%;
    width:60%;
    height:100%;
    background:linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    transition:none;
    animation:btnShimmer 3s ease infinite;
}

@keyframes btnShimmer{
    0%{ left:-100%; }
    40%{ left:150%; }
    100%{ left:150%; }
}

.btn-secondary{
    border:2px solid var(--amarillo);
    color:var(--negro);
    text-decoration:none;
    padding:15px 30px;
    border-radius:14px;
    font-weight:600;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    transition:all .35s cubic-bezier(.4,0,.2,1);
    font-size:.95rem;
    position:relative;
    overflow:hidden;
}

.btn-secondary::after{
    content:'';
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:0%;
    background:var(--amarillo);
    transition:height .35s cubic-bezier(.4,0,.2,1);
    z-index:-1;
}

.btn-secondary:hover::after{
    height:100%;
}

.btn-secondary:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(255,214,0,.3);
}

.btn-reservar{
    background:var(--rojo);
    color:white;
    text-decoration:none;
    padding:12px 24px;
    border-radius:12px;
    font-weight:600;
    display:inline-flex;
    align-items:center;
    gap:8px;
    transition:all .3s;
}

.btn-reservar:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(213,0,0,.3);
}

.btn-whatsapp-cta{
    background:#25d366;
    color:white;
    text-decoration:none;
    padding:16px 32px;
    border-radius:14px;
    font-weight:600;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    transition:all .35s cubic-bezier(.4,0,.2,1);
    font-size:.95rem;
    box-shadow:0 10px 25px rgba(37,211,102,.25);
}

.btn-whatsapp-cta:hover{
    transform:translateY(-4px) scale(1.02);
    box-shadow:0 18px 40px rgba(37,211,102,.35);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear forwards;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==========================
   TITULOS
========================== */

h1,h2,h3{
    font-family:'Oswald',sans-serif;
}

section{
    padding:100px 0;
}

.section-tag{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:var(--rojo);
    font-weight:700;
    letter-spacing:2px;
    font-size:.82rem;
    text-transform:uppercase;
}

.section-tag i{
    font-size:.75rem;
}

.section-tag-light{
    color:var(--amarillo);
}

.section-title{
    font-size:3.5rem;
    line-height:1.05;
}

/* ==========================
   WHATSAPP
========================== */

.whatsapp-btn{
    position:fixed;
    right:25px;
    bottom:25px;
    width:65px;
    height:65px;
    border-radius:50%;
    background:#25d366;
    color:white;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    z-index:9999;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
    transition:transform .4s cubic-bezier(.4,0,.2,1);
}

.whatsapp-btn:hover{
    transform:scale(1.1);
}

.whatsapp-pulse{
    position:absolute;
    width:100%;
    height:100%;
    border-radius:50%;
    border:2px solid #25d366;
    animation:whatsappPulse 2s ease-out infinite;
}

.whatsapp-pulse-2{
    animation-delay:1s;
}

@keyframes whatsappPulse{
    0%{
        transform:scale(1);
        opacity:.6;
    }
    100%{
        transform:scale(1.8);
        opacity:0;
    }
}

/* ==========================
   FOOTER
========================== */

footer{
    background:#111;
    color:white;
    text-align:center;
    padding:70px 0 40px;
}

.footer-container{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
}

.footer-logo{
    height:90px;
    transition:transform .4s;
}

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

.footer-links{
    display:flex;
    gap:30px;
    flex-wrap:wrap;
    justify-content:center;
}

.footer-links a{
    color:rgba(255,255,255,.6);
    text-decoration:none;
    font-size:.9rem;
    transition:all .3s;
    position:relative;
}

.footer-links a:hover{
    color:var(--amarillo);
}

.footer-links a::after{
    content:'';
    position:absolute;
    bottom:-4px;
    left:0;
    width:0;
    height:1.5px;
    background:var(--amarillo);
    transition:width .3s;
}

.footer-links a:hover::after{
    width:100%;
}

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

.footer-social a{
    width:44px;
    height:44px;
    border-radius:50%;
    border:1.5px solid rgba(255,255,255,.15);
    color:rgba(255,255,255,.6);
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:1rem;
    transition:all .35s;
}

.footer-social a:hover{
    border-color:var(--rojo);
    color:var(--rojo);
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(213,0,0,.2);
}

.footer-divider{
    width:60px;
    height:1.5px;
    background:rgba(255,255,255,.1);
    margin:5px 0;
}

footer p{
    font-size:.85rem;
    opacity:.5;
}

/* ==========================
   ANIMACIONES GLOBALES
========================== */

.fade-up{
    animation:fadeUp 1s ease forwards;
}

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

/* ==========================
   RESPONSIVE GLOBAL
========================== */

@media(max-width:992px){

    .nav-desktop{
        display:none;
    }

    .nav-reservar{
        display:none;
    }

    .hamburger{
        display:flex;
    }

    .mobile-menu{
        display:flex;
    }

    .mobile-overlay{
        display:block;
        pointer-events:none;
    }

    .mobile-menu.open{
        right:0;
    }

    .cursor-glow{
        display:none;
    }

}

@media(max-width:768px){

    .logo{
        height:60px;
    }

    .navbar.scrolled .logo{
        height:50px;
    }

    .container{
        width:94%;
    }

    .nav-container{
        padding:10px 0;
    }

    .whatsapp-btn{
        width:56px;
        height:56px;
        font-size:26px;
        right:18px;
        bottom:18px;
    }

}

@media(max-width:576px){

    section{
        padding:70px 0;
    }

    .btn-primary,
    .btn-secondary{
        width:100%;
        text-align:center;
        padding:14px 24px;
    }

    .btn-whatsapp-cta{
        width:100%;
        padding:14px 24px;
    }

    footer{
        padding:50px 0 30px;
    }

    .footer-logo{
        height:70px;
    }

    .footer-links{
        gap:18px;
    }

    .loader-logo{
        height:80px;
    }

}

/* ==========================
   SCROLL TO TOP BUTTON
========================== */

.scroll-top-btn{
    position:fixed;
    right:25px;
    bottom:100px; /* Above WhatsApp button */
    width:50px;
    height:50px;
    border-radius:50%;
    background:var(--negro);
    color:var(--amarillo);
    border:2px solid var(--amarillo);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    cursor:pointer;
    z-index:9998;
    opacity:0;
    visibility:hidden;
    transform:translateY(20px);
    transition:all .4s cubic-bezier(.4,0,.2,1);
    box-shadow:0 8px 25px rgba(0,0,0,.2);
}

.scroll-top-btn.visible{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.scroll-top-btn:hover{
    background:var(--amarillo);
    color:var(--negro);
    transform:translateY(-5px);
    box-shadow:0 12px 30px rgba(255,214,0,.3);
}

@media(max-width:768px){
    .scroll-top-btn{
        right:18px;
        bottom:85px;
        width:45px;
        height:45px;
        font-size:18px;
    }
}

/* ==========================
   RESERVATION MODAL
========================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 20px 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    width: 95%;
    max-width: 480px;
    border-radius: 20px;
    padding: 35px;
    position: relative;
    margin: auto;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--rojo);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--negro);
    margin-bottom: 5px;
}

.modal-header h3 span {
    color: var(--rojo);
}

.modal-header p {
    color: #666;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--negro);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background: #fafafa;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--amarillo);
    background: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-submit-modal {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #075e54, #25d366);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-submit-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37,211,102,0.3);
}

@media(max-width: 576px) {
    .modal-container {
        padding: 25px 20px;
        border-radius: 16px;
        max-height: 85vh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .form-group {
        margin-bottom: 14px;
    }
    .modal-header {
        margin-bottom: 18px;
    }
    .modal-header h3 {
        font-size: 1.7rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================
   QUINIELA FUTBOLERA
========================== */
.quiniela-section {
    background: #fdfbf7;
    border: 2px dashed var(--amarillo);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}
.quiniela-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.quiniela-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--rojo);
}
.quiniela-label {
    font-weight: 600 !important;
    font-size: 0.95rem;
    color: var(--negro);
    cursor: pointer;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.quiniela-label i {
    color: var(--rojo);
}
.quiniela-match-text {
    font-size: 0.8rem;
    color: #666;
    margin: 8px 0 4px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.quiniela-match-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    color: var(--negro);
    text-align: center;
    margin-bottom: 12px;
    font-weight: 600;
}
.quiniela-scores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.score-input-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}
.score-control {
    width: 65px !important;
    text-align: center;
    padding: 8px !important;
    font-size: 1.2rem !important;
    font-weight: 700;
    border-color: #ddd !important;
}
.score-vs {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rojo);
    margin-top: 20px;
}

/* ==========================
   MOBILE MENU HINT BUBBLE
========================== */

#mobileMenuHint {
    position: fixed;
    top: 72px;
    right: 14px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: auto;
    cursor: pointer;
}

#mobileMenuHint.hint-visible {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenuHint.hint-hide {
    opacity: 0;
    transform: translateY(-10px);
}

.hint-arrow {
    color: var(--rojo);
    font-size: 1.2rem;
    animation: hintBounce 0.6s ease infinite alternate;
    line-height: 1;
    margin-right: 12px;
}

@keyframes hintBounce {
    from { transform: translateY(0); }
    to   { transform: translateY(-5px); }
}

.hint-text {
    background: var(--negro);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hint-text i {
    color: var(--amarillo);
}

@media(min-width: 993px) {
    #mobileMenuHint { display: none !important; }
}
