/**
 * =========================================================================
 * CLIENT/ASSETS/CSS/CLIENT.CSS - ESTILOS PREMIUM MÓDULO CLIENTE
 * =========================================================================
 * 
 * RUTA: /client/assets/css/client.css
 * 
 * -------------------------------------------------------------------------
 * DESCRIPCIÓN:
 * Hoja de estilos principal del módulo cliente premium de Perfect Escorts.
 * Diseño lujoso, elegante y exclusivo con soporte completo para responsive
 * y zona segura de iOS (safe-area-inset para notch y home indicator).
 * 
 * -------------------------------------------------------------------------
 * PALETA DE COLORES PREMIUM:
 * - Dorado Principal: #C9A227 (Oro elegante)
 * - Dorado Claro: #E8D5A3 (Acentos suaves)
 * - Dorado Oscuro: #8B7355 (Sombras doradas)
 * - Negro Profundo: #0A0A0A (Fondo principal)
 * - Negro Suave: #141414 (Superficies elevadas)
 * - Negro Carbón: #1A1A1A (Tarjetas y paneles)
 * - Gris Elegante: #2A2A2A (Bordes sutiles)
 * - Blanco Perla: #F5F5F5 (Texto principal)
 * - Gris Plata: #9A9A9A (Texto secundario)
 * 
 * -------------------------------------------------------------------------
 * TIPOGRAFÍAS:
 * - Playfair Display: Títulos y headings (elegancia clásica)
 * - Montserrat: Texto general (modernidad limpia)
 * 
 * -------------------------------------------------------------------------
 * BREAKPOINTS RESPONSIVE:
 * - Mobile S: 320px
 * - Mobile M: 375px
 * - Mobile L: 425px
 * - Tablet: 768px
 * - Laptop: 992px
 * - Desktop: 1200px
 * - Large Desktop: 1440px
 * 
 * =========================================================================
 */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================================================== */

:root {
    /* ===== COLORES PRINCIPALES ===== */
    --color-gold: #C9A227;
    --color-gold-light: #E8D5A3;
    --color-gold-dark: #8B7355;
    --color-gold-glow: rgba(201, 162, 39, 0.3);
    --color-gold-subtle: rgba(201, 162, 39, 0.1);

    /* ===== COLORES DE FONDO ===== */
    --color-bg-primary: #0A0A0A;
    --color-bg-secondary: #141414;
    --color-bg-tertiary: #1A1A1A;
    --color-bg-card: #1E1E1E;
    --color-bg-elevated: #242424;
    --color-bg-hover: #2A2A2A;

    /* ===== COLORES DE TEXTO ===== */
    --color-text-primary: #F5F5F5;
    --color-text-secondary: #9A9A9A;
    --color-text-muted: #6A6A6A;
    --color-text-gold: #C9A227;

    /* ===== COLORES DE ESTADO ===== */
    --color-success: #2ECC71;
    --color-success-bg: rgba(46, 204, 113, 0.15);
    --color-warning: #F39C12;
    --color-warning-bg: rgba(243, 156, 18, 0.15);
    --color-danger: #E74C3C;
    --color-danger-bg: rgba(231, 76, 60, 0.15);
    --color-info: #3498DB;
    --color-info-bg: rgba(52, 152, 219, 0.15);

    /* ===== COLORES DE NIVELES VIP ===== */
    --color-tier-bronze: #CD7F32;
    --color-tier-silver: #C0C0C0;
    --color-tier-gold: #FFD700;
    --color-tier-platinum: #E5E4E2;
    --color-tier-vip: #C9A227;

    /* ===== BORDES ===== */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-light: rgba(255, 255, 255, 0.12);
    --border-gold: rgba(201, 162, 39, 0.3);

    /* ===== SOMBRAS PREMIUM ===== */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.25);
    --shadow-gold-lg: 0 8px 40px rgba(201, 162, 39, 0.3);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.3);

    /* ===== TIPOGRAFÍAS ===== */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* ===== TAMAÑOS DE FUENTE ===== */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */

    /* ===== ESPACIADO ===== */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */

    /* ===== BORDES REDONDEADOS ===== */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* ===== TRANSICIONES ===== */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* ===== Z-INDEX ===== CORREGIDO 2026-01-09 */
    --z-dropdown: 450;   /* Mayor que modal-backdrop para dropdowns visibles */
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;

    /* ===== LAYOUT ===== */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 72px;
    --topbar-height: 64px;
    --footer-height: auto;

    /* ===== ZONA SEGURA iOS ===== */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
}

