
*{box-sizing:border-box}
body{
margin:0;
font-family:'Segoe UI',Arial,sans-serif;
background:#0b0b0b;
color:white;
}

body::before{
content:"";
position:fixed;
inset:0;
backdrop-filter:blur(6px);
z-index:-1;
}

.container{max-width:1200px;margin:auto;padding:20px}

.header{
background:rgba(0,0,0,.6);
padding:18px 0;
position:sticky;
top:0;
z-index:999;
backdrop-filter:blur(8px);
}

.logo{
font-size:26px;
font-weight:700;
letter-spacing:2px;
text-align:center;
}

.hero-img{
width:100%;
max-width: 100%;
    height: auto;
}

.map img{
width:100%;
}

.cta{
display:flex;
gap:20px;
justify-content:center;
margin:30px 0;
flex-wrap:wrap;
}

.btn{
padding:16px 28px;
border-radius:10px;
border:none;
font-size:16px;
cursor:pointer;
font-weight:600;
transition:.25s;
}

.btn-primary{
background:#ff2e63;
color:white;
}

.btn-primary:hover{
transform:translateY(-3px);
box-shadow:0 10px 30px rgba(255,46,99,.5);
}

.card{
background:#151515;
padding:25px;
border-radius:14px;
margin-top:30px;
box-shadow:0 10px 30px rgba(0,0,0,.5);
}

.form input, .form select{
width:100%;
padding:14px;
margin:8px 0;
border-radius:8px;
border:1px solid #333;
background:#0f0f0f;
color:white;
}

.form button{
width:100%;
margin-top:12px;
}

.footer{
text-align: center;
    padding-top: 30px;
    background: #252424;
    padding-bottom: 30px;
}



.show{display:flex}

.dashboard{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:20px;
}

.stat{
background:#111;
padding:20px;
border-radius:12px;
text-align:center;
}

table{
width:100%;
border-collapse:collapse;
margin-top:20px;
}

th,td{
padding:12px;
border-bottom:1px solid #222;
text-align:left;
}

/* ===== MODAL OVERLAY ===== */
.modal{
position:fixed;
inset:0;
background:rgba(0,0,0,.75);
backdrop-filter:blur(10px);
display:flex;
align-items:center;
justify-content:center;
opacity:0;
visibility:hidden;
transition:.35s ease;
z-index:9999;
}

.modal.show{
opacity:1;
visibility:visible;
}

