*
{
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body
{
    margin: 0;
    color: white;
    overflow-x: hidden;
}

/* VIDEO */

#bgVideo
{
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    z-index: -1;
}

/*logo*/
.logo
{
    font-family: "Sekuya", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
}
/* HEADER */

header
{
    display: flex;
    justify-content: space-between;
    padding: 15px 40px;
    background: rgba(0,0,0,0.6);
}

.menu-item
{
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.menu-item button
{
    padding: 8px 15px;
    cursor: pointer;
}

.dropdown
{
    display: none;
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;

    background: rgba(88, 165, 253, 0.23);
    backdrop-filter: blur(10px);

    width: 180px;
    border-radius: 10px;
    overflow: hidden;

    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    z-index: 999;
}

.dropdown button
{
    width: 100%;
    border: none;
    background: none;
    color: white;
    padding: 10px;
    text-align: left;
}

/* MAIN OPTIONS */

#mainOptions
{
    display: flex;
    justify-content: center;
    margin-top: 150px;
    gap: 40px;
    margin-bottom: 150px;
}

.big-option
{
    width: 260px;
    padding: 15px;
    background: rgba(0,0,0,0.7);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
}

.big-option img
{
    width: 100%;
    border-radius: 10px;
}

/* TICKET SECTION */

#ticketSection
{
    margin: 50px;
}

#searchInput
{
    padding: 10px;
    width: 200px;
}

#ticketGrid
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

/* TICKET BUTTON */

.ticket
{
    height: 60px;
    background-image: url("../img/ticket.jpg");
    background-size: cover;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
    border-radius: 6px;
}

/* SELECTED */

.ticket.selected
{
    height: 120px;
    flex-direction: column;
}

.ticket .top
{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket .bottom
{
    flex: 1;
    width: 100%;
    background: green;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* FOOTER */

footer
{
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    padding: 10px;
    text-align: center;
}

/* UTIL */

.hidden
{
    display: none !important;
}


/* HERO TITLE */
.nav1
{
    display: flex;
    gap: 10px;
}
/*Regla para moviles*/
@media (max-width: 600px)
{
    .top-buttons
    {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }
}

.hero
{
    text-align: center;
    margin-top: 0px;
    padding: 20px;
}

.hero h1
{
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.hero p
{
    font-size: 1.2rem;
    max-width: 600px;
    margin: auto;
    color: #dddddd;
    line-height: 1.5;
}


/* MOBILE */

@media (max-width: 768px)
{
    .hero h1
    {
        font-size: 2rem;
    }

    .hero p
    {
        font-size: 1rem;
    }
}

.luna-sorteo
{
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}

.luna-sorteo h2
{
    font-size: 2rem;
    margin-bottom: 15px;
}

.intro-text
{
    margin-top: 30px;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.info-cards
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-box
{
    margin-top: 150px;
    margin-bottom: 50px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    color: #ffffff;
}

.info-box h3
{
    color: #ffffff;
    margin-bottom: 10px;
}

.info-box p
{
    color: #dddddd;
}


.btn-luna
{
    padding: 12px 25px;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    background: #1e1e2f;
    color: white;
    margin-bottom: 25px;
    transition: 0.3s;
}

.btn-luna:hover
{
    transform: scale(1.05);
    opacity: 0.9;
}

.cta-text
{
    font-size: 1.15rem;
    font-weight: 500;
    padding-left: 10%;
}

/*Pie de pagina*/
#footer
{
    opacity: 0;
    transform: translateY(50px);
    transition: 0.5s;
}

#footer.visible
{
    opacity: 1;
    transform: translateY(0);
}
/*Hover de legal y entrar*/
.menu-item:hover .dropdown
{
    display: block;
}

.menu-item .dropdown
{
    opacity: 0;
    transform: translateY(10px);
    transition: 0.25s;
}

.menu-item:hover .dropdown
{
    opacity: 1;
    transform: translateY(0);
}

.dropdown button:hover
{
    background: rgba(255,255,255,0.1);
}

/*Ocultar seccion como funciona*/
#como-funciona-seccion
{
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
}

/* Cuando esté visible */
#como-funciona-seccion.visible
{
    max-height: 500px;
    opacity: 1;
    margin-top: 20px;
}

/*Ventana modal*/
/* MODAL COMO FUNCIONA */

.modalComoFunciona
{
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(6px);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;

    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.modalComoFunciona.active
{
    opacity: 1;
    pointer-events: auto;
}

.modal-content
{
    background: #0d0d14;
    padding: 30px;
    border-radius: 16px;

    width: 90%;
    max-width: 550px;
    max-height: 85vh;

    overflow-y: auto;

    box-shadow: 0 0 30px rgba(0,0,0,0.8);

    text-align: left;
}

.modal-content h2
{
    text-align: center;
    margin-bottom: 15px;
}

.example-box
{
    background: rgba(255,255,255,0.08);
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0 20px;
    text-align: center;
    font-size: 1.1rem;
}

.highlight
{
    color: #00ffd5;
    font-weight: bold;
}

.final-number
{
    color: #ffd000;
    font-size: 1.4rem;
    font-weight: bold;
}

.note
{
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}
/*Boton que cierra "como funciona"*/
#closeModal
{
    position: absolute;
    top: 15px;
    right: 20px;

    font-size: 1.8rem;
    cursor: pointer;
    color: white;
}

#closeModal:hover
{
    color: #ff5252;
}
/*Boton que cierra "Reglas"*/
#closeReglas
{
    position: absolute;
    top: 15px;
    right: 20px;

    font-size: 1.8rem;
    cursor: pointer;
    color: white;
}

#closeReglas:hover
{
    color: #ff5252;
}

/*Boton ver sorteos*/

.btn-sorteos
{
    position: relative;
    display: inline-block;
    padding: 14px 30px;
    color: white;
    background: black;
    text-decoration: none;
    font-size: 18px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}

.btn-sorteos::before
{
    content: "";
    position: absolute;
    inset: -3px;
    background: linear-gradient(
        45deg,
        red,
        orange,
        yellow,
        lime,
        cyan,
        blue,
        violet,
        red
    );
    z-index: -1;
    animation: borderMove 4s linear infinite;
    background-size: 400%;
    border-radius: 10px;
}

.btn-sorteos::after
{
    content: "";
    position: absolute;
    inset: 3px;
    background: black;
    border-radius: 6px;
    z-index: -1;
}

@keyframes borderMove
{
    0%
    {
        background-position: 0% 50%;
    }
    100%
    {
        background-position: 400% 50%;
    }
}