/* ==========================================================================
   RESET Y BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

body.client-panel {
    background: var(--color-bg-primary);
    background-image:
        radial-gradient(ellipse at top, rgba(201, 162, 39, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(201, 162, 39, 0.02) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Fondo con textura sutil de lujo */
body.client-panel::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A227' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* ==========================================================================
   TIPOGRAFÍA
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

.text-gold {
    color: var(--color-gold);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    margin-bottom: var(--space-4);
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold-light);
}

/* ==========================================================================
   LAYOUT PRINCIPAL
   ========================================================================== */

.client-layout {
    display: flex;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    position: relative;
}

.client-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-smooth);
    padding-top: var(--safe-area-top);
}

.client-content {
    flex: 1;
    padding: var(--space-6);
    padding-bottom: calc(var(--space-6) + var(--safe-area-bottom));
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* ==========================================================================
   SIDEBAR - Navegación Lateral Premium
   ========================================================================== */

.client-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: var(--z-fixed);
    padding-top: var(--safe-area-top);
    padding-left: var(--safe-area-left);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold-dark) transparent;
    transition: transform var(--transition-smooth);
}

.client-sidebar::-webkit-scrollbar {
    width: 4px;
}

.client-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.client-sidebar::-webkit-scrollbar-thumb {
    background: var(--color-gold-dark);
    border-radius: var(--radius-full);
}

/* Sidebar Header con Logo */
.client-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-4);
    border-bottom: 1px solid var(--border-color);
    min-height: var(--topbar-height);
}

.client-sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.sidebar-logo-text .logo-perfect {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
}

.sidebar-logo-text .logo-escorts {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.client-sidebar-close {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.client-sidebar-close:hover {
    background: var(--color-bg-hover);
    color: var(--color-gold);
    border-color: var(--color-gold);
}

/* Perfil Mini en Sidebar */
.client-sidebar-profile {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    margin: var(--space-3);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.sidebar-profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--color-gold);
    flex-shrink: 0;
}

.sidebar-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-profile-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: var(--color-bg-primary);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
}

.sidebar-profile-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    overflow: hidden;
}

.sidebar-profile-info .profile-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-profile-info .profile-tier {
    font-size: var(--text-xs);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Navegación del Sidebar */
.client-nav {
    flex: 1;
    padding: var(--space-3) 0;
    overflow-y: auto;
}

.client-nav-section {
    margin-bottom: var(--space-2);
}

.client-nav-section-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.client-nav-section-title i {
    font-size: var(--text-sm);
    color: var(--color-gold);
    opacity: 0.7;
}

.client-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    margin: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.client-nav-item i {
    width: 20px;
    text-align: center;
    font-size: var(--text-base);
    transition: color var(--transition-fast);
}

.client-nav-item:hover {
    background: var(--color-bg-hover);
    color: var(--color-text-primary);
}

.client-nav-item:hover i {
    color: var(--color-gold);
}

.client-nav-item.active {
    background: linear-gradient(90deg, var(--color-gold-subtle) 0%, transparent 100%);
    color: var(--color-gold);
    border-left: 3px solid var(--color-gold);
    margin-left: calc(var(--space-3) - 3px);
}

.client-nav-item.active i {
    color: var(--color-gold);
}

/* Badge en items de navegación */
.client-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 var(--space-2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    margin-left: auto;
}

.client-badge.primary {
    background: var(--color-gold);
    color: var(--color-bg-primary);
}

.client-badge.success {
    background: var(--color-success);
    color: white;
}

.client-badge.warning {
    background: var(--color-warning);
    color: var(--color-bg-primary);
}

.client-badge.danger {
    background: var(--color-danger);
    color: white;
}

.client-badge.info {
    background: var(--color-info);
    color: white;
}

/* Sidebar Footer */
.client-sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.client-sidebar-footer .logout-item {
    color: var(--color-danger);
    margin: 0;
}

.client-sidebar-footer .logout-item:hover {
    background: var(--color-danger-bg);
}

.sidebar-version-info {
    text-align: center;
    padding-top: var(--space-3);
    margin-top: var(--space-3);
    border-top: 1px solid var(--border-color);
}

.sidebar-version-info .version-text,
.sidebar-version-info .copyright-text {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-1);
}

