/* ReservaApp - esquema de colores (referencia travel app) */
:root {
    --citame-primary: #6A2C70;
    --citame-primary-dark: #552259;
    --citame-accent: #EC4A70;
    --citame-accent-hover: #d93d62;
    --citame-lavender: #E9E1F7;
    --citame-teal: #75C9CB;
    --citame-teal-dark: #5eb5b7;
    --citame-warning: #FFC107;
    --citame-danger: #DC3545;
    --citame-bg: #f8f6fb;
    --citame-section-alt: #fff;
    --citame-text: #2d2430;
    --citame-text-muted: #5c5263;
    --citame-radius: 14px;
    --citame-radius-sm: 10px;
}

/* Base móvil: safe-area, touch targets, evitar zoom en inputs */
body {
    min-height: 100vh;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    -webkit-tap-highlight-color: rgba(106, 44, 112, 0.15);
}

/* Evitar zoom en iOS al enfocar inputs (font-size >= 16px) */
input.form-control,
select.form-control,
select.form-select,
textarea.form-control {
    font-size: 16px !important;
}
@media (max-width: 576px) {
    .form-control, .form-select {
        min-height: 48px;
        padding: 0.65rem 0.75rem;
    }
}

/* Botones y enlaces: área táctil mínima ~44px */
.btn {
    min-height: 44px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-sm {
    min-height: 38px;
}
.navbar .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
}

/* Botones: estilo ReservaApp en todo el sistema */
.btn-primary {
    background-color: var(--citame-accent);
    border-color: var(--citame-accent);
    border-radius: var(--citame-radius-sm);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--citame-accent-hover);
    border-color: var(--citame-accent-hover);
}
.btn-primary:focus,
.btn-primary:focus-visible {
    background-color: var(--citame-accent);
    border-color: var(--citame-accent);
    box-shadow: 0 0 0 0.25rem rgba(236, 74, 112, 0.28);
}
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--citame-accent-hover);
    border-color: var(--citame-accent-hover);
    color: #fff;
}
.btn-primary:active:focus,
.btn-primary.active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.25rem rgba(236, 74, 112, 0.28);
}
.btn-outline-primary {
    border-color: var(--citame-primary);
    color: var(--citame-primary);
    border-radius: var(--citame-radius-sm);
}
.btn-outline-primary:hover {
    background-color: var(--citame-lavender);
    border-color: var(--citame-primary);
    color: var(--citame-primary-dark);
}
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(106, 44, 112, 0.22);
}
.btn-outline-primary:active,
.btn-outline-primary.active,
.show > .btn-outline-primary.dropdown-toggle {
    background-color: var(--citame-lavender);
    border-color: var(--citame-primary);
    color: var(--citame-primary-dark);
}
.btn-outline-primary:active:focus,
.btn-outline-primary.active:focus,
.show > .btn-outline-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.25rem rgba(106, 44, 112, 0.22);
}

/* Badge primary = accent */
.bg-primary {
    background-color: var(--citame-accent) !important;
}

/* Landing page */
html { scroll-behavior: smooth; }

body.landing-page {
    background: var(--citame-bg);
    overflow-x: hidden;
}

/* Scroll animations */
[data-animate] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-animate="fade-left"] {
    transform: translateX(40px);
}
[data-animate].animated {
    opacity: 1;
    transform: none;
}

/* Navbar landing */
.navbar-landing {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
    background: rgba(106, 44, 112, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 0.65rem 0;
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar-landing .navbar-brand {
    font-weight: 800;
    color: #fff;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}
.navbar-landing .navbar-brand:hover {
    color: var(--citame-lavender);
}

.navbar-landing .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.2s;
}
.navbar-landing .nav-link:hover {
    color: #fff !important;
}

.navbar-landing .btn-outline-primary {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.88rem;
}
.navbar-landing .btn-outline-primary:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    color: #fff;
}
.navbar-landing .btn-primary {
    background: var(--citame-accent);
    border-color: var(--citame-accent);
    color: #fff;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.88rem;
}
.navbar-landing .btn-primary:hover {
    background: var(--citame-accent-hover);
    border-color: var(--citame-accent-hover);
    color: #fff;
}

/* ─── Landing: menú hamburguesa mobile-first ─── */
.navbar-landing-toggler {
    min-width: 48px;
    min-height: 48px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
}
.navbar-landing-toggler .navbar-toggler-icon {
    width: 1.35rem;
    height: 1.35rem;
}
.navbar-landing-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

/* Botón Iniciar sesión fijo en la barra (siempre visible) */
.navbar-landing-right {
    flex-shrink: 0;
    gap: 0.5rem;
}
.navbar-btn-login {
    background: var(--citame-accent);
    border-color: var(--citame-accent);
    color: #fff;
    font-weight: 600;
    border-radius: 100px;
    padding: 0.4rem 1rem;
    min-height: 40px;
    white-space: nowrap;
}
.navbar-btn-login:hover {
    background: var(--citame-accent-hover);
    border-color: var(--citame-accent-hover);
    color: #fff;
}

/* Móvil: menú a pantalla completa, elementos con espacio y texto centrado */
@media (max-width: 991.98px) {
    .navbar-landing .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 0;
        padding-top: calc(56px + env(safe-area-inset-top, 0));
        padding-left: env(safe-area-inset-left, 0);
        padding-right: env(safe-area-inset-right, 0);
        padding-bottom: env(safe-area-inset-bottom, 0);
        background: linear-gradient(180deg, var(--citame-primary) 0%, var(--citame-primary-dark) 35%, #3d1544 100%);
        z-index: 1029;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 0;
        box-shadow: none;
    }
    .navbar-landing .navbar-collapse.collapsing {
        transition: height 0.25s ease;
    }
    .navbar-landing .navbar-collapse.show {
        display: flex;
        flex-direction: column;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100%;
    }
    .navbar-landing-collapse {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        flex: 1;
        min-height: 100%;
        padding: 2rem 1.5rem 2.5rem;
        padding-left: calc(1.5rem + env(safe-area-inset-left, 0));
        padding-right: calc(1.5rem + env(safe-area-inset-right, 0));
        padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0));
        text-align: center;
    }
    /* Sección enlaces de navegación: solo texto, sin aspecto de botón */
    .navbar-landing-nav {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 320px;
        margin: 0;
        padding: 0 0 2rem;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    .navbar-landing-nav .nav-item {
        width: 100%;
        border: none;
    }
    .navbar-landing-nav .nav-link {
        display: block;
        width: 100%;
        padding: 1.25rem 1rem;
        min-height: 56px;
        font-size: 1.125rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.95);
        text-align: center;
        text-decoration: none;
        background: transparent;
        border: none;
        border-radius: 0;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        transition: color 0.2s, background 0.2s;
    }
    .navbar-landing-nav .nav-link:hover,
    .navbar-landing-nav .nav-link:focus {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }
    /* Sección botones: aspecto claro de botón, centrados */
    .navbar-landing-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 320px;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 2rem;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 2rem;
    }
    .navbar-landing-actions .btn {
        width: 100%;
        min-height: 56px;
        font-size: 1.0625rem;
        font-weight: 600;
        justify-content: center;
        text-align: center;
        border-radius: 14px;
        border-width: 2px;
        padding: 0.85rem 1.5rem;
    }
    .navbar-landing-actions .btn-outline-primary {
        background: transparent;
        border-color: rgba(255, 255, 255, 0.5);
        color: #fff;
    }
    .navbar-landing-actions .btn-outline-primary:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.9);
        color: #fff;
    }
    /* Bloque de confianza al final */
    .navbar-landing-trust {
        margin-top: auto;
        padding-top: 2rem;
        text-align: center;
        max-width: 320px;
    }
    .navbar-landing-trust-avatars {
        display: flex;
        justify-content: center;
        gap: 0.6rem;
        margin-bottom: 1rem;
    }
    .navbar-landing-trust-avatar {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        font-weight: 700;
        color: #fff;
    }
    .navbar-landing-trust-text {
        margin: 0;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.5;
    }
    .navbar-landing-trust-text strong {
        color: #fff;
    }
}

/* Escritorio: comportamiento estándar del navbar */
@media (min-width: 992px) {
    .navbar-landing .navbar-collapse {
        position: static;
        max-height: none;
        padding: 0;
        background: transparent;
        overflow: visible;
    }
    .navbar-landing-right {
        margin-left: auto;
    }
    .navbar-landing-actions .d-lg-none {
        display: none !important;
    }
    .navbar-landing-trust {
        display: none !important;
    }
}

/* Navbar dashboard (mismo estilo morado) */
.navbar-citame {
    background: var(--citame-primary) !important;
    box-shadow: 0 2px 12px rgba(106, 44, 112, 0.25);
    padding: 0.5rem 0;
}
.navbar-citame .navbar-brand-tenant {
    font-weight: 500;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 0.35rem;
}
.navbar-citame .navbar-toggler-citame {
    border-color: rgba(255, 255, 255, 0.6);
    padding: 0.4rem 0.5rem;
}
.navbar-citame .navbar-toggler-citame .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}
.navbar-citame .navbar-brand {
    color: #fff !important;
    font-weight: 700;
}
.navbar-citame .navbar-brand:hover {
    color: var(--citame-lavender) !important;
}
.navbar-citame .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}
.navbar-citame .nav-link:hover {
    color: #fff !important;
}
.navbar-citame .nav-link-user {
    pointer-events: none;
}

/* Navbar: usuario con avatar (iniciales) y dropdown */
.navbar-citame .nav-user-trigger {
    padding: 0.35rem 0.5rem;
    border-radius: var(--citame-radius, 0.5rem);
}
.navbar-citame .nav-user-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
}
.nav-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}
.nav-user-name {
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 991.98px) {
    .navbar-citame .nav-user-name {
        display: none;
    }
    .navbar-citame .nav-user-trigger .dropdown-toggle::after {
        display: none;
    }
}
.navbar-citame .dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(106, 44, 112, 0.2);
    padding: 0.5rem 0;
    min-width: 12rem;
}
.navbar-citame .dropdown-item {
    padding: 0.5rem 1rem;
}
.navbar-citame .dropdown-item:hover {
    background: rgba(106, 44, 112, 0.08);
}
.navbar-citame .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* Páginas de autenticación (login / registro): espacio para nav fijo */
body.auth-page {
    background: var(--citame-bg);
}
body.auth-page main {
    padding-top: 60px;
}

.auth-page .form-control {
    border-radius: var(--citame-radius-sm);
    border: 1px solid var(--citame-lavender);
}
.auth-page .form-control:focus {
    border-color: var(--citame-primary);
    box-shadow: 0 0 0 0.2rem rgba(106, 44, 112, 0.2);
}
.input-group button.input-group-text {
    cursor: pointer;
}

.auth-card {
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius);
    background: var(--citame-section-alt);
}

.auth-card-title {
    color: var(--citame-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.auth-card-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--citame-lavender);
    color: var(--citame-primary);
    border-radius: var(--citame-radius-sm);
    font-size: 1.5rem;
}

.auth-page .alert-danger {
    border-radius: var(--citame-radius-sm);
    border-color: var(--citame-accent);
}

/* Booking público (portal de reservas) */
body.booking-page {
    background: var(--citame-bg);
}
.navbar-book {
    background: var(--citame-section-alt) !important;
    border-bottom: 3px solid var(--citame-primary);
}
.navbar-book .navbar-brand {
    color: var(--citame-primary) !important;
    font-weight: 700;
}

/* Main sin container: espacio superior para el nav fijo */
.landing-main {
    flex: 1;
    padding-top: 56px;
}

#alcance,
#precios,
#reseñas,
#contacto,
#como-funciona {
    scroll-margin-top: 64px;
}

/* ═══════ Buttons shared ═══════ */
.btn-accent {
    background: var(--citame-accent);
    border: 2px solid var(--citame-accent);
    color: #fff;
    border-radius: 100px;
    font-weight: 700;
    padding: 0.7rem 1.8rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-accent:hover {
    background: var(--citame-accent-hover);
    border-color: var(--citame-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(236, 74, 112, 0.35);
}
.btn-hero-outline {
    border: 2px solid rgba(255,255,255,0.6);
    color: #fff;
    border-radius: 100px;
    font-weight: 600;
    padding: 0.7rem 1.8rem;
    background: transparent;
    transition: background 0.2s, border-color 0.2s;
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    color: #fff;
}

/* Section badge pill */
.section-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: var(--citame-lavender);
    color: var(--citame-primary);
    margin-bottom: 0.85rem;
}
.section-badge--light {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

/* ═══════ HERO ═══════ */
.landing-hero {
    background: linear-gradient(160deg, var(--citame-primary) 0%, var(--citame-primary-dark) 55%, #3d1544 100%);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}
.hero-blob--1 {
    width: 500px; height: 500px;
    background: var(--citame-accent);
    top: -120px; right: -100px;
    animation: blobFloat 12s ease-in-out infinite alternate;
}
.hero-blob--2 {
    width: 350px; height: 350px;
    background: var(--citame-teal);
    bottom: -80px; left: -60px;
    animation: blobFloat 10s ease-in-out infinite alternate-reverse;
}
.hero-blob--3 {
    width: 250px; height: 250px;
    background: var(--citame-lavender);
    top: 40%; left: 35%;
    opacity: 0.15;
    animation: blobFloat 14s ease-in-out infinite alternate;
}
@keyframes blobFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.08); }
}

.landing-hero .container {
    position: relative;
    z-index: 2;
}

.landing-hero-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.landing-hero-content {
    flex: 1 1 420px;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}
.hero-badge i {
    color: var(--citame-warning);
}

.landing-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--citame-accent), var(--citame-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.landing-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero-trust-avatars {
    display: flex;
}
.hero-trust-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid rgba(106, 44, 112, 0.6);
    margin-left: -8px;
}
.hero-trust-avatar:first-child { margin-left: 0; }
.hero-trust-text {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
}
.hero-trust-text strong {
    color: #fff;
}

/* Hero visual: mockup */
.landing-hero-visual {
    flex: 0 1 440px;
    position: relative;
}

.hero-mockup {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.hero-mockup-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: #f3f0f7;
    border-bottom: 1px solid var(--citame-lavender);
}
.mockup-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--citame-lavender);
}
.mockup-dot:first-child { background: var(--citame-accent); }
.mockup-dot:nth-child(2) { background: var(--citame-warning); }
.mockup-dot:nth-child(3) { background: var(--citame-teal); }

.hero-mockup-body {
    padding: 1rem 1.25rem 1.25rem;
}
.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.mockup-logo {
    width: 80px; height: 12px;
    background: var(--citame-primary);
    border-radius: 4px;
    opacity: 0.7;
}
.mockup-nav-lines {
    display: flex;
    gap: 8px;
}
.mockup-nav-lines span {
    width: 32px; height: 6px;
    background: var(--citame-lavender);
    border-radius: 3px;
}

