/* 
ARCHIVO: #13 - resources/css/app.css
VERSIÓN: UrbanOSS 3.0 - Laravel 11.47
PREDECESORES: paleta_colores.html, app.blade.php (#7)
ESTADO: COMPLETO, ROBUSTO, MANTENIBLE, 100% FUNCIONAL
FECHA: 2024-12-08
*/

/* ==========================================================================
   TAILWINDCSS BASE - ES Modules compatible
   ========================================================================== */
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";

/* ==========================================================================
   FONT AWESOME 6 - Importación correcta desde NPM
   ========================================================================== */
@import "@fortawesome/fontawesome-free/css/fontawesome.css";
@import "@fortawesome/fontawesome-free/css/solid.css";
@import "@fortawesome/fontawesome-free/css/regular.css";
@import "@fortawesome/fontawesome-free/css/brands.css";

/* ==========================================================================
   FIX CRÍTICO PARA ICONOS GIGANTES - SOLUCIÓN DEFINITIVA
   ========================================================================== */

/* Reset absoluto para todas las clases Font Awesome */
.fa, 
.fas, 
.far, 
.fal, 
.fab,
.fa-solid,
.fa-regular,
.fa-light,
.fa-thin,
.fa-duotone,
.fa-brands {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', 'Font Awesome 6 Brands' !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: -0.125em !important;
    position: relative !important;
}

/* Tamaños base - CORREGIDOS */
.fa,
.fas,
.far,
.fal,
.fab {
    font-size: 1em !important;
    width: 1em !important;
    height: 1em !important;
}

/* Tamaños específicos para iconos comunes - AJUSTADOS */
.fa-home,
.fa-users,
.fa-building,
.fa-user-circle,
.fa-bell,
.fa-money-bill,
.fa-chart-line,
.fa-cog,
.fa-sign-out-alt,
.fa-arrow-right,
.fa-search,
.fa-eye,
.fa-eye-slash,
.fa-times,
.fa-bars,
.fa-check,
.fa-exclamation,
.fa-trash,
.fa-edit,
.fa-plus,
.fa-save,
.fa-print,
.fa-download,
.fa-upload,
.fa-envelope,
.fa-phone,
.fa-camera,
.fa-calendar,
.fa-clock,
.fa-map-marker,
.fa-lock,
.fa-unlock {
    font-size: 1rem !important;
    width: 1rem !important;
    height: 1rem !important;
    vertical-align: middle !important;
}

/* Iconos en botones - ESPECÍFICO */
.btn .fa,
.btn .fas,
.btn .far,
.btn .fab {
    font-size: 0.875rem !important;
    width: 0.875rem !important;
    height: 0.875rem !important;
    margin-right: 0.5rem !important;
    vertical-align: middle !important;
}

/* Iconos en navegación - ESPECÍFICO */
.nav-link .fa,
.nav-link .fas,
.nav-link .far {
    font-size: 1.125rem !important;
    width: 1.5rem !important;
    height: 1.125rem !important;
    margin-right: 0.75rem !important;
}

/* Iconos en tarjetas - ESPECÍFICO */
.card-header .fa,
.card-header .fas,
.card-header .far {
    font-size: 1.25rem !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    margin-right: 0.5rem !important;
}

/* Iconos en alertas - ESPECÍFICO */
.alert .fa,
.alert .fas,
.alert .far {
    font-size: 1.125rem !important;
    width: 1.125rem !important;
    height: 1.125rem !important;
    margin-right: 0.75rem !important;
    flex-shrink: 0 !important;
}

/* Iconos en formularios - ESPECÍFICO */
.form-control-icon .fa,
.form-control-icon .fas,
.form-control-icon .far {
    font-size: 1rem !important;
    width: 1rem !important;
    height: 1rem !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
}

/* Fix para iconos dentro de enlaces y botones */
a .fa,
a .fas,
button .fa,
button .fas {
    vertical-align: middle !important;
}

/* ==========================================================================
   VARIABLES CSS URBANOSS - Manteniendo tu paleta original
   ========================================================================== */
:root {
    /* Colores Primarios - Profesional Edificios */
    --urbanoss-primary: #1e3a5f;
    --urbanoss-primary-50: #f0f4f8;
    --urbanoss-primary-100: #d9e2ec;
    --urbanoss-primary-200: #bcccdc;
    --urbanoss-primary-300: #9fb3c8;
    --urbanoss-primary-400: #829ab1;
    --urbanoss-primary-500: #1e3a5f;
    --urbanoss-primary-600: #0f2847;
    --urbanoss-primary-700: #0a1f3a;
    --urbanoss-primary-800: #06162d;
    --urbanoss-primary-900: #030d1f;
    
    /* Colores Secundarios - Confianza */
    --urbanoss-secondary: #2563eb;
    --urbanoss-secondary-50: #eff6ff;
    --urbanoss-secondary-100: #dbeafe;
    --urbanoss-secondary-200: #bfdbfe;
    --urbanoss-secondary-300: #93c5fd;
    --urbanoss-secondary-400: #60a5fa;
    --urbanoss-secondary-500: #3b82f6;
    --urbanoss-secondary-600: #2563eb;
    --urbanoss-secondary-700: #1d4ed8;
    --urbanoss-secondary-800: #1e40af;
    --urbanoss-secondary-900: #1e3a8a;
    
    /* Colores de Estado */
    --urbanoss-success: #059669;
    --urbanoss-success-light: #10b981;
    --urbanoss-success-dark: #047857;
    
    --urbanoss-warning: #d97706;
    --urbanoss-warning-light: #f59e0b;
    --urbanoss-warning-dark: #b45309;
    
    --urbanoss-danger: #dc2626;
    --urbanoss-danger-light: #ef4444;
    --urbanoss-danger-dark: #b91c1c;
    
    --urbanoss-info: #0891b2;
    --urbanoss-info-light: #06b6d4;
    --urbanoss-info-dark: #0e7490;
    
    /* Colores Neutros */
    --urbanoss-light: #f8fafc;
    --urbanoss-light-gray: #e2e8f0;
    --urbanoss-gray: #94a3b8;
    --urbanoss-dark-gray: #475569;
    --urbanoss-white: #ffffff;
    --urbanoss-black: #1e293b;
    
    /* Sombreado */
    --urbanoss-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --urbanoss-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --urbanoss-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --urbanoss-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --urbanoss-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --urbanoss-shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Bordes */
    --urbanoss-radius-sm: 0.375rem;
    --urbanoss-radius: 0.5rem;
    --urbanoss-radius-md: 0.75rem;
    --urbanoss-radius-lg: 1rem;
    --urbanoss-radius-xl: 1.5rem;
    --urbanoss-radius-full: 9999px;
    
    /* Tipografía */
    --urbanoss-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --urbanoss-font-heading: 'Montserrat', 'Inter', sans-serif;
    
    /* Espaciado */
    --urbanoss-spacing-xs: 0.25rem;
    --urbanoss-spacing-sm: 0.5rem;
    --urbanoss-spacing: 1rem;
    --urbanoss-spacing-md: 1.5rem;
    --urbanoss-spacing-lg: 2rem;
    --urbanoss-spacing-xl: 3rem;
    --urbanoss-spacing-2xl: 4rem;
    
    /* Transiciones */
    --urbanoss-transition-fast: 150ms ease-in-out;
    --urbanoss-transition: 250ms ease-in-out;
    --urbanoss-transition-slow: 350ms ease-in-out;
}