/* Overlay del Sidebar (móvil) */
.client-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: calc(var(--z-fixed) - 1);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.client-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   TOPBAR - Barra Superior Premium
   ========================================================================== */

.client-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topbar-height);
    padding: 0 var(--space-6);
    padding-right: calc(var(--space-6) + var(--safe-area-right));
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: var(--safe-area-top);
    z-index: var(--z-sticky);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.client-topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.client-sidebar-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: var(--text-xl);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.client-sidebar-toggle:hover {
    background: var(--color-bg-hover);
    color: var(--color-gold);
}

.client-topbar-logo {
    display: none;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
}

.client-topbar-logo img {
    height: 32px;
    width: auto;
}

.client-topbar-logo .client-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.client-topbar-logo .logo-perfect {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-text-primary);
}

.client-topbar-logo .logo-escorts {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    color: var(--color-gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.client-topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Botones del Topbar */
.client-topbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: var(--text-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    text-decoration: none;
}

.client-topbar-btn:hover {
    background: var(--color-bg-hover);
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.client-topbar-btn .client-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    background: var(--color-danger);
    color: white;
}

/* Selector de Idioma */
.client-lang-selector {
    position: relative;
}

.client-lang-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.client-lang-btn:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-gold);
}

.client-lang-btn .lang-flag {
    font-size: var(--text-lg);
}

.client-lang-btn .lang-code {
    font-weight: 600;
}

.client-lang-btn i {
    font-size: var(--text-xs);
    transition: transform var(--transition-fast);
}

.client-lang-dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    min-width: 180px;
    background: var(--color-bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
    overflow: hidden;
}

.client-lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.client-lang-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.client-lang-option:hover {
    background: var(--color-bg-hover);
    color: var(--color-text-primary);
}

.client-lang-option.active {
    background: var(--color-gold-subtle);
    color: var(--color-gold);
}

.client-lang-option .lang-flag {
    font-size: var(--text-xl);
}

.client-lang-option .lang-name {
    flex: 1;
    font-size: var(--text-sm);
}

.client-lang-option i {
    color: var(--color-gold);
}

/* Dropdown de Usuario */
.client-user-dropdown {
    position: relative;
}

.client-user-btn {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2);
    padding-right: var(--space-3);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.client-user-btn:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-gold);
}

.client-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--color-gold);
}

.client-user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: var(--color-bg-primary);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
}

.client-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.client-user-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1;
}

.client-user-tier {
    font-size: var(--text-xs);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    line-height: 1;
}

.client-user-btn>i {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    transition: transform var(--transition-fast);
}

/* User Menu Dropdown */
.client-user-menu {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    min-width: 240px;
    background: var(--color-bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
    overflow: hidden;
}

.client-user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.client-user-menu-header {
    padding: var(--space-4);
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.client-user-menu-header .user-greeting {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.client-user-menu-header .user-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
}

.client-user-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--space-2) 0;
}

.client-user-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.client-user-menu-item:hover {
    background: var(--color-bg-hover);
    color: var(--color-text-primary);
}

.client-user-menu-item i {
    width: 20px;
    text-align: center;
    font-size: var(--text-base);
}

.client-user-menu-item:hover i {
    color: var(--color-gold);
}

.client-user-menu-item.logout {
    color: var(--color-danger);
}

.client-user-menu-item.logout:hover {
    background: var(--color-danger-bg);
}

/* Estilos de niveles VIP */
.tier-bronze {
    color: var(--color-tier-bronze);
    background: rgba(205, 127, 50, 0.15);
}

.tier-silver {
    color: var(--color-tier-silver);
    background: rgba(192, 192, 192, 0.15);
}

.tier-gold {
    color: var(--color-tier-gold);
    background: rgba(255, 215, 0, 0.15);
}

.tier-platinum {
    color: var(--color-tier-platinum);
    background: rgba(229, 228, 226, 0.15);
}

.tier-vip {
    color: var(--color-tier-vip);
    background: var(--color-gold-subtle);
}

