/* =====================================================
   GOOGLE FONT
   ===================================================== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

/* =====================================================
   RESET
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    width: 100%;
    background: #000 url("../images/premios_fondo.jpg") center/cover no-repeat;
    overflow-x: hidden;
}

/* =====================================================
   GLOBAL OVERLAY (DARK EFFECT)
   ===================================================== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: -1;
}

/* =====================================================
   HEADER + NAVBAR
   ===================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: 0.35s ease;
}

/* Navbar wrapper */
.navbar {
    max-width: 1300px;
    margin: auto;
    padding: 14px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 10px;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 215, 0, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);

    transition: 0.35s ease;
}

/* Navbar smaller on scroll */
header.scrolled .navbar {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.78);
    border-color: rgba(255, 215, 0, 0.25);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.75);
}

/* Hide navbar on scroll down */
header.hide-navbar {
    transform: translateY(-130%);
}

/* Logo */
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar .logo img {
    width: 65px;
    transition: 0.3s ease;
}

header.scrolled .logo img {
    width: 55px;
}

.navbar .logo h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Links */
.navbar .links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.navbar .links a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
    position: relative;
}

/* underline hover */
.navbar .links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #ffb700);
    transition: 0.3s ease;
}

.navbar .links a:hover {
    color: #FFD700;
}

.navbar .links a:hover::after {
    width: 100%;
}

/* Login button */
.navbar .login-btn {
    padding: 12px 22px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #FFD700, #ffb700);
    color: #111;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.25);
}

.navbar .login-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #fff1a3, #FFD700);
    box-shadow: 0 18px 40px rgba(255, 215, 0, 0.35);
}

/* Hamburger icon */
.navbar .hamburger-btn {
    display: none;
    font-size: 2rem;
    color: #FFD700;
    cursor: pointer;
}

/* =====================================================
   RESPONSIVE NAVBAR MENU
   ===================================================== */
@media (max-width: 950px) {
    .navbar .hamburger-btn {
        display: block;
    }

    .navbar .links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;

        flex-direction: column;
        justify-content: center;
        align-items: center;

        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(18px);

        transform: translateX(-100%);
        transition: 0.35s ease;
        z-index: 999;
    }

    .navbar .links.show-menu {
        transform: translateX(0);
    }

    .navbar .links a {
        font-size: 1.4rem;
        font-weight: 700;
        color: #fff;
    }

    .navbar .links a:hover {
        color: #FFD700;
    }
}




/* =====================================================
   FORM POPUP BACKGROUND
   ===================================================== */
.blur-bg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    pointer-events: none;
    transition: 0.35s ease;
    z-index: 50;
}

.show-popup .blur-bg-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* =====================================================
   FORM POPUP
   ===================================================== */
.form-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 780px;
    transform: translate(-50%, -60%) scale(0.95);

    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-radius: 22px;
    overflow: hidden;

    opacity: 0;
    pointer-events: none;

    transition: 0.35s ease;
    z-index: 1000;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85);
}


.show-popup .form-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* Close Button */
.form-popup .close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    transition: 0.25s;
    z-index: 10;
}

.form-popup .close-btn:hover {
    color: #e63946;
    transform: rotate(90deg);
}

/* =====================================================
   FORM STRUCTURE
   ===================================================== */
.form-box {
    display: flex;
    width: 100%;
}

/* LEFT SIDE DETAILS */
.form-box .form-details {
    width: 45%;
    padding: 45px 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;

    position: relative;
    text-align: center;
    color: #FFD700;
}

.form-box .form-details::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.form-box .form-details * {
    position: relative;
    z-index: 1;
}

.form-box .form-details h2 {
    font-size: 2.2rem;
    font-weight: 900;
}

.form-box .form-details p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* Right Side Content */
.form-content {
    width: 55%;
    padding: 55px 45px;
}

.form-content h2 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 1.9rem;
    font-weight: 900;
    color: #111;
}