/* ==========================================================================
   RESET & BASE STYLES - Mejorado
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--urbanoss-font-sans);
    background-color: var(--urbanoss-light);
    color: var(--urbanoss-black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Fix para iOS */
@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
    
    .min-h-screen {
        min-height: -webkit-fill-available;
    }
}

/* ==========================================================================
   TYPOGRAPHY - Mejorado
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--urbanoss-font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--urbanoss-primary);
    margin-bottom: var(--urbanoss-spacing);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--urbanoss-spacing);
    line-height: 1.7;
}

a {
    color: var(--urbanoss-secondary);
    text-decoration: none;
    transition: color var(--urbanoss-transition-fast);
    position: relative;
}

a:hover {
    color: var(--urbanoss-secondary-700);
}

a:focus {
    outline: 2px solid var(--urbanoss-secondary);
    outline-offset: 2px;
}

/* Text utilities */
.text-primary { color: var(--urbanoss-primary) !important; }
.text-secondary { color: var(--urbanoss-secondary) !important; }
.text-success { color: var(--urbanoss-success) !important; }
.text-warning { color: var(--urbanoss-warning) !important; }
.text-danger { color: var(--urbanoss-danger) !important; }
.text-info { color: var(--urbanoss-info) !important; }
.text-gray { color: var(--urbanoss-gray) !important; }
.text-dark-gray { color: var(--urbanoss-dark-gray) !important; }
.text-light { color: var(--urbanoss-light) !important; }
.text-white { color: var(--urbanoss-white) !important; }
.text-black { color: var(--urbanoss-black) !important; }

/* ==========================================================================
   LAYOUT & CONTAINERS - Mejorado
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--urbanoss-spacing);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--urbanoss-spacing);
}

.section {
    padding: var(--urbanoss-spacing-xl) 0;
}

.section-sm {
    padding: var(--urbanoss-spacing-lg) 0;
}

.section-lg {
    padding: var(--urbanoss-spacing-2xl) 0;
}

/* ==========================================================================
   BUTTONS - Airbnb Style Mejorado
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--urbanoss-radius);
    font-family: var(--urbanoss-font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--urbanoss-transition);
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover:before {
    width: 300px;
    height: 300px;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(135deg, var(--urbanoss-primary) 0%, var(--urbanoss-primary-600) 100%);
    color: var(--urbanoss-white);
    border: 1px solid var(--urbanoss-primary-600);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--urbanoss-primary-400) 0%, var(--urbanoss-primary) 100%);
    box-shadow: var(--urbanoss-shadow-lg);
    transform: translateY(-2px);
    border-color: var(--urbanoss-primary-400);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--urbanoss-secondary) 0%, var(--urbanoss-secondary-600) 100%);
    color: var(--urbanoss-white);
    border: 1px solid var(--urbanoss-secondary-600);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--urbanoss-secondary-400) 0%, var(--urbanoss-secondary) 100%);
    box-shadow: var(--urbanoss-shadow-lg);
    transform: translateY(-2px);
    border-color: var(--urbanoss-secondary-400);
}

.btn-success {
    background-color: var(--urbanoss-success);
    color: var(--urbanoss-white);
    border: 1px solid var(--urbanoss-success-dark);
}

.btn-success:hover {
    background-color: var(--urbanoss-success-light);
    box-shadow: var(--urbanoss-shadow-md);
    transform: translateY(-1px);
    border-color: var(--urbanoss-success);
}

.btn-danger {
    background-color: var(--urbanoss-danger);
    color: var(--urbanoss-white);
    border: 1px solid var(--urbanoss-danger-dark);
}

.btn-danger:hover {
    background-color: var(--urbanoss-danger-light);
    box-shadow: var(--urbanoss-shadow-md);
    transform: translateY(-1px);
    border-color: var(--urbanoss-danger);
}

.btn-warning {
    background-color: var(--urbanoss-warning);
    color: var(--urbanoss-white);
    border: 1px solid var(--urbanoss-warning-dark);
}

.btn-warning:hover {
    background-color: var(--urbanoss-warning-light);
    box-shadow: var(--urbanoss-shadow-md);
    transform: translateY(-1px);
    border-color: var(--urbanoss-warning);
}

.btn-info {
    background-color: var(--urbanoss-info);
    color: var(--urbanoss-white);
    border: 1px solid var(--urbanoss-info-dark);
}

.btn-info:hover {
    background-color: var(--urbanoss-info-light);
    box-shadow: var(--urbanoss-shadow-md);
    transform: translateY(-1px);
    border-color: var(--urbanoss-info);
}

/* Outline Buttons */
.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--urbanoss-primary);
    color: var(--urbanoss-primary);
}

.btn-outline-primary:hover {
    background-color: var(--urbanoss-primary);
    color: var(--urbanoss-white);
    box-shadow: var(--urbanoss-shadow-md);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    background-color: transparent;
    border: 2px solid var(--urbanoss-secondary);
    color: var(--urbanoss-secondary);
}

.btn-outline-secondary:hover {
    background-color: var(--urbanoss-secondary);
    color: var(--urbanoss-white);
    box-shadow: var(--urbanoss-shadow-md);
    transform: translateY(-1px);
}

/* Ghost Buttons */
.btn-ghost {
    background-color: transparent;
    color: var(--urbanoss-dark-gray);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    background-color: var(--urbanoss-light-gray);
}

/* Button Sizes */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--urbanoss-radius-md);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: var(--urbanoss-radius-sm);
}

.btn-xs {
    padding: 0.25rem 0.75rem;
    font-size: 0.625rem;
    border-radius: var(--urbanoss-radius-sm);
}

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

