/* =========================
   RESET
========================= */
* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #0a0a0a;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

/* =========================
   HEADER
========================= */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-weight: 600;
}

/* SEARCH */
.search {
    flex: 1;
    margin: 0 10px;
}

.search input {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    border: none;
    background: #111;
    color: #fff;
    outline: none;
}

/* =========================
   MENU
========================= */
.menu {
    position: relative;
    cursor: pointer;
}

#menuBtn {
    font-size: 22px;
}

#dropdown {
    position: absolute;
    right: 0;
    top: 45px;
    background: #111;
    border-radius: 10px;
    padding: 10px;
    display: none;
    min-width: 180px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

#dropdown a {
    display: block;
    padding: 8px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

#dropdown a:hover {
    background: #222;
}

#dropdown.show {
    display: block;
}

/* =========================
   HERO
========================= */
.hero {
    display: flex;
    overflow-x: auto;
    padding: 10px;
}

.hero::-webkit-scrollbar {
    display: none;
}

.hero-card {
    min-width: 85%;
    margin-right: 10px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.hero-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: #111;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.hero-title {
    font-family: 'Anton', sans-serif;
    font-size: 28px;
}

.meta {
    font-size: 14px;
    opacity: 0.8;
}

/* =========================
   BOTONES
========================= */
.btn {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 16px;
    background: #ff2b2b;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
    border: none;
}

.btn:hover {
    background: #cc0000;
    transform: scale(1.05);
}

/* =========================
   SECCIONES
========================= */
.section {
    padding: 15px 10px;
}

.section h2 {
    margin: 10px 0;
    font-weight: 600;
}

/* =========================
   CAROUSEL
========================= */
.carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.carousel::-webkit-scrollbar {
    display: none;
}

/* =========================
   CARDS
========================= */
.card {
    min-width: 160px;
    background: #111;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.25s;
}

.card:hover {
    transform: scale(1.05) translateY(-5px);
}

.card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #111;
}

.card-content {
    padding: 10px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
}

/* =========================
   FOOTER
========================= */
.footer {
    margin-top: 40px;
    padding: 30px 20px;
    text-align: center;
    background: #000;
    border-top: 1px solid #111;
}

.footer-logo {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 22px;
    margin-bottom: 15px;
}

.footer-social a {
    color: #ff2b2b;
    transition: 0.2s;
}

.footer-social a:hover {
    transform: scale(1.2);
}

.footer-copy {
    font-size: 13px;
    opacity: 0.6;
}

/* =========================
   FORM APP (NUEVO)
========================= */
.form-app {
    max-width: 650px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-title {
    font-size: 22px;
}

/* CARDS FORM */
.card-app {
    background: #111;
    padding: 18px;
    border-radius: 16px;
}

/* GRID */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* INPUTS */
.form-app input,
.form-app textarea,
.form-app select {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: none;
    background: #0a0a0a;
    color: #fff;
}

/* IMAGE UPLOAD */
.image-upload {
    text-align: center;
}

.image-upload label {
    display: block;
    background: #222;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.image-upload input {
    display: none;
}

#preview {
    width: 100%;
    margin-top: 10px;
    border-radius: 10px;
}

/* ENTRADAS */
.entrada-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

/* BOTONES FORM */
.btn-add {
    width: 100%;
    padding: 10px;
    background: #222;
    border: none;
    border-radius: 10px;
    color: #fff;
}

