@font-face {
    font-family: 'titulo_logo';
    src: url('../fonts/Fluox.woff2') format('woff2');
    /* Formato principal */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- VARIABLES --- */
:root {
    --bg-primary: #233D4C;
    --bg-secondary: #1A2E3A;
    --accent: #FD802E;
    /* PUMPKIN */
    --accent-hover: #E06A1E;
    --text-main: #F7F7FA;
    --text-muted: #F7F7FA;
    --card-bg: #F7F7FA;
    --card-text: #233D4C;
    --header-height: 120px;
    --header-height-mobile: 100px;

    /* Variables para el Hero (usando el color acento del tema) */
    --neon-cian: var(--accent);
    --neon-glow: 0 0 15px rgba(253, 128, 46, 0.4);
}

/* --- BASES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estructura Base */
body {
    font-family: 'Bricolage Grotesque', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* El contenido principal debe crecer para empujar el footer */
main,
.main-content,
.container,
.event-detail-wrapper,
.dashboard-container {
    flex: 1;
}

h1,
h2,
h3 {
    font-family: 'Unbounded', sans-serif;
    /*font-family: 'titulo_logo', sans-serif;*/
    font-weight: 800;
    margin: 20px 0 10px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- HEADER FIJO --- */
header {
    position: fixed;
    /* Fijo arriba */
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    padding: 0 5% 0 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    background: rgba(35, 61, 76, 0.5);
    /* Casi opaco */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-name {
    display: inline-block;
    vertical-align: middle;
}

.brand-container img {
    max-height: 70px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo span {
    color: var(--accent);
}

.brand-name-white {
    color: white;
}

.brand-name-accent {
    color: var(--accent);
}

/* Menú Desktop */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    /* Evitar que "Mi Panel" se parta en dos líneas */
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-link-bold {
    font-weight: 600;
}

.nav-links a.active:not(.events-btn) {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
    background-color: transparent !important;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 0 10px var(--accent);
}

/* Para el botón de login si está activo */
.nav-links a.events-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 10px var(--accent);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.user-greeting {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid var(--accent);
}

.user-logout {
    color: var(--accent);
    font-weight: 600;
}

.btn-login {
    padding: 8px 15px;
    font-size: 0.85rem;
}

.nav-register {
    color: white;
    font-weight: 600;
}

/* Botón Hamburguesa */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 1100;
    position: relative;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

/* Overlay oscuro para el menú móvil */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Header DE PÁGINA --- */
.page-header {
    padding: 20px;
    /* Reducido: menos espacio arriba y abajo */
    text-align: center;
    background: transparent;
    background-color: var(--bg-primary);
}

.page-header img {
    max-width: 400px;
    margin: 0 0 20px 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
    color: var(--text-main);
}

.page-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(7, 7, 8, 0.4), rgba(7, 7, 8, 0.7)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 90%;
    padding: 0 40px;
    z-index: 10;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 10vw, 5rem);
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: -2px;
    /*text-transform: uppercase;*/
}

.hero-content .highlight {
    color: var(--neon-cian);
    text-shadow: var(--neon-glow);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    border: 2px solid var(--neon-cian);
    padding: 15px 35px;
    border-radius: 50px;
    color: var(--neon-cian);
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--neon-glow);
}

.hero-cta:hover {
    background: var(--neon-cian);
    color: black;
    box-shadow: 0 0 30px var(--neon-cian);
}

.section-title-wrap {
    padding: 0 40px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2rem;
    color: white;
}

/* --- LOCALES --- */
.date-ticket-row {
    margin: 30px 0;
}

/* --- GRID DE EVENTOS --- */
/* --- CONTENEDOR PRINCIPAL --- */
.events-container {
    padding: 40px 0 60px;
    width: 100%;
    max-width: 90%;
    margin: 15px auto;
    flex: 1;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    padding: 0 15px;
}

.featured-titles h2 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--text-main);
}