.mockup-calendar {
    background: var(--citame-bg);
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.85rem;
}
.mockup-cal-header {
    text-align: center;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--citame-primary);
    margin-bottom: 0.5rem;
}
.mockup-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    font-size: 0.65rem;
    text-align: center;
    color: var(--citame-text-muted);
}
.mockup-cal-grid span {
    padding: 3px 0;
    border-radius: 4px;
}
.mockup-cal-grid .cal-today {
    background: var(--citame-primary);
    color: #fff;
    font-weight: 700;
}
.mockup-cal-grid .cal-booked {
    background: var(--citame-lavender);
    color: var(--citame-primary);
    font-weight: 600;
}

.mockup-appointments {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mockup-apt {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
}
.mockup-apt--accent {
    background: rgba(236, 74, 112, 0.1);
    border-left: 3px solid var(--citame-accent);
}
.mockup-apt--teal {
    background: rgba(117, 201, 203, 0.15);
    border-left: 3px solid var(--citame-teal);
}
.mockup-apt--primary {
    background: rgba(106, 44, 112, 0.08);
    border-left: 3px solid var(--citame-primary);
}
.mockup-apt-time {
    font-weight: 700;
    color: var(--citame-text);
    min-width: 40px;
}
.mockup-apt-name {
    color: var(--citame-text-muted);
}

/* Float cards */
.hero-float-card {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--citame-text);
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 3;
    white-space: nowrap;
}
.hero-float-card i {
    font-size: 1rem;
}
.hero-float-card--1 {
    top: 12%; left: -28px;
}
.hero-float-card--1 i { color: var(--citame-accent); }
.hero-float-card--2 {
    bottom: 10%; right: -24px;
}
.hero-float-card--2 i { color: var(--citame-teal); }

/* ═══════ STATS BAR ═══════ */
.landing-stats {
    background: var(--citame-section-alt);
    border-bottom: 1px solid var(--citame-lavender);
}
.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--citame-primary);
    letter-spacing: -0.02em;
}
.stat-number .fa-star {
    color: var(--citame-warning);
    font-size: 0.85em;
}
.stat-label {
    font-size: 0.88rem;
    color: var(--citame-text-muted);
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--citame-lavender);
}

/* ═══════ SECTIONS GENERIC ═══════ */
.landing-section {
    background: var(--citame-section-alt);
    margin-bottom: 0;
}

.landing-section:nth-child(even) {
    background: var(--citame-bg);
}

.landing-section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--citame-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.landing-section-subtitle {
    font-size: 1.05rem;
    color: var(--citame-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ═══════ STEPS / HOW IT WORKS ═══════ */
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}
.step-card {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}
.step-number {
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--citame-lavender);
    line-height: 1;
    opacity: 0.5;
}
.step-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--citame-lavender);
    color: var(--citame-primary);
    margin-bottom: 1.25rem;
    transition: transform 0.2s;
}
.step-icon--teal {
    background: rgba(117, 201, 203, 0.2);
    color: var(--citame-teal-dark);
}
.step-icon--accent {
    background: rgba(236, 74, 112, 0.12);
    color: var(--citame-accent);
}
.step-card:hover .step-icon {
    transform: scale(1.08);
}
.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--citame-text);
    margin-bottom: 0.5rem;
}
.step-card p {
    font-size: 0.92rem;
    color: var(--citame-text-muted);
    margin-bottom: 0;
}
.step-connector {
    display: flex;
    align-items: center;
    padding-top: 4rem;
    color: var(--citame-lavender);
    font-size: 1.2rem;
}

/* ═══════ FEATURES BENTO ═══════ */
.features-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.feature-card {
    background: var(--citame-section-alt);
    border-radius: var(--citame-radius);
    border: 1px solid var(--citame-lavender);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(106, 44, 112, 0.12);
}
.feature-card--wide {
    grid-column: span 2;
}
.feature-card-glow {
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: var(--citame-primary);
    opacity: 0.04;
    top: -60px; right: -60px;
    pointer-events: none;
}
.feature-card-glow--accent {
    background: var(--citame-accent);
}
.feature-card-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: var(--citame-lavender);
    color: var(--citame-primary);
    margin-bottom: 1rem;
}
.feature-card-icon--teal { background: rgba(117,201,203,0.18); color: var(--citame-teal-dark); }
.feature-card-icon--accent { background: rgba(236,74,112,0.1); color: var(--citame-accent); }
.feature-card-icon--warning { background: rgba(255,193,7,0.15); color: #d4a006; }

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--citame-text);
    margin-bottom: 0.4rem;
}
.feature-card p {
    font-size: 0.92rem;
    color: var(--citame-text-muted);
    margin-bottom: 0;
    line-height: 1.55;
}

/* ═══════ PRICING ═══════ */
.landing-pricing {
    background: var(--citame-bg);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}
.price-card {
    background: var(--citame-section-alt);
    border-radius: var(--citame-radius);
    border: 2px solid var(--citame-lavender);
    padding: 2rem 1.75rem;
    text-align: center;
    transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s;
    position: relative;
}
.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(106, 44, 112, 0.12);
}
.price-card--popular {
    border-color: var(--citame-primary);
    background: linear-gradient(180deg, rgba(106,44,112,0.04) 0%, #fff 100%);
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(106, 44, 112, 0.15);
    z-index: 1;
}
.price-card--popular:hover {
    transform: scale(1.04) translateY(-6px);
}
.price-popular-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--citame-accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 1.2rem;
    border-radius: 100px;
    white-space: nowrap;
}
.price-plan-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--citame-lavender);
    color: var(--citame-primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.price-card-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--citame-primary);
    margin-bottom: 0.25rem;
}
.price-desc {
    font-size: 0.88rem;
    color: var(--citame-text-muted);
    margin-bottom: 1rem;
}
.price-amount {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}
.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--citame-text);
}
.price-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--citame-text);
    letter-spacing: -0.03em;
    line-height: 1;
}
.price-period {
    font-size: 0.95rem;
    color: var(--citame-text-muted);
    font-weight: 500;
}
.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
}
.price-features li {
    padding: 0.45rem 0;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.price-features li.included {
    color: var(--citame-text);
}
.price-features li.included .fa-check {
    color: var(--citame-teal);
    font-size: 0.85rem;
}
.price-features li.excluded {
    color: var(--citame-text-muted);
    opacity: 0.6;
}
.price-features li.excluded .fa-xmark {
    font-size: 0.85rem;
}
.price-card .btn {
    border-radius: 100px;
    font-weight: 700;
    padding: 0.65rem 1.5rem;
}

/* ═══════ REVIEWS ═══════ */
.landing-reviews {
    background: var(--citame-section-alt);
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.review-card {
    background: var(--citame-section-alt);
    border-radius: var(--citame-radius);
    border: 1px solid var(--citame-lavender);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(106, 44, 112, 0.1);
}
.review-stars {
    color: var(--citame-warning);
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
    display: flex;
    gap: 2px;
}
.review-text {
    font-size: 0.92rem;
    color: var(--citame-text);
    font-style: italic;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.review-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.review-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--citame-text);
    margin: 0;
}
.review-role {
    font-size: 0.8rem;
    color: var(--citame-text-muted);
    margin: 0;
}

/* ═══════ CTA BANNER ═══════ */
.landing-cta-banner {
    background: var(--citame-bg);
}
.cta-banner {
    background: linear-gradient(135deg, var(--citame-primary) 0%, var(--citame-primary-dark) 100%);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner-blob {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: var(--citame-accent);
    opacity: 0.1;
    top: -150px; right: -100px;
    filter: blur(60px);
    pointer-events: none;
}
.cta-banner-content {
    position: relative;
    z-index: 1;
}
.cta-banner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.cta-banner p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.cta-banner-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════ CONTACT ═══════ */
.landing-contact {
    background: var(--citame-bg);
    position: relative;
    overflow: hidden;
}
.landing-contact-bg {
    position: absolute;
    inset: 0;
    background-color: var(--citame-primary);
    background-image: url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
}
.landing-contact-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(106,44,112,0.93) 0%, rgba(61,21,68,0.96) 100%);
}
.landing-contact .container {
    z-index: 1;
}
.landing-contact-invite {
    color: #fff;
}
.landing-contact-title {
    color: #fff !important;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.landing-contact-text {
    color: rgba(255,255,255,0.88);
    line-height: 1.65;
    margin-bottom: 1rem;
}
.landing-contact-trust {
    color: rgba(255,255,255,0.95);
}
.landing-contact-trust li {
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
}
.landing-contact-trust .fa-circle-check {
    color: var(--citame-teal);
    font-size: 0.9rem;
}

.landing-contact-form-wrapper {
    background: var(--citame-section-alt);
    padding: 2.25rem;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}
.landing-contact-form-wrapper .h5 {
    color: var(--citame-primary);
    font-weight: 700;
}
.landing-contact-form .form-control {
    border-radius: var(--citame-radius-sm);
    border: 1px solid var(--citame-lavender);
    background: var(--citame-bg);
    padding: 0.65rem 1rem;
}
.landing-contact-form .form-control:focus {
    border-color: var(--citame-primary);
    box-shadow: 0 0 0 0.2rem rgba(106,44,112,0.15);
    background: #fff;
}

/* ═══════ FOOTER ═══════ */
.landing-footer {
    background: var(--citame-primary);
    padding: 3.5rem 0 0;
    border-radius: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
}
.footer-logo {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
}
.footer-logo:hover {
    color: var(--citame-lavender);
}
.footer-tagline {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
    max-width: 280px;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}
.footer-social {
    display: flex;
    gap: 0.75rem;
}
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}
.footer-social a:hover {
    background: rgba(255,255,255,0.2);
}
.footer-links h4 {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.footer-links a {
    display: block;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #fff;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
.footer-bottom a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}
.footer-bottom a:hover {
    color: #fff;
}

/* Alertas en landing */
.landing-main .alert-success {
    border-radius: var(--citame-radius-sm);
    background: rgba(117, 201, 203, 0.2);
    border-color: var(--citame-teal);
    color: var(--citame-primary-dark);
}
.landing-main .alert-danger {
    border-radius: var(--citame-radius-sm);
    border-color: var(--citame-accent);
}

/* Responsive: landing page */
@media (max-width: 991px) {
    .landing-hero-inner {
        flex-direction: column;
        gap: 2.5rem;
    }
    .landing-hero-content {
        text-align: center;
    }
    .landing-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .landing-hero-cta {
        justify-content: center;
    }
    .hero-trust {
        justify-content: center;
    }
    .landing-hero-visual {
        max-width: 380px;
        margin: 0 auto;
    }
    .hero-float-card--1 { left: -10px; }
    .hero-float-card--2 { right: -10px; }
    .features-bento {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-card--wide {
        grid-column: span 2;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .price-card--popular {
        transform: none;
        box-shadow: 0 8px 24px rgba(106,44,112,0.15);
    }
    .price-card--popular:hover {
        transform: translateY(-6px);
    }
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand {
        grid-column: span 2;
    }
    .steps-grid {
        flex-direction: column;
        align-items: center;
    }
    .step-connector {
        transform: rotate(90deg);
        padding-top: 0;
    }
}

/* ========== Optimizaciones móvil (UI/UX) ========== */

/* Dashboard: navbar responsive (menú colapsado, enlaces táctiles) */
@media (max-width: 991.98px) {
    .navbar-citame .navbar-collapse {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    .navbar-citame .navbar-nav {
        gap: 0;
    }
    .navbar-citame .nav-link {
        padding: 0.65rem 0.75rem;
        min-height: 44px;
    }
    .navbar-citame .dropdown-menu {
        min-width: 100%;
        margin-top: 0.25rem;
    }
    .navbar-citame .dropdown-item {
        padding: 0.65rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ========== Dashboard con tabs (UI moderna) ========== */
.dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-nav-tabs {
    background: var(--citame-section-alt);
    border-radius: var(--citame-radius);
    padding: 0.35rem;
    box-shadow: 0 2px 12px rgba(106, 44, 112, 0.08);
    border: 1px solid var(--citame-lavender);
}
.dashboard-nav-tabs .nav-link {
    border-radius: var(--citame-radius-sm);
    font-weight: 500;
    color: var(--citame-text-muted);
    padding: 0.6rem 1rem;
    min-height: 44px;
    transition: color 0.2s, background 0.2s;
}

.dashboard-nav-tabs .nav-link:hover {
    color: var(--citame-primary);
    background: rgba(106, 44, 112, 0.06);
}

.dashboard-nav-tabs .nav-link.active {
    background: var(--citame-primary);
    color: #fff;
    border: none;
}

.dashboard-tab-content {
    padding-top: 0.25rem;
}

/* ========== Dashboard Bottom Navigation (móvil) ========== */
.dash-bnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid var(--citame-lavender);
    box-shadow: 0 -2px 16px rgba(106, 44, 112, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.dash-bnav-inner {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0.5rem 0.25rem 0.6rem;
    max-width: 100%;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.dash-bnav-inner::-webkit-scrollbar {
    display: none;
}
.dash-bnav-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.35rem 0.5rem;
    min-width: 56px;
    color: var(--citame-text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    min-height: 52px;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.dash-bnav-item:hover,
.dash-bnav-item:focus {
    color: var(--citame-primary);
}
.dash-bnav-item.active {
    color: var(--citame-primary);
    font-weight: 700;
}
.dash-bnav-item.active .dash-bnav-icon {
    color: var(--citame-primary);
}
.dash-bnav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--citame-primary);
}
.dash-bnav-item {
    position: relative;
}
.dash-bnav-icon {
    font-size: 1.25rem;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-bnav-label {
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 4.5em;
}
/* Bottom nav: exactamente 5 ítems (mobile-first SaaS), sin scroll */
.dash-bnav-five {
    justify-content: space-around;
    flex-wrap: nowrap;
    overflow: visible;
    width: 100%;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}
.dash-bnav-five .dash-bnav-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}
.dash-bnav-five .dash-bnav-label {
    max-width: none;
    font-size: 0.625rem;
}
/* CTA flotante: Nueva cita (FAB) — thumb-zone, prioridad agendar */
.dash-fab {
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: max(1rem, env(safe-area-inset-right));
    z-index: 1035;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--citame-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(236, 74, 112, 0.45);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.dash-fab:hover,
.dash-fab:focus {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(236, 74, 112, 0.55);
}
@media (max-width: 767.98px) {
    .dash-fab {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        right: max(1.25rem, env(safe-area-inset-right));
    }
}
/* Espacio inferior cuando la bottom nav está visible (solo < md) */
.dash-tab-content-with-bnav {
    padding-bottom: 0;
}
@media (max-width: 767.98px) {
    .dash-tab-content-with-bnav {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }
    .dash-footer {
        margin-bottom: 0;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
}

/* ========== Dashboard Footer ========== */
.dash-footer {
    margin-top: 3rem;
    padding: 1rem 0 0.25rem;
    border-top: 1px solid var(--citame-lavender);
}
@media (max-width: 767.98px) {
    .dash-footer {
        margin-top: 1.25rem;
        padding: 0.75rem 0 calc(88px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--citame-lavender);
    }
    .dash-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    .dash-footer-sep {
        display: none;
    }
}
.dash-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0;
}
.dash-footer-powered {
    font-size: 0.78rem;
    color: var(--citame-text-muted);
}
.dash-footer-company {
    font-size: 0.78rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--citame-primary), var(--citame-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dash-footer-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--citame-text-muted);
}
.dash-footer-item i {
    font-size: 0.68rem;
    color: rgba(106, 44, 112, 0.4);
}
.dash-footer-item a {
    color: var(--citame-primary);
    text-decoration: none;
    font-weight: 500;
}
.dash-footer-item a:hover {
    text-decoration: underline;
}
.dash-footer-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--citame-text-muted);
    opacity: 0.4;
    margin: 0 0.6rem;
}

/* ========== Dashboard Más (hub móvil) ========== */
.dash-mas {
    padding: 0.5rem 0 1.5rem;
}
.dash-mas-header {
    margin-bottom: 1.25rem;
}
.dash-mas-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--citame-text);
    margin: 0 0 0.25rem;
}
.dash-mas-desc {
    font-size: 0.9rem;
    color: var(--citame-text-muted);
    margin: 0;
}
.dash-mas-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.dash-mas-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--citame-section-alt);
    border: 1px solid var(--citame-lavender);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
    min-height: 56px;
}
.dash-mas-card:hover,
.dash-mas-card:focus {
    background: rgba(106, 44, 112, 0.04);
    box-shadow: 0 4px 14px rgba(106, 44, 112, 0.08);
}
.dash-mas-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.dash-mas-icon--primary { background: var(--citame-lavender); color: var(--citame-primary); }
.dash-mas-icon--teal { background: rgba(117, 201, 203, 0.2); color: var(--citame-teal-dark); }
.dash-mas-icon--accent { background: rgba(236, 74, 112, 0.12); color: var(--citame-accent); }
.dash-mas-icon--purple { background: rgba(106, 44, 112, 0.1); color: var(--citame-primary); }
.dash-mas-icon--muted { background: rgba(92, 82, 99, 0.1); color: var(--citame-text-muted); }
.dash-mas-card-label {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--citame-text);
}
.dash-mas-card-arrow {
    color: var(--citame-text-muted);
    font-size: 0.8rem;
}