.btn-main {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

/* ALERTA */
.alert-ok {
    background: #063;
    padding: 10px;
    border-radius: 10px;
}
/* FORZAR BOTÓN COMPRA ROJO */
a[href*="comprar"],
.btn-compra,
.btn-reservar {
    background: #ff2b2b !important;
    color: #fff !important;
}
/* EVENTO PAGE */

.evento-hero {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.evento-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.evento-content {
    padding: 15px;
}

.evento-title {
    font-family: 'Anton', sans-serif;
    font-size: 28px;
    margin-bottom: 10px;
}

.evento-meta {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 15px;
}

.evento-desc {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-main {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}
/* LOGO HEADER */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* HEADER APP */
.header-app {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* LOGO */
.logo img {
    height: 50px;
}

/* SEARCH */
.search-app {
    flex: 1;
    display: flex;
    align-items: center;
    background: #111;
    border-radius: 20px;
    padding: 8px 12px;
    gap: 8px;
}

.search-app input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
}

/* MENU ICON */
.menu-app {
    font-size: 20px;
    cursor: pointer;
}

/* DROPDOWN APP */
.dropdown-app {
    position: fixed;
    top: 60px;
    right: 10px;
    background: #111;
    border-radius: 12px;
    padding: 10px;
    display: none;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.dropdown-app a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
}

.dropdown-app a:hover {
    background: #222;
}

.dropdown-app.show {
    display: block;
}
.logo img {
    height: 100px !important;
}
.entradas-box {
    margin: 20px 0;
}

.entrada-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.precio {
    font-weight: bold;
    margin-bottom: 5px;
}
/* NAV */
.panel-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
}

.nav-btn {
    background: #111;
    padding: 10px 14px;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.nav-btn.active {
    background: #ff2b2b;
}

/* BODY */
.panel-body {
    padding: 10px;
}

/* HEADER */
.panel-header {
    margin-bottom: 15px;
}

/* STATS */
.panel-stats {
    display: flex;
    gap: 10px;
}

.stat {
    flex: 1;
    background: #111;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

/* GRID */
.grid-cards {
    display: grid;
    gap: 12px;
}

/* CARD */
.card-app img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn.danger {
    background: #444;
}

.btn-small {
    padding: 7px 10px;
    font-size: 12px;
}

.inline-form {
    display: inline;
    margin: 0;
}

.inline-form .btn {
    cursor: pointer;
}

.alert-error {
    background: #5f1111;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
}

.login-page {
    max-width: 430px;
    margin: auto;
}

.ventas-list {
    display: grid;
    gap: 12px;
}

.venta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #111;
    padding: 14px;
    border-radius: 10px;
}

.venta-main {
    min-width: 0;
}

.venta-side {
    display: grid;
    justify-items: end;
    gap: 6px;
    min-width: 105px;
}

.venta-side small {
    color: #aaa;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #333;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
}

.badge-aprobado {
    background: #086b3a;
}

.badge-pendiente,
.badge-in_process {
    background: #7a5a00;
}

.badge-rejected,
.badge-rechazado,
.badge-cancelled,
.badge-cancelado {
    background: #7a1717;
}

.ticket-page {
    max-width: 900px;
    margin: auto;
}

.ticket-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.ticket-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    color: #111;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 16px;
}

.ticket-card .meta {
    color: #333;
    opacity: 1;
}

.ticket-brand {
    color: #ff2b2b;
    font-weight: 700;
    text-transform: uppercase;
}

.ticket-info h2 {
    margin: 8px 0 12px;
}

.ticket-code {
    margin-top: 12px;
    font-family: monospace;
    font-weight: 700;
}

.ticket-qr img {
    width: 220px;
    height: 220px;
    background: #fff;
}

.verify-card {
    max-width: 520px;
    margin: auto;
    border-left: 6px solid #333;
}

.verify-ok {
    border-left-color: #0b8a4a;
}

.verify-error {
    border-left-color: #b32020;
}

@media (max-width: 640px) {
    .panel-stats {
        flex-direction: column;
    }

    .venta-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .venta-side {
        justify-items: start;
        width: 100%;
    }

    .ticket-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media print {
    .header,
    .footer,
    .ticket-actions {
        display: none !important;
    }

    body {
        background: #fff;
        color: #111;
    }

    .section {
        padding: 0;
    }

    .ticket-card {
        page-break-inside: avoid;
        border: 1px solid #ddd;
    }
}
.banner-slider {
    display: flex;
    overflow-x: auto;
    gap: 10px;
}

.banner-slider img {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
}
.banner-item {
    position: relative;
    display: block;
}

.banner-item img {
    width: 100%;
    border-radius: 12px;
}

/* TEXTO SOBRE EL BANNER */
.banner-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;

    background: rgba(0,0,0,0.6);
    padding: 10px;
    border-radius: 8px;

    font-size: 14px;
    color: #fff;
}
