/* =========================================================
   BARBER STUDIO - PREMIUM DARK THEME
   Mobile First UI
========================================================= */

:root {

    /* =========================================================
       COLORES PRINCIPALES
    ========================================================= */

    --primary: #d4af37;
    --primary-soft: #c6a55c;

    /* =========================================================
       FONDOS
    ========================================================= */

    --bg-main: #0b0b0b;
    --bg-card: #151515;
    --bg-soft: #1d1d1d;
    --bg-hover: #202020;

    /* =========================================================
       TEXTOS
    ========================================================= */

    --text-main: #f5f5f4;
    --text-muted: #a1a1aa;
    --text-dark: #000000;

    /* =========================================================
       BORDES
    ========================================================= */

    --border-color: #262626;
    --border-light: rgba(255,255,255,0.06);

    /* =========================================================
       ESTADOS
    ========================================================= */

    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;

    /* =========================================================
       EFECTOS
    ========================================================= */

    --shadow-premium:
        0 4px 20px rgba(0,0,0,0.35);

    --shadow-soft:
        0 2px 10px rgba(0,0,0,0.2);

    --gold-glow:
        0 0 20px rgba(212,175,55,0.12);

    /* =========================================================
       RADIOS
    ========================================================= */

    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

/* =========================================================
   RESET
========================================================= */

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

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;

    background: var(--bg-main);
    color: var(--text-main);

    min-height: 100vh;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #111111;
}

::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 20px;
}

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

/* =========================================================
   SELECCIÓN TEXTO
========================================================= */

::selection {
    background: var(--primary);
    color: black;
}

/* =========================================================
   PLACEHOLDERS
========================================================= */

::placeholder {
    color: #737373;
}

/* =========================================================
   TAP HIGHLIGHT MOBILE
========================================================= */

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   GLASS EFFECT
========================================================= */

.glass {
    background: rgba(255,255,255,0.02);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar-blur {
    background: rgba(10,10,10,0.88);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid var(--border-light);
}

/* =========================================================
   BOTTOM NAV
========================================================= */

.bottom-nav {
    background: rgba(10,10,10,0.92);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-top: 1px solid var(--border-light);
}

/* =========================================================
   CARDS
========================================================= */

.premium-card {

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-xl);

    box-shadow: var(--shadow-premium);
}

.premium-card:hover {

    border-color: rgba(212,175,55,0.25);

    transform: translateY(-2px);
}

/* =========================================================
   BOTONES
========================================================= */

.btn-gold {

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-soft)
    );

    color: var(--text-dark);

    font-weight: 700;

    border-radius: var(--radius-lg);

    box-shadow: var(--gold-glow);
}

.btn-gold:hover {
    opacity: 0.95;

    transform: translateY(-1px);
}

.btn-dark {

    background: var(--bg-soft);

    border: 1px solid var(--border-color);

    color: var(--text-main);

    border-radius: var(--radius-lg);
}

.btn-dark:hover {

    border-color: var(--primary);

    background: var(--bg-hover);
}

/* =========================================================
   INPUTS
========================================================= */

.input-premium {

    width: 100%;

    background: rgba(255,255,255,0.02);

    border: 1px solid var(--border-color);

    color: var(--text-main);

    padding: 16px;

    border-radius: var(--radius-lg);

    outline: none;
}

.input-premium:focus {

    border-color: var(--primary);

    box-shadow: 0 0 0 1px var(--primary);
}

/* =========================================================
   BADGES
========================================================= */

.badge-gold {

    background: rgba(212,175,55,0.12);

    color: var(--primary);

    border: 1px solid rgba(212,175,55,0.15);

    padding: 6px 12px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 600;
}

/* =========================================================
   UTILIDADES
========================================================= */

.text-gold {
    color: var(--primary);
}

.border-gold {
    border-color: var(--primary);
}

.bg-gold-soft {
    background: rgba(212,175,55,0.10);
}

.gold-glow {
    box-shadow: var(--gold-glow);
}

.text-muted {
    color: var(--text-muted);
}

/* =========================================================
   ANIMACIONES
========================================================= */

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

.scale-in {
    animation: scaleIn 0.25s ease;
}

.slide-up {
    animation: slideUp 0.35s ease;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes scaleIn {

    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* =========================================================
   HORARIOS / CHIPS
========================================================= */

.time-chip {

    background: var(--bg-soft);

    border: 1px solid var(--border-color);

    color: var(--text-main);

    border-radius: 999px;

    padding: 12px 18px;

    font-size: 14px;

    font-weight: 600;
}

.time-chip:hover {

    border-color: var(--primary);

    color: var(--primary);
}

.time-chip.active {

    background: var(--primary);

    color: black;

    border-color: var(--primary);
}

/* =========================================================
   AVATAR BARBERO
========================================================= */

.barber-avatar {

    width: 60px;
    height: 60px;

    border-radius: 20px;

    object-fit: cover;

    border: 2px solid rgba(212,175,55,0.15);
}

/* =========================================================
   DIVISORES
========================================================= */

.divider {

    width: 100%;
    height: 1px;

    background: var(--border-light);
}

/* =========================================================
   MODALES
========================================================= */

.modal-overlay {

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.7);

    backdrop-filter: blur(4px);

    z-index: 999;
}

.modal-content {

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: 28px;

    box-shadow: var(--shadow-premium);
}

/* =========================================================
   TOASTS
========================================================= */

.toast {

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-left: 4px solid var(--primary);

    border-radius: 18px;

    box-shadow: var(--shadow-premium);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (min-width: 768px) {

    body {
        zoom: 1;
    }

    .premium-card:hover {
        transform: translateY(-4px);
    }
}

/* =========================================================
   SELECT DROPDOWN - ESTILOS OSCUROS UNIVERSALES
   ========================================================= */

select,
input[type="date"],
input[type="time"] {
    background-color: #1a1a1a !important;
    color: #f5f5f4 !important;
    border: 1px solid #333333 !important;
    border-radius: 16px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
}

/* Hover y focus */
select:hover,
input[type="date"]:hover,
input[type="time"]:hover {
    border-color: #d4af37 !important;
}

select:focus,
input[type="date"]:focus,
input[type="time"]:focus {
    outline: none !important;
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2) !important;
}

/* Opciones dentro del select */
option {
    background-color: #1a1a1a !important;
    color: #f5f5f4 !important;
    padding: 8px !important;
}

/* Calendario nativo (date picker) */
::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(1) hue-rotate(50deg) brightness(0.8);
    cursor: pointer;
}

/* =========================================================
   THEMES FUTUROS
========================================================= */

/*
.theme-red {
    --primary: #dc2626;
    --primary-soft: #ef4444;
}

.theme-blue {
    --primary: #3b82f6;
    --primary-soft: #60a5fa;
}

.theme-green {
    --primary: #22c55e;
    --primary-soft: #4ade80;
}
*/