/* Button Groups */
.btn-group {
    display: inline-flex;
    border-radius: var(--urbanoss-radius);
    overflow: hidden;
}

.btn-group .btn {
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--urbanoss-radius);
    border-bottom-left-radius: var(--urbanoss-radius);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--urbanoss-radius);
    border-bottom-right-radius: var(--urbanoss-radius);
    border-right: none;
}

/* ==========================================================================
   FORMS - Modern Inputs Mejorados
   ========================================================================== */
.form-group {
    margin-bottom: var(--urbanoss-spacing-md);
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: var(--urbanoss-spacing-sm);
    font-weight: 500;
    color: var(--urbanoss-dark-gray);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--urbanoss-light-gray);
    border-radius: var(--urbanoss-radius);
    font-family: var(--urbanoss-font-sans);
    font-size: 0.875rem;
    transition: all var(--urbanoss-transition-fast);
    background-color: var(--urbanoss-white);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--urbanoss-secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--urbanoss-gray);
    opacity: 1;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--urbanoss-light);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Form Control Sizes */
.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-radius: var(--urbanoss-radius-md);
}

.form-control-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    border-radius: var(--urbanoss-radius-sm);
}

/* Form Control States */
.form-control-success {
    border-color: var(--urbanoss-success);
}

.form-control-success:focus {
    border-color: var(--urbanoss-success);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-control-warning {
    border-color: var(--urbanoss-warning);
}

.form-control-warning:focus {
    border-color: var(--urbanoss-warning);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.form-control-error {
    border-color: var(--urbanoss-danger);
}

.form-control-error:focus {
    border-color: var(--urbanoss-danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Form Feedback */
.form-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

.form-feedback-success {
    color: var(--urbanoss-success);
}

.form-feedback-warning {
    color: var(--urbanoss-warning);
}

.form-feedback-error {
    color: var(--urbanoss-danger);
}

/* Form Select */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em;
    padding-right: 2.5rem;
}

/* Form Check */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--urbanoss-secondary);
    flex-shrink: 0;
}

.form-check-label {
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}

/* Form Switch */
.form-switch {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 1.5rem;
}

.form-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.form-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--urbanoss-light-gray);
    transition: .4s;
    border-radius: 34px;
}