/* ==========================================================================
   FOOTER PREMIUM
   ========================================================================== */

.client-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--border-color);
    padding-bottom: var(--safe-area-bottom);
}

.client-footer-legal {
    background: linear-gradient(90deg, var(--color-danger-bg) 0%, var(--color-bg-tertiary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.legal-disclaimer {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-6);
    display: flex;
    gap: var(--space-4);
}

.legal-icon {
    width: 48px;
    height: 48px;
    background: var(--color-danger);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.legal-content h4 {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-danger);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-content p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-3);
    line-height: 1.7;
}

.legal-zero-tolerance {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--color-danger-bg);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-danger);
}

.legal-zero-tolerance i {
    color: var(--color-danger);
    margin-top: 2px;
}

.legal-zero-tolerance strong {
    color: var(--color-danger);
}

.client-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-10) var(--space-6);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-10);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-4);
}

.footer-logo .logo-perfect {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1;
}

.footer-logo .logo-escorts {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--color-gold);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.footer-links-column h5 {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
}

.footer-links-column a {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    padding: var(--space-2) 0;
    transition: all var(--transition-fast);
}

.footer-links-column a:hover {
    color: var(--color-gold);
    padding-left: var(--space-2);
}

.client-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-6);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer-bottom-links a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.footer-bottom-links a:hover {
    color: var(--color-gold);
}

.footer-separator {
    color: var(--color-text-muted);
}

.footer-age-restriction {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    padding: var(--space-2) var(--space-3);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-full);
    margin: 0;
}

.footer-age-restriction i {
    color: var(--color-warning);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.client-toast-container {
    position: fixed;
    top: calc(var(--topbar-height) + var(--safe-area-top) + var(--space-4));
    right: calc(var(--space-4) + var(--safe-area-right));
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 400px;
    width: calc(100% - var(--space-8));
}

.client-toast {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--color-bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.3s ease;
    position: relative;
    overflow: hidden;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.client-toast.removing {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.client-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.client-toast.success::before {
    background: var(--color-success);
}

.client-toast.error::before {
    background: var(--color-danger);
}

.client-toast.warning::before {
    background: var(--color-warning);
}

.client-toast.info::before {
    background: var(--color-info);
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--text-sm);
}

.client-toast.success .toast-icon {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.client-toast.error .toast-icon {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.client-toast.warning .toast-icon {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.client-toast.info .toast-icon {
    background: var(--color-info-bg);
    color: var(--color-info);
}

.toast-content {
    flex: 1;
}

.toast-content p {
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.5;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.toast-close:hover {
    background: var(--color-bg-hover);
    color: var(--color-text-primary);
}

/* ==========================================================================
   PANEL DE NOTIFICACIONES
   ========================================================================== */

.client-notifications-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 100%;
    background: var(--color-bg-secondary);
    border-left: 1px solid var(--border-color);
    z-index: var(--z-modal);
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    display: flex;
    flex-direction: column;
    padding-top: var(--safe-area-top);
    padding-right: var(--safe-area-right);
    padding-bottom: var(--safe-area-bottom);
}

.client-notifications-panel.active {
    transform: translateX(0);
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5);
    border-bottom: 1px solid var(--border-color);
}

.notifications-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-lg);
    margin: 0;
}

.notifications-header h3 i {
    color: var(--color-gold);
}

.notifications-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.notifications-close:hover {
    background: var(--color-bg-hover);
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.notifications-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
}

.notifications-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-10);
    color: var(--color-text-muted);
}

.notifications-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--border-color);
}

.btn-view-all {
    display: block;
    text-align: center;
    padding: var(--space-3);
    background: var(--color-gold);
    color: var(--color-bg-primary);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-view-all:hover {
    background: var(--color-gold-light);
    color: var(--color-bg-primary);
}

.client-notifications-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: calc(var(--z-modal) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.client-notifications-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   LOADING SPINNER
   ========================================================================== */

.client-loading {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.client-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
}

.client-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.client-loading-content p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* ==========================================================================
   BOTONES PREMIUM
   ========================================================================== */

.client-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 44px;
    /* Touch target iOS */
}

.client-btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: var(--color-bg-primary);
    box-shadow: var(--shadow-gold);
}

.client-btn-primary:hover {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-lg);
}

.client-btn-secondary {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    border: 1px solid var(--border-color);
}

