/**
 * BuscoJale.mx - Estilos Principales
 * Diseño minimalista tipo Starlink
 */

/* ============================================
   RESET Y VARIABLES
   ============================================ */

:root {
    /* Paleta Premium Light - Alta Visibilidad (Exterior) */
    --color-brand-dark: #0f172a;
    /* Navy profundo para texto */
    --color-brand: #1e293b;
    --color-brand-accent: #0284c7;
    /* Azul profesional con buen contraste */
    --color-brand-hover: #0369a1;
    --color-bg-main: #cbd5e1;
    /* Gris medio-claro para que el blanco resalte con total claridad */
    --color-bg-card: #ffffff;
    /* Tarjetas blancas puras */
    --color-text-main: #0f172a;
    /* Texto casi negro para máximo contraste */
    --color-text-muted: #475569;
    /* Slate oscuro para secundarios */
    --color-border-soft: #e2e8f0;
    --color-border-hover: #cbd5e1;
    --color-white: #ffffff;
    --color-light: #f1f5f9;

    --color-success: #059669;
    --color-danger: #dc2626;
    --color-warning: #d97706;
    --color-info: #0284c7;

    --color-cta: #f97316;
    --color-cta-hover: #ea580c;
    --color-cta-text: #ffffff;

    --font-family: 'Outfit', 'Inter', sans-serif;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;

    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 20px -5px rgba(0, 0, 0, 0.1);

    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: #e2e8f0;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    min-height: 100vh;
}

a {
    color: var(--color-brand-accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--color-brand-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-md {
    max-width: 800px;
}

.container-lg {
    max-width: 1000px;
}

.container-xl {
    max-width: 1400px;
}

/* ============================================
   HEADER / NAVEGACIÓN
   ============================================ */

.main-header {
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.main-nav>ul {
    display: flex !important;
    list-style: none !important;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    list-style: none !important;
    margin: 0;
}

.main-nav ul li a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.main-nav ul li a:hover {
    color: #ffffff;
}

/* Menú de Usuario Unificado */
.user-profile-menu {
    border-left: 2px solid #f1f5f9;
    padding-left: 1.25rem;
    margin-left: 0.5rem;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50px;
    transition: background 0.2s;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name-short {
    font-weight: 800;
    font-size: 0.95rem;
    color: #ffffff;
}

.user-trigger:hover {
    background: #f1f5f9;
}

.nav-dropdown-trigger {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.5rem 0;
    z-index: 1001;
    display: none;
    border: 1px solid #f1f5f9;
    margin-top: 10px;
    list-style: none !important;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.nav-dropdown-trigger:hover .nav-dropdown {
    display: block !important;
}

.nav-dropdown li {
    list-style: none !important;
    margin: 0 !important;
}

.nav-dropdown li a {
    padding: 0.75rem 1.25rem !important;
    display: block !important;
    color: var(--color-brand-dark) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.nav-dropdown li a:hover {
    background: #f8fafc !important;
    color: var(--color-brand-accent) !important;
}

.dropdown-header {
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.current-role-label {
    background: var(--color-brand-accent);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.25rem;
}

.switch-link {
    color: #f97316 !important;
    font-weight: 800 !important;
}

.logout-link {
    color: #ef4444 !important;
}

/* User Info en Nav */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: var(--spacing-sm);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-white);
}

/* Badges de Rol */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 5px;
    vertical-align: middle;
    line-height: 1;
}

.role-badge-client {
    background-color: #0077b6;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.role-badge-provider {
    background-color: #f97316;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}


/* Dropdowns */
/* Flujo de Pasos (Step Tracker) - Modo Claro */
.job-steps-flow {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: var(--border-radius-md);
    position: relative;
    border: 1px solid var(--color-border-soft);
    box-shadow: var(--shadow-subtle);
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 10px;
    opacity: 0.6;
    transition: all 0.3s ease;
    z-index: 2;
}

.step-item.active {
    opacity: 1;
    font-weight: 800;
    color: var(--color-brand-accent);
}

.step-item.completed {
    opacity: 1;
    color: var(--color-success);
}

.step-icon {
    width: 42px;
    height: 42px;
    background: #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    box-shadow: var(--shadow-subtle);
}

.step-item.active .step-icon {
    background: var(--color-brand-accent);
    color: var(--color-white);
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.step-item.completed .step-icon {
    background: var(--color-success);
    color: var(--color-white);
}

.step-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--color-text-muted);
}

.step-item.active .step-label {
    color: var(--color-brand-accent);
}

/* Línea conectora entre círculos */
.job-steps-flow::before {
    content: "";
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #f1f5f9;
    z-index: 1;
}

/* Notificación de Mensajes */
.msg-badge {
    background-color: var(--color-danger);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: 5px;
    font-weight: 800;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Fix Mode Switch Button y Dropdowns */
.mode-switch-btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta {
    background: var(--color-cta);
    color: var(--color-cta-text);
}

.btn-cta:hover {
    background: var(--color-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-main-cta:hover {
    color: #000000 !important;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-primary {
    background: var(--color-brand-accent);
    color: var(--color-white);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   FORMULARIOS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-brand-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #94a3b8;
    /* Borde más oscuro y grueso para que se distinga el cuadro */
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: var(--color-white);
    color: var(--color-text-main);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-brand-accent);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

/* ============================================
   TARJETAS Y CARDS
   ============================================ */

.card {
    background: var(--color-white);
    border-radius: var(--border-radius-md);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fcfdfe;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-brand-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.25rem;
}

.text-muted {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-brand-dark);
    margin-bottom: 0.4rem;
}

/* ============================================
   ALERTS Y BADGES
   ============================================ */

.alert {
    padding: 1.25rem 2rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #a7f3d0;
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.2);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
}

/* ============================================
   HOME PAGE (HERO & MODULES)
   ============================================ */

.hero-section {
    padding: 120px 0 160px;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-brand-dark);
}

.text-gradient {
    background: linear-gradient(to right, #38bdf8, #818cf8, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-search-container {
    display: flex;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    background: var(--color-white);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid var(--color-border-soft);
    box-shadow: var(--shadow-md);
}

.hero-search-container input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 1.25rem;
    color: var(--color-text-main);
    font-size: 1.1rem;
    outline: none;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--color-text-muted);
}

.hero-badge-item {
    font-size: 0.85rem;
    font-weight: 700;
}

.home-module {
    margin-bottom: 6rem;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.module-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.view-all-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-brand-accent);
}

.glass-module {
    background: var(--color-light);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border-soft);
}

.steps-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-module {
    position: relative;
    padding-top: 3rem;
}

.step-num {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-brand-accent);
    opacity: 0.15;
    line-height: 1;
}