/* ========== Ingresos: cards por servicio (móvil) ========== */
.dash-ingresos-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.dash-income-card {
    background: var(--citame-section-alt);
    border: 1px solid var(--citame-lavender);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 10px rgba(106, 44, 112, 0.05);
}
.dash-income-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.dash-income-card-service {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--citame-text);
}
.dash-income-card-pct {
    font-size: 0.8rem;
    color: var(--citame-text-muted);
    font-variant-numeric: tabular-nums;
}
.dash-income-card-body {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}
.dash-income-card-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--citame-primary);
    font-variant-numeric: tabular-nums;
}
.dash-income-card-count {
    font-size: 0.85rem;
    color: var(--citame-text-muted);
}

.dashboard-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--citame-primary);
    margin-bottom: 1rem;
}

.dashboard-card {
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius);
    box-shadow: 0 2px 8px rgba(106, 44, 112, 0.05);
    transition: box-shadow 0.2s;
}

.dashboard-card:hover {
    box-shadow: 0 4px 16px rgba(106, 44, 112, 0.1);
}

/* ========== Dashboard Home (modern redesign) ========== */
.dash-home {
    animation: dashFadeIn 0.35s ease-out;
}
@keyframes dashFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dash-greeting {
    margin-bottom: 1.5rem;
}
.dash-greeting-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--citame-text);
    margin: 0 0 0.25rem;
}
.dash-greeting-tenant {
    color: var(--citame-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    opacity: 0.85;
}
.dash-greeting-sub {
    color: var(--citame-text-muted);
    font-size: 0.88rem;
    margin: 0;
}

/* Stat cards */
.dash-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--citame-section-alt);
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius);
    padding: 1.25rem 1.25rem;
    height: 100%;
    transition: box-shadow 0.25s, transform 0.25s;
}
.dash-stat-card:hover {
    box-shadow: 0 8px 28px rgba(106, 44, 112, 0.1);
    transform: translateY(-2px);
}

.dash-stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.2s;
}
.dash-stat-card:hover .dash-stat-icon {
    transform: scale(1.08);
}
.dash-stat-icon--accent {
    background: rgba(236, 74, 112, 0.12);
    color: var(--citame-accent);
}
.dash-stat-icon--teal {
    background: rgba(117, 201, 203, 0.18);
    color: var(--citame-teal-dark);
}
.dash-stat-icon--purple {
    background: var(--citame-lavender);
    color: var(--citame-primary);
}

.dash-stat-body {
    flex: 1;
    min-width: 0;
}
.dash-stat-body--wide {
    flex: 1;
    min-width: 0;
}
.dash-stat-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--citame-text-muted);
    margin-bottom: 0.15rem;
}
.dash-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--citame-text);
}

.dash-stat-link {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--citame-primary);
    background: var(--citame-lavender);
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    font-size: 0.85rem;
}
.dash-stat-link:hover {
    background: var(--citame-primary);
    color: #fff;
}

/* Hero inicio: bloque compacto saludo + negocio */
.dash-home-hero {
    margin-bottom: 1rem;
}
.dash-hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--citame-primary);
    background: var(--citame-lavender);
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}
.dash-home-hero .dash-greeting-title {
    margin-bottom: 0.15rem;
}
.dash-greeting-name {
    display: inline-block;
}
.dash-home-hero .dash-greeting-tenant {
    margin-bottom: 0.1rem;
}
.dash-home-hero .dash-greeting-sub {
    margin: 0;
}

