:root {
	--primary: #2563eb; --primary-hover: #1d4ed8; --accent: #f59e0b;
	--bg-body: #f4f7f6; --text-main: #1e293b; --text-muted: #64748b;
	--border-light: #e2e8f0; --card-shadow: 0 10px 25px -5px rgba(0,0,0,0.8);
	--color-event: <?=$event_color;?>;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-body); color: var(--text-main); line-height: 1.6; padding-bottom: 50px; }

.hero-banner {
	width: 100%; height: 350px; background-color: #1e293b; 
	background-image: url('uploads/eventos/<?php echo $evento['banner_horizontal']; ?>');
	background-size: cover; background-position: center; position: relative;
}
.hero-overlay {
	position: absolute; top: 0; left: 0; width: 100%; height: 100%;
	background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}

.checkout-container {
	max-width: 1200px; margin: -80px auto 0; padding: 0 20px; position: relative;
	z-index: 10; display: grid; grid-template-columns: 32% 65%; gap: 3%; align-items: start;
}

/* --- EVENT INFO --- */
.event-info-card {
	background: #e0e0e0; border-radius: 16px; padding: 30px; box-shadow: var(--card-shadow);
	position: sticky; top: 30px; text-align: center; margin-bottom: 30px;
}
.event-logo { width: auto; height: 100px; border-radius: 12px; object-fit: cover; border: 4px solid #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.2); margin: -60px auto 20px; background: #fff; padding:10px; }
.event-title { font-size: 1.5rem; font-weight: 800; color: var(--text-main); margin-bottom: 10px; line-height: 1.2; }
.event-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 25px; }