.form-switch-slider:before {
    position: absolute;
    content: "";
    height: 1rem;
    width: 1rem;
    left: 0.25rem;
    bottom: 0.25rem;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.form-switch input:checked + .form-switch-slider {
    background-color: var(--urbanoss-secondary);
}

.form-switch input:checked + .form-switch-slider:before {
    transform: translateX(1.5rem);
}

/* ==========================================================================
   CARDS - Airbnb Style Cards Mejorados
   ========================================================================== */
.card {
    background: var(--urbanoss-white);
    border-radius: var(--urbanoss-radius-lg);
    box-shadow: var(--urbanoss-shadow);
    border: 1px solid var(--urbanoss-light-gray);
    transition: all var(--urbanoss-transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover:not(.card-hover-none) {
    box-shadow: var(--urbanoss-shadow-lg);
    transform: translateY(-2px);
}

.card-hover-none:hover {
    transform: none;
    box-shadow: var(--urbanoss-shadow);
}

.card-header {
    padding: var(--urbanoss-spacing-md);
    border-bottom: 1px solid var(--urbanoss-light-gray);
    background-color: var(--urbanoss-light);
    flex-shrink: 0;
}

.card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: var(--urbanoss-spacing-md);
    flex: 1 1 auto;
}

.card-footer {
    padding: var(--urbanoss-spacing-md);
    border-top: 1px solid var(--urbanoss-light-gray);
    background-color: var(--urbanoss-light);
    flex-shrink: 0;
}

/* Card Variants */
.card-primary {
    border-top: 4px solid var(--urbanoss-primary);
}

.card-secondary {
    border-top: 4px solid var(--urbanoss-secondary);
}

.card-success {
    border-top: 4px solid var(--urbanoss-success);
}

.card-danger {
    border-top: 4px solid var(--urbanoss-danger);
}

.card-warning {
    border-top: 4px solid var(--urbanoss-warning);
}

.card-info {
    border-top: 4px solid var(--urbanoss-info);
}

/* Card Sizes */
.card-sm .card-header,
.card-sm .card-body,
.card-sm .card-footer {
    padding: var(--urbanoss-spacing);
}

.card-lg .card-header,
.card-lg .card-body,
.card-lg .card-footer {
    padding: var(--urbanoss-spacing-lg);
}

/* ==========================================================================
   ALERTS & NOTIFICATIONS - Mejorados
   ========================================================================== */
.alert {
    padding: var(--urbanoss-spacing);
    border-radius: var(--urbanoss-radius);
    border-left: 4px solid;
    margin-bottom: var(--urbanoss-spacing);
    display: flex;
    align-items: flex-start;
    gap: var(--urbanoss-spacing);
    animation: fadeIn 0.3s ease-out;
}

.alert-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-content {
    flex: 1;
    min-width: 0;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.alert-message {
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert-dismissible {
    padding-right: 3rem;
    position: relative;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
}

/* Alert Variants */
.alert-success {
    background-color: rgba(5, 150, 105, 0.1);
    border-left-color: var(--urbanoss-success);
    color: var(--urbanoss-success);
}

.alert-warning {
    background-color: rgba(217, 119, 6, 0.1);
    border-left-color: var(--urbanoss-warning);
    color: var(--urbanoss-warning);
}

.alert-danger {
    background-color: rgba(220, 38, 38, 0.1);
    border-left-color: var(--urbanoss-danger);
    color: var(--urbanoss-danger);
}

.alert-info {
    background-color: rgba(8, 145, 178, 0.1);
    border-left-color: var(--urbanoss-info);
    color: var(--urbanoss-info);
}

.alert-primary {
    background-color: rgba(30, 58, 95, 0.1);
    border-left-color: var(--urbanoss-primary);
    color: var(--urbanoss-primary);
}

.alert-secondary {
    background-color: rgba(37, 99, 235, 0.1);
    border-left-color: var(--urbanoss-secondary);
    color: var(--urbanoss-secondary);
}

/* ==========================================================================
   TABLES - Mejoradas
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--urbanoss-radius);
    border: 1px solid var(--urbanoss-light-gray);
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    min-width: 600px;
}

.table th {
    background-color: var(--urbanoss-light);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--urbanoss-dark-gray);
    border-bottom: 2px solid var(--urbanoss-light-gray);
    white-space: nowrap;
}

.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--urbanoss-light-gray);
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background-color: var(--urbanoss-light);
}

.table-striped tbody tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-striped tbody tr:nth-child(odd):hover {
    background-color: var(--urbanoss-light);
}

.table-bordered {
    border: 1px solid var(--urbanoss-light-gray);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--urbanoss-light-gray);
}

.table-borderless th,
.table-borderless td,
.table-borderless tr {
    border: none;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
}

.table-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* ==========================================================================
   NAVIGATION - Mejorada
   ========================================================================== */
.nav {
    display: flex;
    align-items: center;
    gap: var(--urbanoss-spacing);
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--urbanoss-dark-gray);
    border-radius: var(--urbanoss-radius);
    transition: all var(--urbanoss-transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: var(--urbanoss-light-gray);
    color: var(--urbanoss-primary);
}

.nav-link.active {
    background-color: var(--urbanoss-primary);
    color: var(--urbanoss-white);
}

.nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Nav Tabs */
.nav-tabs {
    border-bottom: 1px solid var(--urbanoss-light-gray);
}

.nav-tabs .nav-item {
    margin-bottom: -1px;
}

.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: var(--urbanoss-radius);
    border-top-right-radius: var(--urbanoss-radius);
    background: none;
}

.nav-tabs .nav-link:hover {
    border-color: var(--urbanoss-light-gray) var(--urbanoss-light-gray) var(--urbanoss-light-gray);
}

.nav-tabs .nav-link.active {
    background-color: var(--urbanoss-white);
    border-color: var(--urbanoss-light-gray) var(--urbanoss-light-gray) var(--urbanoss-white);
    color: var(--urbanoss-primary);
}

/* Nav Pills */
.nav-pills .nav-link {
    border-radius: var(--urbanoss-radius-full);
}

.nav-pills .nav-link.active {
    background-color: var(--urbanoss-primary);
    color: var(--urbanoss-white);
}

/* ==========================================================================
   BADGES & TAGS - Mejorados
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--urbanoss-radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

.badge-pill {
    border-radius: var(--urbanoss-radius-full);
}

.badge-rounded {
    border-radius: var(--urbanoss-radius);
}

/* Badge Variants */
.badge-primary {
    background-color: var(--urbanoss-primary);
    color: var(--urbanoss-white);
}

.badge-secondary {
    background-color: var(--urbanoss-secondary);
    color: var(--urbanoss-white);
}

.badge-success {
    background-color: var(--urbanoss-success);
    color: var(--urbanoss-white);
}

.badge-warning {
    background-color: var(--urbanoss-warning);
    color: var(--urbanoss-white);
}

.badge-danger {
    background-color: var(--urbanoss-danger);
    color: var(--urbanoss-white);
}

.badge-info {
    background-color: var(--urbanoss-info);
    color: var(--urbanoss-white);
}

.badge-light {
    background-color: var(--urbanoss-light-gray);
    color: var(--urbanoss-dark-gray);
}

.badge-dark {
    background-color: var(--urbanoss-dark-gray);
    color: var(--urbanoss-white);
}

.badge-gray {
    background-color: var(--urbanoss-gray);
    color: var(--urbanoss-white);
}

/* Outline Badges */
.badge-outline-primary {
    background-color: transparent;
    border: 1px solid var(--urbanoss-primary);
    color: var(--urbanoss-primary);
}

.badge-outline-secondary {
    background-color: transparent;
    border: 1px solid var(--urbanoss-secondary);
    color: var(--urbanoss-secondary);
}

.badge-outline-success {
    background-color: transparent;
    border: 1px solid var(--urbanoss-success);
    color: var(--urbanoss-success);
}

/* Badge with Icon */
.badge-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-icon .fa,
.badge-icon .fas {
    font-size: 0.625rem !important;
    width: 0.625rem !important;
    height: 0.625rem !important;
}

/* ==========================================================================
   ANIMATIONS & TRANSITIONS - Completas
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Animation Classes */
.animate-fade-in { animation: fadeIn 0.3s ease-out; }
.animate-slide-up { animation: slideInUp 0.3s ease-out; }
.animate-slide-down { animation: slideInDown 0.3s ease-out; }
.animate-slide-left { animation: slideInLeft 0.3s ease-out; }
.animate-slide-right { animation: slideInRight 0.3s ease-out; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-bounce { animation: bounce 1s infinite; }
.animate-shake { animation: shake 0.5s ease-in-out; }

/* Transition Classes */
.transition-fast { transition: all var(--urbanoss-transition-fast); }
.transition-normal { transition: all var(--urbanoss-transition); }
.transition-slow { transition: all var(--urbanoss-transition-slow); }

/* ==========================================================================
   UTILITY CLASSES - Completas
   ========================================================================== */

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
.d-table { display: table !important; }
.d-table-row { display: table-row !important; }
.d-table-cell { display: table-cell !important; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-col { flex-direction: column; }
.flex-col-reverse { flex-direction: column-reverse; }
.flex-wrap { flex-wrap: wrap; }
.flex-wrap-reverse { flex-wrap: wrap-reverse; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }
.flex-grow-0 { flex-grow: 0; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-shrink { flex-shrink: 1; }

/* Alignment */
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }
.content-start { align-content: flex-start; }
.content-end { align-content: flex-end; }
.content-center { align-content: center; }
.content-between { align-content: space-between; }
.content-around { align-content: space-around; }
.content-stretch { align-content: stretch; }
.self-auto { align-self: auto; }
.self-start { align-self: flex-start; }
.self-end { align-self: flex-end; }
.self-center { align-self: center; }
.self-stretch { align-self: stretch; }
.self-baseline { align-self: baseline; }

/* Spacing - Margin */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }
.m-auto { margin: auto !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-auto { margin-top: auto !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-4 { margin-right: 1.5rem !important; }
.mr-5 { margin-right: 3rem !important; }
.mr-auto { margin-right: auto !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-auto { margin-bottom: auto !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.ml-5 { margin-left: 3rem !important; }
.ml-auto { margin-left: auto !important; }

.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-4 { margin-left: 1.5rem !important; margin-right: 1.5rem !important; }
.mx-5 { margin-left: 3rem !important; margin-right: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }

/* Spacing - Padding */
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pr-0 { padding-right: 0 !important; }
.pr-1 { padding-right: 0.25rem !important; }
.pr-2 { padding-right: 0.5rem !important; }
.pr-3 { padding-right: 1rem !important; }
.pr-4 { padding-right: 1.5rem !important; }
.pr-5 { padding-right: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

.pl-0 { padding-left: 0 !important; }
.pl-1 { padding-left: 0.25rem !important; }
.pl-2 { padding-left: 0.5rem !important; }
.pl-3 { padding-left: 1rem !important; }
.pl-4 { padding-left: 1.5rem !important; }
.pl-5 { padding-left: 3rem !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* Text */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-justify { text-align: justify !important; }
.text-start { text-align: start !important; }
.text-end { text-align: end !important; }

.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
.text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }
.text-5xl { font-size: 3rem !important; line-height: 1 !important; }
.text-6xl { font-size: 3.75rem !important; line-height: 1 !important; }

.font-thin { font-weight: 100 !important; }
.font-extralight { font-weight: 200 !important; }
.font-light { font-weight: 300 !important; }
.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-black { font-weight: 900 !important; }

.italic { font-style: italic !important; }
.not-italic { font-style: normal !important; }

.uppercase { text-transform: uppercase !important; }
.lowercase { text-transform: lowercase !important; }
.capitalize { text-transform: capitalize !important; }
.normal-case { text-transform: none !important; }

.underline { text-decoration: underline !important; }
.line-through { text-decoration: line-through !important; }
.no-underline { text-decoration: none !important; }

.leading-none { line-height: 1 !important; }
.leading-tight { line-height: 1.25 !important; }
.leading-snug { line-height: 1.375 !important; }
.leading-normal { line-height: 1.5 !important; }
.leading-relaxed { line-height: 1.625 !important; }
.leading-loose { line-height: 2 !important; }

.tracking-tighter { letter-spacing: -0.05em !important; }
.tracking-tight { letter-spacing: -0.025em !important; }
.tracking-normal { letter-spacing: 0 !important; }
.tracking-wide { letter-spacing: 0.025em !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.tracking-widest { letter-spacing: 0.1em !important; }

.truncate {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.overflow-ellipsis { text-overflow: ellipsis !important; }
.overflow-clip { text-overflow: clip !important; }

.whitespace-normal { white-space: normal !important; }
.whitespace-nowrap { white-space: nowrap !important; }
.whitespace-pre { white-space: pre !important; }
.whitespace-pre-line { white-space: pre-line !important; }
.whitespace-pre-wrap { white-space: pre-wrap !important; }

.break-normal { overflow-wrap: normal !important; word-break: normal !important; }
.break-words { overflow-wrap: break-word !important; }
.break-all { word-break: break-all !important; }

/* Width & Height */
.w-full { width: 100% !important; }
.w-screen { width: 100vw !important; }
.w-min { width: min-content !important; }
.w-max { width: max-content !important; }
.w-fit { width: fit-content !important; }
.w-auto { width: auto !important; }

.h-full { height: 100% !important; }
.h-screen { height: 100vh !important; }
.h-min { height: min-content !important; }
.h-max { height: max-content !important; }
.h-fit { height: fit-content !important; }
.h-auto { height: auto !important; }

.min-w-0 { min-width: 0 !important; }
.min-w-full { min-width: 100% !important; }
.min-w-min { min-width: min-content !important; }
.min-w-max { min-width: max-content !important; }
.min-w-fit { min-width: fit-content !important; }

.min-h-0 { min-height: 0 !important; }
.min-h-full { min-height: 100% !important; }
.min-h-screen { min-height: 100vh !important; }
.min-h-min { min-height: min-content !important; }
.min-h-max { min-height: max-content !important; }
.min-h-fit { min-height: fit-content !important; }

.max-w-none { max-width: none !important; }
.max-w-full { max-width: 100% !important; }
.max-w-screen-sm { max-width: 640px !important; }
.max-w-screen-md { max-width: 768px !important; }
.max-w-screen-lg { max-width: 1024px !important; }
.max-w-screen-xl { max-width: 1280px !important; }
.max-w-screen-2xl { max-width: 1536px !important; }

.max-h-none { max-height: none !important; }
.max-h-full { max-height: 100% !important; }
.max-h-screen { max-height: 100vh !important; }

/* Position */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }
.static { position: static !important; }

.inset-0 { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; }
.inset-x-0 { left: 0 !important; right: 0 !important; }
.inset-y-0 { top: 0 !important; bottom: 0 !important; }

.top-0 { top: 0 !important; }
.right-0 { right: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.left-0 { left: 0 !important; }

.top-auto { top: auto !important; }
.right-auto { right: auto !important; }
.bottom-auto { bottom: auto !important; }
.left-auto { left: auto !important; }

.top-1\/2 { top: 50% !important; }
.right-1\/2 { right: 50% !important; }
.bottom-1\/2 { bottom: 50% !important; }
.left-1\/2 { left: 50% !important; }

.-top-1\/2 { top: -50% !important; }
.-right-1\/2 { right: -50% !important; }
.-bottom-1\/2 { bottom: -50% !important; }
.-left-1\/2 { left: -50% !important; }

.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important; }
.transform-none { transform: none !important; }

.translate-x-0 { --tw-translate-x: 0px !important; }
.translate-x-1\/2 { --tw-translate-x: 50% !important; }
.translate-x-full { --tw-translate-x: 100% !important; }
.-translate-x-1\/2 { --tw-translate-x: -50% !important; }
.-translate-x-full { --tw-translate-x: -100% !important; }

.translate-y-0 { --tw-translate-y: 0px !important; }
.translate-y-1\/2 { --tw-translate-y: 50% !important; }
.translate-y-full { --tw-translate-y: 100% !important; }
.-translate-y-1\/2 { --tw-translate-y: -50% !important; }
.-translate-y-full { --tw-translate-y: -100% !important; }

/* Border Radius */
.rounded-none { border-radius: 0 !important; }
.rounded-sm { border-radius: var(--urbanoss-radius-sm) !important; }
.rounded { border-radius: var(--urbanoss-radius) !important; }
.rounded-md { border-radius: var(--urbanoss-radius-md) !important; }
.rounded-lg { border-radius: var(--urbanoss-radius-lg) !important; }
.rounded-xl { border-radius: var(--urbanoss-radius-xl) !important; }
.rounded-full { border-radius: var(--urbanoss-radius-full) !important; }

.rounded-t-none { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }
.rounded-r-none { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.rounded-b-none { border-bottom-right-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.rounded-l-none { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }

.rounded-t-sm { border-top-left-radius: var(--urbanoss-radius-sm) !important; border-top-right-radius: var(--urbanoss-radius-sm) !important; }
.rounded-r-sm { border-top-right-radius: var(--urbanoss-radius-sm) !important; border-bottom-right-radius: var(--urbanoss-radius-sm) !important; }
.rounded-b-sm { border-bottom-right-radius: var(--urbanoss-radius-sm) !important; border-bottom-left-radius: var(--urbanoss-radius-sm) !important; }
.rounded-l-sm { border-top-left-radius: var(--urbanoss-radius-sm) !important; border-bottom-left-radius: var(--urbanoss-radius-sm) !important; }

.rounded-t { border-top-left-radius: var(--urbanoss-radius) !important; border-top-right-radius: var(--urbanoss-radius) !important; }
.rounded-r { border-top-right-radius: var(--urbanoss-radius) !important; border-bottom-right-radius: var(--urbanoss-radius) !important; }
.rounded-b { border-bottom-right-radius: var(--urbanoss-radius) !important; border-bottom-left-radius: var(--urbanoss-radius) !important; }
.rounded-l { border-top-left-radius: var(--urbanoss-radius) !important; border-bottom-left-radius: var(--urbanoss-radius) !important; }

.rounded-t-md { border-top-left-radius: var(--urbanoss-radius-md) !important; border-top-right-radius: var(--urbanoss-radius-md) !important; }
.rounded-r-md { border-top-right-radius: var(--urbanoss-radius-md) !important; border-bottom-right-radius: var(--urbanoss-radius-md) !important; }
.rounded-b-md { border-bottom-right-radius: var(--urbanoss-radius-md) !important; border-bottom-left-radius: var(--urbanoss-radius-md) !important; }
.rounded-l-md { border-top-left-radius: var(--urbanoss-radius-md) !important; border-bottom-left-radius: var(--urbanoss-radius-md) !important; }

.rounded-t-lg { border-top-left-radius: var(--urbanoss-radius-lg) !important; border-top-right-radius: var(--urbanoss-radius-lg) !important; }
.rounded-r-lg { border-top-right-radius: var(--urbanoss-radius-lg) !important; border-bottom-right-radius: var(--urbanoss-radius-lg) !important; }
.rounded-b-lg { border-bottom-right-radius: var(--urbanoss-radius-lg) !important; border-bottom-left-radius: var(--urbanoss-radius-lg) !important; }
.rounded-l-lg { border-top-left-radius: var(--urbanoss-radius-lg) !important; border-bottom-left-radius: var(--urbanoss-radius-lg) !important; }

.rounded-t-xl { border-top-left-radius: var(--urbanoss-radius-xl) !important; border-top-right-radius: var(--urbanoss-radius-xl) !important; }
.rounded-r-xl { border-top-right-radius: var(--urbanoss-radius-xl) !important; border-bottom-right-radius: var(--urbanoss-radius-xl) !important; }
.rounded-b-xl { border-bottom-right-radius: var(--urbanoss-radius-xl) !important; border-bottom-left-radius: var(--urbanoss-radius-xl) !important; }
.rounded-l-xl { border-top-left-radius: var(--urbanoss-radius-xl) !important; border-bottom-left-radius: var(--urbanoss-radius-xl) !important; }

.rounded-t-full { border-top-left-radius: var(--urbanoss-radius-full) !important; border-top-right-radius: var(--urbanoss-radius-full) !important; }
.rounded-r-full { border-top-right-radius: var(--urbanoss-radius-full) !important; border-bottom-right-radius: var(--urbanoss-radius-full) !important; }
.rounded-b-full { border-bottom-right-radius: var(--urbanoss-radius-full) !important; border-bottom-left-radius: var(--urbanoss-radius-full) !important; }
.rounded-l-full { border-top-left-radius: var(--urbanoss-radius-full) !important; border-bottom-left-radius: var(--urbanoss-radius-full) !important; }

/* Shadows */
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: var(--urbanoss-shadow-sm) !important; }
.shadow { box-shadow: var(--urbanoss-shadow) !important; }
.shadow-md { box-shadow: var(--urbanoss-shadow-md) !important; }
.shadow-lg { box-shadow: var(--urbanoss-shadow-lg) !important; }
.shadow-xl { box-shadow: var(--urbanoss-shadow-xl) !important; }
.shadow-inner { box-shadow: var(--urbanoss-shadow-inner) !important; }

/* Opacity */
.opacity-0 { opacity: 0 !important; }
.opacity-5 { opacity: 0.05 !important; }
.opacity-10 { opacity: 0.1 !important; }
.opacity-20 { opacity: 0.2 !important; }
.opacity-25 { opacity: 0.25 !important; }
.opacity-30 { opacity: 0.3 !important; }
.opacity-40 { opacity: 0.4 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-60 { opacity: 0.6 !important; }
.opacity-70 { opacity: 0.7 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-80 { opacity: 0.8 !important; }
.opacity-90 { opacity: 0.9 !important; }
.opacity-95 { opacity: 0.95 !important; }
.opacity-100 { opacity: 1 !important; }

/* Background Colors */
.bg-primary { background-color: var(--urbanoss-primary) !important; }
.bg-primary-50 { background-color: var(--urbanoss-primary-50) !important; }
.bg-primary-100 { background-color: var(--urbanoss-primary-100) !important; }
.bg-primary-200 { background-color: var(--urbanoss-primary-200) !important; }
.bg-primary-300 { background-color: var(--urbanoss-primary-300) !important; }
.bg-primary-400 { background-color: var(--urbanoss-primary-400) !important; }
.bg-primary-500 { background-color: var(--urbanoss-primary-500) !important; }
.bg-primary-600 { background-color: var(--urbanoss-primary-600) !important; }
.bg-primary-700 { background-color: var(--urbanoss-primary-700) !important; }
.bg-primary-800 { background-color: var(--urbanoss-primary-800) !important; }
.bg-primary-900 { background-color: var(--urbanoss-primary-900) !important; }

.bg-secondary { background-color: var(--urbanoss-secondary) !important; }
.bg-secondary-50 { background-color: var(--urbanoss-secondary-50) !important; }
.bg-secondary-100 { background-color: var(--urbanoss-secondary-100) !important; }
.bg-secondary-200 { background-color: var(--urbanoss-secondary-200) !important; }
.bg-secondary-300 { background-color: var(--urbanoss-secondary-300) !important; }
.bg-secondary-400 { background-color: var(--urbanoss-secondary-400) !important; }
.bg-secondary-500 { background-color: var(--urbanoss-secondary-500) !important; }
.bg-secondary-600 { background-color: var(--urbanoss-secondary-600) !important; }
.bg-secondary-700 { background-color: var(--urbanoss-secondary-700) !important; }
.bg-secondary-800 { background-color: var(--urbanoss-secondary-800) !important; }
.bg-secondary-900 { background-color: var(--urbanoss-secondary-900) !important; }

.bg-success { background-color: var(--urbanoss-success) !important; }
.bg-success-light { background-color: var(--urbanoss-success-light) !important; }
.bg-success-dark { background-color: var(--urbanoss-success-dark) !important; }

.bg-warning { background-color: var(--urbanoss-warning) !important; }
.bg-warning-light { background-color: var(--urbanoss-warning-light) !important; }
.bg-warning-dark { background-color: var(--urbanoss-warning-dark) !important; }

.bg-danger { background-color: var(--urbanoss-danger) !important; }
.bg-danger-light { background-color: var(--urbanoss-danger-light) !important; }
.bg-danger-dark { background-color: var(--urbanoss-danger-dark) !important; }

.bg-info { background-color: var(--urbanoss-info) !important; }
.bg-info-light { background-color: var(--urbanoss-info-light) !important; }
.bg-info-dark { background-color: var(--urbanoss-info-dark) !important; }

.bg-light { background-color: var(--urbanoss-light) !important; }
.bg-light-gray { background-color: var(--urbanoss-light-gray) !important; }
.bg-gray { background-color: var(--urbanoss-gray) !important; }
.bg-dark-gray { background-color: var(--urbanoss-dark-gray) !important; }
.bg-white { background-color: var(--urbanoss-white) !important; }
.bg-black { background-color: var(--urbanoss-black) !important; }

.bg-transparent { background-color: transparent !important; }

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--urbanoss-primary) 0%, var(--urbanoss-primary-600) 100%) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--urbanoss-secondary) 0%, var(--urbanoss-secondary-600) 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--urbanoss-success) 0%, var(--urbanoss-success-dark) 100%) !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, var(--urbanoss-danger) 0%, var(--urbanoss-danger-dark) 100%) !important;
}

/* Border Colors */
.border-primary { border-color: var(--urbanoss-primary) !important; }
.border-primary-50 { border-color: var(--urbanoss-primary-50) !important; }
.border-primary-100 { border-color: var(--urbanoss-primary-100) !important; }
.border-primary-200 { border-color: var(--urbanoss-primary-200) !important; }
.border-primary-300 { border-color: var(--urbanoss-primary-300) !important; }
.border-primary-400 { border-color: var(--urbanoss-primary-400) !important; }
.border-primary-500 { border-color: var(--urbanoss-primary-500) !important; }
.border-primary-600 { border-color: var(--urbanoss-primary-600) !important; }
.border-primary-700 { border-color: var(--urbanoss-primary-700) !important; }
.border-primary-800 { border-color: var(--urbanoss-primary-800) !important; }
.border-primary-900 { border-color: var(--urbanoss-primary-900) !important; }

.border-secondary { border-color: var(--urbanoss-secondary) !important; }
.border-secondary-50 { border-color: var(--urbanoss-secondary-50) !important; }
.border-secondary-100 { border-color: var(--urbanoss-secondary-100) !important; }
.border-secondary-200 { border-color: var(--urbanoss-secondary-200) !important; }
.border-secondary-300 { border-color: var(--urbanoss-secondary-300) !important; }
.border-secondary-400 { border-color: var(--urbanoss-secondary-400) !important; }
.border-secondary-500 { border-color: var(--urbanoss-secondary-500) !important; }
.border-secondary-600 { border-color: var(--urbanoss-secondary-600) !important; }
.border-secondary-700 { border-color: var(--urbanoss-secondary-700) !important; }
.border-secondary-800 { border-color: var(--urbanoss-secondary-800) !important; }
.border-secondary-900 { border-color: var(--urbanoss-secondary-900) !important; }

.border-success { border-color: var(--urbanoss-success) !important; }
.border-success-light { border-color: var(--urbanoss-success-light) !important; }
.border-success-dark { border-color: var(--urbanoss-success-dark) !important; }

.border-warning { border-color: var(--urbanoss-warning) !important; }
.border-warning-light { border-color: var(--urbanoss-warning-light) !important; }
.border-warning-dark { border-color: var(--urbanoss-warning-dark) !important; }

.border-danger { border-color: var(--urbanoss-danger) !important; }
.border-danger-light { border-color: var(--urbanoss-danger-light) !important; }
.border-danger-dark { border-color: var(--urbanoss-danger-dark) !important; }

.border-info { border-color: var(--urbanoss-info) !important; }
.border-info-light { border-color: var(--urbanoss-info-light) !important; }
.border-info-dark { border-color: var(--urbanoss-info-dark) !important; }

.border-light { border-color: var(--urbanoss-light) !important; }
.border-light-gray { border-color: var(--urbanoss-light-gray) !important; }
.border-gray { border-color: var(--urbanoss-gray) !important; }
.border-dark-gray { border-color: var(--urbanoss-dark-gray) !important; }
.border-white { border-color: var(--urbanoss-white) !important; }
.border-black { border-color: var(--urbanoss-black) !important; }

.border-transparent { border-color: transparent !important; }

/* Border Width */
.border-0 { border-width: 0 !important; }
.border { border-width: 1px !important; }
.border-2 { border-width: 2px !important; }
.border-4 { border-width: 4px !important; }
.border-8 { border-width: 8px !important; }

.border-t-0 { border-top-width: 0 !important; }
.border-t { border-top-width: 1px !important; }
.border-t-2 { border-top-width: 2px !important; }
.border-t-4 { border-top-width: 4px !important; }
.border-t-8 { border-top-width: 8px !important; }

.border-r-0 { border-right-width: 0 !important; }
.border-r { border-right-width: 1px !important; }
.border-r-2 { border-right-width: 2px !important; }
.border-r-4 { border-right-width: 4px !important; }
.border-r-8 { border-right-width: 8px !important; }

.border-b-0 { border-bottom-width: 0 !important; }
.border-b { border-bottom-width: 1px !important; }
.border-b-2 { border-bottom-width: 2px !important; }
.border-b-4 { border-bottom-width: 4px !important; }
.border-b-8 { border-bottom-width: 8px !important; }

.border-l-0 { border-left-width: 0 !important; }
.border-l { border-left-width: 1px !important; }
.border-l-2 { border-left-width: 2px !important; }
.border-l-4 { border-left-width: 4px !important; }
.border-l-8 { border-left-width: 8px !important; }

/* Z-index */
.z-0 { z-index: 0 !important; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-30 { z-index: 30 !important; }
.z-40 { z-index: 40 !important; }
.z-50 { z-index: 50 !important; }
.z-auto { z-index: auto !important; }

/* Cursor */
.cursor-auto { cursor: auto !important; }
.cursor-default { cursor: default !important; }
.cursor-pointer { cursor: pointer !important; }
.cursor-wait { cursor: wait !important; }
.cursor-text { cursor: text !important; }
.cursor-move { cursor: move !important; }
.cursor-help { cursor: help !important; }
.cursor-not-allowed { cursor: not-allowed !important; }

/* User Select */
.select-none { user-select: none !important; }
.select-text { user-select: text !important; }
.select-all { user-select: all !important; }
.select-auto { user-select: auto !important; }

/* Pointer Events */
.pointer-events-none { pointer-events: none !important; }
.pointer-events-auto { pointer-events: auto !important; }

/* Visibility */
.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* Overflow */
.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.overflow-scroll { overflow: scroll !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }
.overflow-x-hidden { overflow-x: hidden !important; }
.overflow-y-hidden { overflow-y: hidden !important; }
.overflow-x-visible { overflow-x: visible !important; }
.overflow-y-visible { overflow-y: visible !important; }
.overflow-x-scroll { overflow-x: scroll !important; }
.overflow-y-scroll { overflow-y: scroll !important; }

/* ==========================================================================
   COMPONENTES ESPECÍFICOS URBANOSS
   ========================================================================== */

/* Sidebar */
.sidebar {
    background: linear-gradient(180deg, var(--urbanoss-primary) 0%, var(--urbanoss-primary-600) 100%);
    color: var(--urbanoss-white);
    width: 250px;
    min-height: 100vh;
    transition: all 0.3s;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
}

.sidebar-collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--urbanoss-white);
    border-left-color: var(--urbanoss-secondary);
}

/* Main Content */
.main-content {
    margin-left: 250px;
    min-height: 100vh;
    transition: margin-left 0.3s;
}

.main-content-expanded {
    margin-left: 70px;
}

/* Top Navbar */
.top-navbar {
    background: var(--urbanoss-white);
    border-bottom: 1px solid var(--urbanoss-light-gray);
    box-shadow: var(--urbanoss-shadow-sm);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 30;
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--urbanoss-white);
    border-radius: var(--urbanoss-radius-lg);
    border: 1px solid var(--urbanoss-light-gray);
    padding: 1.5rem;
    transition: all 0.3s;
}

.dashboard-card:hover {
    box-shadow: var(--urbanoss-shadow-lg);
    transform: translateY(-2px);
}

.dashboard-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--urbanoss-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.dashboard-card-primary .dashboard-card-icon {
    background: rgba(30, 58, 95, 0.1);
    color: var(--urbanoss-primary);
}

.dashboard-card-secondary .dashboard-card-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--urbanoss-secondary);
}

.dashboard-card-success .dashboard-card-icon {
    background: rgba(5, 150, 105, 0.1);
    color: var(--urbanoss-success);
}

.dashboard-card-danger .dashboard-card-icon {
    background: rgba(220, 38, 38, 0.1);
    color: var(--urbanoss-danger);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--urbanoss-primary) 0%, var(--urbanoss-secondary) 100%);
    padding: 2rem;
}