/* ===== MODAL CONTENT ===== */
.modal-content{
background:linear-gradient(145deg,#111,#1a1a1a);
padding:35px;
border-radius:18px;
width:92%;
max-width:480px;
transform:scale(.85);
transition:.35s cubic-bezier(.2,.8,.2,1);
box-shadow:
0 40px 120px rgba(0,0,0,.9),
0 0 0 1px rgba(255,255,255,.05);
position:relative;
}

.modal.show .modal-content{
transform:scale(1);
}

/* ===== CLOSE BUTTON ===== */
.modal-close{
position:absolute;
top:12px;
right:14px;
font-size:22px;
cursor:pointer;
opacity:.6;
transition:.2s;
}
.modal-close:hover{opacity:1}

/* ===== FLOATING LABELS ===== */
.form-group{
position:relative;
margin-bottom:16px;
}

.form-group input,
.form-group select{
width:100%;
padding:14px 12px;
background:#0f0f0f;
border:1px solid #333;
border-radius:8px;
color:white;
outline:none;
}

.form-group label{
position:absolute;
left:12px;
top:50%;
transform:translateY(-50%);
color:#777;
font-size:14px;
pointer-events:none;
transition:.2s;
background:#0f0f0f;
padding:0 6px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown)+label,
.form-group select:focus + label{
top:-8px;
font-size:11px;
color:#ff2e63;
}

/* ===== LOADER ===== */
.loader{
width:24px;
height:24px;
border:3px solid rgba(255,255,255,.2);
border-top:3px solid white;
border-radius:50%;
animation:spin 1s linear infinite;
margin:auto;
display:none;
}

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

/* ===== BUTTON RIPPLE ===== */
.btn{
position:relative;
overflow:hidden;
}

.btn::after{
content:"";
position:absolute;
width:0;
height:0;
background:rgba(255,255,255,.4);
border-radius:50%;
transform:translate(-50%,-50%);
opacity:0;
}

.btn:active::after{
width:300px;
height:300px;
opacity:1;
transition:.4s;
}

/* ===== LOCK BODY SCROLL ===== */
body.modal-open{
overflow:hidden;
}

.ticket-premium{
background:linear-gradient(135deg,#111,#000);
border-radius:18px;
color:white;
text-align:center;
padding:30px;
}

.ticket-card{
border:2px dashed #ff2e63;
padding:25px;
border-radius:14px;
}

.ticket-title{
font-size:22px;
font-weight:700;
margin-bottom:10px;
}

.ticket-data{
margin:6px 0;
opacity:.9;
}

.ticket-qr{
margin:20px 0;
}

.ticket-token{
font-size:12px;
letter-spacing:2px;
opacity:.6;
}

@media print{
body *{visibility:hidden}
.ticket-premium,.ticket-premium *{
visibility:visible;
}
.ticket-premium{
position:absolute;
left:0;
top:0;
width:100%;
}
}

.ticket-pro{
background:#fff;
color:#000;
border-radius:12px;
overflow:hidden;
max-width:750px;
margin:auto;
box-shadow:0 20px 60px rgba(0,0,0,.25);
font-family:'Segoe UI',sans-serif;
}

.ticket-header{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px;
border-bottom:1px solid #eee;
gap:15px;
flex-wrap:wrap;
}

.ticket-header-left{
display:flex;
gap:12px;
align-items:center;
flex:1;
min-width:220px;
}

.ticket-logo{
height:60px;
max-width:120px;
object-fit:contain;
}

.ticket-event-info{
font-size:13px;
line-height:1.3;
}

/* QR */
.ticket-header-qr{
display:flex;
justify-content:center;
align-items:center;
}

.ticket-header-qr img{
width:140px;
max-width:100%;
height:auto;
}

@media (max-width: 600px){

.ticket-header{
flex-direction:column;
align-items:center;
text-align:center;
}

.ticket-header-left{
width:100%;
justify-content:center;
}

.ticket-event-info{
text-align:left;
}

.ticket-header-qr{
margin-top:10px;
width:100%;
justify-content:center;
}

.ticket-header-qr img{
width:160px;
}

}

.ticket-event-info{
font-size:14px;
}



.ticket-message{
text-align:center;

}

.ticket-message h2{
margin:0;
font-size:28px;
}

.ticket-message p{
margin-top:8px;
color:#555;
}

.ticket-block{
padding:20px;
border-top:1px solid #eee;
}

.ticket-subtitle{
font-weight:700;
margin-bottom:10px;
}

.ticket-row{
display:grid;
grid-template-columns:1fr 120px 120px;
padding:8px 0;
}

.ticket-row-head{
font-weight:bold;
border-bottom:1px solid #ddd;
}

.ticket-data{
margin:4px 0;
}

.btn-map{
display:inline-block;
padding:8px 14px;
background:#000;
color:#fff;
text-decoration:none;
border-radius:6px;
margin:10px 0;
}

.confirm-box{
text-align:center;
max-width:380px;
padding:30px;
}

.confirm-actions{
display:flex;
gap:10px;
justify-content:center;
margin-top:20px;
}

.btn-light{
background:#eee;
color:#000;
border:none;
padding:10px 18px;
border-radius:6px;
cursor:pointer;
}

/* ===== PRELOADER ===== */
#preloader{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
display:flex;
justify-content:center;
align-items:center;
background: linear-gradient(135deg,#000000,#1a1a1a,#111);
z-index:99999;
transition: opacity .6s ease, visibility .6s ease;
}

.preloader-content{
text-align:center;
}

.preloader-logo{
width:200px;
animation: pulse 2s infinite ease-in-out;
}

.preloader-loader{
width:40px;
height:40px;
border:3px solid rgba(255,255,255,0.2);
border-top:3px solid #ffffff;
border-radius:50%;
margin:25px auto 0;
animation: spin 1s linear infinite;
}

/* Animaciones */
@keyframes spin{
to{ transform: rotate(360deg); }
}

@keyframes pulse{
0%{ transform: scale(1); opacity:1; }
50%{ transform: scale(1.05); opacity:.8; }
100%{ transform: scale(1); opacity:1; }
}

/* ocultar */
#preloader.hide{
opacity:0;
visibility:hidden;
}

/* ===== MODAL TICKET RESPONSIVE ===== */
.modal-content.ticket-premium {
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 90px; /* espacio para el botón */
}

/* Botón fijo abajo en móvil */
.modal-content.ticket-premium button {
    position: sticky;
    bottom: 0;
    width: 100%;
    border-radius: 0;
    margin: 0;
}

/* Ajustes mobile */
@media (max-width: 768px) {
    .modal-content.ticket-premium {
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
    }
}