: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;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.16), transparent 30%),
        linear-gradient(180deg, #081225, #0f172a);
    font-family: Arial, sans-serif;
    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;
}

.pantalla-vertical {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #2b3a8a;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.imagen-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: calc(var(--safe-space) + 44px) var(--safe-space) var(--safe-space);
    box-sizing: border-box;
}

.imagen-container img {
    width: min(100%, 760px);
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.texto-container {
    padding: 20px 60px;
    text-align: center;
    color: #2c2c2c;
    flex-shrink: 0;
}

.texto-container h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.texto-container p {
    font-size: 1.8em;
    line-height: 1.5;
}

.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);
}
