/* =====================================================================
   Don Castio - Hoja de estilos global
   Extraida del <head> de index.php (se conserva el orden de cascada).
   Se carga via <link rel="stylesheet" href="css/styles.css"> en <head>.
   ===================================================================== */

/* ICONOS LUCIDE: tamaño y estilo coherente */
/* Estado inicial: invisible mientras lucide.createIcons() no haya corrido.
           Tras 4 segundos sin renderizarse, mostrar un punto neutro como fallback. */
i[data-lucide] {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    visibility: hidden;
    position: relative;
}

/* Fallback: si Lucide tarda más de 4s, mostrar un punto pequeño */
@keyframes showIconFallback {
    to {
        visibility: visible;
    }
}

i[data-lucide] {
    animation: showIconFallback 0s linear 4s forwards;
}

i[data-lucide]::before {
    content: '•';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    opacity: 0.4;
    font-size: 0.8em;
}

/* Una vez convertidos a SVG por Lucide, el ::before desaparece */
svg[data-lucide] {
    display: inline-block;
    visibility: visible;
}

svg[data-lucide]::before {
    display: none;
}

[data-lucide] {
    width: 1em;
    height: 1em;
    stroke-width: 1.75;
    display: inline-block;
    vertical-align: -0.125em;
}

/* Tamaños semánticos */
.icon-xs [data-lucide],
[data-lucide].xs {
    width: 12px;
    height: 12px;
}

.icon-sm [data-lucide],
[data-lucide].sm {
    width: 14px;
    height: 14px;
}

.icon-md [data-lucide],
[data-lucide].md {
    width: 18px;
    height: 18px;
}

.icon-lg [data-lucide],
[data-lucide].lg {
    width: 22px;
    height: 22px;
}

.icon-xl [data-lucide],
[data-lucide].xl {
    width: 28px;
    height: 28px;
}

.icon-2xl [data-lucide],
[data-lucide].xxl {
    width: 40px;
    height: 40px;
}

.icon-3xl [data-lucide],
[data-lucide].xxxl {
    width: 56px;
    height: 56px;
}

/* Wrapper de icono circular dorado (estilo profesional) */
.icon-circle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201, 160, 61, 0.12);
    color: #C9A03D;
    flex-shrink: 0;
}

.icon-circle-sm {
    width: 32px;
    height: 32px;
}

.icon-circle-lg {
    width: 52px;
    height: 52px;
}

:root {
    --color-navy: #0D1B2A;
    --color-card: #162030;
    --color-navy2: #2E4057;
    --color-border: #1A2F45;
    --color-ivory: #FAF6ED;
    --color-cream: #F2E8D5;
    --color-beige: #D9C9A3;
    --color-gold: #C9A03D;
    --color-gold2: #D4AF37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0D1B2A;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #FAF6ED;
    font-feature-settings: 'cv11', 'ss01';
    letter-spacing: -0.01em;
}

.font-display,
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ════ NAVBAR: fondo "vidrio esmerilado" robusto ════
           No depender de bg-[...]/97 de Tailwind (el valor /97 no está en la
           escala por defecto y deja el navbar SIN fondo => transparente).
           Esta clase fija el fondo de forma explícita. */
.site-navbar {
    background-color: rgba(13, 27, 42, 0.55);
    /* opacidad del fondo: más bajo = más efecto vidrio (antes 0.97 lo hacía sólido) */
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    /* intensidad del desenfoque + saturación para que se note el vidrio */
    backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Si el navegador no soporta backdrop-filter, hacerlo 100% sólido
           para que nunca se transparente de más. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-navbar {
        background-color: #0D1B2A;
    }
}