.event-meta { text-align: left; background: var(--bg-body); padding: 15px; border-radius: 12px; margin-bottom: 15px; }
.meta-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 0.9rem; }
.meta-item i { color: var(--primary); font-size: 1.1rem; margin-top: 3px; }
.meta-item strong { display: block; color: var(--text-main); }
.cal-dropdown { position: relative; display: inline-block; margin-top: 15px; width: 100%; text-align: left;}
.btn-cal { width: 100%; background: #f1f5f9; color: var(--text-main); border: 1px solid var(--border-light); padding: 12px 15px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s; }
.btn-cal:hover { background: #e2e8f0; }
.cal-menu { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--border-light); border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); margin-top: 5px; z-index: 20; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s; }
.cal-dropdown.active .cal-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cal-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 15px; color: var(--text-main); text-decoration: none; font-size: 0.9rem; transition: background 0.2s; border-bottom: 1px solid #f1f5f9; }
.cal-menu a:hover { background: #f8fafc; color: var(--primary); }

/* --- TICKETS --- */
.tickets-container { display: flex; flex-direction: column; gap: 20px; transition: all 0.3s ease; }
.tickets-container.locked { opacity: 0.4; pointer-events: none; filter: grayscale(100%); }
.ticket-card { background: #ffffff; border-radius: 16px; padding: 20px 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); border: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; transition: transform 0.2s, box-shadow 0.2s; }
.ticket-card.disabled { opacity: 1; pointer-events: none; filter: grayscale(100%); }
.ticket-info h3 { font-size: 1.3rem; font-weight: 700; color: var(--text-main); margin-bottom: 5px; }
.ticket-meta { font-size: 0.85rem; color: var(--text-muted); display: flex; gap: 15px; margin-bottom: 5px;}
.ticket-price-box { text-align: right; min-width: 140px;}
.price-current { font-size: 1.8rem; font-weight: 800; color: var(--color-event); line-height: 1; }
.promo-badge { background: #fee2e2; color: #dc2626; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; display: inline-block; margin-bottom: 5px; }
.qty-selector { display: flex; align-items: center; background: var(--bg-body); border-radius: 8px; border: 1px solid var(--border-light); overflow: hidden; margin-top: 15px; width: fit-content; margin-left: auto; }
.qty-btn { width: 35px; height: 35px; background: transparent; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-main); transition: background 0.2s; }
.qty-input { width: 40px; height: 35px; text-align: center; border: none; background: transparent; font-weight: 700; font-size: 1rem; pointer-events: none; }

/* --- WIZARD STYLES --- */
.wizard-container { display: none; margin-top: 30px; }
.wizard-step { display: none; background: #fff; padding: 30px; border-radius: 16px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); border: 1px solid var(--border-light); margin-bottom: 20px; }
.wizard-step.active { display: block; }

.step-header { border-bottom: 2px solid var(--bg-body); padding-bottom: 15px; margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; }
.step-title { font-size: 1.25rem; font-weight: 800; color: var(--color-event); }
.step-badge { background: var(--bg-body); padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 15px; }
.form-group.full { grid-column: span 2; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-main); }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s; background: #f8fafc; }
.form-control:focus { border-color: var(--primary); outline: none; background: #fff; }

/* Input con bot贸n integrado (Buscar API) */
.input-group { display: flex; }
.input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-input { background: var(--primary); color: #fff; border: none; padding: 0 20px; border-top-right-radius: 8px; border-bottom-right-radius: 8px; font-weight: 600; cursor: pointer; transition: background 0.3s;}
.btn-input:hover { background: var(--primary-hover); }

/* Estilo Dropzone Nativo */
.file-drop-area { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 100%; padding: 30px; border: 2px dashed #cbd5e1; border-radius: 12px; background-color: #f8fafc; transition: 0.2s; cursor: pointer; text-align: center; }
.file-drop-area:hover, .file-drop-area.is-active { background-color: #f1f5f9; border-color: var(--primary); }
.file-drop-area input[type="file"] { position: absolute; left: 0; top: 0; height: 100%; width: 100%; opacity: 0; cursor: pointer; }
.file-msg { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); margin-top: 10px; }
.file-icon { font-size: 2.5rem; color: #94a3b8; }

/* Resumen de Pago */
.payment-summary { background: #f8fafc; padding: 20px; border-radius: 12px; margin-bottom: 25px; border: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.payment-total { font-size: 2rem; font-weight: 800; color: #16a34a; }
.payment-method-box { display: flex; gap: 15px; margin-bottom: 25px; }
.pm-option { flex: 1; border: 2px solid #cbd5e1; border-radius: 12px; padding: 15px; text-align: center; cursor: pointer; font-weight: 700; transition: all 0.2s; color: var(--text-muted); }
.pm-option.active { border-color: var(--primary); background: #eff6ff; color: var(--primary); }
.pm-option input { display: none; }

.terms-box { background: #fef3c7; border-left: 4px solid #d97706; padding: 15px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; color: #92400e; }

/* Controles Inferiores */
.wizard-controls { display: flex; justify-content: space-between; margin-top: 20px; }
.btn-wizard { padding: 14px 30px; border-radius: 8px; font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: all 0.3s; border: none; }
.btn-prev { background: #e2e8f0; color: #475569; }
.btn-next { background: var(--color-event); color: #fff; }
.btn-next:disabled { opacity: 0.5; cursor: not-allowed; }

/* PANTALLA DE GRACIAS */
.success-screen { display: none; text-align: center; background: #fff; padding: 50px 20px; border-radius: 16px; box-shadow: var(--card-shadow); margin-top: 20px; }
.success-icon { font-size: 5rem; color: #10b981; margin-bottom: 20px; }
.success-title { font-size: 2rem; font-weight: 800; color: var(--text-main); margin-bottom: 10px; }
.btn-restart { display: inline-block; margin-top: 30px; background: var(--text-main); color: #fff; padding: 12px 30px; border-radius: 8px; font-weight: 700; text-decoration: none; cursor: pointer; }

.floating-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: #ffffff; box-shadow: 0 -4px 15px rgba(0,0,0,0.1); padding: 15px 0; z-index: 100; transform: translateY(100%); transition: transform 0.3s ease; }
.floating-bar.active { transform: translateY(0); }
.floating-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.floating-totals { display: flex; align-items: center; gap: 20px; }
.floating-qty { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.floating-price { font-size: 1.5rem; font-weight: 800; color: var(--text-main); }
.btn-checkout { background: var(--color-event); color: #fff; border: none; padding: 14px 30px; border-radius: 8px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: background 0.3s; }

@media (max-width: 900px) {
	.checkout-container { grid-template-columns: 1fr; margin-top: -40px; }
	.event-info-card { position: relative; top: 0; margin-bottom: 20px; }
	.hero-banner { height: 250px; }
	.form-grid { grid-template-columns: 1fr; }
	.form-group.full { grid-column: span 1; }
}




/* ============================================= */
/* --- MODAL POLÍTICAS (FADE IN / OUT) --- */
/* ============================================= */

.stark-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px); /* Efecto cristal desenfocado en el fondo */
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Efecto Fade OUT por defecto */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Al agregar la clase .active, hace el Fade IN */
.stark-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* La caja central */
.stark-modal-content {
    background-color: #0a0a0a;
    border: 1px solid #333333;
    border-top: 3px solid var(--primary-orange, #FF4500);
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh; /* Máximo 85% del alto de la pantalla */
    position: relative;
    display: flex;
    flex-direction: column;
    /* Pequeño salto hacia arriba al aparecer */
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.stark-modal-overlay.active .stark-modal-content {
    transform: translateY(0);
}

/* Botón de Cerrar (X) */
.stark-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #777777;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.stark-modal-close:hover {
    color: var(--primary-orange, #FF4500);
    transform: scale(1.1);
}

/* Área de contenido con Scroll (si el texto es muy largo) */
.stark-modal-body {
    padding: 40px;
    overflow-y: auto;
    color: #dddddd;
    font-family: var(--font-family, 'Poppins', sans-serif);
    line-height: 1.6;
}

/* Personalización de la barra de desplazamiento */
.text-scrollable::-webkit-scrollbar {
    width: 6px;
}
.text-scrollable::-webkit-scrollbar-track {
    background: #111111; 
    border-radius: 8px;
}
.text-scrollable::-webkit-scrollbar-thumb {
    background: #444444; 
    border-radius: 8px;
}
.text-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange, #FF4500); 
}


/* ============================================= */
/* --- BANNER DE COOKIES --- */
/* ============================================= */

.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background-color: #050505;
    border-top: 2px solid var(--primary-orange, #FF4500);
    z-index: 99999;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.8);
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.hidden {
    transform: translateY(120%); /* Lo esconde hacia abajo */
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255, 69, 0, 0.4));
}

.cookie-text h4 {
    color: #fff;
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.cookie-text p {
    color: #aaa;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.btn-cookie {
    font-family: var(--font-family, 'Poppins', sans-serif);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.btn-cookie.btn-outline {
    background: transparent;
    color: #ddd;
    border: 1px solid #555;
}

.btn-cookie.btn-outline:hover {
    border-color: var(--primary-orange, #FF4500);
    color: var(--primary-orange, #FF4500);
}

.btn-cookie.btn-solid {
    background: var(--primary-orange, #FF4500);
    color: #fff;
    border: 1px solid var(--primary-orange, #FF4500);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
}

.btn-cookie.btn-solid:hover {
    background: #e03e00;
    box-shadow: 0 0 25px rgba(255, 69, 0, 0.6);
}

/* --- MODAL CONFIGURACIÓN & TOGGLES (Interruptores) --- */
.cookie-modal { max-width: 600px; }

.cookie-toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #222;
}
.cookie-toggle-group:last-of-type { border-bottom: none; }

.cookie-toggle-info h5 {
    color: #fff; margin: 0 0 5px 0; font-size: 1rem;
}
.cookie-toggle-info p {
    color: #888; margin: 0; font-size: 0.85rem; max-width: 90%;
}

/* El Switch (iOS Style) */
.switch {
    position: relative;
    display: inline-block;
    width: 50px; height: 26px;
    flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333;
    transition: .4s;
}
.slider:before {
    position: absolute; content: "";
    height: 18px; width: 18px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider {
    background-color: var(--primary-orange, #FF4500);
}
input:checked + .slider:before {
    transform: translateX(24px);
}
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Switch bloqueado (Necesarias) */
.disabled-slider { background-color: #555 !important; cursor: not-allowed; opacity: 0.7;}

/* Adaptación a móviles */
@media (max-width: 900px) {
    .cookie-banner-content { flex-direction: column; text-align: center; }
    .cookie-info { flex-direction: column; gap: 15px; }
    .cookie-actions { width: 100%; flex-wrap: wrap; justify-content: center; }
}

/* --- OVERLAY DEL BANNER --- */
.cookie-banner-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px); /* Efecto cristal */
    z-index: 99998; 
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.cookie-banner-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; 
}