/* Opción rápida: no recibir más citas hoy (sutil) */
.dash-quick-close .btn-link-muted {
    color: var(--citame-text-muted);
    text-decoration: none;
}
.dash-quick-close .btn-link-muted:hover {
    color: var(--citame-primary);
    text-decoration: underline;
}
.dash-quick-close-wrapper {
    margin-bottom: 1.25rem;
}
.dash-quick-close {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}
.dash-quick-close-text {
    flex: 1 1 100%;
}
@media (min-width: 576px) {
    .dash-quick-close-text { flex: 1 1 auto; }
}
.dash-quick-close-form {
    flex-shrink: 0;
}
.dash-quick-close-btn {
    min-height: 38px;
    padding: 0.4rem 0.85rem;
    font-weight: 600;
    border-radius: 10px;
}
.dash-quick-close--closed .dash-quick-close-text {
    color: var(--citame-text-muted);
}
.dash-quick-close--closed {
    background: linear-gradient(135deg, #f8f6fb 0%, #f1eef6 100%);
    border-color: rgba(106, 44, 112, 0.15);
}

/* Stat card como enlace (misma apariencia que div) */
.dash-stat-card--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.dash-stat-card--link:hover {
    color: inherit;
}

/* Búsqueda: layout por defecto */
.dash-home-search {
    margin-bottom: 1.25rem;
}
.dash-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}
.dash-search-inner {
    flex: 1 1 100%;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
}
.dash-search-icon {
    position: absolute;
    left: 0.875rem;
    color: var(--citame-text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}
.dash-search-input {
    padding-left: 2.5rem !important;
    border-radius: var(--citame-radius-sm);
}
.dash-search-clear {
    position: absolute;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--citame-text-muted);
    border-radius: 50%;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.dash-search-clear:hover {
    color: var(--citame-primary);
    background: var(--citame-lavender);
}
.dash-search-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
@media (min-width: 576px) {
    .dash-search-inner {
        flex: 1 1 auto;
        margin-bottom: 0;
    }
    .dash-search-actions {
        flex: 0 0 auto;
        width: auto;
        justify-content: flex-end;
    }
}

/* Portal URL inside stat card */
.dash-portal-url {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
}
.dash-portal-btns {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}
.dash-portal-url .form-control {
    font-size: 0.82rem !important;
    background: var(--citame-bg);
    border-color: var(--citame-lavender);
    border-radius: var(--citame-radius-sm);
    min-height: 36px;
    padding: 0.3rem 0.6rem;
}
.dash-portal-copy {
    min-width: 36px;
    min-height: 36px !important;
    padding: 0 !important;
    border-radius: var(--citame-radius-sm) !important;
    font-size: 0.85rem;
}
.dash-portal-whatsapp,
.dash-portal-share {
    min-width: 36px;
    min-height: 36px !important;
    padding: 0 !important;
    border-radius: var(--citame-radius-sm) !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section headers */
.dash-section {
    background: var(--citame-section-alt);
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius);
    padding: 1.25rem 1.5rem;
}
@media (max-width: 767.98px) {
    .dash-section {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}
.dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.dash-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--citame-text);
    margin: 0;
}
.dash-section-title i {
    color: var(--citame-primary);
}
.dash-section-title-wrap {
    flex: 1;
    min-width: 0;
}
.dash-appt-counts {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: var(--citame-text-muted);
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.dash-appt-count strong {
    font-variant-numeric: tabular-nums;
}
.dash-appt-count--pending { color: #856404; }
.dash-appt-count--done { color: var(--citame-success, #198754); }
.dash-appt-count--cancelled { color: var(--citame-text-muted); }
.dash-section-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.dash-section-action {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--citame-primary);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.dash-section-action:hover {
    color: var(--citame-accent);
}

/* Empty state */
.dash-empty {
    text-align: center;
    padding: 2rem 1rem;
}
.dash-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--citame-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--citame-text-muted);
}
.dash-empty-text {
    color: var(--citame-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* Appointment rows (legacy list) */
.dash-appointments {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ========== Timeline agenda (mobile-first: citas del día) ========== */
.dash-agenda-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.dash-agenda-item {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    position: relative;
    min-height: 0;
}
.dash-agenda-time {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    padding-top: 0.5rem;
    width: 3.5rem;
}
.dash-agenda-time-start {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--citame-primary);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.dash-agenda-time-date {
    font-size: 0.65rem;
    color: var(--citame-text-muted);
    margin-top: 0.15rem;
}
.dash-agenda-card {
    flex: 1;
    min-width: 0;
}
@media (max-width: 767.98px) {
    .dash-agenda-timeline {
        padding-left: 0;
        gap: 0.5rem;
    }
    .dash-agenda-timeline::before {
        content: '';
        position: absolute;
        left: 1.4rem;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(180deg, var(--citame-lavender) 0%, rgba(106, 44, 112, 0.15) 100%);
        border-radius: 1px;
        pointer-events: none;
    }
    .dash-agenda-item {
        gap: 0.65rem;
        padding-left: 0.25rem;
    }
    .dash-agenda-time {
        width: 2.75rem;
        padding-top: 0.6rem;
        align-items: center;
    }
    .dash-agenda-time-start {
        font-size: 0.85rem;
        display: inline-block;
        width: 2.25rem;
        height: 2.25rem;
        line-height: 2.25rem;
        text-align: center;
        background: var(--citame-section-alt);
        border: 2px solid var(--citame-lavender);
        border-radius: 50%;
        position: relative;
        z-index: 1;
    }
    .dash-agenda-time-date {
        font-size: 0.6rem;
        margin-top: 0.2rem;
    }
    .dash-agenda-card.dash-appt {
        border-radius: 16px;
        padding: 1rem 1.1rem;
        box-shadow: 0 2px 12px rgba(106, 44, 112, 0.08);
    }
}
@media (min-width: 768px) {
    .dash-agenda-item {
        gap: 1rem;
    }
    .dash-agenda-time {
        width: 4rem;
        padding-top: 0.6rem;
    }
    .dash-agenda-time-start {
        font-size: 0.9rem;
    }
}

.dash-appt {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: var(--citame-radius-sm);
    background: var(--citame-bg);
    border-left: 4px solid var(--citame-lavender);
    transition: background 0.2s, border-color 0.2s;
}
.dash-appt:hover {
    background: rgba(106, 44, 112, 0.04);
}
.dash-appt--confirmed { border-left-color: var(--citame-teal); }
.dash-appt--pending   { border-left-color: var(--citame-warning); }
.dash-appt--cancelled { border-left-color: var(--citame-danger); opacity: 0.65; }
.dash-appt--completed { border-left-color: var(--citame-success, #198754); }
.dash-appt--outside-hours {
    border-left-color: #ca8a04;
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
}
.dash-appt-outside-hint {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--citame-text-muted);
    margin-top: 0.2rem;
}
.dash-appt-outside-hint i { color: #b45309; opacity: 0.9; }

/* ID + hora en una fila; debajo duración e intervalo */
.dash-appt-id-time {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    flex-shrink: 0;
}
.dash-appt-id-time-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}
.dash-appt-duration-range {
    display: block;
    font-size: 0.75rem;
    color: var(--citame-text-muted);
    font-variant-numeric: tabular-nums;
}
.dash-appt-id {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--citame-primary);
    line-height: 1.2;
    min-width: 2.5rem;
    font-variant-numeric: tabular-nums;
}
.dash-appt-right {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 0.35rem;
}
.dash-appt-status-badge {
    flex-shrink: 0;
}
.dash-appt-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}
.dash-appt-badges-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}
.dash-appt-details {
    font-size: 0.8rem;
    color: var(--citame-text-muted);
    padding-top: 0.35rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.dash-appt-details-row {
    margin-bottom: 0;
}
.dash-appt-details-row.flex-nowrap {
    flex-wrap: nowrap;
}
.dash-appt-details-row > [class*="col-"] {
    min-width: 0;
}
.dash-appt-detail {
    display: inline-flex;
    align-items: center;
}
.dash-appt-detail i {
    opacity: 0.85;
}

.dash-appt-id-time .dash-appt-time {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--citame-primary);
    font-variant-numeric: tabular-nums;
}
.dash-appt-time .dash-appt-date {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
}
.dash-appt-info {
    flex: 1;
    min-width: 0;
}
.dash-appt-client-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.dash-appt-client {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--citame-text);
    line-height: 1.25;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-appt-service {
    font-size: 0.85rem;
    color: var(--citame-text-muted);
    display: block;
}

.dash-appt-badge {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
}
.dash-appt-badge--confirmed {
    background: rgba(117, 201, 203, 0.18);
    color: var(--citame-teal-dark);
}
.dash-appt-badge--pending {
    background: rgba(255, 193, 7, 0.18);
    color: #856404;
}
.dash-appt-badge--cancelled {
    background: rgba(220, 53, 69, 0.12);
    color: var(--citame-danger);
}
.dash-appt-badge--completed {
    background: rgba(25, 135, 84, 0.12);
    color: var(--citame-success, #198754);
}
.dash-appt-badge--default {
    background: rgba(92, 82, 99, 0.1);
    color: var(--citame-text-muted);
}
.dash-appt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-left: auto;
    flex-shrink: 0;
    align-items: center;
}
.dash-appt-actions .btn,
.dash-appt-whatsapp {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border-radius: 50%;
    box-sizing: border-box;
    flex-shrink: 0;
}
.dash-appt-whatsapp {
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.5);
}
.dash-appt-whatsapp:hover {
    color: #fff;
    background-color: #25D366;
    border-color: #25D366;
}

/* ========== Dashboard Inicio: UX móvil (diseño moderno app-like) ========== */
@media (max-width: 767.98px) {
    .dash-home {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0.5rem;
        min-height: 0;
    }

    /* Hero: card con gradiente sutil, badge de fecha */
    .dash-home-hero {
        padding: 1.25rem 0.5rem 1.1rem;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 1.25rem;
        background: linear-gradient(160deg, rgba(106, 44, 112, 0.08) 0%, rgba(236, 74, 112, 0.05) 50%, transparent 100%);
        border-radius: 0 0 24px 24px;
        padding-left: max(0.5rem, env(safe-area-inset-left));
        padding-right: max(0.5rem, env(safe-area-inset-right));
    }
    .dash-hero-badge {
        font-size: 0.72rem;
        padding: 0.4rem 0.85rem;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(106, 44, 112, 0.12);
        box-shadow: 0 1px 3px rgba(106, 44, 112, 0.06);
    }
    .dash-home-hero .dash-greeting-title {
        font-size: 1.5rem;
        font-weight: 800;
        letter-spacing: -0.03em;
        line-height: 1.25;
        color: var(--citame-text);
        margin-bottom: 0.2rem;
    }
    .dash-greeting-name {
        background: linear-gradient(135deg, var(--citame-primary), var(--citame-accent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .dash-home-hero .dash-greeting-tenant {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--citame-primary);
        opacity: 0.95;
    }

    /* Chip estado reservas: compacto y táctil */
    .dash-quick-close-wrapper {
        margin-bottom: 1.1rem;
    }
    .dash-quick-close {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.6rem;
        background: var(--citame-section-alt);
        border: 1px solid var(--citame-lavender);
        border-radius: 16px;
        padding: 0.85rem 1rem;
        font-size: 0.85rem;
        box-shadow: 0 2px 8px rgba(106, 44, 112, 0.04);
        -webkit-tap-highlight-color: transparent;
    }
    .dash-quick-close-text {
        flex: 1 1 100%;
        min-width: 0;
        color: var(--citame-text);
        font-weight: 500;
    }
    .dash-quick-close-text i {
        opacity: 0.85;
    }
    .dash-quick-close .dash-quick-close-btn {
        min-height: 44px;
        padding: 0.5rem 1rem;
        font-weight: 600;
        border-radius: 12px;
        -webkit-tap-highlight-color: transparent;
    }
    @media (min-width: 380px) {
        .dash-quick-close-text { flex: 1 1 auto; }
    }

    /* Stat cards: más redondeadas, sombra suave, área táctil 48px+ */
    .dash-home-stats {
        margin-bottom: 1.25rem;
        row-gap: 0.75rem;
    }
    .dash-home-stats .dash-stat-card,
    .dash-home-stats .dash-stat-card--link {
        padding: 1rem 1.1rem;
        min-height: 92px;
        border-radius: 18px;
        border-color: rgba(106, 44, 112, 0.1);
        box-shadow: 0 4px 14px rgba(106, 44, 112, 0.06);
        -webkit-tap-highlight-color: rgba(106, 44, 112, 0.08);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .dash-home-stats .dash-stat-card--link:active {
        transform: scale(0.98);
    }
    .dash-home-stats .dash-stat-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.2rem;
        border-radius: 14px;
    }
    .dash-home-stats .dash-stat-value {
        font-size: 1.55rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }
    .dash-home-stats .dash-stat-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--citame-text-muted);
    }
    .dash-stat-card--portal {
        padding: 1rem 1.1rem !important;
        border-radius: 18px;
    }
    .dash-stat-card--portal .dash-portal-url {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .dash-stat-card--portal .dash-portal-url .form-control {
        flex: 1 1 100%;
        font-size: 0.8rem !important;
        min-height: 44px;
        border-radius: 12px;
    }
    .dash-stat-card--portal .dash-portal-btns {
        flex: 1 1 100%;
        justify-content: flex-end;
    }
    .dash-stat-card--portal .dash-portal-copy,
    .dash-stat-card--portal .dash-portal-share {
        min-width: 48px !important;
        min-height: 48px !important;
        border-radius: 12px !important;
    }

    /* Búsqueda: barra única, inputs 48px */
    .dash-home-search {
        margin-bottom: 1.1rem;
    }
    .dash-search-form {
        background: var(--citame-section-alt);
        border: 1px solid var(--citame-lavender);
        border-radius: 18px;
        padding: 0.85rem 1rem;
        box-shadow: 0 2px 8px rgba(106, 44, 112, 0.04);
    }
    .dash-search-inner {
        margin-bottom: 0.6rem;
    }
    .dash-search-input {
        min-height: 48px !important;
        font-size: 16px !important;
        border-radius: 14px;
        -webkit-tap-highlight-color: transparent;
    }
    .dash-search-actions {
        width: 100%;
        justify-content: stretch;
        gap: 0.5rem;
    }
    .dash-search-actions .btn {
        flex: 1;
        min-height: 48px;
        border-radius: 12px;
        font-weight: 600;
    }

    /* Sección citas: card contenedor y header */
    .dash-home-appointments.dash-section {
        padding: 1rem 0.35rem;
        border-radius: 18px;
        border-color: rgba(106, 44, 112, 0.1);
        box-shadow: 0 4px 14px rgba(106, 44, 112, 0.05);
    }
    .dash-section-header {
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    .dash-section-title-wrap {
        flex: 1 1 100%;
    }
    .dash-section-title {
        font-size: 1.05rem;
        font-weight: 700;
    }
    .dash-appt-counts {
        margin-top: 0.25rem;
        font-size: 0.7rem;
        gap: 0.4rem 0.75rem;
    }
    .dash-section-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .btn-new-appointment {
        min-height: 48px;
        padding: 0.65rem 1.1rem;
        font-weight: 600;
        border-radius: 14px;
        -webkit-tap-highlight-color: transparent;
    }
    .dash-section-action {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Lista de citas: cards tipo app */
    .dash-appointments {
        gap: 0.75rem;
    }
    .dash-appt {
        padding: 1rem 1.1rem;
        gap: 0.75rem;
        border-radius: 16px;
        border-left-width: 4px;
        min-height: auto;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        -webkit-tap-highlight-color: transparent;
    }
    .dash-appt-top {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .dash-appt-id {
        font-size: 1.2rem;
        min-width: 2rem;
    }
    .dash-appt-time {
        font-size: 0.95rem;
        min-width: 44px;
    }
    .dash-appt-info {
        flex: 1 1 100%;
        min-width: 0;
    }
    .dash-appt-client {
        font-size: 1.02rem;
    }
    .dash-appt-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
        order: 10;
    }
    .dash-appt-actions,
    .dash-appt-actions .dash-appt-whatsapp {
        margin-left: 0;
    }
    .dash-appt-actions .btn,
    .dash-appt-whatsapp {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 1rem;
        border-radius: 14px;
        -webkit-tap-highlight-color: transparent;
    }
    .dash-appt-details {
        font-size: 0.8rem;
        padding-top: 0.6rem;
    }

    /* Empty state */
    .dash-empty {
        padding: 2.5rem 1rem;
    }
    .dash-empty-icon {
        width: 72px;
        height: 72px;
        font-size: 1.75rem;
        border-radius: 20px;
    }
    .dash-empty .btn {
        min-height: 48px;
        padding: 0.65rem 1.25rem;
        border-radius: 14px;
    }
}

@media (max-width: 576px) {
    .dash-greeting-title {
        font-size: 1.25rem;
    }
    .dash-home-hero .dash-greeting-title {
        font-size: 1.35rem;
    }
    .dash-hero-badge {
        font-size: 0.68rem;
        padding: 0.35rem 0.7rem;
    }
    .dash-stat-card {
        padding: 0.875rem;
    }
    .dash-stat-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.1rem;
    }
    .dash-stat-value {
        font-size: 1.35rem;
    }
    .dash-section {
        padding: 0.875rem 1rem;
    }
    .dash-appt {
        padding: 0.875rem 1rem;
    }
    .dash-appt-client-wrap {
        min-width: 0;
    }
    .dash-appt-details {
        font-size: 0.75rem;
    }
}

/* Modales en móvil: centrados en pantalla para que siempre se vean (sin bloquear vista) */
@media (max-width: 767.98px) {
    .dash-confirm-overlay,
    .dash-duration-overlay,
    .dash-wa-options-overlay {
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
        align-items: center;
        justify-content: center;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .dash-confirm-box,
    .dash-duration-box {
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
        max-height: none;
        overflow-y: visible;
        flex-shrink: 0;
        margin: auto;
    }
    .dash-wa-options-box {
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
        max-height: min(85dvh, 85vh);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-shrink: 0;
        margin: auto;
    }
    .dash-duration-actions .btn,
    .dash-confirm-actions .btn {
        min-height: 48px;
    }
}

.calendario-mes .calendario-day {
    vertical-align: top;
    min-width: 60px;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .calendario-mes .calendario-day {
        min-width: 90px;
        padding: 0.75rem;
    }
}

/* ========== Horarios de atención (vista mejorada) ========== */
.horarios-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 640px;
}

.horarios-day-card {
    background: var(--citame-section-alt);
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius);
    padding: 1rem 1.25rem;
    transition: border-color 0.2s, background 0.2s;
}

.horarios-day-card:hover {
    border-color: rgba(106, 44, 112, 0.25);
}

.horarios-day-card.is-closed {
    background: rgba(92, 82, 99, 0.06);
    border-color: rgba(92, 82, 99, 0.15);
}

.horarios-day-card.is-closed .horarios-day-times {
    opacity: 0.5;
    pointer-events: none;
}

.horarios-day-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.horarios-day-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--citame-lavender);
    color: var(--citame-primary);
    border-radius: var(--citame-radius-sm);
    font-size: 0.95rem;
}

.horarios-day-name {
    font-weight: 600;
    color: var(--citame-text);
    flex: 1;
    min-width: 100px;
}

.horarios-day-switch {
    margin-bottom: 0;
}

.horarios-day-switch .form-check-label {
    font-size: 0.875rem;
    color: var(--citame-text-muted);
    cursor: pointer;
}

.horarios-day-switch .form-check-input:checked ~ .form-check-label {
    color: var(--citame-text);
}

.horarios-day-times {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.horarios-time-group {
    flex: 0 1 auto;
    min-width: 0;
}

.horarios-time-label {
    display: block;
    font-size: 0.75rem;
    color: var(--citame-text-muted);
    margin-bottom: 0.25rem;
}

.horarios-day-times .form-control {
    min-width: 100px;
}

.horarios-time-sep {
    align-self: center;
    padding-bottom: 0.35rem;
    font-size: 0.875rem;
    color: var(--citame-text-muted);
}

@media (max-width: 576px) {
    .horarios-day-card {
        padding: 1rem;
    }
    .horarios-day-times {
        gap: 0.5rem;
    }
    .horarios-day-times .form-control {
        min-width: 0;
    }
}

/* Main content: container-fluid en móvil, ancho contenido en desktop */
.main-content {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 767.98px) {
    .main-content {
        padding-left: max(0.5rem, env(safe-area-inset-left));
        padding-right: max(0.5rem, env(safe-area-inset-right));
    }
}
@media (min-width: 768px) {
    main.main-content.container-fluid {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (min-width: 992px) {
    main.main-content.container-fluid {
        max-width: 960px;
    }
}
@media (min-width: 1200px) {
    main.main-content.container-fluid {
        max-width: 1140px;
    }
}
@media (min-width: 1400px) {
    main.main-content.container-fluid {
        max-width: 1320px;
    }
}
@media (max-width: 576px) {
    .main-content {
        margin-top: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Landing: tablet breakpoint */
@media (max-width: 768px) {
    .landing-hero {
        padding: 5rem 0 3.5rem;
    }
    .landing-section .container {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .features-bento {
        grid-template-columns: 1fr;
    }
    .feature-card--wide {
        grid-column: span 1;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        gap: 1.5rem;
    }
    .stat-divider {
        display: none;
    }
    .landing-contact-invite {
        margin-bottom: 1.5rem;
    }
    .landing-contact-form-wrapper {
        padding: 1.5rem !important;
    }
    .cta-banner {
        padding: 3rem 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-brand {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Landing: mobile breakpoint */
@media (max-width: 576px) {
    .landing-hero {
        padding: 4.5rem 0 3rem;
    }
    .landing-hero-cta {
        flex-direction: column;
    }
    .landing-hero-cta .btn {
        width: 100%;
    }
    .hero-trust {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .hero-float-card {
        display: none;
    }
    .landing-hero-visual {
        max-width: 300px;
    }
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .cta-banner-actions {
        flex-direction: column;
    }
    .cta-banner-actions .btn {
        width: 100%;
    }
    .landing-features .text-center.mt-5 .btn {
        width: 100%;
    }
}

/* ========== Register: modern split-card layout ========== */
.register-split {
    display: flex;
    max-width: 980px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 16px 56px rgba(106, 44, 112, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.04);
    background: var(--citame-section-alt);
}

.register-split-visual {
    flex: 0 0 42%;
    background: linear-gradient(160deg, var(--citame-primary) 0%, #3d1442 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.register-split-visual-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

.register-split-visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.register-hero-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.18));
    animation: registerFloat 6s ease-in-out infinite;
}

@keyframes registerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.d-lg-none .register-hero-img {
    animation: none;
    filter: none;
}

.register-split-headline {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    line-height: 1.3;
}

.register-split-desc {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    line-height: 1.65;
    max-width: 24em;
    margin: 0 auto 1.75rem;
}

.register-split-checks {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: fit-content;
    text-align: left;
}

.register-split-checks li {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.register-split-checks i {
    color: var(--citame-teal);
    font-size: 0.75rem;
}

.register-split-form {
    flex: 1;
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
}

.register-split-form-inner {
    width: 100%;
}

.register-input-group .input-group-text {
    background: var(--citame-lavender);
    border: 1.5px solid var(--citame-lavender);
    color: var(--citame-primary);
    transition: border-color 0.2s, background 0.2s;
}
.register-input-group .input-group-text:first-child {
    border-right: 0;
    border-radius: var(--citame-radius-sm) 0 0 var(--citame-radius-sm);
}
.register-input-group .input-group-text:last-child {
    border-left: 0;
    border-radius: 0 var(--citame-radius-sm) var(--citame-radius-sm) 0;
    cursor: pointer;
}
.register-input-group .input-group-text:only-child {
    border-right: 0;
    border-radius: var(--citame-radius-sm) 0 0 var(--citame-radius-sm);
}

.register-input-group .form-control {
    border: 1.5px solid var(--citame-lavender);
    border-left: 0;
    border-right: 0;
    border-radius: 0 !important;
}
.register-input-group .form-control:first-child {
    border-radius: var(--citame-radius-sm) 0 0 var(--citame-radius-sm) !important;
}
.register-input-group .form-control:last-child {
    border-radius: 0 var(--citame-radius-sm) var(--citame-radius-sm) 0 !important;
}
.register-input-group .form-control:not(:first-child):not(:last-child) {
    border-radius: 0 !important;
}

.register-input-group:focus-within .input-group-text {
    border-color: var(--citame-primary);
    background: rgba(106, 44, 112, 0.08);
}

.register-input-group:focus-within .form-control {
    border-color: var(--citame-primary);
    box-shadow: none;
}

.register-btn-submit {
    font-weight: 600;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--citame-radius-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.register-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(236, 74, 112, 0.35);
}

.register-btn-submit:active {
    transform: translateY(0);
}

.register-link-login {
    color: var(--citame-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.register-link-login:hover {
    color: var(--citame-accent);
    text-decoration: underline;
}

@media (max-width: 991px) {
    .register-split {
        flex-direction: column;
        max-width: 520px;
    }
    .register-split-form {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .register-split {
        border-radius: var(--citame-radius-sm);
        margin: 0;
    }
    .register-split-form {
        padding: 1.5rem 1.25rem;
    }
    .auth-card-title {
        font-size: 1.35rem;
    }
}

/* Auth: card con márgenes y padding en móvil */
@media (max-width: 576px) {
    .auth-page main {
        padding-top: 56px;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .auth-page-wrap {
        padding-top: 0.75rem !important;
        padding-bottom: 1.5rem !important;
    }
    .auth-card .card-body {
        padding: 1.25rem !important;
    }
}

/* Booking: main y cards */
body.booking-page main {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: env(safe-area-inset-bottom);
    min-height: calc(100vh - 56px);
}
@media (max-width: 576px) {
    body.booking-page main {
        padding-top: 1rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .booking-page .card .card-body {
        padding: 1.25rem !important;
    }
    .booking-page .btn-primary,
    .booking-page .btn-link {
        min-height: 48px;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .booking-page .btn-link {
        display: block;
        text-align: center;
    }
}

/* Booking: selector de hora – celdas más grandes en móvil */
@media (max-width: 576px) {
    .booking-page .row.g-2 label.d-block.border.rounded {
        min-height: 48px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0.75rem !important;
        font-size: 1rem;
    }
    .booking-page .row.g-2 .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Booking: descripción del paso (evitar desborde en móvil) */
.booking-step-desc {
    word-wrap: break-word;
}
@media (max-width: 576px) {
    .booking-step-desc {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

/* Booking: lista de servicios – ítems táctiles */
@media (max-width: 576px) {
    .booking-page .list-group-item {
        min-height: 56px;
        padding: 0.85rem 1rem;
        display: flex;
        align-items: center;
    }
    .booking-page .list-group-item input[type="radio"] {
        min-width: 22px;
        min-height: 22px;
        margin-right: 0.75rem;
    }
}

/* ========== Booking flow (portal reservas – diseño moderno alineado al dashboard) ========== */
.booking-flow {
    max-width: 560px;
    margin: 0 auto;
    animation: dashFadeIn 0.35s ease-out;
}

.booking-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--citame-text-muted);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.2s;
}
.booking-back-link:hover {
    color: var(--citame-primary);
}

.booking-form-card {
    background: var(--citame-section-alt);
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius);
    padding: 1.75rem 1.5rem;
    box-shadow: 0 2px 12px rgba(106, 44, 112, 0.06);
}

.booking-form-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--citame-lavender);
}
.booking-form-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: rgba(236, 74, 112, 0.12);
    color: var(--citame-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.booking-form-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--citame-text);
    margin: 0 0 0.15rem;
}
.booking-form-card-desc {
    font-size: 0.88rem;
    color: var(--citame-text-muted);
    margin: 0;
}

/* Stepper + quick nav */
.booking-step-nav {
    margin-bottom: 1.5rem;
}
.booking-step-nav-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}
.booking-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--citame-lavender);
    transition: background 0.2s, transform 0.2s;
}
.booking-step-dot.active {
    background: var(--citame-primary);
    transform: scale(1.2);
}
.booking-step-dot.done {
    background: var(--citame-teal);
}
.booking-step-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.15rem 0;
    font-size: 0.8rem;
}
.booking-step-nav-link {
    color: var(--citame-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.booking-step-nav-link:hover {
    background: rgba(106, 44, 112, 0.08);
    color: var(--citame-primary-dark);
}
.booking-step-nav-current {
    font-weight: 700;
    color: var(--citame-text);
}
.booking-step-nav-pending {
    color: var(--citame-text-muted);
    opacity: 0.6;
}
.booking-step-nav-sep {
    color: var(--citame-text-muted);
    opacity: 0.4;
    margin: 0 0.15rem;
}
/* Compatibilidad con indicador anterior */
.booking-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Service picker (cards como dashboard) */
.booking-svc-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}
.booking-svc-pick {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1rem;
    background: var(--citame-section-alt);
    border: 2px solid var(--citame-lavender);
    border-radius: var(--citame-radius);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}
.booking-svc-pick:hover {
    border-color: rgba(106, 44, 112, 0.35);
    background: rgba(106, 44, 112, 0.03);
    transform: translateY(-2px);
}
.booking-svc-pick input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.booking-svc-pick:has(input:checked) {
    border-color: var(--citame-primary);
    background: rgba(106, 44, 112, 0.06);
    box-shadow: 0 0 0 3px rgba(106, 44, 112, 0.12);
}
.booking-svc-pick-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--citame-text);
    line-height: 1.3;
}
.booking-svc-pick-meta {
    font-size: 0.82rem;
    color: var(--citame-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Booking fields (como dash-field) */
.booking-field {
    margin-bottom: 1.25rem;
}
.booking-field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--citame-text);
    margin-bottom: 0.4rem;
}
.booking-field-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.booking-field-icon {
    position: absolute;
    left: 0.85rem;
    font-size: 0.88rem;
    color: var(--citame-text-muted);
    pointer-events: none;
    z-index: 1;
}
.booking-field-input-wrap:focus-within .booking-field-icon {
    color: var(--citame-primary);
}
.booking-field-input {
    padding-left: 2.5rem !important;
    border: 1.5px solid var(--citame-lavender) !important;
    border-radius: var(--citame-radius-sm) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.booking-field-input:focus {
    border-color: var(--citame-primary) !important;
    box-shadow: 0 0 0 3px rgba(106, 44, 112, 0.1) !important;
}
.booking-field-input.is-invalid,
.booking-field.booking-invalid .booking-field-input {
    border-color: var(--bs-danger, #dc3545) !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15) !important;
}
.booking-svc-picker.booking-invalid {
    outline: 2px solid var(--bs-danger, #dc3545);
    outline-offset: 2px;
    border-radius: var(--citame-radius-sm);
}
.booking-slot-list.booking-invalid {
    outline: 2px solid var(--bs-danger, #dc3545);
    outline-offset: 2px;
    border-radius: var(--citame-radius-sm);
    padding: 2px;
}

/* Time slots (como dash-slot-btn) */
.booking-slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.booking-slot-item {
    flex: 0 0 auto;
}
.booking-slot-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.booking-slot-btn {
    display: block;
    min-width: 5.5rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    border: 2px solid var(--citame-lavender);
    border-radius: var(--citame-radius-sm);
    background: var(--citame-section-alt);
    color: var(--citame-text);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    text-align: center;
    font-weight: 500;
}
.booking-slot-btn:hover {
    border-color: var(--citame-primary);
    background: rgba(106, 44, 112, 0.06);
}
.booking-slot-item:has(input:checked) .booking-slot-btn {
    border-color: var(--citame-accent);
    background: rgba(236, 74, 112, 0.12);
    color: var(--citame-accent);
    font-weight: 600;
}

/* Alertas dentro del card, encima de los botones */
.booking-alerts {
    margin-top: 1rem;
}
.booking-alerts:empty {
    display: none;
}

/* Form actions */
.booking-form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--citame-lavender);
}
.booking-form-actions .btn-primary {
    font-weight: 600;
}
.booking-edit-actions .booking-edit-label {
    display: block;
    font-size: 0.875rem;
    color: var(--citame-text-muted);
    margin-bottom: 0.5rem;
}

/* Summary (confirmar) */
.booking-summary {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.booking-summary li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--citame-bg);
    border-radius: var(--citame-radius-sm);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.booking-summary li:last-child {
    margin-bottom: 0;
}
.booking-summary-label {
    font-weight: 600;
    color: var(--citame-text-muted);
    min-width: 90px;
}
.booking-summary-value {
    color: var(--citame-text);
}
.booking-summary-intro {
    background: none !important;
    padding: 0 0 0.75rem 0 !important;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--citame-lavender);
    border-radius: 0 !important;
}
.booking-summary-intro .booking-summary-value {
    flex: 1;
    font-weight: 600;
}

/* Booking policies box */
.booking-policies {
    background: #fef9e7;
    border: 1px solid #f5e6b8;
    border-left: 4px solid #e2b93b;
    border-radius: var(--citame-radius-sm);
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
}
.booking-policies-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    color: #8a6d11;
    font-size: 0.92rem;
}
.booking-policies-header i {
    font-size: 1rem;
}
.booking-policies-list {
    margin: 0;
    padding-left: 1.3rem;
    list-style: disc;
}
.booking-policies-list li {
    font-size: 0.87rem;
    color: #5c4a0e;
    line-height: 1.45;
    padding: 0.2rem 0;
}

/* Policy items in dashboard config */
.policy-drag-handle {
    cursor: grab;
    padding: 0.35rem 0.2rem;
    opacity: 0.5;
    transition: opacity 0.15s;
}
.policy-drag-handle:hover {
    opacity: 1;
}
.policy-item .btn-outline-danger {
    min-height: 38px;
    min-width: 38px;
    padding: 0.25rem 0.5rem;
    flex-shrink: 0;
}

/* Success / error states */
.booking-result-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--citame-radius);
    border: 1px solid var(--citame-lavender);
    background: var(--citame-section-alt);
}
.booking-result-card.booking-result-success {
    border-color: var(--citame-teal);
    background: linear-gradient(180deg, rgba(117, 201, 203, 0.08) 0%, var(--citame-section-alt) 100%);
}
.booking-result-card.booking-result-danger {
    border-color: rgba(220, 53, 69, 0.3);
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.05) 0%, var(--citame-section-alt) 100%);
}
.booking-result-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}
.booking-result-success .booking-result-icon {
    background: rgba(117, 201, 203, 0.2);
    color: var(--citame-teal-dark);
}
.booking-result-danger .booking-result-icon {
    background: rgba(220, 53, 69, 0.12);
    color: var(--citame-danger);
}
.booking-result-card.booking-result-neutral {
    border-color: var(--citame-lavender);
}
.booking-result-neutral .booking-result-icon {
    background: var(--citame-lavender);
    color: var(--citame-primary);
}
.booking-result-neutral .booking-result-title {
    color: var(--citame-text);
}
.booking-result-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.booking-result-success .booking-result-title {
    color: var(--citame-teal-dark);
}
.booking-result-danger .booking-result-title {
    color: var(--citame-danger);
}
.booking-result-code {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--citame-text);
}
.booking-code-value {
    font-family: ui-monospace, monospace;
    letter-spacing: 0.15em;
    padding: 0.2rem 0.5rem;
    background: var(--citame-lavender);
    border-radius: 6px;
}
.booking-result-text {
    color: var(--citame-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Cancel flow (misma card que booking) */
.cancel-flow .booking-form-card {
    max-width: 480px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .booking-flow .booking-form-card {
        padding: 1.25rem 1rem;
    }
    .booking-form-actions {
        flex-direction: column;
    }
    .booking-form-actions .btn {
        width: 100%;
    }
    .booking-svc-picker {
        grid-template-columns: 1fr;
    }
    .booking-step-nav-links {
        font-size: 0.75rem;
    }
}

/* Dashboard: tablas como cards en móvil */
@media (max-width: 768px) {
    .table-responsive {
        border: 0;
    }
    .table-responsive .table thead {
        display: none;
    }
    .table-responsive .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--citame-lavender);
        border-radius: var(--citame-radius-sm);
        padding: 1rem;
        background: var(--citame-section-alt);
    }
    .table-responsive .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
    }
    .table-responsive .table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--citame-text-muted);
        margin-right: 0.5rem;
        flex-shrink: 0;
    }
    .table-responsive .table tbody td:last-child {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-end;
    }
    .table-responsive .table tbody td:last-child::before {
        display: none;
    }
}