/* =====================================================
   INPUTS
   ===================================================== */
.input-field {
    position: relative;
    margin-bottom: 22px;
}

.input-field input {
    width: 100%;
    padding: 16px 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fafafa;
    font-size: 0.95rem;
    outline: none;
    transition: 0.25s ease;
}

.input-field input:focus {
    border-color: #FFD700;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.18);
}

.input-field label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: #666;
    background: #fff;
    padding: 0 6px;
    transition: 0.25s ease;
    pointer-events: none;
}

.input-field input:focus ~ label,
.input-field input:valid ~ label {
    top: -9px;
    font-size: 0.75rem;
    color: #c99700;
}

/* Password icon */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    transition: 0.2s ease;
}

.toggle-password:hover {
    color: #111;
}

/* =====================================================
   POLICY CHECKBOX
   ===================================================== */
.policy-text {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: #333;
}

.policy-text a {
    color: #c99700;
    font-weight: 700;
    text-decoration: none;
}

.policy-text a:hover {
    text-decoration: underline;
}

/* =====================================================
   FORM BUTTONS
   ===================================================== */
form button {
    width: 100%;
    padding: 14px;
    margin-top: 8px;

    border: none;
    border-radius: 14px;

    background: linear-gradient(135deg, #111, #2c2c2c);
    color: #FFD700;

    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;

    transition: 0.3s ease;
}

form button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #FFD700, #ffb700);
    color: #111;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55);
}

/* bottom links */
.bottom-link {
    margin-top: 22px;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
}

.bottom-link a {
    color: #c99700;
    font-weight: 800;
    text-decoration: none;
}

.bottom-link a:hover {
    text-decoration: underline;
}

/* =====================================================
   LOGIN / SIGNUP SWITCH
   ===================================================== */
.form-popup .login {
    display: flex;
}

.form-popup .signup {
    display: none;
}

.form-popup.show-signup .login {
    display: none;
}

.form-popup.show-signup .signup {
    display: flex;
}

/* =====================================================
   BACKGROUND IMAGES FOR FORMS
   ===================================================== */
.login .form-details {
    background: url("../images/login-img.jpg") center/cover no-repeat;
}

.signup .form-details {
    background: url("../images/signupimg.png") center/cover no-repeat;
}

/* =====================================================
   RESPONSIVE FORM POPUP
   ===================================================== */
@media (max-width: 850px) {
    .form-box .form-details {
        display: none;
    }

    .form-content {
        width: 100%;
        padding: 45px 30px;
    }

    .form-popup {
        width: 95%;
    }
}


/* =====================================================
   SECCIÓN PREMIOS
===================================================== */

.premios-section {
    padding: 160px 20px 100px;
    text-align: center;
    color: #fff;
}

.premios-container {
    max-width: 1200px;
    margin: auto;
}

.premios-title {
    font-size: 3rem;
    font-weight: 900;
    color: #FFD700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    animation: fadeDown 0.8s ease;
}

.premios-subtitle {
    font-size: 1.1rem;
    margin-bottom: 60px;
    color: rgba(255,255,255,0.85);
}

/* GRID */
.premios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* CARDS */
.premio-card {
    background: rgba(0,0,0,0.65);
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid rgba(255,215,0,0.2);
    backdrop-filter: blur(10px);
    transition: 0.4s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.premio-card:hover {
    transform: translateY(-12px);
    border-color: #FFD700;
    box-shadow: 0 30px 70px rgba(255,215,0,0.25);
}

.premio-card h2 {
    margin-top: 20px;
    font-size: 1.4rem;
}

.premio-card h3 {
    margin: 15px 0;
    font-size: 1.6rem;
    color: #FFD700;
    font-weight: 900;
}

.premio-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
}

/* ICONO */
.premio-icon {
    font-size: 3rem;
    color: #FFD700;
}

