:root {
    --safe-space: clamp(20px, 2vw, 32px);
    --viewport-safe-width: calc(100vw - (var(--safe-space) * 2));
    --viewport-safe-height: calc(100vh - (var(--safe-space) * 2));
    --kiosk-stage-width: min(var(--viewport-safe-width), calc(var(--viewport-safe-height) * 0.5625));
    --kiosk-stage-height: min(var(--viewport-safe-height), calc(var(--viewport-safe-width) * 1.777777778));
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.16), transparent 30%),
        linear-gradient(180deg, #081225, #0f172a);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 0;
    touch-action: manipulation;
    overscroll-behavior: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.main-container {
    position: relative;
    display: flex;
    width: 100vw;
    height: 100vh;
    background-color: #2b3a8a;
    justify-content: center;
    align-items: center;
    background-image: url('img/GrupoBelatorTextura2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.botones-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 40px);
    width: 100%;
    max-width: 760px;
    padding: calc(var(--safe-space) + 56px) var(--safe-space) var(--safe-space);
    box-sizing: border-box;
}

.imagen-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    z-index: 1000;
    cursor: pointer;
    touch-action: manipulation;
}

.imagen-container.fullscreen {
    display: flex;
}

#imagen-display {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0;
}

.boton-imagen {
    width: 100%;
    max-width: 280px;
    height: auto;
    cursor: pointer;
    border: 4px solid white;
    border-radius: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0;
    justify-self: center;
    touch-action: manipulation;
    -webkit-user-drag: none;
}

.boton-imagen:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
}

.hidden {
    display: none !important;
}

.back-to-menu-btn {
    position: absolute;
    top: calc(var(--safe-space) * 1.1);
    right: calc(var(--safe-space) * 1.1);
    z-index: 100;
    min-height: 52px;
    padding: 12px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-decoration: none;
    font-family: sans-serif;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    touch-action: manipulation;
}

.back-to-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