.featured-titles p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 10px 0;
}

.view-all-link {
    color: var(--accent);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.view-all-link span {
    font-size: 20px;
    transition: transform 0.3s;
}

.view-all-link:hover span {
    transform: translateX(5px);
}

/* --- GRID DE EVENTOS --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    gap: 30px;
    width: 100%;
    justify-content: center;
    padding: 0 15px;
}

/* --- TARJETA DE EVENTO --- */
.events-card {
    background: #FFFFFF;
    border-radius: 15px;
    overflow: hidden;
    color: #1A2E3A;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
    border: 1px solid rgba(35, 61, 76, 0.05);
    margin: 20px 0;
}

.events-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* --- IMAGEN CON BADGE --- */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.events-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.events-card:hover .events-image {
    transform: scale(1.05);
}

.event-date-badges-container {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 2;
    max-width: calc(100% - 30px);
}

.event-date-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 6px 8px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    min-width: 45px;
    transition: transform 0.2s;
}

.event-date-badge:hover {
    transform: scale(1.1);
    z-index: 3;
}

.event-date-badge .month {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1px;
}

.event-date-badge .day {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--bg-primary);
    line-height: 1;
}

.events-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.events-details h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: var(--bg-primary);
    font-family: 'Unbounded', sans-serif;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.event-location a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #667085;
    transition: color 0.3s ease;
}

.event-location a:hover {
    color: var(--accent);
}

.events-btn {
    background-color: var(--accent);
    color: white;
    display: inline-block;
    width: auto;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    margin-top: auto;
    border: none;
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

.btn-full {
    display: block;
    width: 100%;
}

/* Forzamos 100% en tarjetas de grid */
.events-card .events-btn {
    width: 100%;
    display: block;
}

.events-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 128, 46, 0.4);
    color: white;
}

.description-text {
    line-height: 1.8rem;
    text-align: justify;
}

/* --- FOOTER --- */
footer {
    background-color: var(--bg-secondary);
    padding: 60px 5% 20px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    text-align: left;
}

.footer-column h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: 'Unbounded', sans-serif;
    margin-top: 0;
}