/* Etiquetas para tabla de servicios en móvil */
@media (max-width: 768px) {
    .table-servicios tbody td:nth-child(1)::before { content: "Nombre"; }
    .table-servicios tbody td:nth-child(2)::before { content: "Duración"; }
    .table-servicios tbody td:nth-child(3)::before { content: "Precio"; }
    .table-servicios tbody td:nth-child(4)::before { content: "Estado"; }
}

/* Dashboard: lista de citas hoy en móvil */
@media (max-width: 576px) {
    .list-group-item.d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .list-group-item .badge {
        align-self: flex-end;
    }
}

/* Dashboard: cards de resumen en móvil */
@media (max-width: 576px) {
    .card .card-body {
        padding: 1rem !important;
    }
    .card .display-6 {
        font-size: 1.75rem;
    }
    .card .form-control {
        font-size: 14px;
    }
}

/* Cancelar cita: card centrada en móvil */
@media (max-width: 576px) {
    .row.justify-content-center .card .card-body {
        padding: 1.25rem !important;
    }
    .row.justify-content-center .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ========== Dashboard Services (modern cards) ========== */
.dash-services {
    animation: dashFadeIn 0.35s ease-out;
}

.dash-services-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.dash-services-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--citame-text);
    margin: 0 0 0.1rem;
}
.dash-services-count {
    font-size: 0.85rem;
    color: var(--citame-text-muted);
    margin: 0;
}

/* Empty card */
.dash-empty-card {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--citame-section-alt);
    border: 2px dashed var(--citame-lavender);
    border-radius: var(--citame-radius);
}
.dash-empty-card .dash-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--citame-lavender);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--citame-primary);
}
.dash-empty-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--citame-text);
    margin-bottom: 0.35rem;
}
.dash-empty-card .dash-empty-text {
    max-width: 380px;
    margin: 0 auto 1.25rem;
}

/* Services: search and filters */
.dash-services-search .input-group-text {
    background: var(--citame-section-alt);
    border-color: var(--citame-lavender);
    color: var(--citame-text-muted);
}
.dash-services-filters {
    background: var(--citame-section-alt);
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius);
    padding: 0.75rem 1rem;
}
.dash-services-filters-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}
.dash-services-filters-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--citame-text-muted);
}
.dash-services-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
.dash-services-filter-name {
    font-size: 0.8rem;
    color: var(--citame-text-muted);
    white-space: nowrap;
}
.dash-services-filter-select {
    min-width: 120px;
}

/* Service cards grid */
.dash-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.dash-svc-card {
    background: var(--citame-section-alt);
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
}
.dash-svc-card:hover {
    box-shadow: 0 8px 28px rgba(106, 44, 112, 0.1);
    transform: translateY(-2px);
}
.dash-svc-card--inactive {
    opacity: 0.6;
}
.dash-svc-card--inactive:hover {
    opacity: 0.8;
}