.client-btn-secondary:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.client-btn-outline {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.client-btn-outline:hover {
    background: var(--color-gold);
    color: var(--color-bg-primary);
}

.client-btn-danger {
    background: var(--color-danger);
    color: white;
}

.client-btn-danger:hover {
    background: #c0392b;
}

.client-btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    min-height: 52px;
}

.client-btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    min-height: 36px;
}

.client-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ==========================================================================
   TARJETAS PREMIUM
   ========================================================================== */

.client-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.client-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold);
}

.client-card-header {
    padding: var(--space-5);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.client-card-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.client-card-body {
    padding: var(--space-5);
}

.client-card-footer {
    padding: var(--space-5);
    border-top: 1px solid var(--border-color);
    background: var(--color-bg-tertiary);
}

/* ==========================================================================
   FORMULARIOS PREMIUM
   ========================================================================== */

.client-form-group {
    margin-bottom: var(--space-5);
}

.client-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.client-input,
.client-select,
.client-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    min-height: 48px;
}

.client-input:focus,
.client-select:focus,
.client-textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px var(--color-gold-subtle);
}

.client-input::placeholder {
    color: var(--color-text-muted);
}

.client-textarea {
    min-height: 120px;
    resize: vertical;
}

.client-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239A9A9A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-10);
}

/* ==========================================================================
   ALERTAS
   ========================================================================== */

.client-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}

