/* =============================
   FONDO Y BODY
============================= */
body {
    background: url('cartel_reduced.jpeg') center/cover no-repeat fixed;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* =============================
   OVERLAY Y CARD
============================= */
.overlay {
    display: flex;
    justify-content: center;
    padding: 30px 10px;
}

.card {
    width: 100%;
    max-width: 420px;
    background: rgba(0, 0, 0, 0.75);
    padding: 25px;
    border-radius: 12px;
    color: white;
}

/* =============================
   LOGO
============================= */
.logo-box {
    background: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.logo-cinerama {
    width: 100%;
}

/* =============================
   POSTER
============================= */
.poster-container {
    margin: 15px 0;
}

.poster-img {
    width: 100%;
    border-radius: 8px;
}

/* =============================
   INTRO BOX
============================= */
.intro-box {
    background: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: black;
    text-align: center;
}

/* =============================
   TITULARES
============================= */
h1 {
    text-align: center;
    margin-top: 20px;
}

.sub {
    text-align: center;
    color: #ccc;
    margin-bottom: 15px;
}

/* =============================
   FORMULARIO GENERAL
============================= */
label {
    margin-top: 10px;
    display: block;
}

input,
select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    margin-top: 6px;
    box-sizing: border-box;
}

/* =============================
   RADIO BUTTONS — NÚMERO DE ENTRADAS
============================= */
#entradasContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* cada opción de entradas */
.entrada-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 12px;
    font-size: 16px;
}

/* CORRECCIÓN IMPORTANTE: anular width:100% heredado */
.entrada-option input[type="radio"] {
    width: auto !important;
    height: auto !important;
    flex: 0 0 auto !important;
    margin: 0;
    padding: 0;
    transform: scale(1.2);
}

/* =============================
   CHECKBOXES
============================= */
.checkbox-group {
    margin-top: 15px;
}

.chk {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.chk input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.chk span {
    display: inline-block;
    line-height: 1.3em;
    font-size: 15px;
}

/* =============================
   LINK PRIVACIDAD
============================= */
.link-privacidad {
    color: #4da3ff;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

/* =============================
   BOTÓN RESERVAR
============================= */
#btnEnviar {
    width: 100%;
    padding: 14px;
    margin-top: 25px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-inactivo {
    background: #777;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-activo {
    background: #c7a300;
    cursor: pointer;
    opacity: 1;
}

.btn-activo:hover {
    background: #e0b600;
}

/* =============================
   MENSAJES
============================= */
#mensaje.error {
    color: #ff6666;
}

#mensaje.success {
    color: #00c853;
}

/* =============================
   PANEL PRIVACIDAD
============================= */
.priv-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 9999;
}

.priv-panel.active {
    display: block;
}

.priv-panel-header {
    text-align: right;
    padding: 20px;
}

.priv-close {
    font-size: 30px;
    cursor: pointer;
    color: white;
}

.priv-panel-body {
    background: white;
    max-width: 500px;
    margin: 0 auto;
    padding: 25px;
    border-radius: 10px;
    color: black;
    max-height: 80vh;
    overflow-y: auto;
}

/* =======================================
   MODAL DE MENSAJES
======================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: white;
    padding: 25px;
    max-width: 340px;
    width: 90%;
    border-radius: 10px;
    text-align: center;
    color: black;
}

.modal-btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: #c7a300;
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.modal-btn:hover {
    background: #e0b600;
}

/* PANEL PRIVACIDAD */
.priv-panel {
    display: none; /* por defecto está oculto */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
}

/* Cuando el JS añade esta clase, el panel aparece */
.priv-panel.open {
    display: block;
}