/* ── Nioicon (misma fuente que panel TicketMax) ── */
@font-face {
    font-family: "Nioicon";
    src: url("/wp-content/plugins/ticketmax/panel/public/dashboard/assets/fonts/Nioicon.woff") format("woff"),
         url("/wp-content/plugins/ticketmax/panel/public/dashboard/assets/fonts/Nioicon.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
.tm-ni {
    font-family: "Nioicon" !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.tm-ni-dashboard-fill:before { content: "\ea13"; }
.tm-ni-ticket-fill:before    { content: "\ebf7"; }
.tm-ni-user-fill:before      { content: "\ec2d"; }

/**
 * TICKETMAX Standalone Home — Pixel-perfect CSS
 * Values extracted from computed styles of original ticketmax.org
 */

/* ═══ Reset ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; border: none; }
ul { list-style: none; }
button, input, select { font-family: inherit; }

/* Header → ver sección NAVBAR REDESIGN al final del archivo */

/* ═══ BANNER — max-width 1119px, border-radius 40px ═══ */
.tm-banners {
    max-width: 87.5vw;
    margin: 0 auto;
    /* Separación visual respecto al header (logo + nav). El banner estaba
       pegado al borde superior tras el restyle del header. */
    margin-top: 24px;
    padding: 0;
    position: relative;
    z-index: 1;
}
.tm-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 40px;
}
.tm-carousel-track {
    display: grid;
}
.tm-slide {
    grid-column: 1;
    grid-row: 1;
    display: block;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}
.tm-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.tm-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 40px;
    object-fit: fill;
}
.tm-slide-movil { display: none !important; }
.tm-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s;
}
.tm-carousel-btn { opacity: 0; transition: opacity 0.3s, background 0.2s; }
.tm-carousel:hover .tm-carousel-btn { opacity: 1; }
.tm-carousel-btn:hover { background: #fff; }
.tm-carousel-prev { left: 20px; }
.tm-carousel-next { right: 20px; }
.tm-carousel-dots {
    display: none;
}
.tm-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.tm-carousel-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ═══ SEARCH — border-radius 25px, shadow, h:100px ═══ */
.tm-search-section {
    padding: 0 24px;
    margin-top: -70px;
    position: relative;
    z-index: 2;
}
.tm-search-section .tm-container {
    max-width: 75vw;
    margin: 0 auto;
}
.tm-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 25px;
    padding: 0 12px 0 32px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    position: relative;
    gap: 20px;
    height: 100px;
}
.tm-search-label {
    font-weight: 700;
    font-size: 20px;
    color: #000;
    white-space: nowrap;
}
.tm-search-divider {
    width: 1px;
    height: 28px;
    background: #e0e0e0;
    flex-shrink: 0;
}
.tm-search-category {
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    padding: 8px 4px;
    min-width: 100px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 24px;
}
.tm-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #aaa;
    background: transparent;
    padding: 9px 15px;
    min-width: 0;
    max-width: none;
    height: 42px;
}
.tm-search-input::placeholder { color: #aaa; }
.tm-search-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px 60px;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    height: 48px;
    display: flex;
    align-items: center;
}
.tm-search-btn:hover { background: #333; }
.tm-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    display: none;
    z-index: 50;
    max-height: 400px;
    overflow-y: auto;
}
.tm-search-results.active { display: block; }
.tm-search-results ul { list-style: none; }
.tm-search-results li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    transition: background 0.15s;
}
.tm-search-results li a:hover { background: #f5f5f5; }
.tm-search-results .result-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.tm-search-results .result-info { display: flex; flex-direction: column; }
.tm-search-results .result-title { font-weight: 600; font-size: 14px; color: #333; }
.tm-search-results .result-date { font-size: 12px; color: #888; }
.tm-search-results .result-venue { font-size: 12px; color: #aaa; }
.tm-search-no-results { padding: 20px; text-align: center; color: #888; font-size: 14px; }

/* ═══ EVENTS GRID — flex wrap, margin 0 -10px, card 25% ═══ */
.tm-events-section {
    padding: 0 15px;
    margin-top: 5px;
}
.tm-events-section .tm-container {
    max-width: 84.7vw;
    margin: 0 auto;
    padding: 0;
}
.tm-events-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
    width: calc(100% + 10px);
}

/* ═══ EVENT CARD — 25%, padding 5px 10px, bg #f9f9f9, border-radius 20px ═══ */
.tm-event-card {
    max-width: 25%;
    flex: 0 0 25%;
    padding: 5px 5px;
    box-sizing: border-box;
}
.tm-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
    background: #f9f9f9;
    border-radius: 20px;
    padding: 10px;
    overflow: hidden;
}
.tm-card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}
.tm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border: none;
    border-radius: 0;
}
.tm-card-placeholder {
    width: 100%;
    height: 100%;
    background: #eee;
    border-radius: 20px;
}
.tm-card-body {
    padding: 8px 0 0;
    flex: 1;
}

/* Title: Poppins 17px/18px bold, black, 1 line clamp */
.tm-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #000;
    line-height: 18px;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

/* Details: 12px, #888, uppercase, icon 14px #767676 fill #888 */
.tm-card-details {
    list-style: none;
    padding: 4px 0 0;
    margin: 0;
}
.tm-card-details li {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
}
.tm-card-details li span {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    line-height: 17px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 5px;
    margin-left: -2px;
}
.tm-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: #888;
}