.client-alert.success {
    background: var(--color-success-bg);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

.client-alert.warning {
    background: var(--color-warning-bg);
    border: 1px solid var(--color-warning);
    color: var(--color-warning);
}

.client-alert.danger {
    background: var(--color-danger-bg);
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
}

.client-alert.info {
    background: var(--color-info-bg);
    border: 1px solid var(--color-info);
    color: var(--color-info);
}

/* ==========================================================================
   RESPONSIVE - TABLET (768px)
   ========================================================================== */

@media (max-width: 992px) {

    /* Sidebar se oculta */
    .client-sidebar {
        transform: translateX(-100%);
    }

    .client-sidebar.active {
        transform: translateX(0);
    }

    .client-sidebar-close {
        display: flex;
    }

    .client-main {
        margin-left: 0;
    }

    .client-sidebar-toggle {
        display: flex;
    }

    .client-topbar-logo {
        display: flex;
    }

    .client-content {
        padding: var(--space-4);
    }

    /* Footer responsive */
    .client-footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE (576px)
   ========================================================================== */

@media (max-width: 576px) {
    :root {
        --topbar-height: 56px;
    }

    .client-topbar {
        padding: 0 var(--space-4);
    }

    .client-topbar-right {
        gap: var(--space-2);
    }

    /* Ocultar info de usuario en móvil */
    .client-user-info {
        display: none;
    }

    .client-user-btn {
        padding: var(--space-2);
    }

    /* Ocultar código de idioma en móvil */
    .client-lang-btn .lang-code,
    .client-lang-btn i {
        display: none;
    }

    .client-content {
        padding: var(--space-3);
        padding-bottom: calc(var(--space-6) + var(--safe-area-bottom));
    }

    /* Footer mobile */
    .legal-disclaimer {
        flex-direction: column;
        padding: var(--space-4);
    }

    .legal-icon {
        align-self: flex-start;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .footer-links-column {
        padding-bottom: var(--space-4);
        border-bottom: 1px solid var(--border-color);
    }

    .footer-links-column:last-child {
        border-bottom: none;
    }

    /* Toast en móvil */
    .client-toast-container {
        right: var(--space-3);
        left: var(--space-3);
        max-width: none;
        width: auto;
    }

    /* Panel de notificaciones fullscreen en móvil */
    .client-notifications-panel {
        width: 100%;
    }

    /* Botones más grandes para touch */
    .client-btn {
        min-height: 48px;
        padding: var(--space-3) var(--space-4);
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE SMALL (375px)
   ========================================================================== */

@media (max-width: 375px) {
    html {
        font-size: 14px;
    }

    .client-topbar-logo .client-logo-text {
        display: none;
    }

    .sidebar-profile-info .profile-name {
        max-width: 120px;
    }
}

/* ==========================================================================
   iOS SPECIFIC - ZONA SEGURA Y PWA
   ========================================================================== */

/* Soporte para notch y home indicator */
@supports (padding: env(safe-area-inset-top)) {
    .client-topbar {
        padding-top: env(safe-area-inset-top);
        height: calc(var(--topbar-height) + env(safe-area-inset-top));
    }

    .client-sidebar {
        padding-top: env(safe-area-inset-top);
        padding-left: env(safe-area-inset-left);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .client-content {
        padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom));
    }

    .client-footer {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .client-notifications-panel {
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* PWA standalone mode */
@media (display-mode: standalone) {
    body {
        -webkit-user-select: none;
        user-select: none;
    }

    .client-topbar {
        padding-top: env(safe-area-inset-top);
    }
}

/* Prevenir selección accidental en elementos interactivos */
.client-nav-item,
.client-btn,
.client-topbar-btn,
.client-user-btn {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Efecto de presión táctil */
@media (hover: none) {

    .client-btn:active,
    .client-nav-item:active,
    .client-topbar-btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* ==========================================================================
   ANIMACIONES Y EFECTOS ESPECIALES
   ========================================================================== */

/* Efecto shimmer para loading */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.client-skeleton {
    background: linear-gradient(90deg,
            var(--color-bg-tertiary) 25%,
            var(--color-bg-hover) 50%,
            var(--color-bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* Efecto pulse para badges con notificaciones */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.client-badge.pulse {
    animation: pulse 2s infinite;
}

/* Efecto glow dorado */
.glow-gold {
    box-shadow:
        0 0 5px var(--color-gold),
        0 0 10px var(--color-gold),
        0 0 20px var(--color-gold-dark);
}

/* ==========================================================================
   UTILIDADES
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-4 {
    margin-top: var(--space-4);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.p-4 {
    padding: var(--space-4);
}

.p-6 {
    padding: var(--space-6);
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: var(--space-2);
}

.gap-4 {
    gap: var(--space-4);
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.rounded {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-full {
    border-radius: var(--radius-full);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-gold {
    box-shadow: var(--shadow-gold);
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.cursor-pointer {
    cursor: pointer;
}

.pointer-events-none {
    pointer-events: none;
}

/* Scrollbar personalizado global */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-hover);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-dark);
}

/* Selection color */
::selection {
    background: var(--color-gold);
    color: var(--color-bg-primary);
}

::-moz-selection {
    background: var(--color-gold);
    color: var(--color-bg-primary);
}

/* ==========================================================================
   SELECTOR DE IDIOMA (Multi-idioma)
   ========================================================================== */
.pe-lang-selector {
    position: relative;
    display: inline-flex;
}

.pe-lang-btn,
.pe-lang-btn-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pe-lang-btn-mini {
    padding: 6px 10px;
    font-size: 0.8rem;
}
.pe-lang-btn:hover,
.pe-lang-btn-mini:hover {
    background: rgba(201, 162, 39, 0.1);
    border-color: var(--color-gold);
    color: var(--color-gold);
}
.pe-lang-flag { font-size: 1.1em; }
.pe-lang-code { font-weight: 600; letter-spacing: 0.5px; }
.pe-lang-arrow { font-size: 0.6em; opacity: 0.7; transition: transform 0.2s; }
.pe-lang-selector:hover .pe-lang-arrow { transform: rotate(180deg); }

.pe-lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--color-bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.pe-lang-selector:hover .pe-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pe-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s ease;
}
.pe-lang-option:hover {
    background: rgba(201, 162, 39, 0.1);
    color: var(--color-gold);
}
.pe-lang-option.active {
    background: rgba(201, 162, 39, 0.15);
    color: var(--color-gold);
}

/* Toast notifications */
.client-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.client-toast {
    padding: 14px 20px;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
    color: var(--color-text-primary);
}
.client-toast.show {
    opacity: 1;
    transform: translateX(0);
}
.client-toast-success { border-left-color: var(--color-success); }
.client-toast-error { border-left-color: var(--color-danger); }
.client-toast-warning { border-left-color: var(--color-warning); }
.client-toast button {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
}
.client-toast button:hover { color: var(--color-text-primary); }

/* User menu dropdown */
#userDropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--color-bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    min-width: 220px;
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    overflow: hidden;
}
#userDropdown.active { display: block; }