.btn-gold {
    background: linear-gradient(135deg, #C9A03D, #D4AF37);
    color: #0A0A0A;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(201, 160, 61, 0.6);
}

.btn-outline {
    border: 1.5px solid #C9A03D;
    color: #C9A03D;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #C9A03D;
    color: #0A0A0A;
}

.input-field {
    background: #162030;
    border: 1px solid #1A2F45;
    color: #FAF6ED;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    transition: all 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: #D9C9A3;
    box-shadow: 0 0 0 3px rgba(217, 201, 163, 0.2);
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11px;
    display: inline-block;
}

.status-confirmed {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11px;
    display: inline-block;
}

.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11px;
    display: inline-block;
}

.status-canceled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11px;
    display: inline-block;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    border-color: #C9A03D !important;
}

.hero-glow {
    background: radial-gradient(ellipse at center, rgba(217, 201, 163, 0.12) 0%, transparent 60%);
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.divider-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent, #D9C9A3, transparent);
}

/* =====================================================================
 MICROANIMACIONES — Fade-in, shimmer, smooth scroll, etc.
        ===================================================================== */

/* 1. SMOOTH SCROLL global */
html {
    scroll-behavior: smooth;
}

/* Respeto preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 2. FADE-IN AL SCROLLEAR — Suave y con fallback de seguridad */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    /* FALLBACK: aparece automáticamente después de 2s si el observer falla */
    animation: ensureVisible 0.6s ease-out 2s forwards;
}

.fade-in-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

/* 🚀 APPEAR-ON-LOAD: animación CSS pura, sin esperar a JS u observer.
           Ideal para elementos que el usuario ve INMEDIATAMENTE al abrir la página.
           El delay se controla con style="animation-delay: XXXms;" */
@keyframes appearUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.appear-on-load {
    opacity: 0;
    animation: appearUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Delays escalonados: cubren TODOS los valores comunes (50ms a 600ms) */
.fade-in-scroll[data-delay="50"] {
    transition-delay: 0.05s;
}

.fade-in-scroll[data-delay="100"] {
    transition-delay: 0.10s;
}

.fade-in-scroll[data-delay="120"] {
    transition-delay: 0.12s;
}

.fade-in-scroll[data-delay="150"] {
    transition-delay: 0.15s;
}

.fade-in-scroll[data-delay="200"] {
    transition-delay: 0.20s;
}

.fade-in-scroll[data-delay="240"] {
    transition-delay: 0.24s;
}

.fade-in-scroll[data-delay="250"] {
    transition-delay: 0.25s;
}

.fade-in-scroll[data-delay="300"] {
    transition-delay: 0.30s;
}

.fade-in-scroll[data-delay="350"] {
    transition-delay: 0.35s;
}

.fade-in-scroll[data-delay="400"] {
    transition-delay: 0.40s;
}

.fade-in-scroll[data-delay="450"] {
    transition-delay: 0.45s;
}

.fade-in-scroll[data-delay="500"] {
    transition-delay: 0.50s;
}

.fade-in-scroll[data-delay="600"] {
    transition-delay: 0.60s;
}

/* 3. SHIMMER DORADO en cifras importantes — más lento */
@keyframes shimmerGold {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.shimmer-gold {
    background: linear-gradient(90deg, #C9A03D 0%, #F5E6B8 25%, #D4AF37 50%, #F5E6B8 75%, #C9A03D 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerGold 8s linear infinite;
}

/* 4. BOTONES CON FEEDBACK TÁCTIL — más suave */
button,
.btn-gold,
.btn-outline,
.btn-premium,
a.btn-gold,
a.btn-outline {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
}

button:active:not(:disabled),
.btn-gold:active,
.btn-outline:active,
.btn-premium:active {
    transform: scale(0.97);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* 5. PULSE en badges — más lento y sutil */
@keyframes pulseSubtle {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(201, 160, 61, 0.4);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 6px rgba(201, 160, 61, 0);
    }
}

@keyframes pulseGreen {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

@keyframes pulseYellow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.6);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 6px rgba(250, 204, 21, 0);
    }
}

.pulse-badge {
    animation: pulseSubtle 3.5s ease-in-out infinite;
}

.pulse-badge-green {
    animation: pulseGreen 3s ease-in-out infinite;
}

.pulse-badge-yellow {
    animation: pulseYellow 3s ease-in-out infinite;
}

/* 6. SKELETON LOADERS — más lento */
@keyframes skeletonShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #162030 0%, #1A2F45 50%, #162030 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 2.2s ease-in-out infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 14px;
    margin: 8px 0;
}