.dash-svc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.dash-svc-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--citame-lavender);
    color: var(--citame-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.dash-svc-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.dash-svc-switch .form-check-input {
    cursor: pointer;
}
.dash-svc-switch .form-check-input:disabled {
    cursor: wait;
}

.dash-svc-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}
.dash-svc-badge--active {
    background: rgba(117, 201, 203, 0.18);
    color: var(--citame-teal-dark);
}
.dash-svc-badge--inactive {
    background: rgba(92, 82, 99, 0.1);
    color: var(--citame-text-muted);
}

.dash-svc-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--citame-text);
    margin: 0 0 0.65rem;
    line-height: 1.3;
}

.dash-svc-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.dash-svc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--citame-text-muted);
    font-weight: 500;
}
.dash-svc-meta-item i {
    color: var(--citame-primary);
    font-size: 0.8rem;
}
.dash-svc-duration {
    flex-wrap: wrap;
}
.dash-svc-duration-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--citame-primary);
}
.dash-svc-duration-label--fixed {
    color: var(--citame-text-muted);
    font-weight: 500;
}

.dash-svc-actions {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--citame-lavender);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.dash-svc-btn {
    font-size: 0.82rem !important;
    padding: 0.35rem 0.75rem !important;
    min-height: 34px !important;
}

/* Responsive: services */
@media (max-width: 576px) {
    .dash-services-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    .dash-services-header .btn {
        width: 100%;
    }
    .dash-services-grid {
        grid-template-columns: 1fr;
    }
    .dash-svc-card {
        padding: 1rem;
    }
}

/* ========== Dashboard Form (create / edit) ========== */
.dash-form-page {
    max-width: 640px;
    margin: 0 auto;
    animation: dashFadeIn 0.35s ease-out;
}

.dash-form-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--citame-text-muted);
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: color 0.2s;
}
.dash-form-back:hover {
    color: var(--citame-primary);
}

.dash-form-card {
    background: var(--citame-section-alt);
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius);
    padding: 2rem;
}

.dash-form-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--citame-lavender);
}
.dash-form-card-icon--accent {
    background: rgba(236, 74, 112, 0.12);
    color: var(--citame-accent);
}

.dash-form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--citame-lavender);
}
.dash-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}
.dash-form-section-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.dash-form-section-top .dash-form-section-label {
    margin-bottom: 0;
}
.dash-form-section-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--citame-primary);
    margin: 0 0 1rem;
}
.dash-form-section-label i {
    font-size: 0.78rem;
}
.dash-form-section-desc {
    margin-bottom: 0.5rem;
}
.dash-overlap-options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.dash-overlap-option {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius-sm);
    background: var(--citame-section-alt);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.dash-overlap-option:hover {
    border-color: rgba(106, 44, 112, 0.35);
    background: rgba(106, 44, 112, 0.03);
}
.dash-overlap-option input[type="radio"] {
    margin-top: 0.25rem;
}
.dash-overlap-option-label {
    display: block;
    width: 100%;
}
.dash-overlap-option-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--citame-text-muted);
    font-weight: 400;
}
.dash-overlap-option-desc input.form-control-sm {
    vertical-align: middle;
}

.dash-field-input-wrap select.dash-field-input {
    padding-left: 2.5rem !important;
    border: 1.5px solid var(--citame-lavender) !important;
    border-radius: var(--citame-radius-sm) !important;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background-image: none !important;
}
.dash-field-input-wrap select.dash-field-input:focus {
    border-color: var(--citame-primary) !important;
    box-shadow: 0 0 0 3px rgba(106, 44, 112, 0.1) !important;
}

.dash-form-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: var(--citame-lavender);
    color: var(--citame-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.dash-form-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--citame-text);
    margin: 0 0 0.15rem;
}
.dash-form-card-desc {
    font-size: 0.88rem;
    color: var(--citame-text-muted);
    margin: 0;
}

/* Fields */
.dash-field {
    margin-bottom: 1.25rem;
}
.dash-field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--citame-text);
    margin-bottom: 0.4rem;
}
.dash-field-opt {
    font-weight: 400;
    color: var(--citame-text-muted);
    font-size: 0.78rem;
}

.dash-field-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* Autocomplete (clientes) */
.dash-ac-list {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    background: var(--citame-bg);
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius-sm);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    z-index: 30;
    max-height: 240px;
    overflow: auto;
    padding: 0.25rem;
}
.dash-ac-item {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    cursor: pointer;
    transition: background 0.15s;
}
.dash-ac-item:hover,
.dash-ac-item:focus {
    background: rgba(106, 44, 112, 0.06);
    outline: none;
}
.dash-ac-name {
    font-weight: 700;
    color: var(--citame-text);
    line-height: 1.15;
}
.dash-ac-meta {
    margin-top: 0.15rem;
    font-size: 0.78rem;
    color: var(--citame-text-muted);
    line-height: 1.2;
}
.dash-field-icon {
    position: absolute;
    left: 0.85rem;
    font-size: 0.88rem;
    color: var(--citame-text-muted);
    pointer-events: none;
    transition: color 0.2s;
    z-index: 1;
}
.dash-field-input-wrap:focus-within .dash-field-icon {
    color: var(--citame-primary);
}

.dash-field-input {
    padding-left: 2.5rem !important;
    border: 1.5px solid var(--citame-lavender) !important;
    border-radius: var(--citame-radius-sm) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dash-field-input:focus {
    border-color: var(--citame-primary) !important;
    box-shadow: 0 0 0 3px rgba(106, 44, 112, 0.1) !important;
}

.dash-field-suffix {
    position: absolute;
    right: 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--citame-text-muted);
    pointer-events: none;
}

.dash-field-textarea {
    border: 1.5px solid var(--citame-lavender) !important;
    border-radius: var(--citame-radius-sm) !important;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dash-field-textarea:focus {
    border-color: var(--citame-primary) !important;
    box-shadow: 0 0 0 3px rgba(106, 44, 112, 0.1) !important;
}

/* Toggle switch */
.dash-field-toggle {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--citame-bg);
    border-radius: var(--citame-radius-sm);
}
.dash-field-toggle .form-check {
    margin: 0;
    padding-left: 3rem;
}
.dash-field-toggle .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    margin-top: 0.2rem;
}
.dash-field-toggle .form-check-input:checked {
    background-color: var(--citame-primary);
    border-color: var(--citame-primary);
}
.dash-toggle-label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--citame-text);
}
.dash-toggle-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--citame-text-muted);
    margin-top: 0.1rem;
}

/* Form actions */
.dash-form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
}
.dash-form-submit {
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dash-form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(236, 74, 112, 0.3);
}
.dash-form-submit:active {
    transform: translateY(0);
}

/* Responsive: form */
@media (max-width: 576px) {
    .dash-form-card {
        padding: 1.25rem;
    }
    .dash-form-card-header {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }
    .dash-form-card-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }
    .dash-form-card-title {
        font-size: 1.1rem;
    }
    .dash-form-actions {
        flex-direction: column;
    }
    .dash-form-actions .btn {
        width: 100%;
    }
}

/* ========== Dashboard Hours (modern redesign) ========== */
.dash-hours {
    max-width: 780px;
    margin: 0 auto;
    animation: dashFadeIn 0.35s ease-out;
}

.dash-hours-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.dash-hours-header-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}
.dash-hours-icon-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: var(--citame-lavender);
    color: var(--citame-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.dash-hours-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--citame-text);
    margin: 0 0 0.2rem;
}
.dash-hours-desc {
    font-size: 0.88rem;
    color: var(--citame-text-muted);
    margin: 0;
    line-height: 1.45;
}
.dash-hours-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.dash-hours-copy {
    white-space: nowrap;
    margin-top: 0.25rem;
}

/* Day list */
.dash-hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-day {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    background: var(--citame-section-alt);
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius);
    transition: border-color 0.2s, background 0.2s, opacity 0.3s;
}
.dash-day:hover {
    border-color: rgba(106, 44, 112, 0.2);
}
.dash-day--closed {
    background: var(--citame-bg);
    opacity: 0.55;
}
.dash-day--closed:hover {
    opacity: 0.7;
}
.dash-day--closed .dash-day-center {
    pointer-events: none;
}
.dash-day--closed .dash-day-break-toggle {
    display: none;
}
.dash-day--closed .dash-day-break-times-wrap {
    display: none;
}

/* Left: icon + name */
.dash-day-left {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 130px;
}
.dash-day-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: var(--citame-lavender);
    color: var(--citame-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: background 0.2s;
}
.dash-day:hover .dash-day-icon {
    background: rgba(106, 44, 112, 0.12);
}
.dash-day-name-wrap {
    display: flex;
    flex-direction: column;
}
.dash-day-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--citame-text);
    line-height: 1.2;
}
.dash-day-short {
    display: none;
}

/* Center: time inputs */
.dash-day-center {
    flex: 1;
    min-width: 0;
}
.dash-day-times {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}
.dash-day-time-field {
    flex: 1;
    min-width: 0;
}
.dash-day-time-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--citame-text-muted);
    margin-bottom: 0.25rem;
}
.dash-day-time-input {
    border: 1.5px solid var(--citame-lavender) !important;
    border-radius: var(--citame-radius-sm) !important;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dash-day-time-input:focus {
    border-color: var(--citame-primary) !important;
    box-shadow: 0 0 0 3px rgba(106, 44, 112, 0.1) !important;
}
.dash-day-sep {
    padding-bottom: 0.45rem;
    color: var(--citame-text-muted);
    font-size: 0.75rem;
}

/* Right: switch */
.dash-day-right {
    min-width: fit-content;
}
.dash-day-switch {
    margin: 0;
    padding-left: 2.75rem;
}
.dash-day-switch .form-check-input {
    width: 2.25rem;
    height: 1.15rem;
}
.dash-day-switch .form-check-input:checked {
    background-color: var(--citame-danger);
    border-color: var(--citame-danger);
}
.dash-day-switch-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--citame-text-muted);
    cursor: pointer;
}
.dash-day-switch .form-check-input:checked ~ .dash-day-switch-label {
    color: var(--citame-danger);
}

/* Day card: wrap main row + break row */
.dash-day-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Break toggle (always visible) */
.dash-day-break-toggle {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--citame-lavender);
}
.dash-day-break-toggle .form-check {
    margin: 0;
    padding-left: 2.75rem;
}
.dash-day-break-toggle .form-check-input {
    width: 2rem;
    height: 1rem;
}
.dash-day-break-toggle .form-check-input:checked {
    background-color: var(--citame-warning);
    border-color: var(--citame-warning);
}
.dash-day-break-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--citame-text-muted);
    cursor: pointer;
    white-space: nowrap;
}
.dash-day-break-label i {
    color: var(--citame-warning);
    font-size: 0.78rem;
}
.dash-day-break-toggle .form-check-input:checked ~ .dash-day-break-label {
    color: var(--citame-text);
}

/* Break times (collapsible) */
.dash-day-break-times-wrap {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.3s ease;
}
.dash-day-break-times--open {
    max-height: 100px;
    opacity: 1;
    overflow: visible;
    margin-top: 0.5rem;
}

.dash-day-break-times {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 193, 7, 0.06);
    border: 1px dashed rgba(255, 193, 7, 0.3);
    border-radius: var(--citame-radius-sm);
}

/* Footer */
.dash-hours-footer {
    margin-top: 1.5rem;
}

/* Responsive: hours */
@media (max-width: 768px) {
    .dash-hours-header {
        flex-direction: column;
    }
    .dash-hours-copy {
        width: 100%;
    }
    .dash-day {
        padding: 1rem;
    }
    .dash-day-main {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .dash-day-left {
        min-width: unset;
        flex: 1;
    }
    .dash-day-center {
        flex-basis: 100%;
        order: 3;
    }
    .dash-day-right {
        margin-left: auto;
    }
    .dash-day-break-times {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .dash-hours-icon-wrap {
        display: none;
    }
    .dash-day-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.8rem;
    }
    .dash-day-name {
        display: none;
    }
    .dash-day-short {
        display: block;
        font-weight: 700;
        font-size: 0.92rem;
        color: var(--citame-text);
    }
    .dash-day-time-label {
        font-size: 0.68rem;
    }
    .dash-hours-footer .btn {
        width: 100%;
    }
}

/* ========== Dashboard Calendar (FullCalendar) ========== */
.dash-cal {
    animation: dashFadeIn 0.35s ease-out;
}
.fc-day--closed {
    background: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 5px,
        rgba(0, 0, 0, 0.03) 5px,
        rgba(0, 0, 0, 0.03) 10px
    ) !important;
}
.fc-day--closed .fc-daygrid-day-number {
    opacity: 0.4;
}
.dash-cal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.dash-cal-header-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}
.dash-cal-icon-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: rgba(236, 74, 112, 0.12);
    color: var(--citame-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.dash-cal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--citame-text);
    margin: 0 0 0.15rem;
}
.dash-cal-desc {
    font-size: 0.88rem;
    color: var(--citame-text-muted);
    margin: 0;
}

/* FullCalendar theme overrides */
#fullcalendar {
    background: #fff;
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius);
    overflow: hidden;
    padding: 0.5rem;
}
/* Espacio entre bloques del toolbar (flechas | título | vistas) */
.fc .fc-toolbar {
    gap: 0.75rem 1.25rem !important;
}
/* Espacio entre botones dentro de cada bloque (prev/next, Hoy, Mes/Semana/Día) */
.fc .fc-toolbar-chunk {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem !important;
}
.fc .fc-toolbar-chunk .fc-button {
    margin: 0 !important;
}
/* Espacio entre botones Mes / Semana / Día */
.fc .fc-button-group {
    display: flex !important;
    gap: 0.5rem !important;
}
.fc .fc-button-group .fc-button {
    margin: 0 !important;
}
.fc .fc-toolbar-title {
    font-size: 1.15rem !important;
    font-weight: 700;
    color: var(--citame-text);
    text-transform: capitalize;
}
.fc .fc-button-primary {
    background-color: var(--citame-primary) !important;
    border-color: var(--citame-primary) !important;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--citame-radius-sm) !important;
    padding: 0.35rem 0.75rem;
}
.fc .fc-button-primary:hover {
    background-color: #5a2460 !important;
    border-color: #5a2460 !important;
}
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background-color: #5a2460 !important;
    border-color: #5a2460 !important;
}
.fc .fc-button-primary:disabled {
    opacity: 0.5;
}
.fc .fc-col-header-cell {
    background: rgba(106, 44, 112, 0.06);
    padding: 0.5rem 0;
}
.fc .fc-col-header-cell-cushion {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--citame-primary);
    text-transform: uppercase;
    text-decoration: none;
}
.fc .fc-daygrid-day-number {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--citame-text);
    text-decoration: none;
    padding: 0.35rem 0.5rem;
}
.fc .fc-daygrid-day.fc-day-today {
    background: rgba(106, 44, 112, 0.06) !important;
}
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background: var(--citame-primary);
    color: #fff;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
}
.fc .fc-daygrid-event {
    border-radius: 4px !important;
    padding: 1px 4px;
    font-size: 0.75rem;
    cursor: pointer;
}
.fc .fc-daygrid-event:hover {
    filter: brightness(0.9);
}
.fc .fc-event-title {
    font-weight: 500;
}
.fc .fc-daygrid-more-link {
    color: var(--citame-primary) !important;
    font-weight: 700;
    font-size: 0.75rem;
}
.fc .fc-timegrid-slot-label-cushion {
    font-size: 0.78rem;
    color: var(--citame-text-muted);
}
.fc .fc-timegrid-event {
    border-radius: 4px !important;
    cursor: pointer;
}
.fc .fc-timegrid-now-indicator-line {
    border-color: var(--citame-coral) !important;
}
.fc .fc-timegrid-now-indicator-arrow {
    border-color: var(--citame-coral) !important;
    color: var(--citame-coral) !important;
}
.fc td, .fc th {
    border-color: var(--citame-lavender) !important;
}
.fc .fc-scrollgrid {
    border-color: var(--citame-lavender) !important;
}
.fc .fc-day-other .fc-daygrid-day-number {
    opacity: 0.4;
}
.fc .fc-popover {
    border-radius: var(--citame-radius-sm) !important;
    box-shadow: 0 8px 24px rgba(106, 44, 112, 0.15) !important;
    border-color: var(--citame-lavender) !important;
}
.fc .fc-popover-header {
    background: rgba(106, 44, 112, 0.06) !important;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--citame-primary);
}

