/* =====================================================
   VARIABLES GENERALES
   ===================================================== */

:root {
    --primary: #6d5dfc;
    --primary-dark: #5143d9;
    --ink: #1f2340;
    --muted: #73778c;
    --surface: #ffffff;
    --page: #f6f7fb;
    --border: #e8e9f1;
    --danger: #c6374e;
    --shadow: 0 18px 50px rgba(35, 30, 80, 0.09);
    --radius: 22px;
}

/* =====================================================
   ESTILOS GENERALES
   ===================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background-color: var(--page);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
}

a {
    text-decoration: none;
}

.btn {
    padding: 0.72rem 1rem;
    border-radius: 13px;
    font-weight: 700;
}

.btn-primary {
    border-color: var(--primary);
    background-color: var(--primary);
    box-shadow: 0 10px 24px rgba(109, 93, 252, 0.22);
}

    .btn-primary:hover,
    .btn-primary:focus {
        border-color: var(--primary-dark);
        background-color: var(--primary-dark);
    }

    .btn-primary:focus {
        box-shadow: 0 0 0 0.22rem rgba(109, 93, 252, 0.18);
    }

/* =====================================================
   ESTRUCTURA PRINCIPAL
   ===================================================== */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-main {
    width: calc(100% - 255px);
    margin-left: 255px;
    transition: width .25s ease, margin-left .25s ease;
}

body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
}

body.sidebar-collapsed .app-main {
    width: 100%;
    margin-left: 0;
}

/* =====================================================
   SIDEBAR
   ===================================================== */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: 255px;
    padding: 24px 16px;
    overflow-y: auto;
    background-color: #17182d;
    color: #ffffff;
    transition: transform 0.25s ease;
}

.sidebar-backdrop {
    position: fixed;
    z-index: 1035;
    inset: 0;
    display: none;
    padding: 0;
    border: 0;
    background: rgba(8, 10, 25, .55);
    opacity: 0;
    cursor: default;
    transition: opacity .2s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 28px;
    color: #ffffff;
}

    .brand:hover {
        color: #ffffff;
    }