.skeleton-card {
    height: 60px;
    margin: 6px 0;
}

.skeleton-hour {
    height: 50px;
}

/* 7. TOAST NOTIFICATIONS — más suave */
#toastContainer {
    position: fixed;
    top: 90px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: calc(100% - 32px);
}

@media (min-width: 768px) {
    #toastContainer {
        right: 24px;
        top: 90px;
        max-width: 380px;
    }
}

.toast {
    background: #162030;
    border: 1px solid #1A2F45;
    border-left: 4px solid #C9A03D;
    color: #FAF6ED;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.4);
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 280px;
    opacity: 0;
    transform: translateX(120%);
    animation: toastSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.toast-out {
    animation: toastSlideOut 0.5s ease-in forwards;
}

.toast-success {
    border-left-color: #22c55e;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-warn {
    border-left-color: #f59e0b;
}

.toast-info {
    border-left-color: #3b82f6;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1.2;
}

.toast-body {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #D9C9A3;
    cursor: pointer;
    padding: 0 4px;
    font-size: 16px;
    line-height: 1;
}

.toast-close:hover {
    color: #FAF6ED;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(120%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(120%);
    }
}

/* 8. INDICADOR "ESCRIBIENDO..." — más lento */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #162030;
    padding: 10px 14px;
    border-radius: 18px 18px 18px 4px;
    margin: 4px 0;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    background: #C9A03D;
    border-radius: 50%;
    animation: typingBounce 1.8s infinite;
    opacity: 0.5;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.25s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* 9. HORA ACTUAL DESTACADA — pulso más suave */
.hour-current {
    position: relative;
    border: 2px solid #C9A03D !important;
    background: linear-gradient(135deg, rgba(201, 160, 61, 0.15), rgba(212, 175, 55, 0.05)) !important;
}

.hour-current::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 8px;
    border: 2px solid #C9A03D;
    animation: hourPulse 3s ease-in-out infinite;
    pointer-events: none;
}

.hour-current::after {
    content: '● Ahora';
    position: absolute;
    top: 2px;
    right: 2px;
    background: #C9A03D;
    color: #0a0a0a;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

@keyframes hourPulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

/* 10. CONFETTI (estilos para el canvas) */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
}

/* =====================================================================
           ANIMACIONES DEL HERO — Solo fade + slide (sin blur que duplica letras)
        ===================================================================== */

/* Cada palabra entra con fade + slide suave */
.word-anim {
    display: inline-block;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    vertical-align: baseline;
    will-change: opacity, transform;
    /* FALLBACK: si JS falla, igual aparece después de 1.5s */
    animation: ensureVisible 0.5s ease-out 1.5s forwards;
}

