/* 
Theme Name: Comparador
Description: A Comparo.uy is a child theme of Hello Elementor, created by PreciseFuture team
Author: PreciseFuture
Author URI: https://precisefuture.com/
Template: hello-elementor
Version: 5.1.0
*/

/* Font Definitions */
@font-face {
    font-family: 'Andres-Light';
    src: url('assets/fonts/andes-neue-light.otf');
    font-display: swap;
}

@font-face {
    font-family: 'Andres-Medium';
    src: url('assets/fonts/andes-neue-medium.otf');
    font-display: swap;
}

@font-face {
    font-family: 'Monumentum';
    src: url('assets/fonts/monument-extended-regular.otf');
    font-display: swap;
}

html {
    scroll-padding-top: 80px;
    /* Altura de tu header */
    scroll-behavior: smooth;
    /* opcional, para un scroll suave */
}

/* Light Theme (Default) */
:root {
    /* Brand Colors */
    --brand-purple: #7030a1;
    --brand-orange: #ef7410;
    --brand-cyan: #69f9cc;

    /* Extended Color Palette */
    --purple-light: #8e4db8;
    --purple-lighter: #a670cf;
    --purple-dark: #5c2682;
    --purple-darker: #481f65;

    --orange-light: #f28527;
    --orange-lighter: #f59640;
    --orange-dark: #d65e0c;
    --orange-darker: #b84e0a;

    --cyan-light: #7dfad0;
    --cyan-lighter: #91fbd4;
    --cyan-dark: #55f6c4;
    --cyan-darker: #41f3bc;

    /* Grayscale Palette */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Semantic Colors */
    --background: #ffffff;
    --surface: var(--gray-50);
    --surface-variant: var(--gray-100);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-700);
    --text-tertiary: var(--gray-500);
    --border: var(--gray-300);
    --border-light: var(--gray-200);
    --accent: var(--brand-orange);
    --accent-secondary: var(--brand-purple);
    --accent-success: var(--brand-cyan);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

/* Dark Theme */
.dark-theme {
    /* Inverted Grayscale for Dark Theme */
    --gray-50: #212121;
    --gray-100: #424242;
    --gray-200: #616161;
    --gray-300: #757575;
    --gray-400: #9e9e9e;
    --gray-500: #bdbdbd;
    --gray-600: #e0e0e0;
    --gray-700: #eeeeee;
    --gray-800: #f5f5f5;
    --gray-900: #fafafa;

    /* Dark Theme Semantic Colors */
    --background: #121212;
    --surface: #1e1e1e;
    --surface-variant: #2a2a2a;
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-700);
    --text-tertiary: var(--gray-500);
    --border: var(--gray-300);
    --border-light: var(--gray-200);

    /* Adjust brand colors for dark theme */
    --brand-purple: #a670cf;
    --brand-orange: #f59640;
    --brand-cyan: #7dfad0;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Andres-Light', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--background);
    margin: 0;
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Monumentum', system-ui, sans-serif;
    margin: 0;
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: 1.875rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing);
}

h4 {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing);
}

h5 {
    font-size: 0.875rem;
    font-family: 'Andres-Medium', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-sm);
}

h6 {
    font-size: 0.75rem;
    font-family: 'Andres-Medium', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-sm);
}

p {
    margin: 0 0 var(--spacing) 0;
    color: var(--text-secondary);
}

/* Form Elements */
input,
select,
textarea,
button {
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    background-color: var(--background);
    color: var(--text-primary);
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(239, 116, 16, 0.1);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
input[type="password"]:hover,
select:hover,
textarea:hover {
    border-color: var(--gray-400);
}

/* Buttons */
button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--accent);
    color: white;
    outline: none;
}

button:hover,
.btn:hover {
    background-color: var(--orange-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

button:active,
.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    background-color: var(--surface);
    border-color: var(--gray-400);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: white;
}

/* Cards */
.card {
    background-color: var(--background);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 5px 0;
    background-color: var(--background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th,
td {
    padding: 1rem;
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--border-light);
}

th {
    background-color: var(--surface);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

tbody tr:hover {
    background-color: var(--surface);
}

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

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

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap {
    gap: var(--spacing);
}

.gap-lg {
    gap: var(--spacing-lg);
}

.text-center {
    text-align: center;
}

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

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

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

.bg-surface {
    background-color: var(--surface);
}

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

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

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

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Legacy Compatibility (mantener para compatibilidad) */
.comparo-main-container {
    min-height: 52vh;
    /* padding: var(--spacing-lg) 0; */
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
    margin-bottom: var(--spacing-lg);
}

.wrap-me {
    padding: var(--spacing-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background-color: var(--surface);
}

.form-group {
    margin-bottom: var(--spacing);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-row {
    display: flex;
    gap: var(--spacing);
    align-items: end;
}

.form-row .form-group {
    flex: 1;
}

/* Range Slider Styles */
.range-slider {
    margin-top: var(--spacing);
}

.noUi-horizontal .noUi-tooltip {
    transform: translate(-50%, 0);
    left: 50%;
    bottom: -25%;
    font-size: 0.75rem;
    font-weight: 500;
    width: min-content;
    text-align: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

.noUi-touch-area {
    height: 12px;
}

.noUi-horizontal,
.noUi-handle {
    height: 12px;
}

.noUi-connect {
    background-color: var(--accent);
    height: 12px;
}

.noUi-horizontal .noUi-handle {
    width: 20px;
    height: 20px;
    right: -10px;
    top: -4px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--accent);
    box-shadow: var(--shadow);
}

.noUi-handle:before,
.noUi-handle:after {
    display: none;
}

/* Select2 Compatibility */
.select2-container--default .select2-selection--single {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    height: auto;
    padding: 0.5rem;
    background-color: var(--background);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary);
    line-height: 1.5;
    padding: 0;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--accent);
    color: white;
}

.select2-dropdown {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--background);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    display: none;
    position: fixed;
    top: var(--spacing);
    right: var(--spacing);
    z-index: 1000;
    padding: var(--spacing-sm);
    border: 1px solid var(--border);
    background-color: var(--surface);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark-mode-toggle:hover {
    background-color: var(--surface-variant);
    box-shadow: var(--shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .card {
        padding: var(--spacing);
    }
}

#pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    transition: all 0.5s ease-in-out;
}

.pagination-link {
    color: var(--brand-purple);
    font-weight: 400;
    font-size: 14px;
}

.pagination-link.active {
    color: var(--brand-orange);
    font-weight: 600;
    font-size: 20px;
}

button[type="submit"] {
    background-color: var(--brand-purple);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: var(--spacing-sm) var(--spacing);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

input[type="file"] {
    border: none;
    border-radius: var(--radius);
    padding: var(--spacing-sm) var(--spacing);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

button#agregar-atributo,
button#descargar-plantilla {
    background-color: var(--brand-orange);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: var(--spacing-sm) var(--spacing);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

button.eliminar-tipo-servicio {
    background-color: red;
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: var(--spacing-sm) var(--spacing);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;

}