/* Footer buttons: Información (black) + Boletos (orange) */
.tm-card-footer {
    display: flex;
    gap: 4px;
    padding: 8px 0 0;
}
.tm-card-info-btn,
.tm-card-buy-btn {
    flex: 1 1 0;
    text-align: center;
    padding: 10px 0;
    border-radius: 10px;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    line-height: 14px;
}
.tm-card-info-btn {
    background: #000;
    color: #fff;
}
.tm-card-buy-btn {
    background: #ff9933;
    color: #fff;
}
.tm-card-info-btn:hover,
.tm-card-buy-btn:hover { opacity: 0.85; }

/* Load More */
.tm-load-more-wrap { text-align: center; padding: 24px 0; }
.tm-load-more-btn {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 40px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.tm-load-more-btn:hover { background: #555; }
.tm-load-more-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ═══ SPONSORS ═══ */
.tm-sponsors-section {
    padding: 10px 15px;
    margin-top: 30px;
    overflow: hidden;
}
.tm-sponsors-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    align-items: center;
    gap: 40px;
    animation: sponsorScroll 20s linear infinite;
}
.tm-sponsors-track img {
    height: 150px;
    width: auto;
    opacity: 1;
    flex-shrink: 0;
    transition: opacity 0.3s, filter 0.3s;
}
@keyframes sponsorScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* ═══ FOOTER — pixel-perfect match, font Amiko, bg #090909 ═══ */
.tm-footer {
    background: #090909;
    color: #fff;
    font-family: 'Amiko', sans-serif;
    padding: 36px 0 0;
}
.tm-footer .tm-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 72px;
}
.tm-footer-grid {
    display: grid;
    grid-template-columns: 72fr 331fr 331fr 634fr 72fr;
    gap: 0;
    padding: 20px 0 0;
    align-items: start;
}
.tm-footer-col:nth-child(1) { grid-column: 2; grid-row: 1; }
.tm-footer-col:nth-child(2) { grid-column: 3; grid-row: 1; }
.tm-footer-col:nth-child(3) { grid-column: 4; grid-row: 1; justify-self: start; max-width: 330px; }
.tm-footer-col:nth-child(4) { grid-column: 4; grid-row: 1; justify-self: end; align-self: start; max-width: none; margin-top: 0; }
.tm-footer-col h4 {
    color: #fff;
    font-family: 'Amiko', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 14px;
    margin: 0 0 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
}
/* Icon + label rows */
.tm-footer-icon-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 7px;
}
.tm-footer-icon-row svg,
.tm-footer-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: #fff;
}
.tm-footer-sublabel,
.tm-footer-label {
    font-family: 'Amiko', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 21px;
    display: inline;
    margin: 0;
    margin-bottom: 8px;
}
.tm-footer-col p {
    font-family: 'Amiko', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    line-height: 19.2px;
    margin: 0 0 12px 26px;
}
.tm-footer-col a {
    display: block;
    font-family: 'Amiko', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    padding: 0;
    margin: 0 0 12px 26px;
    transition: color 0.2s;
}
.tm-footer-col a:hover { color: #F5A623; }
/* Third column */
.tm-footer-links {
    margin-bottom: 12px;
}
.tm-footer-links a {
    display: block;
    font-family: 'Amiko', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 13px;
    padding: 0 0 15px;
    margin: 0;
    transition: color 0.2s;
}
.tm-footer-links a:hover { color: #F5A623; }
.tm-footer-meta {
    margin-top: 15px;
    text-align: right;
}
.tm-footer-meta p {
    font-family: 'Amiko', sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px;
    line-height: 15.5px;
}
.tm-footer-meta a {
    font-family: 'Amiko', sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 15.5px;
}
.tm-footer-meta a:hover { color: #F5A623; }
.tm-footer-admin {
    display: block;
    text-align: right;
    font-family: 'Amiko', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-top: 20px;
    line-height: 14px;
}
/* Bottom bar — left-aligned like original */
.tm-footer-bottom {
    background: #090909;
    padding: 21px 15px;
    text-align: center;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
}
.tm-footer-bottom p {
    font-family: 'Amiko', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 24px;
    margin: 0;
}

/* ═══ OVERRIDES (moved from inline) ═══ */
.tm-banners { margin-top: 0; max-width: 87.5vw; }
.tm-events-section .tm-container { max-width: 84.7vw; padding: 0; }
.tm-footer { padding-top: 36px; }
.tm-footer-bottom { padding: 23px 15px; margin-top: 0; border-top: none; text-align: center; margin-left: -15px; margin-right: -15px; }
.tm-search-section .tm-container { max-width: 75vw; }
.tm-card-info-btn, .tm-card-buy-btn { font-family: "Lato", Arial, Helvetica, sans-serif; font-weight: 600; }
.tm-search-input { font-family: "Lato", Arial, Helvetica, sans-serif; max-width: none; }
.tm-search-btn { font-family: "Lato", Arial, Helvetica, sans-serif; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .tm-event-card { max-width: 33.333%; flex: 0 0 33.333%; }
    .tm-carousel img { border-radius: 20px; }
    .tm-carousel { border-radius: 20px; }
}
@media (max-width: 768px) {
    .tm-event-card { max-width: 50%; flex: 0 0 50%; }
    .tm-slide-pc { display: none !important; }
    .tm-slide-movil { display: block !important; }
    .tm-slide img { border-radius: 15px; }
    .tm-carousel { border-radius: 15px; }
    .tm-banners { padding: 0 15px; margin-top: -20px; }
    .tm-search-section { margin-top: -30px; padding: 0 15px; }
    .tm-search-bar {
        flex-wrap: wrap;
        border-radius: 16px;
        padding: 12px;
        gap: 8px;
        height: auto;
    }
    .tm-search-label { display: none; }
    .tm-search-divider:first-of-type { display: none; }
    .tm-search-category { flex: 1; min-width: 0; }
    .tm-search-input { flex-basis: 100%; order: 3; }
    .tm-search-btn { flex-basis: 100%; order: 4; border-radius: 10px; justify-content: center; }
    .tm-footer .tm-container { padding: 0 30px; }
    .tm-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .tm-footer-col:nth-child(1),
    .tm-footer-col:nth-child(2),
    .tm-footer-col:nth-child(3),
    .tm-footer-col:nth-child(4) {
        grid-column: auto; grid-row: auto; justify-self: center; text-align: center; max-width: 100%; width: 100%; margin: 0;
    }
    .tm-footer-col-payments { align-items: center !important; }
    .tm-footer-col-payments .tm-footer-payments { justify-content: center !important; }
    .tm-footer-col-inner { flex-direction: column; gap: 24px; }
    .tm-footer-meta { text-align: center !important; }
    .tm-footer-col p { margin-left: 0 !important; text-align: center; }
    .tm-footer-col a { margin-left: 0 !important; text-align: center; }
    .tm-footer-icon-row { justify-content: center; }
    .tm-footer-col h4 { text-align: center; }
    .tm-footer-meta p { font-size: 14px; }
    .tm-footer-meta a { font-size: 14px; }
}
@media (max-width: 480px) {
    .tm-event-card { max-width: 50%; flex: 0 0 50%; padding: 5px; }
    .tm-card-link { padding: 8px; }
    .tm-card-title { font-size: 14px; }
}
/* Footer icon specific class */

/* ═══ SEARCH TICKET ICON ═══ */
.tm-search-ticket-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.tm-search-ticket-icon svg {
    width: 20px;
    height: 20px;
}

/* ═══ FOOTER PAYMENTS (pixel-matched con Elementor target) ═══ */
.tm-footer-col-payments {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}
.tm-footer-payments {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    width: auto;
    justify-content: flex-end;
}
.tm-footer-payments:nth-child(2) { margin-top: 20px; }
.tm-footer-payments:first-child img {
    width: clamp(47px, 3.96vw - 10px, 250px);
    height: clamp(47px, 3.96vw - 10px, 250px);
    object-fit: contain;
    object-position: center;
}
.tm-footer-payments:nth-child(2) img {
    width: clamp(53px, 5.21vw - 22px, 250px);
    height: clamp(35px, 3.54vw - 16px, 150px);
    object-fit: contain;
    object-position: center;
}


/* Hamburger/bottom nav → ver sección NAVBAR REDESIGN al final del archivo */

/* ═══ PAYMENT LOGOS ═══ */
.tm-footer-payments {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0 10px;
    flex-wrap: wrap;
}
.tm-footer-payments img {
    height: 36px;
    width: auto;
    opacity: 0.9;
}

/* ═══ MOBILE RESPONSIVE OVERRIDES ═══ */
@media (max-width: 768px) {
    /* Header → ver sección NAVBAR REDESIGN al final del archivo */

    /* Search bar: compact horizontal like original — 42px height */
    .tm-search-section { margin-top: -20px; }
    .tm-search-bar {
        height: 42px;
        border-radius: 25px;
        padding: 0 4px 0 16px;
        gap: 8px;
    }
    .tm-search-label { display: none; }
    .tm-search-ticket-icon { display: none; }
    .tm-search-divider { display: none; }
    .tm-search-category { display: none; }
    .tm-search-input {
        flex: 1;
        max-width: none;
        height: 42px;
        font-size: 12px;
        padding: 0 8px;
        flex-basis: auto;
        order: 0;
    }
    .tm-search-btn {
        height: 34px;
        padding: 0 16px;
        font-size: 12px;
        border-radius: 20px;
        flex-basis: auto;
        order: 0;
    }

    /* Bottom nav + body padding → ver sección NAVBAR REDESIGN al final */

    /* WhatsApp button above bottom nav */
    a[href*="wa.me"] { bottom: 75px !important; }

    /* Cards: 2 columns on mobile */
    .tm-event-card { max-width: 50%; flex: 0 0 50%; }
}

/* ═══ FIX 20: MOBILE TOUCH TARGETS & SMALL SCREEN SUPPORT ═══ */

/* Min 44px touch targets on mobile for all interactive elements */
@media (max-width: 768px) {
    .tm-card-info-btn,
    .tm-card-buy-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .tm-header-icon {
        min-width: 44px;
        min-height: 44px;
    }
    .tm-hamburger {
        min-width: 44px;
        min-height: 44px;
    }
    .tm-carousel-btn {
        width: 44px;
        height: 44px;
        opacity: 1;
    }
    .tm-bottom-nav-item {
        min-height: 44px;
        min-width: 44px;
    }
    .tm-load-more-btn {
        min-height: 44px;
    }
    .tm-search-btn {
        min-height: 44px;
    }

    /* Responsive heading font sizes */
    .tm-card-title {
        font-size: 14px;
        line-height: 16px;
    }
    .tm-footer-col h4 {
        font-size: 13px;
        letter-spacing: 3px;
    }
}

/* Extra small screens: 320-480px */
@media (max-width: 480px) {
    .tm-banners {
        max-width: 100%;
        padding: 0 10px;
    }
    .tm-search-section {
        padding: 0 10px;
    }
    .tm-search-section .tm-container {
        max-width: 100%;
    }
    .tm-search-bar {
        padding: 0 4px 0 12px;
    }
    .tm-search-input {
        font-size: 13px;
        padding: 0 6px;
    }
    .tm-events-section {
        padding: 0 5px;
    }
    .tm-events-section .tm-container {
        max-width: 100%;
    }
    .tm-card-link {
        padding: 6px;
        border-radius: 14px;
    }
    .tm-card-image {
        border-radius: 14px;
    }
    .tm-card-title {
        font-size: 13px;
        line-height: 15px;
    }
    .tm-card-details li span {
        font-size: 11px;
    }
    .tm-card-info-btn,
    .tm-card-buy-btn {
        font-size: 12px;
        min-height: 44px;
        border-radius: 8px;
    }
    .tm-footer .tm-container {
        padding: 0 10px;
    }
    .tm-footer-col h4 {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 14px;
    }
    .tm-footer-sublabel,
    .tm-footer-label {
        font-size: 13px;
    }
    .tm-footer-col p,
    .tm-footer-col a {
        font-size: 11px;
    }
    .tm-sponsors-track img {
        height: 80px;
    }
}

/* Minimum 320px support */
@media (max-width: 360px) {
    .tm-event-card {
        max-width: 50%;
        flex: 1 1 0;
        padding: 3px;
    }
    .tm-card-link {
        padding: 5px;
    }
    .tm-card-title {
        font-size: 12px;
        line-height: 14px;
    }
    .tm-card-info-btn,
    .tm-card-buy-btn {
        font-size: 11px;
        padding: 8px 0;
    }
    .tm-search-bar {
        height: 40px;
    }
    .tm-search-btn {
        padding: 0 12px;
        font-size: 11px;
    }
}

/* ============================================================
   HOME MOBILE/TABLET IMPROVEMENTS (audit 2026-04-17)
   ============================================================ */

/* #1 Banner: full-width + taller aspect ratio on mobile */
@media (max-width: 768px) {
  .tm-banners { margin: 0 !important; padding: 0 12px !important; max-width: 100% !important; box-sizing: border-box !important; }
  .tm-banners .tm-container { max-width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .tm-carousel, .tm-carousel-track { border-radius: 0 !important; }
}

/* #2 WhatsApp button smaller on small screens, not overlapping footer */
@media (max-width: 480px) {
  a[href*="wa.me"] { width: 50px !important; height: 50px !important; right: 12px !important; }
  a[href*="wa.me"] svg { width: 28px !important; height: 28px !important; }
}

/* #4 Cards 1-column on very small screens */
@media (max-width: 340px) {
  .tm-event-card { max-width: 100% !important; flex: 0 0 100% !important; }
}

/* #5 Font-size minimum 12px on card metadata */
@media (max-width: 768px) {
  .tm-card-info-btn, .tm-card-buy-btn { font-size: 12px !important; }
}

/* #6 Input font-size 16px prevents iOS zoom */
.tm-search-input { font-size: 16px !important; }

/* #7 Card title 2 lines on mobile */
@media (max-width: 768px) {
  .tm-card-title {
    -webkit-line-clamp: 2 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
}

/* #8 Card body more padding */
@media (max-width: 768px) {
  .tm-card-body { padding: 6px 6px 4px !important; }
}

/* #9 Container wider on mobile (was 288px, wasting space) */
@media (max-width: 480px) {
  .tm-events-section .tm-container,
  .tm-search-section .tm-container { max-width: calc(100% - 24px) !important; margin: 0 !important; }
}
@media (min-width: 481px) and (max-width: 768px) {
  .tm-events-section .tm-container,
  .tm-search-section .tm-container { max-width: calc(100% - 32px) !important; margin: 0 16px !important; }
}

/* #10 Events section padding */
@media (max-width: 480px) {
  .tm-events-section { padding: 0 4px !important; margin-top: 8px !important; }
}

/* #11 Footer padding-bottom for bottom nav */
@media (max-width: 768px) {
  .tm-footer { padding-bottom: 24px !important; }
}

/* #17/#18 → bottom nav safe area en NAVBAR REDESIGN / card radius */
.tm-card-image img { border-radius: inherit; }

/* ============================================================
   MOBILE VISUAL POLISH (2026-04-17)
   ============================================================ */

/* Header + bottom nav → ver sección NAVBAR REDESIGN al final */

/* ── SEARCH BAR: prominent, rounded ── */
@media (max-width: 768px) {
  .tm-search-section {
    margin-top: -8px !important;
    padding: 0 12px !important;
    margin-bottom: 12px !important;
  }
  .tm-search-bar {
    height: 48px !important;
    border-radius: 14px !important;
    background: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
    padding: 0 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    transition: border-color 0.2s !important;
  }
  .tm-search-bar:focus-within {
    border-color: #7C3AED !important;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1) !important;
  }
  .tm-search-input {
    font-size: 15px !important;
    color: #1E293B !important;
  }
  .tm-search-input::placeholder { color: #94A3B8 !important; }
  .tm-search-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #7C3AED, #0085F2) !important;
    color: #fff !important;
    border: none !important;
  }
}

/* ── EVENT CARDS: elevated, rounded ── */
@media (max-width: 768px) {
  .tm-card-link {
    background: #fff !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
    transition: box-shadow 0.2s !important;
    padding: 0 !important;
  }
  .tm-card-image {
    border-radius: 14px 14px 0 0 !important;
    overflow: hidden !important;
  }
  .tm-card-image img {
    border-radius: 0 !important;
    width: 100% !important;
  }
  .tm-card-body {
    padding: 10px 10px 8px !important;
  }
  .tm-card-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1E293B !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }
  .tm-card-details {
    margin-bottom: 6px !important;
  }
  .tm-card-details li {
    font-size: 11px !important;
    color: #64748B !important;
    line-height: 1.4 !important;
  }
  .tm-card-actions {
    display: flex !important;
    gap: 6px !important;
    padding: 0 !important;
  }
  .tm-card-info-btn,
  .tm-card-buy-btn {
    flex: 1 !important;
    height: 36px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
  }
  .tm-card-info-btn {
    background: #F1F5F9 !important;
    color: #475569 !important;
    border: none !important;
  }
  .tm-card-buy-btn {
    background: linear-gradient(135deg, #F97316, #EA580C) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(249,115,22,0.25) !important;
  }
}

/* ── EVENTS GRID: better spacing ── */
@media (max-width: 768px) {
  .tm-events-grid {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 2px !important;
  }
  .tm-event-card {
    padding: 0 !important;
  }
}

/* ── SECTION HEADINGS ── */
@media (max-width: 768px) {
  .tm-events-heading,
  .tm-section-heading {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    margin: 16px 0 10px !important;
    padding: 0 4px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   HEADER & NAVIGATION — fuente única de verdad
   Desktop: logo izq + nav links (Boletos + Panel) + lupa
   Mobile: header solo logo centrado + bottom nav 3 items
   ═══════════════════════════════════════════════════════════ */

/* ── Base / Desktop ── */
.tm-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.tm-header .tm-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}
.tm-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}
.tm-logo img {
    height: 36px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    object-position: left center;
    display: block;
}
.tm-header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.tm-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    height: 38px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #3d3d4e;
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
}
.tm-nav-link:hover {
    background: #f4f4f8;
    color: #1a1a2e;
    text-decoration: none;
}
.tm-nav-link--panel {
    background: linear-gradient(135deg, #7C3AED, #9769ff);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(124,58,237,0.22);
}
.tm-nav-link--panel:hover {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(124,58,237,0.35);
}
.tm-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #555;
    cursor: pointer;
    transition: background 0.18s;
    flex-shrink: 0;
}
.tm-header-icon:hover { background: #f4f4f8; color: #1a1a2e; }

/* Bottom nav: oculto en desktop */
.tm-bottom-nav { display: none; }
.tm-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #94A3B8;
    text-decoration: none;
    font-weight: 600;
    font-size: 10.5px;
    flex: 1;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}
.tm-bottom-nav-item.active { color: #7C3AED; }
.tm-bottom-nav-item svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
    /* Header: solo logo centrado */
    .tm-header {
        box-shadow: 0 1px 6px rgba(0,0,0,0.07) !important;
    }
    .tm-header .tm-container {
        height: 46px !important;
        padding: 0 16px !important;
        justify-content: center !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    .tm-logo {
        justify-content: center !important;
        margin: 0 !important;
    }
    .tm-logo img {
        height: 32px !important;
        width: auto !important;
        max-width: 170px !important;
    }
    /* Ocultar todo salvo el logo */
    .tm-header-nav { display: none !important; }
    .tm-hamburger { display: none !important; }
    .tm-header-actions { display: none !important; }

    /* Bottom nav — misma estructura que panel TicketMax */
    .tm-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff !important;
        z-index: 1000 !important;
        justify-content: space-around !important;
        align-items: center !important;
        height: calc(56px + env(safe-area-inset-bottom)) !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
        border-top: 1px solid #e8e8e8 !important;
        box-sizing: border-box !important;
    }
    .tm-bottom-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
        height: 100% !important;
        gap: 2px !important;
        color: #999 !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        line-height: 1 !important;
        transition: color 0.15s !important;
        padding: 0 !important;
    }
    .tm-bottom-nav-item .tm-ni { font-size: 20px !important; }
    .tm-bottom-nav-item.active { color: #7C3AED !important; }
    .tm-bottom-nav-item span {
        font-size: 11px !important;
        font-weight: 500 !important;
        line-height: 1 !important;
    }

    /* Body padding para que el contenido no quede detrás del bottom nav */
    body {
        padding-bottom: calc(56px + env(safe-area-inset-bottom)) !important;
    }
    /* WhatsApp sobre bottom nav */
    a[href*="wa.me"] { bottom: 60px !important; }
}