.brand-mark,
.login-logo {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    border-radius: 15px;
    background: linear-gradient(135deg, #8a7cff, #ff7ead);
    box-shadow: 0 12px 28px rgba(109, 93, 252, 0.32);
}

.brand strong {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
}

.brand small {
    display: block;
    color: #a9abc0;
    font-size: 0.72rem;
}

.app-nav {
    display: grid;
    gap: 7px;
}

    .app-nav a {
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 12px 14px;
        border-radius: 13px;
        color: #adb0c4;
        font-weight: 600;
        transition: color 0.2s ease, background-color 0.2s ease;
    }

        .app-nav a:hover,
        .app-nav a.active {
            background-color: rgba(255, 255, 255, 0.1);
            color: #ffffff;
        }

        .app-nav a.active {
            background: linear-gradient(135deg, var(--primary), #8f67f8);
        }

    .app-nav i {
        width: 20px;
        text-align: center;
    }

/* =====================================================
   TOPBAR
   ===================================================== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    height: 76px;
    padding: 0 28px;
    border-bottom: 1px solid var(--border);
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
}

.icon-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background-color: #f0f1f7;
    color: var(--ink);
    transition: color 0.2s ease, background-color 0.2s ease;
}

    .icon-button:hover {
        background-color: #e7e5ff;
        color: var(--primary);
    }


.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

    .topbar-actions form {
        margin: 0;
    }

.user-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 5px;
    padding: 5px 8px;
    border-radius: 12px;
    color: var(--ink);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.user-badge:hover {
    background: #f0eeff;
    color: var(--primary);
}

.avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #efeefe;
    color: var(--primary);
    font-weight: 800;
}

/* =====================================================
   CONTENIDO
   ===================================================== */

.content-wrap {
    width: 100%;
    max-width: 1500px;
    margin: auto;
    padding: 30px;
}

/* =====================================================
   ENCABEZADO DEL DASHBOARD
   ===================================================== */

.hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 34px;
    border-radius: var(--radius);
    background: radial-gradient( circle at 86% 15%, rgba(255, 255, 255, 0.23), transparent 22% ), linear-gradient( 130deg, #6053e7, #9c64e8 60%, #e67ca8 );
    color: #ffffff;
    box-shadow: var(--shadow);
}

.dashboard-evento {
    background:
        radial-gradient(circle at 86% 15%, rgba(255, 255, 255, .24), transparent 22%),
        linear-gradient(130deg, var(--evento-color, #6053e7), #9c64e8 62%, #e67ca8);
}

.dashboard-sin-evento {
    display: flex;
    align-items: center;
    gap: 18px;
}

.dashboard-sin-evento h1,
.dashboard-sin-evento p { margin: 4px 0 0; }
.dashboard-sin-evento .btn { margin-left: auto; }

    .hero-card h1 {
        margin: 0.25rem 0 0.45rem;
        font-size: 2.05rem;
    }

    .hero-card p {
        margin: 0;
        color: rgba(255, 255, 255, 0.83);
    }

.eyebrow {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

/* =====================================================
   TARJETAS DE ESTADÍSTICAS
   ===================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 22px 0;
}

.stat-card,
.content-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--surface);
    box-shadow: 0 8px 28px rgba(34, 38, 70, 0.05);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
}

.dashboard-stat-link,
.dashboard-step-link {
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dashboard-stat-link:hover,
.dashboard-step-link:hover {
    color: inherit;
    border-color: color-mix(in srgb, var(--primary) 32%, var(--border));
    box-shadow: 0 12px 30px rgba(34, 38, 70, .1);
    transform: translateY(-2px);
}

    .stat-card div > span,
    .stat-card small {
        display: block;
        color: var(--muted);
    }

    .stat-card strong {
        display: block;
        font-size: 1.8rem;
    }

.stat-icon {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    border-radius: 16px;
}

    .stat-icon.purple,
    .purple {
        background-color: #efedff;
        color: #6d5dfc;
    }

    .stat-icon.green,
    .green {
        background-color: #e3f8ef;
        color: #19a66a;
    }

    .stat-icon.amber,
    .amber {
        background-color: #fff3dd;
        color: #e59a18;
    }

    .stat-icon.blue,
    .blue {
        background-color: #e5f2ff;
        color: #388bd5;
    }

/* =====================================================
   TARJETAS DE CONTENIDO
   ===================================================== */

.content-card {
    padding: 26px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

    .section-heading h2 {
        margin: 0.25rem 0 0;
        font-size: 1.35rem;
    }

.status-pill {
    padding: 8px 13px;
    border-radius: 999px;
    background-color: #fff4e1;
    color: #b36e00;
    font-size: 0.82rem;
    font-weight: 700;
}

.step-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.setup-step {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 16px;
}

    .setup-step > span {
        display: grid;
        place-items: center;
        width: 35px;
        height: 35px;
        flex: 0 0 35px;
        border-radius: 11px;
        background-color: #f0efff;
        color: var(--primary);
        font-weight: 800;
    }

    .setup-step div {
        min-width: 0;
    }

    .setup-step strong,
    .setup-step small {
        display: block;
    }

    .setup-step small {
        margin-top: 3px;
        color: var(--muted);
    }

    .setup-step > i {
        margin-left: auto;
        color: #bbbdd0;
    }

/* =====================================================
   LOGIN: ESTRUCTURA
   ===================================================== */

.login-page {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 100vh;
    background-color: #ffffff;
}

.login-story {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 7vw;
    overflow: hidden;
    background: radial-gradient( circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 26% ), linear-gradient( 145deg, #17182d, #5143d9 58%, #d36d9c );
    color: #ffffff;
}

    .login-story::after {
        position: absolute;
        top: -120px;
        right: -170px;
        width: 420px;
        height: 420px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 50%;
        box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.03), 0 0 0 120px rgba(255, 255, 255, 0.025);
        content: "";
    }

.story-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

    .story-content h1 {
        margin: 18px 0;
        font-family: "Playfair Display", serif;
        font-size: clamp(2.6rem, 5vw, 5.4rem);
        line-height: 1.02;
    }

    .story-content p {
        max-width: 520px;
        color: rgba(255, 255, 255, 0.78);
        font-size: 1.15rem;
    }

.story-points {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
}

    .story-points i {
        color: #ffca7a;
    }

.login-panel {
    display: grid;
    place-items: center;
    padding: 35px;
}

.login-card {
    width: min(100%, 440px);
}

.login-logo {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    margin-bottom: 25px;
    border-radius: 15px;
    background: linear-gradient(135deg, #8a7cff, #ff7ead);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(109, 93, 252, 0.32);
}

.login-card h2 {
    margin: 0.35rem 0;
    font-size: 2rem;
}

.login-description {
    margin-bottom: 30px;
}

/* =====================================================
   LOGIN: CAMPOS
   ===================================================== */

.form-field {
    margin-bottom: 24px;
}

    .form-field .form-label {
        display: block;
        margin: 0 0 9px 2px;
        color: var(--ink);
        font-size: 0.9rem;
        font-weight: 700;
    }

.input-with-icon {
    position: relative;
}

    .input-with-icon .input-icon {
        position: absolute;
        top: 50%;
        left: 18px;
        z-index: 2;
        color: #9295a9;
        font-size: 1rem;
        pointer-events: none;
        transform: translateY(-50%);
        transition: color 0.2s ease;
    }

    .input-with-icon .form-control {
        width: 100%;
        height: 58px;
        padding: 0 18px 0 48px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background-color: #ffffff;
        color: var(--ink);
        font-size: 0.95rem;
        line-height: normal;
    }

        .input-with-icon .form-control.has-action {
            padding-right: 56px;
        }

        .input-with-icon .form-control::placeholder {
            color: #a0a3b4;
            opacity: 1;
        }

        .input-with-icon .form-control:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 0.22rem rgba(109, 93, 252, 0.12);
        }

    .input-with-icon:focus-within .input-icon {
        color: var(--primary);
    }

/* =====================================================
   LOGIN: BOTÓN MOSTRAR CONTRASEÑA
   ===================================================== */

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background-color: transparent;
    color: var(--muted);
    transform: translateY(-50%);
    transition: color 0.2s ease, background-color 0.2s ease;
}

    .password-toggle:hover {
        background-color: #f1f0ff;
        color: var(--primary);
    }

    .password-toggle:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 1px;
    }

/* =====================================================
   LOGIN: VALIDACIONES
   ===================================================== */

.field-validation-error {
    display: block;
    margin: 6px 0 0 2px;
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 500;
}

.field-validation-valid {
    display: none;
}

.input-validation-error {
    border-color: var(--danger) !important;
    background-color: #fffafb !important;
}

    .input-validation-error:focus {
        box-shadow: 0 0 0 0.22rem rgba(198, 55, 78, 0.12) !important;
    }

.validation-summary-valid {
    display: none;
}

.validation-summary-errors ul {
    margin-bottom: 0;
    padding-left: 20px;
}

/* =====================================================
   LOGIN: OPCIONES Y BOTÓN
   ===================================================== */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 4px 0 26px;
}

    .login-options .form-check {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .login-options .form-check-input {
        margin: 0;
    }

.soft-link {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
}

    .soft-link:hover {
        color: var(--primary-dark);
    }

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 56px;
}

/* =====================================================
   PANTALLAS DE ERROR Y ESTADOS VACÍOS
   ===================================================== */

.empty-state {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 70vh;
    padding: 40px;
    text-align: center;
    gap: 10px;
}

    .empty-state > i {
        color: var(--primary);
        font-size: 3rem;
    }

    .empty-state p {
        max-width: 550px;
        color: var(--muted);
    }

/* =====================================================
   DRIVER.JS
   ===================================================== */

.tinvitamos-tour.driver-popover {
    padding: 18px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.tinvitamos-tour .driver-popover-title {
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
}

.tinvitamos-tour .driver-popover-next-btn {
    border: 0;
    border-radius: 9px;
    background-color: var(--primary);
    color: #ffffff;
    text-shadow: none;
}

    .tinvitamos-tour .driver-popover-next-btn:hover {
        background-color: var(--primary-dark);
    }

/* =====================================================
   SCROLL PERSONALIZADO
   ===================================================== */

/* Firefox */
html,
body,
.sidebar,
.modal-body,
.table-responsive,
.dropdown-menu {
    scrollbar-color: var(--primary) #f1f1f6;
    scrollbar-width: auto;
}

/* Chrome, Edge y Safari */
*::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

*::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #f1f1f6;
}

*::-webkit-scrollbar-thumb {
    border: 3px solid #f1f1f6;
    border-radius: 10px;
    background-color: var(--primary);
}

    *::-webkit-scrollbar-thumb:hover {
        background-color: var(--primary-dark);
    }

.modal-body {
    overflow-y: auto;
}

/* =====================================================
   RESPONSIVE: TABLET
   ===================================================== */

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-list {
        grid-template-columns: 1fr;
    }

    .login-page {
        grid-template-columns: 1fr;
    }

    .login-story {
        display: none;
    }
}

/* =====================================================
   RESPONSIVE: MÓVIL
   ===================================================== */

@media (max-width: 820px) {
    body.sidebar-mobile-open {
        overflow: hidden;
    }

    body.sidebar-collapsed .sidebar {
        transform: translateX(-100%);
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.2);
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .sidebar-backdrop.open {
        display: block;
        opacity: 1;
    }

    .app-main {
        width: 100%;
        margin-left: 0;
    }

    .content-wrap {
        padding: 18px;
    }

    .topbar {
        padding: 0 16px;
    }

    .user-name,
    .event-chip {
        display: none;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .login-panel {
        padding: 24px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .login-panel {
        align-items: start;
        padding: 32px 20px;
    }

    .login-card {
        margin: auto;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .login-description {
        margin-bottom: 24px;
    }

    .form-field {
        margin-bottom: 21px;
    }

    .input-with-icon .form-control {
        height: 56px;
    }

    .hero-card {
        padding: 25px;
    }

        .hero-card h1 {
            font-size: 1.65rem;
        }

    .content-card {
        padding: 20px;
    }
}


/* =====================================================
   CONFIGURACIÓN INICIAL
   ===================================================== */

.setup-page {
    position: relative;
    min-height: 100vh;
    padding: 50px 24px;
    overflow: hidden;
    background: radial-gradient( circle at top left, rgba(109, 93, 252, 0.12), transparent 30% ), radial-gradient( circle at bottom right, rgba(230, 124, 168, 0.12), transparent 32% ), var(--page);
}

.setup-container {
    position: relative;
    z-index: 2;
    width: min(100%, 1050px);
    margin: 0 auto;
}

.setup-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

    .setup-header h1 {
        margin: 4px 0;
        font-size: clamp(1.8rem, 4vw, 2.7rem);
    }

    .setup-header p {
        margin: 0;
        color: var(--muted);
    }

.setup-logo {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #8a7cff, #ff7ead);
    color: #ffffff;
    font-size: 1.4rem;
    box-shadow: 0 15px 35px rgba(109, 93, 252, 0.28);
}

.setup-form {
    display: grid;
    gap: 20px;
}

.setup-section {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: #ffffff;
    box-shadow: 0 10px 35px rgba(35, 30, 80, 0.06);
}

.setup-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

    .setup-section-heading h2 {
        margin: 0 0 3px;
        font-size: 1.15rem;
    }

    .setup-section-heading p {
        margin: 0;
        color: var(--muted);
        font-size: 0.9rem;
    }

.setup-section-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    background-color: #e5f2ff;
    color: #388bd5;
}

.color-field {
    display: flex;
    align-items: center;
    height: 58px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background-color: #ffffff;
}

    .color-field .form-control-color {
        width: 44px;
        height: 42px;
        padding: 3px;
        border: 0;
        border-radius: 10px;
    }

    .color-field span {
        margin-left: 10px;
        color: var(--muted);
        font-size: 0.82rem;
        font-weight: 700;
    }

.setup-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: #ffffff;
    box-shadow: 0 10px 35px rgba(35, 30, 80, 0.06);
}

    .setup-actions .btn {
        min-width: 220px;
        min-height: 54px;
    }

.setup-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

    .setup-notice i {
        margin-top: 2px;
        color: var(--primary);
    }

.setup-background-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.setup-decoration-one {
    top: -150px;
    right: -120px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(109, 93, 252, 0.12);
    box-shadow: 0 0 0 70px rgba(109, 93, 252, 0.025), 0 0 0 140px rgba(109, 93, 252, 0.02);
}

.setup-decoration-two {
    bottom: -120px;
    left: -120px;
    width: 340px;
    height: 340px;
    background-color: rgba(230, 124, 168, 0.05);
}

@media (max-width: 768px) {
    .setup-page {
        padding: 30px 16px;
    }

    .setup-header {
        align-items: flex-start;
    }

    .setup-logo {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 16px;
    }

    .setup-section {
        padding: 22px 18px;
    }

    .setup-actions {
        align-items: stretch;
        flex-direction: column;
        padding: 22px 18px;
    }

        .setup-actions .btn {
            width: 100%;
        }
}



/* =====================================================
   SELECTOR DE EVENTO
   ===================================================== */

.event-selector-container {
    margin-left: 16px;
}

.event-selector-button,
.event-selector-single,
.event-selector-empty {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 48px;
    padding: 7px 13px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background-color: #ffffff;
    color: var(--ink);
}

.event-selector-button {
    min-width: 245px;
    text-align: left;
}

    .event-selector-button::after {
        margin-left: auto;
    }

.event-color-dot {
    display: block;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(109, 93, 252, 0.1);
}

.event-selector-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

    .event-selector-text strong {
        max-width: 190px;
        overflow: hidden;
        font-size: 0.88rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .event-selector-text small {
        color: var(--muted);
        font-size: 0.7rem;
    }

.event-selector-menu {
    width: 340px;
    max-width: calc(100vw - 32px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.event-selector-menu-header {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

    .event-selector-menu-header span {
        font-weight: 800;
    }

    .event-selector-menu-header small {
        color: var(--muted);
    }

.event-selector-options {
    max-height: 330px;
    padding: 8px;
    overflow-y: auto;
}

    .event-selector-options form {
        margin: 0;
    }

.event-selector-option {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background-color: transparent;
    color: var(--ink);
    text-align: left;
}

    .event-selector-option:hover {
        background-color: #f6f5ff;
    }

    .event-selector-option.selected {
        background-color: #efedff;
    }

.event-selector-option-info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

    .event-selector-option-info strong {
        overflow: hidden;
        font-size: 0.88rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .event-selector-option-info small {
        color: var(--muted);
        font-size: 0.72rem;
    }

.event-selector-option > i {
    color: var(--primary);
}

.event-selector-footer {
    padding: 10px;
    border-top: 1px solid var(--border);
}

.event-selector-manage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px;
    border-radius: 11px;
    background-color: #f1f0ff;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
}

    .event-selector-manage:hover {
        background-color: var(--primary);
        color: #ffffff;
    }

@media (max-width: 820px) {
    .event-selector-container {
        margin-left: 10px;
    }

    .event-selector-button,
    .event-selector-single {
        min-width: 0;
        max-width: 190px;
    }

    .event-selector-text strong {
        max-width: 125px;
    }

    .event-selector-text small {
        display: none;
    }
}

@media (max-width: 480px) {
    .event-selector-button,
    .event-selector-single {
        max-width: 145px;
    }

    .event-selector-text strong {
        max-width: 90px;
    }
}


@media (max-width: 820px) {
    .topbar {
        gap: 10px;
        height: 72px;
        padding: 0 14px;
    }

    .event-selector-container {
        min-width: 0;
        margin-left: 0;
    }

    .event-selector-single,
    .event-selector-button {
        min-width: 0;
        max-width: 215px;
        min-height: 46px;
        padding: 6px 12px;
    }

    .event-selector-text {
        min-width: 0;
    }

        .event-selector-text strong {
            max-width: 160px;
            overflow: hidden;
            font-size: 0.85rem;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .event-selector-text small {
            display: block;
            max-width: 160px;
            overflow: hidden;
            font-size: 0.67rem;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
}

@media (max-width: 600px) {
    .topbar-actions {
        margin-left: auto;
    }

        .topbar-actions .user-badge,
        .topbar-actions #btnTour {
            display: none;
        }

    .event-selector-single,
    .event-selector-button {
        max-width: calc(100vw - 145px);
    }

    .event-selector-text strong,
    .event-selector-text small {
        max-width: calc(100vw - 205px);
    }
}

/* =====================================================
   VERIFICACIÓN DE CORREO
   ===================================================== */

.correo-pendiente-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 24px 0;
    padding: 13px 16px;
    border: 1px solid #f1d58a;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffaf0, #fff4cf);
    color: #5f4300;
    box-shadow: 0 8px 24px rgba(151, 105, 0, 0.08);
}

.correo-pendiente-icono {
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #ffffff;
    color: #b87800;
    box-shadow: 0 4px 12px rgba(151, 105, 0, 0.1);
}

.correo-pendiente-texto {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.correo-pendiente-texto strong {
    font-size: 0.9rem;
    font-weight: 800;
}

.correo-pendiente-texto span {
    color: #795f20;
    font-size: 0.8rem;
}

.correo-pendiente-accion {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 10px;
    background: #ffffff;
    color: #725000;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.correo-pendiente-accion:hover {
    color: #5c4000;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(151, 105, 0, 0.12);
}

@media (max-width: 700px) {
    .correo-pendiente-banner {
        align-items: flex-start;
        margin: 12px 14px 0;
        flex-wrap: wrap;
    }

    .correo-pendiente-texto {
        flex-basis: calc(100% - 54px);
    }

    .correo-pendiente-accion {
        width: 100%;
        justify-content: center;
    }
}
/* =====================================================
   CLOUDFLARE TURNSTILE
   ===================================================== */

.turnstile-control {
    display: grid;
    gap: 7px;
    width: 100%;
    margin: 17px 0;
}

.turnstile-control .cf-turnstile {
    width: 100%;
    min-height: 65px;
}

.turnstile-control small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #777187;
    font-size: 0.69rem;
}

.turnstile-control small > span {
    color: #6d5dfc;
}