/* Calendar day modal */
@keyframes dashSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.dash-cal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: dashFadeIn 0.2s ease-out;
}
.dash-cal-modal {
    background: #fff;
    border-radius: var(--citame-radius);
    box-shadow: 0 16px 48px rgba(106, 44, 112, 0.2);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dashSlideUp 0.25s ease-out;
}
.dash-cal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--citame-lavender);
    background: rgba(106, 44, 112, 0.03);
}
.dash-cal-modal-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--citame-primary);
    display: flex;
    align-items: center;
}
.dash-cal-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--citame-text-muted);
    cursor: pointer;
    padding: 0 0.25rem;
    transition: color 0.15s;
}
.dash-cal-modal-close:hover {
    color: var(--citame-danger);
}
.dash-cal-modal-body {
    padding: 1.15rem 1.25rem 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(90vh - 4.5rem);
    -webkit-overflow-scrolling: touch;
}
.dash-cal-modal-loading,
.dash-cal-modal-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--citame-text-muted);
    font-size: 0.9rem;
}
.dash-cal-modal-add-wrap {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.dash-hours-outside-alert { margin-bottom: 1.25rem; }
.dash-hours-outside-list { padding-left: 0; }
.dash-hours-outside-item {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
}
.dash-hours-outside-item:last-child { border-bottom: 0; }
.dash-hours-outside-date { font-weight: 600; margin-right: 0.5rem; }
.dash-hours-outside-time { color: var(--citame-text-muted); margin-right: 0.25rem; }

/* Appointment card inside modal */
.dash-cmod-item {
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.dash-cmod-item:last-child { margin-bottom: 0; }
.dash-cmod-item:hover {
    border-color: rgba(106, 44, 112, 0.25);
    box-shadow: 0 2px 8px rgba(106, 44, 112, 0.06);
}
.dash-cmod-item--completed,
.dash-cmod-item--cancelled {
    background: #f3f4f6; /* gris sutil */
    border-color: rgba(148, 163, 184, 0.55);
}
.dash-cmod-item--cancelled { opacity: 0.8; }
.dash-cmod-item--outside-hours {
    border-left: 3px solid #ca8a04;
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
}
.dash-cmod-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}
.dash-cmod-badges-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}
.dash-cmod-outside-hint {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--citame-text-muted);
    margin-bottom: 0.2rem;
}
.dash-cmod-outside-hint i { color: #b45309; opacity: 0.9; }
.dash-dapp-badge--outside {
    background: #ca8a04;
    color: #fff;
    border: 1px solid #ca8a04;
    font-size: 0.7rem;
    font-weight: 600;
}
.fc-event--outside-hours {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%) !important;
    border-color: #ca8a04 !important;
    border-left-width: 3px !important;
    border-left-color: #b45309 !important;
    color: #713f12 !important;
    box-shadow: none;
}
.fc-event--outside-hours .fc-event-main,
.fc-event--outside-hours .fc-event-title,
.fc-event--outside-hours .fc-sticky,
.fc-event--outside-hours .fc-event-main *,
.fc-event--outside-hours .fc-event-title * {
    background: transparent !important;
    color: #713f12 !important;
}
.dash-cmod-item-top.row {
    margin-bottom: 0.5rem;
}
.dash-cmod-id {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--citame-primary);
    line-height: 1.2;
    min-width: 2rem;
    font-variant-numeric: tabular-nums;
}
.dash-cmod-time { font-weight: 700; color: var(--citame-primary); font-size: 0.9rem; }
.min-width-0 { min-width: 0; }
.dash-cmod-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.dash-cmod-item-detail { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; }
.dash-cmod-code { font-size: 0.8rem; color: var(--citame-text-muted); margin-bottom: 0.15rem; }
.dash-cmod-code strong { font-family: ui-monospace, monospace; letter-spacing: 0.1em; color: var(--citame-primary); }
.dash-cmod-client { font-weight: 600; color: var(--citame-heading); }
.dash-cmod-service { color: var(--citame-text-muted); font-size: 0.82rem; }
.dash-cmod-details.row {
    font-size: 0.8rem;
    color: var(--citame-text-muted);
    padding-top: 0.35rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.dash-cmod-details.row .col-12 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}
.dash-cmod-detail { display: inline-flex; align-items: center; }
.dash-cmod-detail i { opacity: 0.85; }
.dash-cmod-contacts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.2rem; }
.dash-cmod-contact { font-size: 0.78rem; color: var(--citame-text-muted); }
.dash-cmod-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.dash-cmod-actions .btn {
    border-radius: var(--citame-radius-sm);
}
.dash-cmod-actions .dropdown {
    flex-shrink: 0;
}
.dash-cmod-action { font-size: 0.78rem; padding: 0.35rem 0.65rem; border-radius: var(--citame-radius-sm); }

/* Custom action buttons */
.dash-btn--confirm {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.dash-btn--confirm:hover {
    background: #047857;
    color: #fff;
    border-color: #047857;
}
.dash-btn--complete {
    background: #f3eef8;
    color: var(--citame-primary);
    border: 1px solid #d4bde6;
}
.dash-btn--complete:hover {
    background: var(--citame-primary);
    color: #fff;
    border-color: var(--citame-primary);
}
.dash-btn--cancel {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.dash-btn--cancel:hover {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}
.dash-btn--delete {
    background: #f5f5f5;
    color: #6b7280;
    border: 1px solid #d1d5db;
}
.dash-btn--delete:hover {
    background: #6b7280;
    color: #fff;
}
.dash-btn--whatsapp {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    border-radius: var(--citame-radius-sm);
}
.dash-btn--whatsapp:hover {
    background: #15803d;
    color: #fff;
    border-color: #15803d;
}
.dash-btn--whatsapp i {
    color: inherit;
}
    border-color: #6b7280;
}

/* Confirm dialog: overlay fijo sobre viewport (debe ser hijo de body para no quedar atrapado por transform/animación) */
.dash-confirm-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important; /* altura visible en móvil (evita barra de dirección) */
    max-height: 100vh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    overflow: auto !important; /* scroll dentro del overlay si hace falta */
    -webkit-overflow-scrolling: touch;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: dashFadeIn 0.15s ease-out;
    box-sizing: border-box;
}
/* Evitar scroll del fondo cuando hay modal abierto (sin position:fixed en body para que el overlay siga visible) */
body.dash-modal-open {
    overflow: hidden !important;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}
.dash-confirm-box {
    background: #fff;
    border-radius: var(--citame-radius);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    max-width: 380px;
    width: 100%;
    animation: dashSlideUp 0.2s ease-out;
}
.dash-confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.dash-confirm-icon--confirm {
    background: #ecfdf5;
    color: #047857;
}
.dash-confirm-icon--complete {
    background: #f3eef8;
    color: var(--citame-primary);
}
.dash-confirm-icon--cancel {
    background: #fef2f2;
    color: #b91c1c;
}
.dash-confirm-icon--delete {
    background: #f3f4f6;
    color: #6b7280;
}
.dash-confirm-msg {
    font-size: 0.95rem;
    color: var(--citame-text);
    font-weight: 500;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.dash-confirm-msg-hint {
    display: block;
    font-size: 0.875rem;
    color: var(--citame-text-muted, #6b7280);
    font-weight: 400;
    margin-top: 0.35rem;
}
.dash-confirm-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.dash-confirm-yes {
    padding: 0.45rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
}
.dash-confirm-no {
    padding: 0.45rem 1.25rem;
    font-weight: 500;
    font-size: 0.85rem;
    background: var(--citame-section-alt);
    color: var(--citame-text-muted);
    border: 1px solid var(--citame-lavender);
}
.dash-confirm-no:hover {
    background: var(--citame-lavender);
    color: var(--citame-text);
}

/* Modal opciones WhatsApp (elegir tipo de mensaje) */
.dash-wa-options-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: dashFadeIn 0.15s ease-out;
}
.dash-wa-options-box {
    background: #fff;
    border-radius: var(--citame-radius);
    box-shadow: 0 16px 48px rgba(106, 44, 112, 0.2);
    padding: 0;
    max-width: 360px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: dashSlideUp 0.2s ease-out;
}
.dash-wa-options-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--citame-lavender);
    background: rgba(37, 211, 102, 0.06);
}
.dash-wa-options-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--citame-heading);
}
.dash-wa-options-title i {
    color: #25d366;
}
.dash-wa-options-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--citame-text-muted);
    cursor: pointer;
    padding: 0 0.25rem;
    transition: color 0.15s;
}
.dash-wa-options-close:hover {
    color: var(--citame-danger);
}
.dash-wa-options-desc {
    padding: 0.75rem 1.25rem 0.5rem;
    margin: 0;
    font-size: 0.875rem;
    color: var(--citame-text-muted);
}
.dash-wa-options-list {
    padding: 0.5rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: auto;
}
.dash-wa-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.65rem 1rem;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--citame-heading);
    background: #fff;
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius-sm);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.dash-wa-option:hover {
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.35);
}
.dash-wa-option i {
    color: #25d366;
    opacity: 0.9;
}
.dash-wa-option--muted {
    color: var(--citame-text-muted);
    font-weight: 400;
}
.dash-wa-option--muted i {
    color: var(--citame-text-muted);
}

/* Modal duración de cita: overlay fijo sobre viewport */
.dash-duration-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: dashFadeIn 0.15s ease-out;
    box-sizing: border-box;
}
.dash-duration-box {
    background: var(--citame-section-alt);
    border-radius: var(--citame-radius);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    max-width: 380px;
    width: 100%;
    border: 1px solid var(--citame-lavender);
    animation: dashSlideUp 0.2s ease-out;
}
.dash-duration-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: #ecfdf5;
    color: #047857;
}
.dash-duration-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--citame-text);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.dash-duration-field {
    margin-bottom: 1.25rem;
    text-align: left;
}
.dash-duration-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--citame-text-muted);
    margin-bottom: 0.35rem;
}
.dash-duration-field input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius-sm);
    background: var(--citame-bg);
    color: var(--citame-text);
}
.dash-duration-field input:focus {
    outline: none;
    border-color: var(--citame-primary);
    box-shadow: 0 0 0 3px rgba(106, 44, 112, 0.15);
}
.dash-duration-hint {
    font-size: 0.8rem;
    color: var(--citame-text-muted);
    margin-top: 0.35rem;
}
.dash-duration-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.dash-duration-actions .btn {
    padding: 0.45rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Responsive calendar */
@media (max-width: 768px) {
    .dash-cal-header { flex-direction: column; }
    .dash-cal-header .btn { width: 100%; }
    .fc .fc-toolbar { flex-direction: column; gap: 0.75rem !important; }
    .fc .fc-toolbar-title { font-size: 1rem !important; }
}
@media (max-width: 575px) {
    .dash-cal-icon-wrap { display: none; }
    .dash-cal-modal { max-height: 90vh; max-width: 100%; }
    .dash-cal-modal-body { padding: 0.85rem 0.75rem 1rem; }
    .fc .fc-button-primary { font-size: 0.72rem; padding: 0.25rem 0.5rem; }

    /* Cards de detalle de cita optimizadas para móvil */
    .dash-cmod-item {
        padding: 0.65rem 0.75rem;
        margin-bottom: 0.6rem;
    }
    .dash-cmod-item-top.row {
        margin-bottom: 0.4rem;
    }
    .dash-cmod-item-top .col.min-width-0 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .dash-cmod-id { font-size: 1.15rem; }
    .dash-cmod-time { font-size: 0.85rem; }
    .dash-cmod-client,
    .dash-cmod-service {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .dash-cmod-details.row .col-12 {
        flex-direction: column;
        gap: 0.35rem;
    }
    .dash-cmod-detail {
        min-height: 2.25rem;
        align-items: center;
    }
    .dash-cmod-detail a[href^="tel:"],
    .dash-cmod-detail a[href^="mailto:"] {
        padding: 0.2rem 0;
        display: inline-flex;
        align-items: center;
        min-height: 2rem;
    }
    .dash-cmod-actions {
        flex-direction: column;
        gap: 0.4rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    .dash-cmod-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 2.75rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    .dash-cmod-actions .btn i.me-1 { margin-right: 0.35rem; }
    .dash-cmod-action {
        min-height: 2.75rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* ========== Service Picker (card buttons) ========== */
.dash-svc-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.65rem;
}

.dash-svc-pick {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    background: var(--citame-section-alt);
    border: 2px solid var(--citame-lavender);
    border-radius: var(--citame-radius);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}
.dash-svc-pick:hover {
    border-color: rgba(106, 44, 112, 0.35);
    background: rgba(106, 44, 112, 0.03);
    transform: translateY(-1px);
}
.dash-svc-pick--active {
    border-color: var(--citame-primary);
    background: rgba(106, 44, 112, 0.06);
    box-shadow: 0 0 0 3px rgba(106, 44, 112, 0.12);
}
.dash-svc-pick--active .dash-svc-pick-name {
    color: var(--citame-primary);
}

.dash-svc-pick-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--citame-text);
    transition: color 0.2s;
    flex: 1;
    min-width: 0;
}

.dash-svc-pick-duration {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--citame-text-muted);
    opacity: 0.85;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.dash-svc-pick--active .dash-svc-pick-duration {
    color: var(--citame-primary);
    opacity: 0.75;
}

.dash-svc-pick-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--citame-text-muted);
    font-weight: 500;
}
.dash-svc-pick-meta i {
    font-size: 0.72rem;
    margin-right: 0.2rem;
    color: var(--citame-primary);
}

@media (max-width: 576px) {
    .dash-svc-picker {
        grid-template-columns: 1fr;
    }
}