.login-card {
    background: var(--urbanoss-white);
    border-radius: var(--urbanoss-radius-xl);
    box-shadow: var(--urbanoss-shadow-xl);
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

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

/* Mobile (sm) */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        min-height: auto;
        position: relative;
    }
    
    .sidebar-collapsed {
        width: 100%;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content-expanded {
        margin-left: 0;
    }
    
    .login-card {
        padding: 1.5rem;
    }
    
    .table-responsive {
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
    }
    
    .hidden-mobile {
        display: none !important;
    }
    
    .btn-block-mobile {
        width: 100%;
    }
}

/* Tablet (md) */
@media (min-width: 641px) and (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .sidebar {
        width: 200px;
    }
    
    .sidebar-collapsed {
        width: 70px;
    }
    
    .main-content {
        margin-left: 200px;
    }
    
    .main-content-expanded {
        margin-left: 70px;
    }
}

/* Desktop (lg) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

/* Large Desktop (xl) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Extra Large Desktop (2xl) */
@media (min-width: 1281px) {
    .container {
        max-width: 1536px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .no-print {
        display: none !important;
    }
    
    .sidebar,
    .top-navbar,
    .btn,
    .form-control,
    .alert,
    .badge {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    .table {
        border: 1px solid #000 !important;
    }
    
    .table th,
    .table td {
        border: 1px solid #000 !important;
        padding: 0.25rem !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        break-after: avoid;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    .print-break-before {
        page-break-before: always;
    }
    
    .print-break-after {
        page-break-after: always;
    }
    
    .print-break-inside-avoid {
        break-inside: avoid;
    }
}

/* ==========================================================================
   DARK MODE SUPPORT
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --urbanoss-light: #1e293b;
        --urbanoss-light-gray: #334155;
        --urbanoss-gray: #64748b;
        --urbanoss-dark-gray: #cbd5e1;
        --urbanoss-white: #0f172a;
        --urbanoss-black: #f1f5f9;
    }
    
    body {
        background-color: #0f172a;
        color: #cbd5e1;
    }
    
    .card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .form-control {
        background-color: #1e293b;
        border-color: #475569;
        color: #cbd5e1;
    }
    
    .table th {
        background-color: #1e293b;
        border-color: #475569;
        color: #cbd5e1;
    }
    
    .table td {
        border-color: #475569;
        color: #cbd5e1;
    }
}

/* ==========================================================================
   FIXES ESPECÍFICOS PARA NAVEGADORES
   ========================================================================== */

/* Firefox scrollbar */
@-moz-document url-prefix() {
    .form-control {
        box-shadow: none;
    }
}

/* Safari fixes */
@media not all and (min-resolution: 0.001dpcm) {
    @supports (-webkit-appearance: none) {
        .form-control {
            -webkit-appearance: none;
        }
        
        .form-select {
            -webkit-appearance: none;
        }
    }
}

/* IE 11 fixes (si es necesario) */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .flex {
        display: -ms-flexbox !important;
    }
    
    .justify-between {
        -ms-flex-pack: justify !important;
    }
    
    .items-center {
        -ms-flex-align: center !important;
    }
}

/* ==========================================================================
   FIN DEL ARCHIVO
   ========================================================================== */