/* Página del cliente para completar los datos de una venta física de RRPP (mismo estilo oscuro que detalles/perfil) */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #1c1c1c;
    color: #D6D6D6;
    font-family: 'Rubik', sans-serif;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.cabecera {
    text-align: center;
    padding: 18px 16px 6px;
}

.cabecera img {
    height: 26px;
}

.contenido {
    max-width: 520px;
    margin: 0 auto;
    padding: 12px 16px 40px;
}

.vista {
    width: 100%;
}

.textoCentro {
    text-align: center;
}

h2.textoCentro {
    color: white;
    font-weight: 700;
    margin: 8px 0;
}

/* --- Evento --- */
.evento {
    gap: 14px;
    align-items: center;
    background: #262626;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 18px;
}

.cartel {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.eventoTexto {
    min-width: 0;
}

.eventoTexto p,
.eventoTexto h1 {
    margin: 0;
    overflow-wrap: anywhere;
}

.eventoLocal {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eventoNombre {
    color: white;
    font-size: 19px;
    font-weight: 700;
    margin: 2px 0 !important;
}

.eventoFecha {
    color: #00d2ff;
    font-size: 13px;
}

.eventoProducto {
    font-size: 13px;
    margin-top: 4px !important;
}

/* --- Formulario --- */
.pagado {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 18px;
}

.pagado .material-symbols-outlined {
    color: #00d2ff;
}

.pagado p {
    margin: 0;
    font-size: 14px;
}

.tarjeta {
    background: #262626;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    scroll-margin-top: 16px;
}

.titAsistente {
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    margin: 0 0 12px;
}

.tarjeta label {
    display: block;
    font-size: 13px;
    margin: 0 0 4px;
}

.forminput {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 11px 12px;
    background-color: #323232;
    color: #D6D6D6;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    outline: none;
}

.forminput:focus {
    border-color: #00d2ff;
}

.forminput.campoError,
.iti .forminput.campoError {
    border-color: #ff4d4d;
}

.textarea {
    height: 80px;
    resize: vertical;
    font-size: 14px;
}

select.forminput {
    appearance: auto;
}

/* iOS Safari pinta la fecha con su propio ancho mínimo (se salía de la tarjeta) y otro alto: se iguala al resto de campos */
input[type="date"].forminput {
    -webkit-appearance: none;
    appearance: none;
    min-width: 0;
    max-width: 100%;
    height: calc(1.2em + 24px);
    line-height: 1.2;
    text-align: left;
}

input[type="date"].forminput::-webkit-date-and-time-value {
    text-align: left;
    min-height: 1.2em;
}

input[type="date"].forminput::-webkit-datetime-edit {
    padding: 0;
}

.iti {
    width: 100%;
    display: block;
    margin-bottom: 12px;
}

.iti .forminput {
    margin-bottom: 0;
}

.iti__country-list {
    color: #313131;
}

#contCopiar {
    margin-bottom: 16px;
}

.aviso {
    background: #262626;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 13px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.avisoTitulo {
    color: white;
    font-weight: 700;
    margin: 0 0 6px;
}

.aviso p {
    margin: 0;
}

.legal {
    text-align: center;
    font-size: 12px;
    color: #888;
}

.legal a {
    color: turquoise;
}

/* --- Botones --- */
.btnPri,
.btnSec,
.btnDescargar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 10px;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.btnPri {
    width: 100%;
    padding: 14px;
    background: #00d2ff;
    color: #000;
    font-size: 15px;
    letter-spacing: 0.03em;
}

.btnSec {
    width: 100%;
    padding: 11px;
    background: #333;
    color: white;
    border: 1px solid #444;
    font-size: 14px;
}

.btnPri:active,
.btnSec:active,
.btnDescargar:active {
    transform: scale(0.98);
}

/* --- Entradas --- */
.iconoGrande {
    display: block;
    text-align: center;
    font-size: 56px;
    margin: 10px 0 6px;
}

.iconoGrande.ok {
    color: #30d158;
}

.iconoGrande.error {
    color: #888;
}

.listaEntradas {
    margin: 18px 0;
}

.filaEntrada {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #262626;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.datosEntrada {
    min-width: 0;
}

.datosEntrada p {
    margin: 0;
    overflow-wrap: anywhere;
}

.ordenEntrada {
    color: #00d2ff;
    font-size: 12px;
    font-weight: 700;
}

.nombreEntrada {
    color: white;
    font-size: 14px;
}

.btnDescargar {
    flex-shrink: 0;
    padding: 10px 12px;
    background: #00d2ff;
    color: #000;
    font-size: 13px;
}

.btnDescargar .material-symbols-outlined {
    font-size: 18px;
}

.anulada {
    color: #ff4d4d;
    font-size: 12px;
    font-weight: 700;
}

.nota {
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* --- Cargando --- */
.cargando {
    width: 48px;
    height: 48px;
    margin: 40px auto 16px;
    border: 4px solid #333;
    border-top-color: #00d2ff;
    border-radius: 50%;
    animation: girarCarga 1s linear infinite;
}

@keyframes girarCarga {
    to {
        transform: rotate(360deg);
    }
}

/* --- Avisos --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
}

.modalCaja {
    width: 100%;
    max-width: 400px;
    background: #262626;
    border-radius: 14px;
    padding: 20px;
}

.modalCaja h3 {
    color: white;
    font-size: 17px;
    margin: 0 0 10px;
}

.modalCaja p {
    font-size: 14px;
    white-space: pre-line;
    margin: 0 0 18px;
}

.modalBotones {
    display: flex;
    gap: 10px;
}

.modalBotones button {
    flex: 1;
    width: auto;
    padding: 11px;
}