/* EXTRA */
.premio-extra {
    margin-top: 60px;
    padding: 25px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FFD700, #ffb700);
    color: #111;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: fadeUp 1s ease;
}

/* ANIMACIONES */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   IMÁGENES PREMIOS
===================================================== */

.premio-img {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
}

.premio-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: 0.4s ease;
}

.premio-card:hover .premio-img img {
    transform: scale(1.08);
}

/* =====================================================
   PRIMER PREMIO MÁS GRANDE
===================================================== */

.premio-card.destacado {
    border: 2px solid #FFD700;
    position: relative;
    overflow: hidden;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .premio-card.destacado {
        grid-column: span 1;
        transform: scale(1);
    }
}

/* =====================================================
   EFECTO BRILLO DORADO ANIMADO
===================================================== */

/* =====================================================
   BRILLO DORADO ANIMADO
===================================================== */

.shine {
    position: absolute;
    top: -150%;
    left: -50%;
    width: 200%;
    height: 300%;
    background: linear-gradient(
        120deg,
        transparent 40%,
        rgba(255, 215, 0, 0.5) 50%,
        transparent 60%
    );
    transform: rotate(25deg);
    animation: brilloDorado 3.5s infinite linear;
}

@keyframes brilloDorado {
    0% {
        top: -150%;
    }
    100% {
        top: 150%;
    }
}

/* =====================================================
   ANIMACIÓN CEREMONIA AL CARGAR
===================================================== */

.premio-card {
    opacity: 0;
    transform: translateY(60px);
    animation: ceremonia 1s ease forwards;
}

.premio-card:nth-child(1) {
    animation-delay: 0.3s;
}
.premio-card:nth-child(2) {
    animation-delay: 0.6s;
}
.premio-card:nth-child(3) {
    animation-delay: 0.9s;
}

@keyframes ceremonia {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   TEXTO LEGAL
===================================================== */

.premios-nota {
    margin-top: 50px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
    font-style: italic;
}

/* =====================================================
   PRIMER PREMIO PREMIUM EFFECT
===================================================== */

.premio-card.destacado {
    position: relative;
    overflow: hidden;
    border: 3px solid #FFD700;
    box-shadow: 
        0 0 25px rgba(255, 215, 0, 0.6),
        0 0 60px rgba(255, 215, 0, 0.35),
        0 25px 60px rgba(0, 0, 0, 0.8);
    transition: 0.4s ease;
}

/* Hover más potente */
.premio-card.destacado:hover {
    box-shadow: 
        0 0 35px rgba(255, 215, 0, 0.9),
        0 0 80px rgba(255, 215, 0, 0.6),
        0 35px 80px rgba(0, 0, 0, 0.9);
    transform: translateY(-8px);
}


/* =====================================================
   SEGUNDO PREMIO (PLATA)
===================================================== */

.premio-card.silver {
    border: 2px solid #c0c0c0;
    box-shadow:
        0 0 18px rgba(192,192,192,0.35),
        0 25px 60px rgba(0,0,0,0.8);
    transition: 0.4s ease;
}

.premio-card.silver:hover {
    box-shadow:
        0 0 28px rgba(192,192,192,0.8),
        0 35px 80px rgba(0,0,0,0.9);
    transform: translateY(-8px);
}


/* =====================================================
   TERCER PREMIO (BRONCE)
===================================================== */

.premio-card.bronze {
    border: 2px solid #cd7f32;
    box-shadow:
        0 0 18px rgba(205,127,50,0.35),
        0 25px 60px rgba(0,0,0,0.8);
    transition: 0.4s ease;
}

.premio-card.bronze:hover {
    box-shadow:
        0 0 28px rgba(205,127,50,0.8),
        0 35px 80px rgba(0,0,0,0.9);
    transform: translateY(-8px);
}

/* ==============================
   SCROLLBAR GLOBAL (PÁGINA ENTERA)
============================== */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

body::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.45);
    border-radius: 12px;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.75);
}