.word-anim.is-shown {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

/* Elementos del hero que aparecen después del título */
.hero-anim {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation: ensureVisible 0.5s ease-out 1.8s forwards;
}

.hero-anim.is-shown {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

@keyframes ensureVisible {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* "DEFINE" — línea dorada elegante debajo */
.word-define {
    position: relative;
    display: inline-block;
}

.word-define::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #C9A03D 20%, #D4AF37 50%, #C9A03D 80%, transparent);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(201, 160, 61, 0.6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
    /* FALLBACK: si JS no añade is-shown, igual dibuja la línea */
    animation: drawLine 1s cubic-bezier(0.16, 1, 0.3, 1) 2.3s forwards;
}

.word-define.is-shown::after {
    transform: scaleX(1);
    animation: none;
    /* JS controla, no necesita fallback */
}

@keyframes drawLine {
    to {
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {

    .word-anim,
    .hero-anim {
        opacity: 1 !important;
        transform: none !important;
    }

    .word-define::after {
        transform: scaleX(1) !important;
        animation: none !important;
    }
}

/* =====================================================================
           ANIMACIONES PARA AVATARES DE BARBEROS — más suave
        ===================================================================== */
@keyframes avatarReveal {
    0% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.barber-avatar {
    animation: avatarReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.barber-avatar:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(201, 160, 61, 0.35);
}

.barber-avatar[data-index="0"] {
    animation-delay: 0s;
}

.barber-avatar[data-index="1"] {
    animation-delay: 0.18s;
}

.barber-avatar[data-index="2"] {
    animation-delay: 0.36s;
}

.barber-avatar[data-index="3"] {
    animation-delay: 0.54s;
}

.barber-avatar[data-index="4"] {
    animation-delay: 0.72s;
}

.barber-avatar[data-index="5"] {
    animation-delay: 0.90s;
}

/* =====================================================================
 MARQUEE — Dos filas de imágenes que se mueven con el scroll
        ===================================================================== */
.marquee-row {
    display: flex;
    gap: 0.75rem;
    will-change: transform;
}

.marquee-row img {
    width: 420px;
    height: 270px;
    object-fit: cover;
    border-radius: 1rem;
    flex-shrink: 0;
    border: 1px solid rgba(201, 160, 61, 0.15);
}

@media (max-width: 768px) {
    .marquee-row img {
        width: 280px;
        height: 180px;
    }
}

/* =====================================================================
 DASHBOARD ESTILO RIAL — Bordes moderados (no tan extremos)
        ===================================================================== */
/* ══════════════════════════════════════════════════════════════
           DASHBOARD RIAL — Estilo Talvex · Paleta Don Castio Logo
           ══════════════════════════════════════════════════════════════ */

/* ── Contenedor principal dashboard ── */
.rial-container {
    background: linear-gradient(145deg, #162030 0%, #0D1B2A 60%, #0D1B2A 100%);
    border: 1px solid rgba(217, 201, 163, 0.1);
    border-radius: 20px;
    padding: 22px 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(13, 27, 42, 0.5);
}

@media (min-width: 768px) {
    .rial-container {
        border-radius: 24px;
        padding: 32px 36px;
    }
}

/* ── Glow decorativo ── */
.rial-glow {
    position: absolute;
    top: -60px;
    right: -80px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(201, 160, 61, 0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.rial-glow::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(46, 64, 87, 0.4) 0%, transparent 65%);
}

/* ── Sección de bienvenida ── */
.rial-greeting {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #D9C9A3;
    font-weight: 500;
}

.rial-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #FAF6ED;
    margin: 4px 0 0;
    line-height: 1.15;
}

.rial-subtitle {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(217, 201, 163, 0.55);
    margin-top: 4px;
}

/* ── Balance principal ── */
.rial-balance {
    font-size: clamp(2.8rem, 9vw, 4.2rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    color: #FAF6ED;
    line-height: 1;
    margin: 16px 0 0;
}

.rial-balance-currency {
    font-size: 0.45em;
    font-weight: 500;
    vertical-align: super;
    color: #D9C9A3;
}

.rial-balance-sub {
    font-size: 11px;
    color: rgba(217, 201, 163, 0.65);
    margin: 6px 0 0;
    font-weight: 400;
}

/* ── Pill de moneda (USD/Bs) ── */
.moneda-pill {
    display: inline-flex;
    background: rgba(217, 201, 163, 0.07);
    border: 1px solid rgba(217, 201, 163, 0.15);
    border-radius: 100px;
    padding: 3px;
    gap: 2px;
}

.moneda-btn {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(217, 201, 163, 0.5);
    background: transparent;
}

.moneda-btn.active {
    background: #C9A03D;
    color: #0D1B2A;
}

/* ── Stat mini-pills (Hoy / Semana / Reset) ── */
.rial-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(217, 201, 163, 0.06);
    border: 1px solid rgba(217, 201, 163, 0.12);
    border-radius: 100px;
    padding: 4px 10px;
    font-size: 10px;
    color: #D9C9A3;
    font-weight: 500;
}

.rial-stat-pill.green {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.2);
    background: rgba(74, 222, 128, 0.06);
}

.rial-stat-pill.gold {
    color: #C9A03D;
    border-color: rgba(201, 160, 61, 0.25);
    background: rgba(201, 160, 61, 0.07);
}

.rial-stat-pill.blue {
    color: #93c5fd;
    border-color: rgba(147, 197, 253, 0.2);
    background: rgba(147, 197, 253, 0.06);
}

/* ── Acciones rápidas circulares ── */
.rial-circle-btn {
    width: 58px;
    height: 58px;
    background: rgba(26, 47, 69, 0.8);
    border: 1px solid rgba(217, 201, 163, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.25s ease;
    cursor: pointer;
}

.rial-circle-btn:hover {
    background: rgba(201, 160, 61, 0.15);
    border-color: rgba(201, 160, 61, 0.45);
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 160, 61, 0.18);
}

.rial-circle-btn [data-lucide],
.rial-circle-btn svg {
    color: #C9A03D !important;
    stroke: #C9A03D !important;
    width: 22px;
    height: 22px;
}

/* ── Stat cards cuadradas (grid 2x2) ── */
.rial-card {
    background: rgba(26, 47, 69, 0.55);
    border: 1px solid rgba(217, 201, 163, 0.1);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.rial-card:hover {
    background: rgba(46, 64, 87, 0.65);
    border-color: rgba(217, 201, 163, 0.22);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.4);
}

.rial-card-label {
    font-size: 9.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(217, 201, 163, 0.6);
    font-weight: 600;
    margin: 0 0 8px;
}

.rial-card-num {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: #FAF6ED;
    line-height: 1;
    margin: 0;
}

.rial-card-sub {
    font-size: 10px;
    color: rgba(217, 201, 163, 0.55);
    margin: 4px 0 0;
}

.rial-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

/* ── Card grande (turnos, desglose barberos) ── */
.rial-card-lg {
    background: rgba(22, 32, 48, 0.7);
    border: 1px solid rgba(217, 201, 163, 0.1);
    border-radius: 20px;
    padding: 22px 20px;
    backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
    .rial-card-lg {
        padding: 24px 28px;
    }
}

/* ── Banner (próximo cliente / mes) ── */
.rial-banner {
    background: rgba(26, 47, 69, 0.6);
    border: 1px solid rgba(217, 201, 163, 0.12);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #F2E8D5;
    font-size: 13px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.rial-banner:hover {
    background: rgba(46, 64, 87, 0.7);
    border-color: rgba(217, 201, 163, 0.25);
}

.rial-banner-gold {
    background: rgba(201, 160, 61, 0.07);
    border-color: rgba(201, 160, 61, 0.22);
    color: #C9A03D;
}

.rial-banner-gold:hover {
    background: rgba(201, 160, 61, 0.13);
    border-color: rgba(201, 160, 61, 0.4);
}

.rial-banner-blue {
    background: rgba(46, 64, 87, 0.4);
    border-color: rgba(147, 197, 253, 0.2);
    color: #93c5fd;
}

/* ── Ícono de stat card ── */
.rial-icon-arrow {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.rial-stats-num {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin: 8px 0 0;
    color: #FAF6ED;
}

/* ── Divider horizontal decorativo ── */
.rial-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 201, 163, 0.15), transparent);
    margin: 20px 0;
}

/* ── Chip selector (admin selector) ── */
.rial-chip {
    background: rgba(26, 47, 69, 0.8);
    border: 1px solid rgba(217, 201, 163, 0.15);
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #F2E8D5;
}

.rial-tab-bar {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 8px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 440px;
    z-index: 50;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
    .rial-tab-bar {
        display: none;
    }
}

.rial-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    color: #D9C9A3;
    font-size: 10px;
    text-decoration: none;
    transition: color 0.2s ease;
    border-radius: 10px;
}

.rial-tab-item.active {
    background: rgba(201, 160, 61, 0.15);
    color: #C9A03D;
    padding: 6px 16px;
    font-weight: 500;
    flex-direction: row;
    gap: 6px;
}

.rial-tab-item:hover {
    color: #C9A03D;
}

.rial-chip {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #FAF6ED;
}

.rial-balance {
    font-size: 38px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 4px 0 0;
    color: #FAF6ED;
}

@media (min-width: 768px) {
    .rial-balance {
        font-size: 52px;
    }
}

.rial-stats-num {
    font-size: 24px;
    font-weight: 500;
    margin: 6px 0 0;
    color: #FAF6ED;
}

/* Padding inferior para que el tab bar no tape contenido */
.rial-page {
    padding-bottom: 100px;
}

@media (min-width: 768px) {
    .rial-page {
        padding-bottom: 32px;
    }
}

.calendar-day {
    background: #162030;
    border: 1px solid #1A2F45;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day:hover {
    border-color: #C9A03D;
    transform: translateY(-2px);
}

.calendar-day.selected {
    border-color: #C9A03D;
    background: rgba(201, 160, 61, 0.1);
}

.hour-slot {
    background: #162030;
    border: 1px solid #1A2F45;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.hour-slot:hover:not(.occupied) {
    border-color: #C9A03D;
    background: rgba(201, 160, 61, 0.1);
}

.hour-slot.selected {
    border-color: #C9A03D;
    background: rgba(201, 160, 61, 0.2);
}

/* Cita reservada: rojo apagado, no clickeable */
.hour-slot.occupied {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    cursor: not-allowed;
    opacity: 0.6;
    color: #fca5a5;
}

/* Bloqueo manual: rojo brillante, clickeable para liberar */
.hour-slot.bloqueado {
    background: rgba(239, 68, 68, 0.28);
    border-color: #ef4444;
    border-width: 2px;
    cursor: pointer;
    color: #fca5a5;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3), inset 0 0 8px rgba(239, 68, 68, 0.1);
    animation: pulsoRojo 2s ease-in-out infinite;
}

.hour-slot.bloqueado:hover {
    background: rgba(239, 68, 68, 0.42);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.5);
    transform: scale(1.04);
    opacity: 1;
}

@keyframes pulsoRojo {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.25), inset 0 0 6px rgba(239, 68, 68, 0.08);
    }

    50% {
        box-shadow: 0 0 16px rgba(239, 68, 68, 0.45), inset 0 0 10px rgba(239, 68, 68, 0.15);
    }
}