.footer-column p {
    color: rgba(247, 247, 250, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-logo {
    max-height: 60px;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-socials a {
    position: relative;
    display: inline-block;
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.footer-socials a:hover {
    transform: scale(1.1);
}

.footer-socials a img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.footer-socials a .img-hover {
    opacity: 0;
}

.footer-socials a:hover .img-normal {
    opacity: 0;
}

.footer-socials a:hover .img-hover {
    opacity: 1;
}

/* --- RRSS VENUES --- */
.venue-socials {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.venue-socials a {
    position: relative;
    display: inline-block;
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.venue-socials a:hover {
    transform: scale(1.1);
}

.venue-socials a img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.venue-socials a .img-hover {
    opacity: 0;
}

.venue-socials a:hover .img-normal {
    opacity: 0;
}

.venue-socials a:hover .img-hover {
    opacity: 1;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: rgba(247, 247, 250, 0.7);
    transition: 0.3s;
    display: inline-block;
}

.footer-column ul a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-cta-btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.3s;
    text-align: center;
}

.footer-cta-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(253, 128, 46, 0.4);
    color: white;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(247, 247, 250, 0.5);
}

/* --- RESPONSIVE FOOTER --- */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-column ul a:hover {
        transform: none;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    :root {
        --header-height: var(--header-height-mobile);
    }

    header {
        padding: 0 5%;
    }

    .brand-container img {
        max-width: 70%;
    }

    .hamburger {
        display: flex;
        z-index: 1100;
    }

    .nav-overlay {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(75%, 320px);
        height: 100dvh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
        padding: 30px 20px;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-user {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .nav-links.active {
        right: 0;
    }

    /* Animación hamburguesa: 3 barras → X */
    .hamburger.toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(-45deg);
    }

    .hamburger.toggle .bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hamburger.toggle .bar:nth-child(3) {
        transform: translateY(-8px) rotate(45deg);
    }

    /* La 4ª barra se oculta siempre en la animación X */
    .hamburger.toggle .bar:nth-child(4) {
        opacity: 0;
        transform: scaleX(0);
    }

    /* Comunes página */
    .page-header h1 {
        font-size: 2rem;
    }
    .page-header img {
        max-width: 80%;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-cta {
        border-radius: 15px;
    }

    .featured-titles h2 {
        font-size: 2rem;
    }

    .event-container {
        flex-direction: column;
    }

    .event-image {
        flex: 0 !important;
    }

    .event-details {
        flex: 0 !important;
    }

    .featured-header {
        flex-direction: column;
    }
    .grouped-show-row {
        flex-direction: column;
    }
}

.events-grid {
    width: 100%;
}
.no-events {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

/* --- APLICA EL GRID AL DIV INTERNO --- */
.grid-eventos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    justify-content: center;
    gap: 30px;
    width: 100%;
}

/* --- CONTENEDOR PRINCIPAL DETALLE --- */
.event-detail-wrapper {
    width: 1280px;
    max-width: 90%;
    margin: 40px auto;
    padding: 0;
    color: var(--text-main);
}

/* --- SECCIÓN SUPERIOR (HEADER DEL EVENTO) --- */
.event-header-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 50% imagen, 50% info */
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.event-hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    aspect-ratio: 4/3;
}

.event-info-panel h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.info-row {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.info-row .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.info-row .value {
    font-size: 1.1rem;
    font-weight: 600;
}

.date-text {
    margin: 20px 0;
}

/* Bloque de Precio */
.price-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.price-tag .value {
    font-size: 2rem;
    color: var(--accent);
    font-weight: 800;
}

.management-fee {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stock-alert {
    font-size: 0.9rem;
    color: #4ade80;
    /* Verde brillante */
    font-weight: 600;
}

/* Botón de Compra */

.checkout-confirm-btn {
    margin: 20px 0;
    width: 100%;
}

.btn-buy {
    width: 100%;
    padding: 18px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.btn-buy:hover {
    background-color: #ff6b81;
    transform: translateY(-2px);
}

.agotadas {
    color: red;
    cursor: not-allowed;
}

.divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

/* --- SECCIÓN INFERIOR (ZONA A y B) --- */
.event-content-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Zona A: Slider */
.zone-a-slider {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16/9;
    /* Formato panorámico */
    background: #000;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Botones del Slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 6px;
    transition: 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--accent);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* Zona B: Descripción */
.zone-b-description h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.zone-b-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: justify;
}

/* --- ADDED CLASSES FOR REFACTORING --- */
.event-short-desc-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.event-date-accent {
    color: var(--accent);
}

.event-hero-short-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -10px;
    margin-bottom: 20px;
}

.date-ticket-grid {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-text-bold {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
}

.venue-link-muted {
    color: inherit;
    text-decoration: underline;
}

.buy-btn-fixed {
    padding: 10px 20px;
}

.badge-sold-out {
    padding: 10px;
}

.venue-long-desc-container {
    margin-bottom: 30px;
    line-height: 1.6;
}

.venue-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.venue-gallery-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

/* --- LEGAL / CONTENEDOR BÁSICO --- */
.container {
    flex: 1;
    width: 1280px;
    max-width: 90%;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    color: var(--card-text);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .event-header-section {
        grid-template-columns: 1fr;
        /* Una sola columna */
        gap: 20px;
    }

    .event-info-panel h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    .info-row {
        align-items: center;
        text-align: center;
    }

    .price-section {
        text-align: center;
    }

    .price-tag {
        justify-content: center;
        gap: 15px;
    }

    .zone-a-slider {
        aspect-ratio: 4/3;
        /* Más cuadrado en móvil */
    }

    /* Unificar contenedores en móvil */
    .events-container,
    .event-detail-wrapper,
    .container {
        width: 100%;
        max-width: 90%;
        padding-left: 20px;
        padding-right: 20px;
        margin-top: 20px;
    }

    .date-ticket-grid {
        flex-direction: column;
        padding-bottom: 40px;
    }
}

/* --- AUTH (LOGIN / REGISTER) --- */
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Bricolage Grotesque', sans-serif;
    color: var(--bg-primary);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.alert-error {
    background: #fee;
    color: #c00;
    border-left: 5px solid #c00;
}

.alert-success {
    background: #efe;
    color: #271;
    border-left: 5px solid #271;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.auth-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.auth-input:focus {
    border-color: var(--accent);
    outline: none;
}

/* --- NEW UTILITY CLASSES --- */
.btn-disabled-block {
    opacity: 0.6;
    cursor: not-allowed;
    text-align: center;
    display: block;
    background: #666 !important;
}

.qr-box-white {
    background: white;
    padding: 10px;
    border: 1px solid #ddd;
    display: inline-block;
}

.ticket-used-badge {
    background: #f44336;
    color: white;
    padding: 5px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 13px;
}

.dates-selector-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent);
    text-transform: uppercase;
    font-family: 'Unbounded', sans-serif;
}

.text-muted-small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.events-card-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.events-date-accent {
    color: var(--accent);
}

.text-center-mt-20 {
    text-align: center;
    margin-top: 20px;
}

.btn-auto-pad {
    display: inline-block;
    width: auto;
    padding: 12px 30px;
}

.w-300 {
    max-width: 300px;
}

.p-10 {
    padding: 10px;
}

.p-10-20 {
    padding: 10px 20px;
}

.m-0 {
    margin: 0;
}

.text-dark {
    color: var(--bg-primary);
}

.flex-gap-20-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.min-w-250 {
    min-width: 250px;
}

.dashed-box {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    border: 1px dashed #ccc;
}

.large-status-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.status-valid {
    color: #27ae60;
}

.status-invalid {
    color: #e74c3c;
}

.w-full {
    width: 100%;
}

.flex-row-gap-10 {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.label-bold-muted {
    font-weight: bold;
    color: #555;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
}

.auth-footer-text {
    text-align: center;
    margin-top: 30px;
    color: #777;
}

.auth-link:focus {
    color: var(--accent-hover);
}

/* --- PDF/BLOCK UTILITY CLASSES --- */
.pdf-table-footer {
    border-top: 1px solid #000;
    margin-top: 10mm;
}

.pdf-td-9pt {
    font-size: 9pt;
}

.pdf-text-8pt-muted {
    font-size: 8pt;
    color: #666;
}

.pdf-td-pub-sidebar {
    border-left: 1px solid #000;
    padding-left: 10px;
    text-align: center;
    font-size: 8pt;
    color: #555;
}

.pdf-table-instr {
    border: 1px solid #000;
    margin-top: 10mm;
}

.pdf-td-instr {
    font-size: 10pt;
    line-height: 1.5;
}

.pdf-title-instr {
    font-size: 12pt;
    font-weight: bold;
}

.pdf-text-dark-gray {
    color: var(--bg-primary);
}

.pdf-pub-premium-container {
    border: 2px solid #ddd;
    text-align: center;
    padding: 60px;
    margin-top: 10mm;
    background-color: #f9f9f9;
}

.pdf-pub-title-premium {
    font-size: 28pt;
    font-weight: bold;
    color: var(--bg-primary);
}

.pdf-pub-subtitle {
    font-size: 20pt;
    color: #666;
    margin-top: 10px;
}

.pdf-pub-text-muted-mt20 {
    font-size: 14pt;
    color: #999;
    margin-top: 20px;
}

/* --- CHECKOUT --- */
.checkout-container {
    width: 1280px;
    max-width: 90%;
    margin: 40px auto;
    color: var(--bg-primary);
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.checkout-success-view {
    text-align: center;
    padding: 40px;
}

.checkout-success-icon {
    font-size: 5rem;
    color: #2ecc71;
    margin-bottom: 20px;
}

.checkout-success-title {
    color: #2c3e50;
}

.checkout-success-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.checkout-order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #eee;
    text-align: left;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    display: inline-block;
}

.checkout-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-prompt-login {
    background: #fff9f4;
    border: 1px solid #ffe8d6;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.checkout-prompt-login h3 {
    margin-top: 0;
    color: #d35400;
    font-size: 1.2rem;
}

.checkout-prompt-login .events-btn {
    display: inline-block;
    margin-top: 10px;
}

.checkout-prompt-register {
    background: #f4f9ff;
    border: 1px solid #d6eaff;
    padding: 25px;
    border-radius: 10px;
}

.checkout-prompt-register h3 {
    margin-top: 0;
    color: #2980b9;
    font-size: 1.2rem;
}

.checkout-prompt-register .auth-link {
    display: inline-block;
    margin-top: 10px;
}

.checkout-user-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.checkout-user-box h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.checkout-form {
    margin-top: 30px;
}

.checkout-form-group {
    margin-bottom: 25px;
}

.checkout-form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.checkout-qty-select {
    width: 100px;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #ddd;
    font-size: 1.1rem;
}

.checkout-total-box {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid var(--accent);
    margin-bottom: 25px;
}

.checkout-total-label {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.checkout-total-amount {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.checkout-terms {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.checkout-terms a {
    text-decoration: underline;
}



.checkout-sidebar {
    position: sticky;
    top: 140px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.checkout-sidebar-header {
    height: 150px;
    background: #233d4c;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.checkout-sidebar-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.checkout-sidebar-body {
    padding: 20px;
}

.checkout-sidebar-label {
    margin: 0;
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
}

.checkout-sidebar-title {
    margin: 5px 0 15px;
    font-size: 1.2rem;
    line-height: 1.3;
}

.checkout-sidebar-meta {
    margin: 5px 0;
    font-size: 0.95rem;
}

.checkout-sidebar-price-breakdown {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dotted #ccc;
}

.checkout-sidebar-price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.checkout-sidebar-fee-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

.checkout-sidebar-total-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: var(--bg-primary);
}

/* --- DETALLE LOCAL GROUPED SHOWS --- */
.grouped-show-row {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.grouped-show-title {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--accent);
}

.grouped-show-meta {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
}

.grouped-show-action {
    text-align: right;
}

.grouped-show-price {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn-small {
    padding: 8px 15px;
    display: inline-block;
}

.venue-info-card {
    line-height: 2rem;
}

.map-action-container {
    margin: 20px 0;
}

/* --- CUSTOMER DASHBOARD --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.dashboard-title {
    margin: 0;
    font-family: 'Bricolage Grotesque', sans-serif;
    color: var(--text-main);
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin: 30px 0;
}

.dashboard-section-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #2c3e50;
}

.dashboard-empty-state {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

.dashboard-empty-text {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.dashboard-order-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-order-item {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: opacity 0.3s ease;
}

.dashboard-order-item.past-event {
    background: #fdfdfd;
    opacity: 0.7;
}

.dashboard-order-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.dashboard-badge {
    background: #2ecc71;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.dashboard-badge.past {
    background: #ccc;
}

.dashboard-order-id {
    color: #888;
    font-size: 0.9rem;
}

.dashboard-order-title {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    color: var(--bg-primary);
}

.dashboard-order-details {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.dashboard-order-actions {
    text-align: right;
}

.dashboard-order-qty {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent);
}

.btn-dark {
    background: #34495e;
}

.btn-dark:hover {
    background: #2c3e50;
}

/* --- TICKET DETAILS --- */
.dashboard-back-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    justify-content: center;
    gap: 20px;
}

.ticket-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #eee;
}

.ticket-header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.ticket-header-title {
    margin: 0;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.1rem;
}

.ticket-body {
    padding: 20px;
}

.ticket-event-title {
    margin: 0 0 10px 0;
    color: var(--accent);
    font-size: 1.2rem;
}

.ticket-info-line {
    margin: 5px 0;
    color: #555;
    font-size: 0.95rem;
}

.ticket-info-line.last {
    margin-bottom: 15px;
}

.ticket-id-box {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px dashed #ccc;
}

.ticket-id-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

.ticket-id-value {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--bg-primary);
}

.btn-block {
    display: block;
    text-align: center;
    padding: 12px;
    margin-bottom: 10px;
}

.dashboard-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    flex: 1;
}

/* --- CONTACTO --- */
.contact-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    flex: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    color: var(--text-main);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-main);
    /* max-width: 600px; */
    margin: 0 auto;
}

.contact-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contact-success-view {
    padding: 60px 40px;
    text-align: center;
}

.contact-success-icon {
    font-size: 5rem;
    color: #2ecc71;
    margin-bottom: 20px;
}

.contact-success-title {
    color: #2c3e50;
    font-family: 'Bricolage Grotesque', sans-serif;
}

.contact-success-text {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.contact-form-section {
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .contact-form-row {
        grid-template-columns: 1fr;
    }
}

.contact-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.contact-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.contact-input:focus {
    border-color: var(--accent);
    outline: none;
}

.contact-select {
    background: white;
    cursor: pointer;
}

.contact-textarea {
    font-family: inherit;
    resize: vertical;
}

.contact-btn {
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
    width: 100%;
}

.contact-info-section {
    background: #2c3e50;
    color: white;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1.4fr 1fr;
    }

    .contact-card {
        flex-direction: row;
    }

    .contact-info-section {
        text-align: left;
        border-radius: 0;
        padding: 50px;
    }

    .contact-info-item {
        margin: 15px 0;
        font-size: 1.05rem;
    }
}

@media (max-width: 991px) {
    .contact-info-section {
        border-radius: 0 0 12px 12px;
    }
}

.contact-info-title {
    margin-top: 0;
    color: var(--accent);
    font-family: 'Bricolage Grotesque', sans-serif;
}

.contact-info-item {
    margin: 10px 0;
}

.contact-info-note {
    margin: 10px 0;
    font-size: 0.9rem;
    color: #aaa;
}

.contact-footer-text {
    margin-top: 25px;
    text-align: center;
    font-size: 0.95rem;
    color: #666;
}

.contact-link-highlight {
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.contact-link-highlight:hover {
    text-decoration: underline;
}

/* --- TICKET PRINT VIEW --- */
.ticket-print-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    width: 100%;
    flex: 1;
}

.ticket-print-container {
    width: 100%;
    max-width: 800px;
}

.action-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.action-bar-btn-group {
    display: flex;
    gap: 10px;
}

.ticket-wrapper {
    background: white;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    position: relative;
}

.ticket-left {
    background: #2c3e50;
    color: white;
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* Dotted line separation */
.ticket-left::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    border-right: 2px dashed rgba(255, 255, 255, 0.3);
}

.ticket-right {
    background: #fff;
    padding: 30px;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ticket-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    margin: 0 0 15px 0;
    font-size: 1.8rem;
    color: #ff5722;
}

.ticket-meta {
    margin: 10px 0;
    font-size: 1.1rem;
}

.qr-container {
    margin-bottom: 15px;
}

.qr-container img {
    max-width: 150px;
}

.ticket-id {
    font-family: monospace;
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
    background: #eee;
    padding: 5px 10px;
    border-radius: 5px;
}

.ticket-logo {
    width: 200px;
    margin-bottom: 20px;
    /* filter: brightness(0) invert(1); */
}

.ticket-meta-label {
    color: #bbb;
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.ticket-venue-address {
    font-size: 0.95rem;
    color: #ddd;
}

.ticket-buyer-info {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.ticket-buyer-text {
    margin: 0;
    font-size: 0.9rem;
    color: #bbb;
}

.ticket-buyer-text.mt-5 {
    margin-top: 5px;
}

.ticket-valid-tag {
    color: #ff5722;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- GDPR / RGPD --- */
.gdpr-info-box {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

.gdpr-info-box strong {
    color: var(--bg-primary);
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.auth-card .gdpr-info-box,
.contact-card .gdpr-info-box {
    background: #f1f3f5;
    color: #495057;
}

.gdpr-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    cursor: pointer;
    color: #555;
}

.form-checkbox-group {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-checkbox-group .gdpr-checkbox-container:last-child {
    margin-bottom: 0;
}

.gdpr-checkbox-container input {
    margin-top: 4px;
}

.gdpr-link {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

/* Ocultar botones y header/footer al imprimir */
@media print {
    body {
        background: white;
        padding: 0;
    }

    header,
    footer,
    .action-bar {
        display: none !important;
    }

    main {
        padding-top: 0 !important;
    }

    .ticket-wrapper {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

@media (max-width: 768px) {
    .ticket-wrapper {
        flex-direction: column;
    }

    .ticket-left::after {
        display: none;
    }

    .ticket-right {
        width: auto;
        border-top: 2px dashed #ccc;
        padding: 40px 20px;
    }

    .action-bar {
        flex-direction: column;
        gap: 10px;
    }

    .action-bar .events-btn {
        width: 100%;
        text-align: center;
    }

    .dashboard-order-item {
        flex-direction: column;
    }
}


/* --- ERROR MESSAGES --- */
.error-container {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    max-width: 600px;
    margin: 40px auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-container h2 {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 20px;
}

.error-container p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.error-container .events-btn {
    display: inline-block;
}

/* --- PASSWORD VALIDATION STYLES --- */
.password-feedback {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.strength-meter {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.feedback-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.strength-weak {
    background-color: #ff4d4d;
    width: 25% !important;
}

.strength-fair {
    background-color: #ffa500;
    width: 50% !important;
}

.strength-good {
    background-color: #2ecc71;
    width: 75% !important;
}

.strength-strong {
    background-color: #27ae60;
    width: 100% !important;
}

.text-weak {
    color: #ff4d4d;
}

.text-fair {
    color: #ffa500;
}

.text-good {
    color: #2ecc71;
}

.text-strong {
    color: #27ae60;
}

.match-success {
    color: #2ecc71;
}

.match-error {
    color: #ff4d4d;
}

.mt-2 {
    margin-top: 8px;
}

/* --- ALERTS --- */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* --- NEWSLETTER --- */
.nl-provinces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.nl-province-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    color: var(--bg-primary);
    border: 1px solid #ddd;
}

.nl-province-item:hover {
    background: #f1f3f5;
    border-color: var(--accent);
}

.nl-province-item input {
    cursor: pointer;
}

.nl-province-selected {
    background: rgba(253, 128, 46, 0.05);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.nl-provinces-hint {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 5px;
}

.nl-provinces-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.nl-action-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.nl-action-btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.nl-action-btn:hover {
    filter: brightness(1.1);
}

.nl-count-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.nl-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.nl-status-text {
    margin: 0;
    font-weight: 500;
}

.nl-status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.nl-badge-active {
    background: #dcfce7;
    color: #15803d;
}

.nl-badge-inactive {
    background: #fee2e2;
    color: #b91c1c;
}

.nl-provinces-summary {
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
}

.nl-promo-text {
    margin-bottom: 15px;
    color: #666;
}

.nl-client-form {
    margin-top: 20px;
}

.nl-form-group {
    margin-bottom: 1.5rem;
}

.nl-actions-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.5rem;
}

.contact-link-highlight {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

.nl-container-narrow {
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.nl-helper-text {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}