@keyframes personalization-animation {
    0% {
        transform: translateZ(0) translateY(0) translateX(0);
    }

    100% {
        transform: translateZ(-400px) translateY(-200px) translateX(200px);
    }
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
}

nav p,
nav a {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

h1 {
    font-family: 'Bebas Neue', 'Arial Black', sans-serif !important;
    letter-spacing: 3px;
}

h2 {
    font-family: 'Righteous', 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

.badge-sorteo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
}

#days,
#hours,
#minutes,
#seconds {
    font-family: 'Orbitron', 'Courier New', monospace !important;
    font-weight: 900;
    letter-spacing: 2px;
}

/* Contador de cuenta regresiva - etiquetas */
#countdown span:not(#days):not(#hours):not(#minutes):not(#seconds) {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

button,
.button-style {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.premio-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

footer {
    font-family: 'Inter', sans-serif;
}

footer h3,
footer h4 {
    font-family: 'Montserrat', sans-serif;
}

footer .social-icon {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

footer .social-icon:hover {
    transform: translateY(-5px) rotate(5deg);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-to-top {
    animation: fadeInUp 0.5s ease-out;
}

/* Payment methods hover effect */
.payment-method:hover {
    background: linear-gradient(135deg, rgba(245, 190, 39, 0.2) 0%, rgba(245, 190, 39, 0.1) 100%);
}

.scroll-animate {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
}

.fade-in-up {
    transform: translateY(50px);
}

.fade-in-up.visible {
    transform: translateY(0);
}

.fade-in-down {
    transform: translateY(-50px);
}

.fade-in-down.visible {
    transform: translateY(0);
}

.fade-in-left {
    transform: translateX(-80px);
}

.fade-in-left.visible {
    transform: translateX(0);
}

.fade-in-right {
    transform: translateX(80px);
}

.fade-in-right.visible {
    transform: translateX(0);
}

.zoom-in {
    transform: scale(0.8);
}

.zoom-in.visible {
    transform: scale(1);
}

.rotate-in {
    transform: rotate(-10deg) scale(0.9);
}

.rotate-in.visible {
    transform: rotate(0deg) scale(1);
}

.flip-in {
    transform: perspective(1000px) rotateY(-90deg);
}

.flip-in.visible {
    transform: perspective(1000px) rotateY(0deg);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

button,
.button-style {
    transition: all 0.3s ease;
}

button:hover,
.button-style:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 190, 39, 0.4);
}

button:active,
.button-style:active {
    transform: translateY(-1px);
}

.winner-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.winner-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(245, 190, 39, 0.3);
}

.winner-card img {
    transition: transform 0.4s ease;
}

.winner-card:hover img {
    transform: scale(1.1);
}

.benefit-card {
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(245, 190, 39, 0.25);
}

.benefit-card .emoji {
    transition: transform 0.5s ease;
}

.benefit-card:hover .emoji {
    transform: scale(1.2) rotate(10deg);
}

.prize-image {
    transition: transform 0.5s ease;
    overflow: hidden;
}

.prize-image:hover {
    transform: scale(1.05);
}

#countdown>div {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#countdown>div:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(245, 190, 39, 0.5);
}

footer a {
    transition: all 0.3s ease;
    display: inline-block;
}

footer a:hover {
    color: #F5BE27;
    transform: translateX(5px);
}

nav a {
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #F5BE27;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 80%;
}

.badge-sorteo {
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 190, 39, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(245, 190, 39, 0);
    }
}

@keyframes numberScale {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes containerPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 190, 39, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(245, 190, 39, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 190, 39, 0);
    }
}

.number-change {
    animation: numberScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.container-pulse {
    animation: containerPulse 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#countdown>div:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

#days,
#hours,
#minutes,
#seconds {
    transition: color 0.3s ease;
    font-weight: 900;
    display: inline-block;
}

/* Estilos para el video de fondo en la sección inicio */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
    z-index: 1;
}

.inicio-content {
    position: relative;
    z-index: 2;
    /* contenido encima del video y la overlay */
}

/* Asegurar que la sección inicio ocupe la altura visible para mostrar el video correctamente */
#inicio {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
}

/* Ajustes responsive: tablet y móvil. Mantienen el diseño de escritorio intacto y solo adaptan tamaños y stacking en pantallas pequeñas. */
@media (max-width: 1024px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .container img {
        height: 80px;
        width: 80px;
    }

    nav p {
        font-size: 1.25rem;
    }

    #inicio .inicio-content h1 {
        font-size: 3rem;
        /* reduce un poco el título en tablets */
    }

    #premio h2 {
        font-size: 3.2rem;
    }

    #countdown>div {
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 640px) {

    /* Header: apilar logo, título y links sin romper el diseño */
    .container {
        flex-direction: column;
        gap: 0.4rem;
        align-items: center;
    }

    .container ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.25rem;
    }

    .container ul li a {
        font-size: 0.95rem;
    }

    .container img {
        height: 56px;
        width: 56px;
    }

    nav p {
        font-size: 1.05rem;
        text-align: center;
    }

    /* Hero: en móviles apilar las dos columnas para mantener legibilidad */
    #inicio {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
        min-height: auto;
    }

    #inicio .inicio-content {
        width: 100%;
        padding: 0.8rem 0;
    }

    #inicio h1 {
        font-size: 1.8rem;
        line-height: 1.15;
        padding: 0 0.5rem;
    }

    #inicio p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    button#learnMoreButton {
        padding: 8px 12px;
        font-size: 1rem;
    }

    /* Ajustes generales para imágenes y grids en pantallas pequeñas */
    .prize-image img,
    .winner-card img,
    .benefit-card img {
        max-width: 100%;
        height: auto;
    }

    /* Simplificar columnas de la grid en móviles (participación / métodos de pago) */
    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Contenedores de premio y tarjetas: tamaño y espaciado más compacto */
    .w-130,
    .w-100,
    .h-90 {
        width: 100% !important;
        height: auto !important;
    }

    /* Ajuste del canvas y video secundarios para que no desborden */
    #canvasGuerreros,
    #videoGuerreros {
        width: 100% !important;
        height: auto !important;
    }
}

/* Estilos del menú responsive */
.menu-toggle {
    display: none;
    /* por defecto oculto, se mostrará en móviles */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-right: 8px;
}

.menu-toggle svg {
    width: 34px;
    height: 34px;
}

/* Menú móvil: oculto por defecto */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    z-index: 9998;
    padding-top: 6rem;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
    transform: translateY(-10%);
    opacity: 0;
}

.mobile-menu.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu ul {
    list-style: none;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.mobile-menu a {
    color: #F5BE27;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    transition: transform 0.25s ease, color 0.25s ease;
}

.mobile-menu a:hover {
    transform: translateX(6px);
    color: #fff;
}

/* Mostrar el toggle y esconder el nav desktop en móviles */
@media (max-width: 640px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-desktop {
        display: none;
    }
}


@media (max-width: 640px) {
    .video-bg {
        object-position: center 30%;
    }
}