/* Libre: verde sutil */
.hour-slot.libre {
    border-color: rgba(74, 222, 128, 0.25);
}

.hour-slot.libre:hover {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
}

/* Animación de transición al cambiar estado */
.hour-slot.cambiando {
    opacity: 0.4;
    transform: scale(0.95);
    pointer-events: none;
}

/* Animación sutil para el logo */
.logo-circle {
    transition: all 0.3s ease;
}

.logo-circle:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(242, 232, 213, 0.25);
}

/* =====================================================================
           CORRECCIONES ESTÉTICAS v1.1
           ===================================================================== */

/* --- 1. NAVBAR MOBILE: más limpio y compacto --- */
@media (max-width: 1023px) {

    /* Reducir logo en mobile para liberar espacio */
    nav .logo-circle {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px;
    }

    nav .logo-circle span:nth-child(1) {
        font-size: 7px !important;
    }

    nav .logo-circle span:nth-child(2) {
        font-size: 9px !important;
    }

    nav .logo-circle span:nth-child(3) {
        font-size: 6px !important;
    }

    /* Botón "Salir" más compacto */
    nav a[href*="logout"] {
        padding: 5px 10px !important;
        font-size: 11px !important;
        border-radius: 8px !important;
    }

    /* Avatar de usuario más pequeño */
    nav .w-10 {
        width: 34px !important;
        height: 34px !important;
        font-size: 12px !important;
    }

    /* Padding del navbar */
    nav>div {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
}

/* --- 2. HERO: título escalado para que el CTA sea visible sin scrollear --- */
@media (max-width: 767px) {
    .hero-title-anim {
        font-size: clamp(2.2rem, 10vw, 3.5rem) !important;
        line-height: 1.06 !important;
    }

    /* Descripción del hero más compacta */
    .hero-title-anim~p {
        margin-top: 0.75rem !important;
        font-size: 15px !important;
    }

    /* CTAs: menos margen superior */
    .hero-title-anim~div[class*="flex"] {
        margin-top: 1.25rem !important;
        gap: 0.75rem !important;
    }

    /* CTAs: ancho completo en mobile */
    .hero-title-anim~div[class*="flex"] a {
        flex: 1;
        text-align: center;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }
}

/* --- 3. CTAs: jerarquía visual clara (primario vs secundario) --- */
.btn-gold {
    background: linear-gradient(135deg, #C9A03D 0%, #D4AF37 100%) !important;
    color: #0a0a0a !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(201, 160, 61, 0.28);
    border: none;
}

.btn-gold:hover {
    box-shadow: 0 6px 28px rgba(201, 160, 61, 0.5) !important;
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, #D4AF37 0%, #E5C455 100%) !important;
}

.btn-outline {
    border: 1.5px solid rgba(201, 160, 61, 0.4) !important;
    color: rgba(201, 160, 61, 0.8) !important;
    background: transparent !important;
    font-weight: 500 !important;
    border-radius: 10px;
}

.btn-outline:hover {
    background: rgba(201, 160, 61, 0.07) !important;
    border-color: #C9A03D !important;
    color: #C9A03D !important;
}

/* ── Dashboard overrides finales ── */
.rial-container {
    border: 1px solid rgba(217, 201, 163, 0.12) !important;
    background: linear-gradient(145deg, #162030 0%, #0D1B2A 60%, #0D1B2A 100%) !important;
}

.rial-balance {
    border-top: 1px solid rgba(217, 201, 163, 0.08);
    padding-top: 14px;
    margin-top: 14px !important;
}

.rial-card {
    background: rgba(26, 47, 69, 0.55) !important;
    border: 1px solid rgba(217, 201, 163, 0.1) !important;
    border-radius: 16px !important;
}

.rial-card:hover {
    background: rgba(46, 64, 87, 0.65) !important;
    border-color: rgba(217, 201, 163, 0.22) !important;
    transform: translateY(-3px) !important;
}

.rial-card-lg {
    background: rgba(22, 32, 48, 0.7) !important;
    border: 1px solid rgba(217, 201, 163, 0.1) !important;
    border-radius: 20px !important;
}

.rial-tab-bar {
    background: rgba(13, 27, 42, 0.97) !important;
    border: 1px solid rgba(217, 201, 163, 0.13) !important;
    box-shadow: 0 -4px 32px rgba(13, 27, 42, 0.7), 0 -1px 0 rgba(201, 160, 61, 0.07);
    bottom: 10px !important;
    border-radius: 18px !important;
}

.rial-tab-item.active {
    background: rgba(201, 160, 61, 0.12) !important;
    color: #C9A03D !important;
    border-radius: 12px;
}

.rial-tab-item:hover {
    color: #C9A03D !important;
}

.rial-banner {
    border-radius: 14px !important;
}

.status-pending {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
}

.status-confirmed {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
}

.status-completed {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
}

.status-canceled {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
}