:root {
    --primary-gradient: linear-gradient(160deg, #f4aeba 0%, #c6a6f5 50%, #89b0f7 100%);
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-light: #666666;
    --accent-color: #ff7e5f; /* Color salmón para el badge 10% OFF */
    --border-radius-card: 30px;
    --border-radius-img: 15px;
}

* {
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /*background: var(--primary-gradient);*/
    background-image: url("../../../_version_2/img/header_hologram.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Para que el fondo no se mueva al scrollear */
    display: flex;
    flex-flow: column nowrap;
    color: white;
    font-size: 16px;
}

/* --- HEADER --- */
/* Contenedor del logo pequeño arriba */
.-headerImage {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-start;
}

.-headerImage img {
    width: 40px;
    height: auto;
    opacity: 0.8; /* Un poco sutil */
}

header {
    padding: 10px 25px 30px 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.loader {
    align-items: center;
    justify-content: center;
    display: none;
}

/* Layout para pantallas más grandes (Tablet/PC) */
@media (min-width: 768px) {
    header {
        
        align-items: center;
        justify-content: space-between;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

.-titles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    color: black;
}

.-eventName {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0 0 10px 0;
}

.progress-bar-bg {
    width: 100%;
    height: 10px; /* Grosor de la barra */
    background-color: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 25px; /* Espacio debajo */
    overflow: hidden; /* Para que el relleno respete los bordes redondeados */
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: width 1s ease-in-out; 
    min-width: 0%; 
}

.badge-discount {
    background-color: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 24px;
    width: fit-content;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.-smallText {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    margin: 2px 0;
}

.-smallText i {
    width: 15px;
    text-align: center;
}

.-smallText a {
    color: black;
    text-decoration: none;
    border-bottom: 1px dotted rgba(0,0,0,0.7);
}

/* Imagen del evento (tarjeta flotante derecha) */
.hero-image-container {
    width: 100%;
    max-width: 350px;
    height: 200px;
    border-radius: var(--border-radius-img);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    margin: 0 auto; /* Centrado en móvil */
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- MAIN CARD (Blanca) --- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%; /* Full width en móvil */
}

.roundContainer {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-card) var(--border-radius-card) 0 0;
    padding: 30px 25px;
    color: var(--text-main);
    flex: 1;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    margin-top: auto; /* Empuja hacia abajo si hay poco contenido */
    width: 100%;
    max-width: 600px; /* Limite ancho en PC */
    margin-left: auto;
    margin-right: auto;
}

/* --- Contadores y Barra de Progreso --- */
.-eventEntrances {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

/* Barra gris debajo del contador */
.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    margin-bottom: 30px;
    position: relative;
}

/* --- ESTADOS --- */

/* No Entrances (Estado Agotado) */
.no-entrances {
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.no-entrances h1 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.no-entrances p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Formulario */
h1 {
    color: var(--text-main);
    font-size: 22px;
    text-align: center;
    margin-bottom: 10px;
}

form {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
}

form label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

form input:focus {
    border-color: #89b0f7;
}

form .-whatsapp {
    display: flex;
    gap: 10px;
}

button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(137, 176, 247, 0.4);
    transition: transform 0.1s;
}

button:active {
    transform: scale(0.98);
}

#toggleButton {
    background: none;
    color: var(--text-light);
    box-shadow: none;
    text-decoration: underline;
    font-size: 14px;
    padding: 0;
    margin: 10px auto;
    display: block;
    width: fit-content;
}

/* Descripción colapsable */
#description {
    color: var(--text-light);
    line-height: 1.6;
    overflow: hidden;
    position: relative;
    max-height: 4.5em;
    transition: max-height 0.3s ease;
    text-align: center;
}
#description.collapsed {
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}
#description.expanded {
    max-height: 1000px;
}

/* Ticket generado */
#comprobante {
    width: 100%;
    background-color: white;
    color: var(--text-main);
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    border-radius: 20px;
    border: 2px dashed #ddd;
    padding: 20px;
    margin-top: 15px;
    text-align: center;
}

/* Footer */
footer {
    width: 100%;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-main); /* Cambiado a oscuro porque el fondo blanco puede bajar */
    background-color: var(--card-bg); /* Footer integrado en el color blanco */
}