/* ========== Toast notifications (bottom-right) ========== */
.dash-toast-container {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    max-width: 420px;
    width: calc(100% - 2.5rem);
    pointer-events: none;
}
.dash-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    border-radius: var(--citame-radius-sm);
    border-left: 4px solid;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.dash-toast--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.dash-toast--success {
    background: #fff;
    border-left-color: var(--citame-teal);
    color: #0f5132;
}
.dash-toast--success i { color: var(--citame-teal-dark); }
.dash-toast--danger {
    background: #fff;
    border-left-color: var(--citame-danger);
    color: #842029;
}
.dash-toast--danger i { color: var(--citame-danger); }
.dash-toast--warning {
    background: #fff;
    border-left-color: var(--citame-warning);
    color: #664d03;
}
.dash-toast--warning i { color: #b38600; }

.dash-toast-body {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}
.dash-toast-body i {
    margin-top: 0.15rem;
    font-size: 1rem;
    flex-shrink: 0;
}
.dash-toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.dash-toast-close:hover { opacity: 1; }

@media (max-width: 576px) {
    .dash-toast-container {
        bottom: 0.75rem;
        right: 0.75rem;
        width: calc(100% - 1.5rem);
    }
}

/* ========== Inline form alerts (near action buttons) ========== */
.dash-alert {
    border-radius: var(--citame-radius-sm);
    font-size: 0.9rem;
    padding: 0.85rem 1.15rem;
    border-width: 0;
    border-left: 4px solid;
    animation: dashAlertIn 0.3s ease-out;
}
@keyframes dashAlertIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dash-alert.alert-danger {
    background: rgba(220, 53, 69, 0.06);
    border-left-color: var(--citame-danger);
    color: #842029;
}
.dash-alert.alert-danger i {
    color: var(--citame-danger);
}

.dash-time-adjusted-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--citame-radius-sm);
    border-left: 4px solid var(--citame-warning);
    background: rgba(255, 193, 7, 0.1);
    color: #664d03;
}
.dash-time-adjusted-warning i {
    color: var(--citame-warning);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.dash-validation-alert {
    margin-bottom: 0.75rem;
}
.dash-validation-alert ul {
    font-size: 0.86rem;
    line-height: 1.6;
}

.dash-field-input.is-invalid,
.dash-field-textarea.is-invalid,
select.dash-field-input.is-invalid {
    border-color: var(--citame-danger) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12) !important;
}

.dash-svc-picker--error {
    outline: 2px solid var(--citame-danger);
    outline-offset: 4px;
    border-radius: var(--citame-radius);
}

.dash-day-schedule-hint {
    font-size: 0.78rem;
    color: var(--citame-text-muted);
    margin: 0.35rem 0 0 0;
    min-height: 1.2em;
}

.dash-slot-picker-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.dash-overlap-badge {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--citame-text-muted);
    background: rgba(106, 44, 112, 0.06);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--citame-lavender);
}

.dash-slot-picker-wrap {
    margin-top: 0.75rem;
}
.dash-slot-picker-wrap.dash-slot-picker--error {
    outline: 2px solid var(--citame-danger);
    outline-offset: 4px;
    border-radius: var(--citame-radius-sm);
    padding: 0.5rem;
}
.dash-slot-picker-hint {
    margin-bottom: 0.5rem;
}
.dash-slot-picker-loading {
    padding: 0.75rem 0;
    color: var(--citame-text-muted);
    font-size: 0.9rem;
}
.dash-slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.dash-slot-btn {
    min-width: 5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius-sm);
    background: var(--citame-section-alt);
    color: var(--citame-text);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.dash-slot-btn:hover {
    border-color: var(--citame-primary);
    background: rgba(106, 44, 112, 0.06);
}
.dash-slot-btn--active {
    border-color: var(--citame-accent);
    background: rgba(236, 74, 112, 0.12);
    color: var(--citame-accent);
    font-weight: 600;
}

/* ========== Day appointments in cita form ========== */
.dash-day-appointments {
    margin-top: 1rem;
    background: var(--citame-section-alt);
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius);
    overflow: hidden;
    animation: dashFadeIn 0.3s ease-out;
}
.dash-day-appointments-header {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--citame-primary);
    background: rgba(106, 44, 112, 0.05);
    border-bottom: 1px solid var(--citame-lavender);
}
.dash-day-appointments-count {
    margin-left: auto;
    background: var(--citame-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-day-appointments-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 0.5rem;
}
.dash-day-appointments-empty {
    padding: 1rem;
    text-align: center;
    color: var(--citame-text-muted);
    font-size: 0.85rem;
}
.dash-dapp-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.85rem;
    transition: background 0.15s;
}
.dash-dapp-item:last-child {
    border-bottom: none;
}
.dash-dapp-item:hover {
    background: rgba(106, 44, 112, 0.03);
}
.dash-dapp-item--outside-hours,
.dash-day-appointments-list .dash-cmod-item--outside-hours {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-left: 3px solid #ca8a04;
}
.dash-day-appointments-list .dash-cmod-item {
    margin-left: 0;
    margin-right: 0;
}
.dash-dapp-item--outside-hours {
    margin-left: 0;
    padding-left: calc(1rem - 3px);
}
.dash-dapp-outside-hint {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--citame-text-muted);
    margin-top: 0.2rem;
}
.dash-dapp-outside-hint i { color: #b45309; opacity: 0.9; }
.dash-dapp-time {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--citame-primary);
    font-size: 0.82rem;
    min-width: 110px;
}
.dash-dapp-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.dash-dapp-client {
    font-weight: 500;
    color: var(--citame-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-dapp-service {
    font-size: 0.78rem;
    color: var(--citame-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-dapp-code {
    font-size: 0.75rem;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.08em;
    color: var(--citame-primary);
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    background: var(--citame-lavender);
    border-radius: 6px;
    flex-shrink: 0;
}
.dash-dapp-badge {
    flex-shrink: 0;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.dash-dapp-badge--pending {
    background: #fef3e2;
    color: #b45309;
    border: 1px solid #fcd99e;
}
.dash-dapp-badge--confirmed {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.dash-dapp-badge--completed {
    background: #f3eef8;
    color: var(--citame-primary);
    border: 1px solid #d4bde6;
}
.dash-dapp-badge--cancelled {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.dash-dapp-badge--code {
    background: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}
@media (max-width: 575px) {
    .dash-dapp-item {
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    .dash-dapp-time { min-width: auto; }
    .dash-dapp-badge { margin-left: auto; }
}

/* ========== Flatpickr theme overrides ========== */
.flatpickr-calendar {
    z-index: 1060 !important;
    border-radius: var(--citame-radius) !important;
    box-shadow: 0 8px 30px rgba(106, 44, 112, 0.18) !important;
    border: 1px solid var(--citame-lavender) !important;
    font-family: inherit !important;
    overflow: hidden;
}
.flatpickr-calendar.hasTime .flatpickr-time {
    border-top: 1px solid var(--citame-lavender) !important;
}

/* Calendar date styles */
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--citame-primary) !important;
    border-color: var(--citame-primary) !important;
}
.flatpickr-day.today {
    border-color: var(--citame-coral) !important;
}
.flatpickr-day.today:hover {
    background: var(--citame-coral) !important;
    border-color: var(--citame-coral) !important;
    color: #fff !important;
}
.flatpickr-day:hover {
    background: rgba(106, 44, 112, 0.08) !important;
    border-color: rgba(106, 44, 112, 0.15) !important;
}
/* Fechas no disponibles (ej. negocio cerrado): tachado */
.flatpickr-day.flatpickr-disabled {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}
.flatpickr-months .flatpickr-month {
    color: var(--citame-primary);
    fill: var(--citame-primary);
    height: 40px;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
    color: var(--citame-primary);
    font-weight: 600;
}
.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: rgba(106, 44, 112, 0.06);
}
span.flatpickr-weekday {
    color: var(--citame-primary);
    font-weight: 600;
    font-size: 0.8rem;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: var(--citame-primary) !important;
    color: var(--citame-primary) !important;
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--citame-coral) !important;
}

/* Time picker styles */
.flatpickr-calendar.noCalendar {
    width: auto !important;
    min-width: 180px;
    padding: 0.5rem 0.25rem;
}
.flatpickr-time {
    max-height: none !important;
    height: auto !important;
    padding: 0.5rem 0 !important;
    border: none !important;
}
.flatpickr-time .numInputWrapper {
    height: 52px;
    border-radius: var(--citame-radius-sm);
    background: var(--citame-section-alt);
    border: 1.5px solid var(--citame-lavender);
    transition: border-color 0.2s;
}
.flatpickr-time .numInputWrapper:hover {
    border-color: var(--citame-primary);
    background: #fff;
}
.flatpickr-time input {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: var(--citame-primary) !important;
    background: transparent !important;
    border-radius: var(--citame-radius-sm) !important;
}
.flatpickr-time input:hover,
.flatpickr-time input:focus {
    background: transparent !important;
    box-shadow: none !important;
}
.flatpickr-time .flatpickr-time-separator {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--citame-text-muted);
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flatpickr-time .numInputWrapper span {
    border: none !important;
    background: transparent;
    opacity: 0;
    transition: opacity 0.2s;
}
.flatpickr-time .numInputWrapper:hover span {
    opacity: 1;
}
.flatpickr-time .numInputWrapper span.arrowUp {
    top: 2px;
    right: 2px;
}
.flatpickr-time .numInputWrapper span.arrowDown {
    bottom: 2px;
    right: 2px;
}
.flatpickr-time .numInputWrapper span.arrowUp:after {
    border-bottom-color: var(--citame-primary) !important;
}
.flatpickr-time .numInputWrapper span.arrowDown:after {
    border-top-color: var(--citame-primary) !important;
}
.flatpickr-time .numInputWrapper span:hover {
    background: rgba(106, 44, 112, 0.08) !important;
    border-radius: 4px;
}

/* Readonly inputs for Flatpickr */
input.dash-field-input[readonly],
input.dash-day-time-input[readonly] {
    background-color: #fff;
    cursor: pointer;
}

/* ========== Dashboard Special Days ========== */
.dash-special {
    max-width: 780px;
    margin: 0 auto;
    animation: dashFadeIn 0.35s ease-out;
}

.dash-special-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.dash-special-header-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.dash-special-icon-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: rgba(220, 53, 69, 0.1);
    color: var(--citame-danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.dash-special-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--citame-text);
    margin: 0 0 0.15rem;
}
.dash-special-desc {
    font-size: 0.88rem;
    color: var(--citame-text-muted);
    margin: 0;
    line-height: 1.45;
}

/* Form card */
.dash-special-form-card {
    background: var(--citame-section-alt);
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.dash-special-form-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--citame-primary);
    margin: 0 0 1.25rem;
}
.dash-special-form-title i {
    font-size: 0.78rem;
}

.dash-special-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Type selector (closed / custom) */
.dash-special-type {
    margin-bottom: 1rem;
}
.dash-special-type-options {
    display: flex;
    gap: 0.75rem;
}
.dash-special-option {
    flex: 1;
    cursor: pointer;
}
.dash-special-option input {
    display: none;
}
.dash-special-option-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--citame-lavender);
    border-radius: var(--citame-radius-sm);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--citame-text-muted);
}
.dash-special-option-card i {
    font-size: 1rem;
}
.dash-special-option input:checked ~ .dash-special-option-card {
    box-shadow: 0 0 0 3px rgba(106, 44, 112, 0.12);
}
.dash-special-option--closed input:checked ~ .dash-special-option-card {
    border-color: var(--citame-danger);
    background: rgba(220, 53, 69, 0.05);
    color: var(--citame-danger);
}
.dash-special-option--custom input:checked ~ .dash-special-option-card {
    border-color: var(--citame-primary);
    background: rgba(106, 44, 112, 0.05);
    color: var(--citame-primary);
}

/* Custom times */
.dash-special-custom-times {
    margin-bottom: 1rem;
    animation: dashFadeIn 0.25s ease-out;
}
.dash-special-custom-times-inner {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    background: var(--citame-bg);
    border-radius: var(--citame-radius-sm);
    border: 1px solid var(--citame-lavender);
}

/* List */
.dash-special-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.dash-special-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--citame-section-alt);
    border: 1px solid var(--citame-lavender);
    border-radius: var(--citame-radius);
    transition: border-color 0.2s;
}
.dash-special-item:hover {
    border-color: rgba(106, 44, 112, 0.2);
}
.dash-special-item--past {
    opacity: 0.5;
}

.dash-special-item-date {
    width: 48px;
    min-width: 48px;
    height: 52px;
    background: var(--citame-lavender);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.dash-special-item-day {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--citame-primary);
    line-height: 1;
}
.dash-special-item-month {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--citame-primary);
    opacity: 0.7;
}

.dash-special-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.dash-special-item-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--citame-text);
}
.dash-special-item-reason {
    font-size: 0.82rem;
    color: var(--citame-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-special-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
}
.dash-special-badge--closed {
    background: rgba(220, 53, 69, 0.1);
    color: var(--citame-danger);
}
.dash-special-badge--custom {
    background: rgba(106, 44, 112, 0.08);
    color: var(--citame-primary);
}

.dash-special-item-delete {
    display: inline;
}

/* Responsive: special days */
@media (max-width: 576px) {
    .dash-special-icon-wrap {
        display: none;
    }
    .dash-special-form-grid {
        grid-template-columns: 1fr;
    }
    .dash-special-type-options {
        flex-direction: column;
        gap: 0.5rem;
    }
    .dash-special-item {
        flex-wrap: wrap;
        gap: 0.65rem;
    }
    .dash-special-item-status {
        order: 3;
        flex-basis: 100%;
    }
    .dash-special-form-card {
        padding: 1.25rem;
    }
}

/* Footer vistas usuario final (portal reservas, cancelar, comentarios) */
.footer-cliente {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(248, 246, 251, 0.6);
}
.footer-cliente .footer-heart {
    color: var(--citame-danger, #dc3545);
}
.footer-cliente-link:hover {
    color: var(--citame-primary, #6A2C70) !important;
}
.body-with-footer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.body-with-footer main {
    flex: 1 0 auto;
}

/* ----- Demo: banner en panel y pantalla expirada (RAPP-FE-M-018, RAPP-FE-M-019) ----- */
.demo-banner {
    padding: 0.5rem 1rem;
    margin: 0 0 1rem 0;
    border-radius: var(--citame-radius-sm, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.demo-banner--info {
    background: linear-gradient(135deg, var(--citame-lavender) 0%, rgba(233, 225, 247, 0.7) 100%);
    border: 1px solid rgba(106, 44, 112, 0.2);
    color: var(--citame-primary-dark, #552259);
}
.demo-banner--urgent {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border: 1px solid #ffc107;
    color: #856404;
}
.demo-banner-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.demo-banner-icon {
    font-size: 1.1rem;
    opacity: 0.9;
}
.demo-banner-text {
    font-size: 0.9rem;
}
.demo-banner-cta {
    white-space: nowrap;
}
@media (max-width: 576px) {
    .demo-banner { padding: 0.6rem 0.75rem; }
    .demo-banner-text { font-size: 0.85rem; }
}

.demo-expirada-card {
    border-radius: var(--citame-radius, 14px);
    overflow: hidden;
}
.demo-expirada-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--citame-lavender);
    color: var(--citame-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}
.auth-page .demo-card-icon .fa-gift {
    color: var(--citame-primary);
}