.step-module h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.provider-premium-card {
    border-top: 4px solid var(--color-brand-accent);
}

.provider-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1f5f9;
}

.search-page-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}

.provider-flex-layout {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.provider-search-img {
    width: 130px;
    height: 130px;
    border-radius: var(--border-radius-md);
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

.provider-premium-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.provider-premium-card:hover {
    border-color: var(--color-brand-accent);
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.hero-search {
    display: flex;
    max-width: 700px;
    margin: 2.5rem auto;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    outline: none;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.category-card {
    background: var(--color-white);
    padding: 1.5rem 1rem;
    text-align: center;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border-soft);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-brand-accent);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.category-name {
    font-weight: 700;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   TRABAJADORES LISTA / SEARCH
   ============================================ */

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.provider-card {
    transition: all 0.3s;
}

.provider-card:hover {
    transform: translateY(-5px);
}

.provider-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

/* ============================================
   DASHBOARD STATS
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--color-border-soft);
    box-shadow: var(--shadow-subtle);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-brand-dark);
    margin-bottom: 0.25rem;
    display: block;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   CHAT SYSTEM
   ============================================ */

.chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border-soft);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fcfdfe;
}

.message-bubble {
    max-width: 80%;
    padding: 0.85rem 1.15rem;
    border-radius: 18px;
    font-size: 0.95rem;
}

.sent .message-bubble {
    background: var(--color-brand-accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.received .message-bubble {
    background: white;
    color: var(--color-text-main);
    border: 1px solid var(--color-border-soft);
    border-bottom-left-radius: 4px;
}

.chat-input-area {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid var(--color-border-soft);
}

.chat-form input {
    flex: 1;
    background: var(--color-light);
    border: 1px solid var(--color-border-soft);
    padding: 0.85rem 1.25rem;
    border-radius: 50px;
    color: var(--color-text-main);
    outline: none;
}

.chat-form input:focus {
    border-color: var(--color-brand-accent);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-brand-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-brand-dark);
        padding: 1rem;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 15px;
    }

    .hero-search button {
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* ============================================
   PÁGINAS DE AUTENTICACIÓN
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--color-brand-dark) 0%, var(--color-brand) 100%);
}

.auth-card {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo h1 {
    font-size: 2rem;
    color: var(--color-brand-dark);
    margin-bottom: 0.5rem;
}

.auth-logo p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--color-text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-border-soft);
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--color-text-muted);
}

.auth-footer a {
    font-weight: 600;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
}

.main-footer {
    padding: 4rem 0;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.main-footer a {
    color: var(--color-brand-accent);
    font-weight: 600;
    margin: 0 0.5rem;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   CATEGORÍAS Y DASHBOARD FINAL
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.category-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 100px;
}

.category-card:hover {
    border-color: var(--color-brand-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.category-icon {
    font-size: 2rem;
    line-height: 1;
}

.category-name {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--color-brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

/* Range Input Premium */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    margin: 10px 0;
    background: transparent;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--color-brand-accent);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 5px;
}

input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--color-brand-accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}