/* =========================
   RESPONSIVE MOBILE
========================= */
@media screen and (max-width: 425px) {
    .skip-button {
        padding: 10px 15px !important;

    }
    .back-button {
        padding: 10px 15px !important;
        margin-right: 10px !important;
    }
    .lang-toggle {
        padding: 10px 15px !important;
        margin-left: 10px !important;
    }

    .footer-main-btn {
        min-width: unset;

        font-size: 1rem;
        padding: 12px 18px;
    }

}

/* ANIMACIONES */
.overlay h1,
.options,
.header-image {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.overlay.show h1,
.overlay.show .options,
.overlay.show .header-image {
    opacity: 1;
    transform: translateY(0);
}

.overlay.hide h1,
.overlay.hide .options,
.overlay.hide .header-image {
    opacity: 0;
    transform: translateY(-20px);
}

/* delays */
.overlay.show .header-image { transition-delay: 0.1s; }
.overlay.show h1 { transition-delay: 0.2s; }
.overlay.show .options { transition-delay: 0.3s; }


/* 🔒 BLOQUEO TOTAL KIOSCO */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow: hidden;
    touch-action: manipulation;
    user-select: none;
    background-color: #d3d3d3;
}

.background-rain{
    position:fixed;
    inset:0;

    overflow:hidden;

    z-index:0;

    pointer-events:none;
}

.background-logo{

    position:absolute;

    width:70px;
    height:70px;

    background-image:url("https://wfjoucuirljmkjbfnjai.supabase.co/storage/v1/object/public/logos/simbolo_logo.png");

    background-size:contain;
    background-repeat:no-repeat;
    background-position:center;

    opacity:.06;

    animation-name:logoRain;
    animation-timing-function:linear;
    animation-iteration-count:infinite;
}

@keyframes logoRain{

    0%{

        transform:
            translateY(120px)
            rotate(0deg);

        opacity:0;

    }

    10%{

        opacity:.18;

    }

    90%{

        opacity:.18;

    }

    100%{

        transform:
            translateY(calc(-100vh - 250px))
            rotate(-360deg);

        opacity:0;

    }

}

/* CONTENEDOR */
.container {
    position:relative;
    z-index:2;

    height: 100dvh;
    padding: 10px 20px;
    box-sizing: border-box;

    display: flex;
    justify-content: center; /* horizontal */
    align-items: flex-start; /* arriba */
}

.kiosco-card {

    width: 85%;
    max-width: 700px;

    height: 100%;

    display: flex;
    flex-direction: column;
}

/* CONTENEDOR INFERIOR */
.footer-nav {
    position: relative;
    width: 100%;

    display: grid;
    grid-template-columns: 1fr auto 1fr;

    gap: 12px;

    align-items: center;

    padding: 0 15px;

    box-sizing: border-box;

    border-radius: 0 0 20px 20px;

    min-height: 80px;
    padding-bottom: env(safe-area-inset-bottom);
}

.footer-main-btn {

    padding: 10px 20px;

    border: none;
    border-radius: 12px;

    background: #ff0077;
    color: white;

    font-size: 1.1rem;
    font-weight: bold;

    cursor: pointer;

    transition: all 0.25s ease;
}

.footer-main-btn:hover {
    background: black;
    transform: scale(1.05);
}

.slot-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.slot-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.slot-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* OVERLAY RESPONSIVE */
.overlay {
    position: relative;

    flex: 1;

    min-height: 0;

    width: 100%;

    padding: 40px;

    text-align: center;

    background: white;

    border-radius: 20px;

    box-sizing: border-box;

    overflow-y: auto;
}

/* HEADER */
.header-image {
    width: 140px;
}

.back-button {
    width: 100%;
    max-width: 120px;
    padding: 10px 15px;
    font-size: 1.2em;
    font-weight: bold;

    border-radius: 10px;
    border: none;

    background-color: #ff0088;
    color: white;

    cursor: pointer;
    transition: all 0.2s ease;
}

.back-button:hover {
    background-color: black;
    transform: scale(1.05);
}

.skip-button {
    padding: 10px 15px;
    font-size: 1.0rem;
    font-weight: bold;

    border-radius: 10px;
    border: none;

    background-color: #ff0088;
    color: white;

    cursor: pointer;
    transition: all 0.2s ease;
}

.skip-button:hover {
    background-color: black;
    transform: scale(1.05);
}

.lang-toggle {
    width: 100%;
    max-width: 120px;
    font-size: 1.2em;
    padding: 10px 15px;
    font-weight: bold;

    border-radius: 10px;
    border: none;

    background-color: #ff0077;
    color: white;

    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-toggle:hover {
    background: black;
    transform: scale(1.05);
}

/* overlay referencia para absolute */
.overlay {
    position: relative;
}

.mute-button {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 50px;
    height: 50px;

    border: none;
    background: transparent;

    padding: 0;
    margin: 0;

    cursor: pointer;

    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: center;
}

.mute-button img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* animación click */
.mute-button.animate {
    animation: mutePop 0.25s ease;
}

@keyframes mutePop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}


.language-modal {

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.55);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;

    opacity: 0;
    visibility: hidden;

    transition: 0.3s;
}

.language-modal.show {

    opacity: 1;
    visibility: visible;
}

.language-box {

    background: white;

    width: 70%;
    max-width: 400px;

    border-radius: 20px;

    padding: 30px;

    text-align: center;
}

.language-box h2 {

    margin-top: 0;
    margin-bottom: 25px;

    color: #222;
}

.language-buttons {

    display: flex;
    gap: 15px;

    justify-content: center;
}

.language-buttons button {

    width: 120px;
    height: 60px;

    border: none;

    border-radius: 12px;

    background: #ff0077;
    color: white;

    font-size: 1.3rem;
    font-weight: bold;

    cursor: pointer;
}

.language-buttons button:hover {

    background: black;
}