/* ==========================================================================
 * Trevenque Design System — Color Tokens
 * Extracted from trevenque2025 WordPress corporate identity
 * ========================================================================== */

:root {
  /* --------------------------------------------------------------------------
   * BRAND PRIMITIVES
   * Raw color values — reference only, use semantic tokens in components
   * -------------------------------------------------------------------------- */

  /* Purple scale (brand core) */
  --tvq-color-purple-50:  #F8F6FF;
  --tvq-color-purple-100: #F7F7FB;
  --tvq-color-purple-150: #F3F2F7;
  --tvq-color-purple-200: #F1EEFF;
  --tvq-color-purple-250: #EBE7FC;
  --tvq-color-purple-300: #DCD4FF;
  --tvq-color-purple-400: #C1B2FF;
  --tvq-color-purple-450: #C0A1F9;
  --tvq-color-purple-500: #BF9AEC;
  --tvq-color-purple-550: #E9A1EB;
  --tvq-color-purple-600: #7352FF;
  --tvq-color-purple-650: #6A4EFF;
  --tvq-color-purple-700: #281F66;
  --tvq-color-purple-800: #1B0B4B;
  --tvq-color-purple-900: #0E092B;

  /* Red scale (danger / CTA) */
  --tvq-color-red-400:  #FF5C7C;
  --tvq-color-red-500:  #FF214E;
  --tvq-color-red-600:  #F2295B;
  --tvq-color-red-700:  #D91A45;

  /* Green scale (success) */
  --tvq-color-green-400: #61CE70;
  --tvq-color-green-500: #14DC8A;
  --tvq-color-green-600: #0FC77A;

  /* Amber scale (warning) */
  --tvq-color-amber-400: #FBBF24;
  --tvq-color-amber-500: #F59E0B;
  --tvq-color-amber-600: #D97706;

  /* Neutral scale */
  --tvq-color-neutral-0:   #FFFFFF;
  --tvq-color-neutral-50:  #FAFAFA;
  --tvq-color-neutral-100: #D9DBE9;
  --tvq-color-neutral-200: #CCCCCC;
  --tvq-color-neutral-300: #7A7A7A;
  --tvq-color-neutral-400: #666666;
  --tvq-color-neutral-500: #54595F;
  --tvq-color-neutral-600: #333333;
  --tvq-color-neutral-700: #212121;
  --tvq-color-neutral-900: #000000;

  /* --------------------------------------------------------------------------
   * SEMANTIC TOKENS — Surfaces
   * -------------------------------------------------------------------------- */
  --tvq-surface-page:      var(--tvq-color-purple-100);
  --tvq-surface-card:      var(--tvq-color-neutral-0);
  --tvq-surface-elevated:  var(--tvq-color-neutral-0);
  --tvq-surface-subtle:    var(--tvq-color-purple-150);
  --tvq-surface-highlight: var(--tvq-color-purple-250);
  --tvq-surface-overlay:   rgba(14, 9, 43, 0.6);
  --tvq-surface-sidebar:   var(--tvq-color-neutral-0);

  /* --------------------------------------------------------------------------
   * SEMANTIC TOKENS — Text
   * -------------------------------------------------------------------------- */
  --tvq-text-primary:    var(--tvq-color-neutral-700);
  --tvq-text-secondary:  var(--tvq-color-neutral-500);
  --tvq-text-muted:      var(--tvq-color-neutral-300);
  --tvq-text-inverse:    var(--tvq-color-neutral-0);
  --tvq-text-brand:      var(--tvq-color-purple-600);
  --tvq-text-link:       var(--tvq-color-purple-600);
  --tvq-text-link-hover: var(--tvq-color-purple-700);

  /* --------------------------------------------------------------------------
   * SEMANTIC TOKENS — Brand / Interactive
   * -------------------------------------------------------------------------- */
  --tvq-brand-primary:       var(--tvq-color-purple-600);
  --tvq-brand-primary-hover: var(--tvq-color-purple-700);
  --tvq-brand-primary-light: var(--tvq-color-purple-200);

  --tvq-interactive-primary:       var(--tvq-color-purple-600);
  --tvq-interactive-primary-hover: var(--tvq-color-purple-700);
  --tvq-interactive-danger:        var(--tvq-color-red-500);
  --tvq-interactive-danger-hover:  var(--tvq-color-red-700);
  --tvq-interactive-success:       var(--tvq-color-green-500);
  --tvq-interactive-success-hover: var(--tvq-color-green-600);
  --tvq-interactive-warning:       var(--tvq-color-amber-500);
  --tvq-interactive-warning-hover: var(--tvq-color-amber-600);

  /* --------------------------------------------------------------------------
   * SEMANTIC TOKENS — Borders
   * -------------------------------------------------------------------------- */
  --tvq-border-default:     var(--tvq-color-neutral-100);
  --tvq-border-subtle:      var(--tvq-color-neutral-200);
  --tvq-border-input:       var(--tvq-color-neutral-400);
  --tvq-border-input-focus: var(--tvq-color-purple-600);

  /* --------------------------------------------------------------------------
   * SEMANTIC TOKENS — Status
   * -------------------------------------------------------------------------- */
  --tvq-status-info:       var(--tvq-color-purple-600);
  --tvq-status-info-bg:    var(--tvq-color-purple-200);
  --tvq-status-success:    var(--tvq-color-green-500);
  --tvq-status-success-bg: #E8FBF1;
  --tvq-status-warning:    var(--tvq-color-amber-500);
  --tvq-status-warning-bg: #FFFBEB;
  --tvq-status-error:      var(--tvq-color-red-500);
  --tvq-status-error-bg:   #FEF2F4;

  /* --------------------------------------------------------------------------
   * Gradients
   * -------------------------------------------------------------------------- */
  --tvq-gradient-hero:  radial-gradient(at top left, #7352FF30 0%, #F2295B00 35%);
  --tvq-gradient-brand: linear-gradient(135deg, var(--tvq-color-purple-600), var(--tvq-color-purple-700));
}
/* ==========================================================================
 * Trevenque Design System — Typography Tokens
 * Font: Inter (from Elementor global settings)
 * Scale: derived from hello-elementor heading hierarchy
 * ========================================================================== */

:root {
  /* Font families */
  --tvq-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                   Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --tvq-font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas,
                   'Liberation Mono', 'Courier New', monospace;

  /* Font sizes — modular scale */
  --tvq-text-xs:   0.75rem;   /* 12px */
  --tvq-text-sm:   0.875rem;  /* 14px */
  --tvq-text-base: 1rem;      /* 16px */
  --tvq-text-lg:   1.125rem;  /* 18px */
  --tvq-text-xl:   1.25rem;   /* 20px — h5 */
  --tvq-text-2xl:  1.5rem;    /* 24px — h4 */
  --tvq-text-3xl:  1.75rem;   /* 28px — h3 */
  --tvq-text-4xl:  2rem;      /* 32px — h2 */
  --tvq-text-5xl:  2.5rem;    /* 40px — h1 */
  --tvq-text-6xl:  3rem;      /* 48px — display */

  /* Font weights */
  --tvq-weight-regular:  400;
  --tvq-weight-medium:   500;
  --tvq-weight-semibold: 600;
  --tvq-weight-bold:     700;

  /* Line heights */
  --tvq-leading-tight:   1.2;
  --tvq-leading-snug:    1.3;
  --tvq-leading-normal:  1.5;
  --tvq-leading-relaxed: 1.625;

  /* Letter spacing */
  --tvq-tracking-tight:  -0.01em;
  --tvq-tracking-normal: 0;
  --tvq-tracking-wide:   0.025em;
  --tvq-tracking-wider:  0.05em;
}
/* ==========================================================================
 * Trevenque Design System — Spacing Tokens
 * Base unit: 4px (0.25rem)
 * ========================================================================== */

:root {
  --tvq-space-0:   0;
  --tvq-space-px:  1px;
  --tvq-space-0-5: 0.125rem;  /* 2px */
  --tvq-space-1:   0.25rem;   /* 4px */
  --tvq-space-1-5: 0.375rem;  /* 6px */
  --tvq-space-2:   0.5rem;    /* 8px */
  --tvq-space-2-5: 0.625rem;  /* 10px */
  --tvq-space-3:   0.75rem;   /* 12px */
  --tvq-space-3-5: 0.875rem;  /* 14px */
  --tvq-space-4:   1rem;      /* 16px */
  --tvq-space-5:   1.25rem;   /* 20px */
  --tvq-space-6:   1.5rem;    /* 24px */
  --tvq-space-8:   2rem;      /* 32px */
  --tvq-space-10:  2.5rem;    /* 40px */
  --tvq-space-12:  3rem;      /* 48px */
  --tvq-space-16:  4rem;      /* 64px */
  --tvq-space-20:  5rem;      /* 80px */
  --tvq-space-24:  6rem;      /* 96px */
}
/* ==========================================================================
 * Trevenque Design System — Border Tokens
 * Radii extracted from hello-elementor (3px), trevenque-jobs (16px), tablepress
 * ========================================================================== */

:root {
  /* Border radius */
  --tvq-radius-none: 0;
  --tvq-radius-sm:   3px;
  --tvq-radius-md:   6px;
  --tvq-radius-lg:   8px;
  --tvq-radius-xl:   12px;
  --tvq-radius-2xl:  16px;
  --tvq-radius-full: 9999px;

  /* Border widths */
  --tvq-border-width-thin:   1px;
  --tvq-border-width-medium: 2px;
  --tvq-border-width-thick:  3px;
}
/* ==========================================================================
 * Trevenque Design System — Shadow / Elevation Tokens
 * Base shadow from trevenque-jobs card pattern
 * ========================================================================== */

:root {
  --tvq-shadow-xs:    0 1px 2px rgba(0, 0, 0, 0.05);
  --tvq-shadow-sm:    0 2px 4px rgba(0, 0, 0, 0.06);
  --tvq-shadow-md:    0 4px 12px rgba(0, 0, 0, 0.08);
  --tvq-shadow-lg:    0 8px 24px rgba(0, 0, 0, 0.12);
  --tvq-shadow-xl:    0 24px 32px -19px rgba(0, 0, 0, 0.26);
  --tvq-shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  --tvq-shadow-focus: 0 0 0 3px rgba(115, 82, 255, 0.25);
  --tvq-shadow-none:  none;
}
/* ==========================================================================
 * Trevenque Design System — Transition / Motion Tokens
 * Base duration: 300ms (from hello-elementor reset.css)
 * ========================================================================== */

:root {
  /* Durations */
  --tvq-duration-fast:   150ms;
  --tvq-duration-normal: 300ms;
  --tvq-duration-slow:   500ms;

  /* Easings */
  --tvq-ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --tvq-ease-in:      cubic-bezier(0.4, 0, 1, 1);
  --tvq-ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --tvq-ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* ==========================================================================
 * Trevenque Design System — Minimal Reset
 * Extracted from hello-elementor/assets/css/reset.css
 * Stripped of WordPress-specific selectors
 * ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin-block-start: 0.5rem;
  margin-block-end: 1rem;
}

p {
  margin-block-start: 0;
  margin-block-end: 0.9rem;
}

a {
  background-color: transparent;
  text-decoration: none;
}

img {
  border-style: none;
  height: auto;
  max-width: 100%;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.5;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

[type="button"],
[type="reset"],
[type="submit"],
button {
  -webkit-appearance: button;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

textarea {
  overflow: auto;
  resize: vertical;
}

[hidden],
template {
  display: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* ==========================================================================
 * Trevenque Design System — Global Base Styles
 * Applied to body/html for the dashboard shell
 * ========================================================================== */

body {
  background-color: var(--tvq-surface-page);
  color: var(--tvq-text-primary);
  font-family: var(--tvq-font-sans);
  font-size: var(--tvq-text-base);
  font-weight: var(--tvq-weight-regular);
  line-height: var(--tvq-leading-normal);
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--tvq-text-primary);
  font-family: var(--tvq-font-sans);
  font-weight: var(--tvq-weight-semibold);
  line-height: var(--tvq-leading-tight);
}

h1 { font-size: var(--tvq-text-5xl); }
h2 { font-size: var(--tvq-text-4xl); }
h3 { font-size: var(--tvq-text-3xl); }
h4 { font-size: var(--tvq-text-2xl); }
h5 { font-size: var(--tvq-text-xl); }
h6 { font-size: var(--tvq-text-base); }

/* Links */
a {
  color: var(--tvq-text-link);
  transition: color var(--tvq-duration-fast) var(--tvq-ease-default);
}

a:hover {
  color: var(--tvq-text-link-hover);
}

/* Paragraph spacing */
p {
  margin-block-end: 0.9rem;
}

/* Code */
code, kbd, samp, pre {
  font-family: var(--tvq-font-mono);
  font-size: 0.875em;
}

code {
  background-color: var(--tvq-surface-subtle);
  border-radius: var(--tvq-radius-sm);
  padding: 0.125em 0.375em;
}

pre {
  background-color: var(--tvq-surface-subtle);
  border-radius: var(--tvq-radius-lg);
  padding: var(--tvq-space-4);
  overflow-x: auto;
  white-space: pre-wrap;
}

pre code {
  background: none;
  padding: 0;
}

/* Selection */
::selection {
  background-color: var(--tvq-color-purple-300);
  color: var(--tvq-color-purple-900);
}

/* Scrollbar (webkit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--tvq-surface-subtle);
}

::-webkit-scrollbar-thumb {
  background: var(--tvq-color-neutral-200);
  border-radius: var(--tvq-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--tvq-color-neutral-300);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--tvq-brand-primary);
  outline-offset: 2px;
}
/* ==========================================================================
 * Trevenque Design System — Dark Mode
 * Activar con: <html data-theme="dark"> o <body data-theme="dark">
 * Palette derived from existing #0E092B / #1B0B4B usage on production site
 * ========================================================================== */

[data-theme="dark"] {
  /* Surfaces */
  --tvq-surface-page:      var(--tvq-color-purple-900);
  --tvq-surface-card:      var(--tvq-color-purple-800);
  --tvq-surface-elevated:  #1E1355;
  --tvq-surface-subtle:    #160D3A;
  --tvq-surface-highlight: #2A1E5C;
  --tvq-surface-overlay:   rgba(14, 9, 43, 0.8);
  --tvq-surface-sidebar:   var(--tvq-color-purple-800);

  /* Text */
  --tvq-text-primary:    #F0EDFF;
  --tvq-text-secondary:  var(--tvq-color-purple-400);
  --tvq-text-muted:      #8B80B5;
  --tvq-text-inverse:    var(--tvq-color-purple-900);
  --tvq-text-link:       var(--tvq-color-purple-400);
  --tvq-text-link-hover: var(--tvq-color-purple-300);

  /* Borders */
  --tvq-border-default:     #2A1E5C;
  --tvq-border-subtle:      #1E1355;
  --tvq-border-input:       #3D2E7A;
  --tvq-border-input-focus: var(--tvq-color-purple-600);

  /* Status backgrounds */
  --tvq-status-info-bg:    #1A1245;
  --tvq-status-success-bg: #0D2D1F;
  --tvq-status-warning-bg: #2D2410;
  --tvq-status-error-bg:   #2D1015;

  /* Shadows (deeper in dark mode) */
  --tvq-shadow-xs:    0 1px 2px rgba(0, 0, 0, 0.2);
  --tvq-shadow-sm:    0 2px 4px rgba(0, 0, 0, 0.25);
  --tvq-shadow-md:    0 4px 12px rgba(0, 0, 0, 0.3);
  --tvq-shadow-lg:    0 8px 24px rgba(0, 0, 0, 0.35);
  --tvq-shadow-xl:    0 24px 32px -19px rgba(0, 0, 0, 0.5);
  --tvq-shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  --tvq-shadow-focus: 0 0 0 3px rgba(115, 82, 255, 0.4);

  /* Scrollbar */
  color-scheme: dark;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: var(--tvq-surface-subtle);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #3D2E7A;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: var(--tvq-color-purple-600);
}

[data-theme="dark"] ::selection {
  background-color: var(--tvq-color-purple-700);
  color: var(--tvq-color-purple-300);
}
/* ==========================================================================
 * Trevenque Design System — Buttons
 * Base: hello-elementor reset (transparent bg, border-based)
 * Hover: #281F66 (child theme .submitButton:hover)
 * ========================================================================== */

/* Base button */
.tvq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--tvq-space-2);
  font-family: var(--tvq-font-sans);
  font-weight: var(--tvq-weight-semibold);
  line-height: var(--tvq-leading-tight);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  border: var(--tvq-border-width-thin) solid transparent;
  border-radius: var(--tvq-radius-lg);
  transition: all var(--tvq-duration-normal) var(--tvq-ease-default);
  text-decoration: none;
}

.tvq-btn:focus-visible {
  outline: none;
  box-shadow: var(--tvq-shadow-focus);
}

.tvq-btn:disabled,
.tvq-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
 * Sizes
 * -------------------------------------------------------------------------- */

.tvq-btn--sm {
  font-size: var(--tvq-text-sm);
  padding: var(--tvq-space-1-5) var(--tvq-space-3);
}

.tvq-btn--md,
.tvq-btn:not([class*="tvq-btn--sm"]):not([class*="tvq-btn--lg"]) {
  font-size: var(--tvq-text-base);
  padding: var(--tvq-space-2) var(--tvq-space-4);
}

.tvq-btn--lg {
  font-size: var(--tvq-text-lg);
  padding: var(--tvq-space-3) var(--tvq-space-6);
}

/* --------------------------------------------------------------------------
 * Variants
 * -------------------------------------------------------------------------- */

/* Primary */
.tvq-btn--primary {
  background-color: var(--tvq-interactive-primary);
  color: var(--tvq-text-inverse);
  border-color: var(--tvq-interactive-primary);
}

.tvq-btn--primary:hover {
  background-color: var(--tvq-interactive-primary-hover);
  border-color: var(--tvq-interactive-primary-hover);
}

/* Secondary (outline) */
.tvq-btn--secondary {
  background-color: transparent;
  color: var(--tvq-interactive-primary);
  border-color: var(--tvq-interactive-primary);
}

.tvq-btn--secondary:hover {
  background-color: var(--tvq-interactive-primary);
  color: var(--tvq-text-inverse);
}

/* Danger */
.tvq-btn--danger {
  background-color: var(--tvq-interactive-danger);
  color: var(--tvq-text-inverse);
  border-color: var(--tvq-interactive-danger);
}

.tvq-btn--danger:hover {
  background-color: var(--tvq-interactive-danger-hover);
  border-color: var(--tvq-interactive-danger-hover);
}

/* Success */
.tvq-btn--success {
  background-color: var(--tvq-brand-primary-light);
  color: var(--tvq-brand-primary);
  border-color: var(--tvq-brand-primary-light);
}

.tvq-btn--success:hover {
  background-color: var(--tvq-interactive-success-hover);
  border-color: var(--tvq-interactive-success-hover);
}

/* Warning */
.tvq-btn--warning {
  background-color: var(--tvq-interactive-warning);
  color: var(--tvq-text-inverse);
  border-color: var(--tvq-interactive-warning);
}

.tvq-btn--warning:hover {
  background-color: var(--tvq-interactive-warning-hover);
  border-color: var(--tvq-interactive-warning-hover);
}

/* Ghost */
.tvq-btn--ghost {
  background-color: transparent;
  color: var(--tvq-interactive-primary);
  border-color: transparent;
}

.tvq-btn--ghost:hover {
  background-color: var(--tvq-brand-primary-light);
}

/* --------------------------------------------------------------------------
 * Icon-only button
 * -------------------------------------------------------------------------- */

.tvq-btn--icon {
  padding: var(--tvq-space-2);
  aspect-ratio: 1;
}

.tvq-btn--icon.tvq-btn--sm {
  padding: var(--tvq-space-1-5);
}

.tvq-btn--icon.tvq-btn--lg {
  padding: var(--tvq-space-3);
}

/* --------------------------------------------------------------------------
 * Full width
 * -------------------------------------------------------------------------- */

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

/* --------------------------------------------------------------------------
 * Button group
 * -------------------------------------------------------------------------- */

.tvq-btn-group {
  display: inline-flex;
}

.tvq-btn-group .tvq-btn {
  border-radius: 0;
}

.tvq-btn-group .tvq-btn:first-child {
  border-radius: var(--tvq-radius-lg) 0 0 var(--tvq-radius-lg);
}

.tvq-btn-group .tvq-btn:last-child {
  border-radius: 0 var(--tvq-radius-lg) var(--tvq-radius-lg) 0;
}

.tvq-btn-group .tvq-btn + .tvq-btn {
  margin-left: calc(-1 * var(--tvq-border-width-thin));
}
/* ==========================================================================
 * Trevenque Design System — Form Controls
 * Base: hello-elementor reset (border 1px #666, radius 3px, padding .5rem 1rem)
 * Upgraded radius to 8px for modern dashboard feel
 * ========================================================================== */

/* --------------------------------------------------------------------------
 * Labels
 * -------------------------------------------------------------------------- */

.tvq-label {
  display: block;
  font-size: var(--tvq-text-sm);
  font-weight: var(--tvq-weight-medium);
  color: var(--tvq-text-primary);
  margin-block-end: var(--tvq-space-1-5);
}

.tvq-label--required::after {
  content: " *";
  color: var(--tvq-status-error);
}

/* --------------------------------------------------------------------------
 * Text inputs, selects, textareas
 * -------------------------------------------------------------------------- */

.tvq-input,
.tvq-select,
.tvq-textarea {
  display: block;
  width: 100%;
  font-family: var(--tvq-font-sans);
  font-size: var(--tvq-text-base);
  line-height: var(--tvq-leading-normal);
  color: var(--tvq-text-primary);
  background-color: var(--tvq-surface-card);
  border: var(--tvq-border-width-thin) solid var(--tvq-border-input);
  border-radius: var(--tvq-radius-lg);
  padding: var(--tvq-space-2) var(--tvq-space-4);
  transition: border-color var(--tvq-duration-fast) var(--tvq-ease-default),
              box-shadow var(--tvq-duration-fast) var(--tvq-ease-default);
}

.tvq-input:focus,
.tvq-select:focus,
.tvq-textarea:focus {
  outline: none;
  border-color: var(--tvq-border-input-focus);
  box-shadow: var(--tvq-shadow-focus);
}

.tvq-input::placeholder,
.tvq-textarea::placeholder {
  color: var(--tvq-text-muted);
}

.tvq-input:disabled,
.tvq-select:disabled,
.tvq-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--tvq-surface-subtle);
}

/* Small variant */
.tvq-input--sm,
.tvq-select--sm {
  font-size: var(--tvq-text-sm);
  padding: var(--tvq-space-1-5) var(--tvq-space-3);
}

/* Error state */
.tvq-input--error,
.tvq-select--error,
.tvq-textarea--error {
  border-color: var(--tvq-status-error);
}

.tvq-input--error:focus,
.tvq-select--error:focus,
.tvq-textarea--error:focus {
  box-shadow: 0 0 0 3px rgba(255, 33, 78, 0.2);
}

/* --------------------------------------------------------------------------
 * Select
 * -------------------------------------------------------------------------- */

.tvq-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--tvq-space-3) center;
  padding-right: var(--tvq-space-10);
}

/* --------------------------------------------------------------------------
 * Textarea
 * -------------------------------------------------------------------------- */

.tvq-textarea {
  min-height: 5rem;
  resize: vertical;
}

/* --------------------------------------------------------------------------
 * Checkbox & Radio
 * -------------------------------------------------------------------------- */

.tvq-checkbox,
.tvq-radio {
  display: inline-flex;
  align-items: center;
  gap: var(--tvq-space-2);
  cursor: pointer;
  font-size: var(--tvq-text-base);
  color: var(--tvq-text-primary);
}

.tvq-checkbox input[type="checkbox"],
.tvq-radio input[type="radio"] {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: var(--tvq-border-width-medium) solid var(--tvq-border-input);
  background-color: var(--tvq-surface-card);
  transition: all var(--tvq-duration-fast) var(--tvq-ease-default);
  flex-shrink: 0;
  cursor: pointer;
}

.tvq-checkbox input[type="checkbox"] {
  border-radius: var(--tvq-radius-sm);
}

.tvq-radio input[type="radio"] {
  border-radius: var(--tvq-radius-full);
}

.tvq-checkbox input[type="checkbox"]:checked {
  background-color: var(--tvq-interactive-primary);
  border-color: var(--tvq-interactive-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5L4.5 8.5L11 1.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.tvq-radio input[type="radio"]:checked {
  border-color: var(--tvq-interactive-primary);
  background-color: var(--tvq-surface-card);
  box-shadow: inset 0 0 0 4px var(--tvq-interactive-primary);
}

.tvq-checkbox input[type="checkbox"]:focus-visible,
.tvq-radio input[type="radio"]:focus-visible {
  box-shadow: var(--tvq-shadow-focus);
}

/* --------------------------------------------------------------------------
 * Toggle / Switch
 * -------------------------------------------------------------------------- */

.tvq-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--tvq-space-2);
  cursor: pointer;
}

.tvq-toggle__track {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  background-color: var(--tvq-color-neutral-200);
  border-radius: var(--tvq-radius-full);
  transition: background-color var(--tvq-duration-fast) var(--tvq-ease-default);
  flex-shrink: 0;
}

.tvq-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tvq-toggle__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.5rem - 4px);
  height: calc(1.5rem - 4px);
  background-color: var(--tvq-color-neutral-0);
  border-radius: var(--tvq-radius-full);
  transition: transform var(--tvq-duration-fast) var(--tvq-ease-default);
  box-shadow: var(--tvq-shadow-sm);
}

.tvq-toggle input:checked + .tvq-toggle__track {
  background-color: var(--tvq-interactive-primary);
}

.tvq-toggle input:checked + .tvq-toggle__track::after {
  transform: translateX(1.25rem);
}

.tvq-toggle input:focus-visible + .tvq-toggle__track {
  box-shadow: var(--tvq-shadow-focus);
}

/* --------------------------------------------------------------------------
 * Help text & error message
 * -------------------------------------------------------------------------- */

.tvq-help-text {
  font-size: var(--tvq-text-sm);
  color: var(--tvq-text-muted);
  margin-top: var(--tvq-space-1);
}

.tvq-error-text {
  font-size: var(--tvq-text-sm);
  color: var(--tvq-status-error);
  margin-top: var(--tvq-space-1);
}

/* --------------------------------------------------------------------------
 * Form group
 * -------------------------------------------------------------------------- */

.tvq-form-group {
  margin-block-end: var(--tvq-space-5);
}

.tvq-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--tvq-space-4);
}
/* ==========================================================================
 * Trevenque Design System — Tables
 * Base: hello-elementor reset (zebra hsla, hover, border hsla)
 * Enhanced for CRUD dashboards: sortable, compact, responsive
 * ========================================================================== */

.tvq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--tvq-text-sm);
  background-color: var(--tvq-surface-card);
  border-radius: var(--tvq-radius-xl);
  overflow: hidden;
}

/* --------------------------------------------------------------------------
 * Header
 * -------------------------------------------------------------------------- */

.tvq-table thead th {
  background-color: var(--tvq-surface-subtle);
  color: var(--tvq-text-secondary);
  font-weight: var(--tvq-weight-semibold);
  font-size: var(--tvq-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tvq-tracking-wide);
  padding: var(--tvq-space-3) var(--tvq-space-4);
  text-align: left;
  border-bottom: var(--tvq-border-width-thin) solid var(--tvq-border-default);
  white-space: nowrap;
  user-select: none;
}

/* Sortable header */
.tvq-table thead th[data-sort] {
  cursor: pointer;
  position: relative;
  padding-right: var(--tvq-space-8);
}

.tvq-table thead th[data-sort]::after {
  content: "";
  position: absolute;
  right: var(--tvq-space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--tvq-text-muted);
  opacity: 0.4;
}

.tvq-table thead th[data-sort="asc"]::after {
  border-top: none;
  border-bottom: 5px solid var(--tvq-brand-primary);
  opacity: 1;
}

.tvq-table thead th[data-sort="desc"]::after {
  border-top: 5px solid var(--tvq-brand-primary);
  opacity: 1;
}

/* --------------------------------------------------------------------------
 * Cells
 * -------------------------------------------------------------------------- */

.tvq-table td {
  padding: var(--tvq-space-3) var(--tvq-space-4);
  border-bottom: var(--tvq-border-width-thin) solid var(--tvq-border-default);
  vertical-align: middle;
  color: var(--tvq-text-primary);
}

/* --------------------------------------------------------------------------
 * Zebra striping (from hello-elementor)
 * -------------------------------------------------------------------------- */

.tvq-table--striped tbody tr:nth-child(odd) td {
  background-color: var(--tvq-surface-subtle);
}

/* --------------------------------------------------------------------------
 * Hover
 * -------------------------------------------------------------------------- */

.tvq-table--hover tbody tr:hover td {
  background-color: var(--tvq-surface-highlight);
}

/* --------------------------------------------------------------------------
 * Compact variant
 * -------------------------------------------------------------------------- */

.tvq-table--compact thead th,
.tvq-table--compact td {
  padding: var(--tvq-space-2) var(--tvq-space-3);
}

/* --------------------------------------------------------------------------
 * Borderless
 * -------------------------------------------------------------------------- */

.tvq-table--borderless td,
.tvq-table--borderless thead th {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
 * Sticky header
 * -------------------------------------------------------------------------- */

.tvq-table--sticky thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 var(--tvq-border-default);
}

/* --------------------------------------------------------------------------
 * Selected row
 * -------------------------------------------------------------------------- */

.tvq-table tbody tr.is-selected td {
  background-color: var(--tvq-brand-primary-light);
}

/* --------------------------------------------------------------------------
 * Responsive wrapper
 * -------------------------------------------------------------------------- */

.tvq-table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--tvq-radius-xl);
  border: var(--tvq-border-width-thin) solid var(--tvq-border-default);
}

.tvq-table-responsive .tvq-table {
  border-radius: 0;
}

/* --------------------------------------------------------------------------
 * Empty state
 * -------------------------------------------------------------------------- */

.tvq-table__empty {
  text-align: center;
  padding: var(--tvq-space-12) var(--tvq-space-4);
  color: var(--tvq-text-muted);
}
/* ==========================================================================
 * Trevenque Design System — Cards
 * Base: trevenque-jobs .tj-job (shadow, radius 16px, border #D9DBE9)
 * + child theme .card-blog line-clamp pattern
 * ========================================================================== */

/* --------------------------------------------------------------------------
 * Base card
 * -------------------------------------------------------------------------- */

.tvq-card {
  background-color: var(--tvq-surface-card);
  border: var(--tvq-border-width-thin) solid var(--tvq-border-default);
  border-radius: var(--tvq-radius-2xl);
  box-shadow: var(--tvq-shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--tvq-duration-normal) var(--tvq-ease-default);
}

.tvq-card:hover {
  box-shadow: var(--tvq-shadow-md);
}

/* --------------------------------------------------------------------------
 * Card sections
 * -------------------------------------------------------------------------- */

.tvq-card__header {
  padding: var(--tvq-space-5) var(--tvq-space-6);
  border-bottom: var(--tvq-border-width-thin) solid var(--tvq-border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tvq-space-4);
}

.tvq-card__title {
  font-size: var(--tvq-text-lg);
  font-weight: var(--tvq-weight-semibold);
  color: var(--tvq-text-primary);
  margin: 0;
}

.tvq-card__body {
  padding: var(--tvq-space-5) var(--tvq-space-6);
}

.tvq-card__footer {
  padding: var(--tvq-space-4) var(--tvq-space-6);
  border-top: var(--tvq-border-width-thin) solid var(--tvq-border-default);
  background-color: var(--tvq-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--tvq-space-3);
}

/* --------------------------------------------------------------------------
 * Stat / KPI card
 * -------------------------------------------------------------------------- */

.tvq-stat-card {
  background-color: var(--tvq-surface-card);
  border: var(--tvq-border-width-thin) solid var(--tvq-border-default);
  border-radius: var(--tvq-radius-2xl);
  padding: var(--tvq-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--tvq-space-2);
}

.tvq-stat-card__label {
  font-size: var(--tvq-text-sm);
  font-weight: var(--tvq-weight-medium);
  color: var(--tvq-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tvq-tracking-wide);
}

.tvq-stat-card__value {
  font-size: var(--tvq-text-4xl);
  font-weight: var(--tvq-weight-bold);
  color: var(--tvq-text-primary);
  line-height: var(--tvq-leading-tight);
}

.tvq-stat-card__trend {
  font-size: var(--tvq-text-sm);
  font-weight: var(--tvq-weight-medium);
  display: inline-flex;
  align-items: center;
  gap: var(--tvq-space-1);
}

.tvq-stat-card__trend--up {
  color: var(--tvq-status-success);
}

.tvq-stat-card__trend--down {
  color: var(--tvq-status-error);
}

/* --------------------------------------------------------------------------
 * Compact card (no hover shadow)
 * -------------------------------------------------------------------------- */

.tvq-card--flat {
  box-shadow: none;
}

.tvq-card--flat:hover {
  box-shadow: none;
}
/* ==========================================================================
 * Trevenque Design System — Badges / Tags / Pills
 * Base: trevenque-jobs .tj-job-date (bg #ebe7fc, pill shape, 12px bold)
 * ========================================================================== */

.tvq-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--tvq-space-1);
  font-family: var(--tvq-font-sans);
  font-size: var(--tvq-text-xs);
  font-weight: var(--tvq-weight-semibold);
  line-height: 1;
  padding: var(--tvq-space-1) var(--tvq-space-3);
  border-radius: var(--tvq-radius-full);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
 * Variants
 * -------------------------------------------------------------------------- */

.tvq-badge--info {
  background-color: var(--tvq-status-info-bg);
  color: var(--tvq-status-info);
}

.tvq-badge--success {
  background-color: var(--tvq-status-success-bg);
  color: var(--tvq-status-success);
}

.tvq-badge--warning {
  background-color: var(--tvq-status-warning-bg);
  color: var(--tvq-status-warning);
}

.tvq-badge--error {
  background-color: var(--tvq-status-error-bg);
  color: var(--tvq-status-error);
}

.tvq-badge--neutral {
  background-color: var(--tvq-surface-subtle);
  color: var(--tvq-text-secondary);
}

.tvq-badge--brand {
  background-color: var(--tvq-brand-primary);
  color: var(--tvq-text-inverse);
}

/* --------------------------------------------------------------------------
 * Sizes
 * -------------------------------------------------------------------------- */

.tvq-badge--lg {
  font-size: var(--tvq-text-sm);
  padding: var(--tvq-space-1-5) var(--tvq-space-4);
}

/* --------------------------------------------------------------------------
 * Dot indicator
 * -------------------------------------------------------------------------- */

.tvq-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--tvq-radius-full);
  background-color: currentColor;
  flex-shrink: 0;
}
/* ==========================================================================
 * Trevenque Design System — Alerts / Notifications
 * Border-left accent pattern with status token colors
 * ========================================================================== */

.tvq-alert {
  display: flex;
  gap: var(--tvq-space-3);
  padding: var(--tvq-space-4);
  border-radius: var(--tvq-radius-lg);
  border-left: var(--tvq-border-width-thick) solid;
  font-size: var(--tvq-text-sm);
  line-height: var(--tvq-leading-normal);
  flex-wrap: wrap;
}

.tvq-alert__content {
  flex: 1;
  min-width: 0;
}

.tvq-alert__title {
  font-weight: var(--tvq-weight-semibold);
  margin-bottom: var(--tvq-space-1);
}

.tvq-alert__dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: var(--tvq-space-1);
  transition: opacity var(--tvq-duration-fast) var(--tvq-ease-default);
}

.tvq-alert__dismiss:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
 * Variants
 * -------------------------------------------------------------------------- */

.tvq-alert--info {
  background-color: var(--tvq-status-info-bg);
  border-left-color: var(--tvq-status-info);
  color: var(--tvq-text-primary);
}

.tvq-alert--success {
  background-color: var(--tvq-status-success-bg);
  border-left-color: var(--tvq-status-success);
  color: var(--tvq-text-primary);
}

.tvq-alert--warning {
  background-color: var(--tvq-status-warning-bg);
  border-left-color: var(--tvq-status-warning);
  color: var(--tvq-text-primary);
}

.tvq-alert--error {
  background-color: var(--tvq-status-error-bg);
  border-left-color: var(--tvq-status-error);
  color: var(--tvq-text-primary);
}
/* ==========================================================================
 * Trevenque Design System — Navigation
 * Sidebar, top bar, breadcrumbs for dashboard layouts
 * ========================================================================== */

/* --------------------------------------------------------------------------
 * Sidebar
 * -------------------------------------------------------------------------- */

.tvq-sidebar {
  width: 260px;
  height: 100vh;
  background-color: var(--tvq-surface-sidebar);
  border-right: var(--tvq-border-width-thin) solid var(--tvq-border-default);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  transition: width var(--tvq-duration-normal) var(--tvq-ease-default);
  overflow-y: auto;
  overflow-x: hidden;
}

.tvq-sidebar.is-collapsed {
  width: 64px;
  overflow: visible; /* permite que los tooltips escapen el sidebar */
}

/* Transición suave de las etiquetas */
.tvq-nav-label {
  overflow: hidden;
  white-space: nowrap;
  max-width: 200px;
  opacity: 1;
  transition:
    max-width var(--tvq-duration-normal) var(--tvq-ease-default),
    opacity   var(--tvq-duration-normal) var(--tvq-ease-default);
}

/* Colapsar etiquetas */
.tvq-sidebar.is-collapsed .tvq-nav-label {
  max-width: 0;
  opacity: 0;
}

.tvq-sidebar.is-collapsed .tvq-sidebar__logo a {
  gap: 0;
}

/* Centrar iconos y ocultar elementos auxiliares */
.tvq-sidebar.is-collapsed .tvq-nav-item {
  padding-left: var(--tvq-space-2-5);
  padding-right: var(--tvq-space-2-5);
}

.tvq-sidebar.is-collapsed .tvq-nav-group__arrow,
.tvq-sidebar.is-collapsed .tvq-nav-badge {
  display: none;
}

/* Hover: expandir el sidebar sobre el contenido */
.tvq-sidebar.is-collapsed:hover {
  width: 260px;
  overflow: hidden;
  box-shadow: var(--tvq-shadow-lg);
}

.tvq-sidebar.is-collapsed:hover .tvq-nav-label {
  max-width: 200px;
  opacity: 1;
}

.tvq-sidebar.is-collapsed:hover .tvq-nav-item {
  justify-content: flex-start;
  padding-left: var(--tvq-space-3);
  padding-right: var(--tvq-space-3);
}

.tvq-sidebar.is-collapsed:hover .tvq-sidebar__logo {
  justify-content: flex-start;
}

.tvq-sidebar.is-collapsed:hover .tvq-sidebar__logo a {
  gap: var(--tvq-space-3);
}

.tvq-sidebar.is-collapsed:hover .tvq-nav-group__arrow,
.tvq-sidebar.is-collapsed:hover .tvq-nav-badge {
  display: inline-flex;
}

/* Logo area */
.tvq-sidebar__logo {
  height: 80px;
  padding: var(--tvq-space-5) var(--tvq-space-5);
  border-bottom: var(--tvq-border-width-thin) solid var(--tvq-border-default);
  display: flex;
  align-items: center;
  gap: var(--tvq-space-3);
  flex-shrink: 0;
}

.tvq-sidebar__logo img {
  height: 32px;
  width: auto;
}

/* Nav section */
.tvq-sidebar__nav {
  padding: var(--tvq-space-4) var(--tvq-space-3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--tvq-space-1);
}

.tvq-sidebar__section-title {
  font-size: var(--tvq-text-xs);
  font-weight: var(--tvq-weight-semibold);
  color: var(--tvq-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tvq-tracking-wider);
  padding: var(--tvq-space-4) var(--tvq-space-3) var(--tvq-space-2);
}

/* Nav item */
.tvq-nav-item {
  display: flex;
  align-items: center;
  gap: var(--tvq-space-3);
  padding: var(--tvq-space-2-5) var(--tvq-space-3);
  border-radius: var(--tvq-radius-lg);
  color: var(--tvq-text-secondary);
  font-size: var(--tvq-text-sm);
  font-weight: var(--tvq-weight-medium);
  text-decoration: none;
  transition: all var(--tvq-duration-fast) var(--tvq-ease-default);
  cursor: pointer;
  white-space: nowrap;
}

.tvq-nav-item:hover {
  background-color: var(--tvq-surface-subtle);
  color: var(--tvq-text-primary);
}

.tvq-nav-item.is-active {
  background-color: var(--tvq-brand-primary-light);
  color: var(--tvq-brand-primary);
}

.tvq-nav-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tvq-nav-item__badge {
  margin-left: auto;
}

/* Sidebar footer */
.tvq-sidebar__footer {
  padding: var(--tvq-space-4) var(--tvq-space-3);
  border-top: var(--tvq-border-width-thin) solid var(--tvq-border-default);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
 * Top bar
 * -------------------------------------------------------------------------- */

.tvq-topbar {
  height: 80px;
  background-color: var(--tvq-surface-card);
  border-bottom: var(--tvq-border-width-thin) solid var(--tvq-border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--tvq-space-4) var(--tvq-space-3) ;
  position: sticky;
  top: 0;
  z-index: 30;
}

.tvq-topbar__left,
.tvq-topbar__right {
  display: flex;
  align-items: center;
  gap: var(--tvq-space-4);
}

.tvq-topbar__title {
  font-size: var(--tvq-text-lg);
  font-weight: var(--tvq-weight-semibold);
  color: var(--tvq-text-primary);
  margin: 0;
}

/* --------------------------------------------------------------------------
 * Breadcrumbs
 * -------------------------------------------------------------------------- */

.tvq-breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--tvq-space-2);
  font-size: var(--tvq-text-sm);
  color: var(--tvq-text-muted);
  list-style: none;
  padding: 0;
  margin: 0;
}

.tvq-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: var(--tvq-space-2);
}

.tvq-breadcrumbs li + li::before {
  content: "/";
  color: var(--tvq-text-muted);
}

.tvq-breadcrumbs a {
  color: var(--tvq-text-secondary);
  text-decoration: none;
  transition: color var(--tvq-duration-fast) var(--tvq-ease-default);
}

.tvq-breadcrumbs a:hover {
  color: var(--tvq-text-brand);
}

.tvq-breadcrumbs li:last-child {
  color: var(--tvq-text-primary);
  font-weight: var(--tvq-weight-medium);
}

/* --------------------------------------------------------------------------
 * Main content area (sidebar layout helper)
 * -------------------------------------------------------------------------- */

.tvq-main {
  margin-left: 260px;
  min-height: 100vh;
  transition: margin-left var(--tvq-duration-normal) var(--tvq-ease-default);
}

.tvq-sidebar.is-collapsed ~ .tvq-main {
  margin-left: 64px;
}

.tvq-main__content {
  padding: var(--tvq-space-6);
  /* max-width: 1400px; */
}
/* ==========================================================================
 * Trevenque Design System — Modal / Dialog
 * ========================================================================== */

/* Overlay */
.tvq-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--tvq-surface-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: var(--tvq-space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tvq-duration-normal) var(--tvq-ease-default),
              visibility var(--tvq-duration-normal);
}

.tvq-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Dialog */
.tvq-modal {
  background-color: var(--tvq-surface-card);
  border-radius: var(--tvq-radius-2xl);
  box-shadow: var(--tvq-shadow-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--tvq-duration-normal) var(--tvq-ease-out);
}

.tvq-modal-overlay.is-open .tvq-modal {
  transform: scale(1) translateY(0);
}

.tvq-modal--sm { max-width: 400px; }
.tvq-modal--lg { max-width: 720px; }
.tvq-modal--xl { max-width: 960px; }

/* Header */
.tvq-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--tvq-space-5) var(--tvq-space-6);
  border-bottom: var(--tvq-border-width-thin) solid var(--tvq-border-default);
  flex-shrink: 0;
}

.tvq-modal__title {
  font-size: var(--tvq-text-lg);
  font-weight: var(--tvq-weight-semibold);
  color: var(--tvq-text-primary);
  margin: 0;
}

.tvq-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tvq-text-muted);
  padding: var(--tvq-space-1);
  border-radius: var(--tvq-radius-md);
  transition: all var(--tvq-duration-fast) var(--tvq-ease-default);
}

.tvq-modal__close:hover {
  background-color: var(--tvq-surface-subtle);
  color: var(--tvq-text-primary);
}

/* Body */
.tvq-modal__body {
  padding: var(--tvq-space-6);
  overflow-y: auto;
  flex: 1;
}

/* Footer */
.tvq-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--tvq-space-3);
  padding: var(--tvq-space-4) var(--tvq-space-6);
  border-top: var(--tvq-border-width-thin) solid var(--tvq-border-default);
  flex-shrink: 0;
}
/* ==========================================================================
 * Trevenque Design System — Pagination
 * ========================================================================== */

.tvq-pagination {
  display: flex;
  align-items: center;
  gap: var(--tvq-space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.tvq-pagination__item {
  display: flex;
}

.tvq-pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 var(--tvq-space-2);
  font-size: var(--tvq-text-sm);
  font-weight: var(--tvq-weight-medium);
  color: var(--tvq-text-secondary);
  background-color: transparent;
  border: var(--tvq-border-width-thin) solid transparent;
  border-radius: var(--tvq-radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--tvq-duration-fast) var(--tvq-ease-default);
}

.tvq-pagination__link:hover {
  background-color: var(--tvq-surface-subtle);
  color: var(--tvq-text-primary);
}

.tvq-pagination__link.is-active {
  background-color: var(--tvq-brand-primary);
  color: var(--tvq-text-inverse);
  border-color: var(--tvq-brand-primary);
}

.tvq-pagination__link:disabled,
.tvq-pagination__link[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.tvq-pagination__ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  color: var(--tvq-text-muted);
  font-size: var(--tvq-text-sm);
}

/* Summary text: "Mostrando 1-10 de 120" */
.tvq-pagination__info {
  font-size: var(--tvq-text-sm);
  color: var(--tvq-text-muted);
  margin-right: auto;
}
/* ==========================================================================
 * Trevenque Design System — Dropdown Menu
 * ========================================================================== */

.tvq-dropdown {
  position: relative;
  display: inline-block;
}

.tvq-dropdown__menu {
  position: absolute;
  top: calc(100% + var(--tvq-space-1));
  left: 0;
  z-index: 50;
  min-width: 180px;
  background-color: var(--tvq-surface-card);
  border: var(--tvq-border-width-thin) solid var(--tvq-border-default);
  border-radius: var(--tvq-radius-xl);
  box-shadow: var(--tvq-shadow-lg);
  padding: var(--tvq-space-1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--tvq-duration-fast) var(--tvq-ease-default),
              visibility var(--tvq-duration-fast),
              transform var(--tvq-duration-fast) var(--tvq-ease-default);
}

.tvq-dropdown__menu--right {
  left: auto;
  right: 0;
}

.tvq-dropdown.is-open .tvq-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Items */
.tvq-dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--tvq-space-2);
  width: 100%;
  padding: var(--tvq-space-2) var(--tvq-space-3);
  font-size: var(--tvq-text-sm);
  color: var(--tvq-text-primary);
  background: none;
  border: none;
  border-radius: var(--tvq-radius-md);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background-color var(--tvq-duration-fast) var(--tvq-ease-default);
}

.tvq-dropdown__item:hover {
  background-color: var(--tvq-surface-subtle);
}

.tvq-dropdown__item--danger {
  color: var(--tvq-status-error);
}

.tvq-dropdown__item--danger:hover {
  background-color: var(--tvq-status-error-bg);
}

/* Divider */
.tvq-dropdown__divider {
  height: 1px;
  background-color: var(--tvq-border-default);
  margin: var(--tvq-space-1) 0;
}

/* Header */
.tvq-dropdown__header {
  padding: var(--tvq-space-2) var(--tvq-space-3);
  font-size: var(--tvq-text-xs);
  font-weight: var(--tvq-weight-semibold);
  color: var(--tvq-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tvq-tracking-wide);
}
/* ==========================================================================
 * Trevenque Design System — Tooltip
 * CSS-only tooltip using data-tooltip attribute
 * Usage: <span class="tvq-tooltip" data-tooltip="Help text">Hover me</span>
 * ========================================================================== */

.tvq-tooltip {
  position: relative;
}

.tvq-tooltip::before,
.tvq-tooltip::after {
  position: absolute;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tvq-duration-fast) var(--tvq-ease-default),
              visibility var(--tvq-duration-fast);
  pointer-events: none;
}

/* Tooltip bubble */
.tvq-tooltip::before {
  content: attr(data-tooltip);
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: var(--tvq-space-1-5) var(--tvq-space-3);
  background-color: var(--tvq-color-neutral-700);
  color: var(--tvq-color-neutral-0);
  font-size: var(--tvq-text-xs);
  font-weight: var(--tvq-weight-medium);
  line-height: var(--tvq-leading-snug);
  border-radius: var(--tvq-radius-md);
  white-space: nowrap;
  max-width: 250px;
  text-align: center;
}

/* Arrow */
.tvq-tooltip::after {
  content: "";
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--tvq-color-neutral-700);
}

.tvq-tooltip:hover::before,
.tvq-tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Position: bottom */
.tvq-tooltip--bottom::before {
  bottom: auto;
  top: calc(100% + 8px);
}

.tvq-tooltip--bottom::after {
  bottom: auto;
  top: calc(100% + 2px);
  border-top-color: transparent;
  border-bottom-color: var(--tvq-color-neutral-700);
}
/* ==========================================================================
 * Trevenque Design System — Avatar
 * ========================================================================== */

.tvq-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--tvq-radius-full);
  overflow: hidden;
  background-color: var(--tvq-brand-primary-light);
  color: var(--tvq-brand-primary);
  font-weight: var(--tvq-weight-semibold);
  flex-shrink: 0;
}

.tvq-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sizes */
.tvq-avatar--xs {
  width: 1.5rem;
  height: 1.5rem;
  font-size: var(--tvq-text-xs);
}

.tvq-avatar--sm {
  width: 2rem;
  height: 2rem;
  font-size: var(--tvq-text-xs);
}

.tvq-avatar--md,
.tvq-avatar:not([class*="tvq-avatar--"]) {
  width: 2.5rem;
  height: 2.5rem;
  font-size: var(--tvq-text-sm);
}

.tvq-avatar--lg {
  width: 3rem;
  height: 3rem;
  font-size: var(--tvq-text-base);
}

.tvq-avatar--xl {
  width: 4rem;
  height: 4rem;
  font-size: var(--tvq-text-xl);
}

/* Group */
.tvq-avatar-group {
  display: flex;
}

.tvq-avatar-group .tvq-avatar {
  border: 2px solid var(--tvq-surface-card);
}

.tvq-avatar-group .tvq-avatar + .tvq-avatar {
  margin-left: -0.5rem;
}

/* Status indicator */
.tvq-avatar-wrapper {
  position: relative;
  display: inline-flex;
}

.tvq-avatar-wrapper__status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: var(--tvq-radius-full);
  border: 2px solid var(--tvq-surface-card);
}

.tvq-avatar-wrapper__status--online {
  background-color: var(--tvq-status-success);
}

.tvq-avatar-wrapper__status--offline {
  background-color: var(--tvq-color-neutral-200);
}

.tvq-avatar-wrapper__status--busy {
  background-color: var(--tvq-status-error);
}
/* ==========================================================================
 * Trevenque Design System — Layout Utilities
 * Container widths from theme.json: contentSize 800px, wideSize 1200px
 * ========================================================================== */

/* --------------------------------------------------------------------------
 * Containers
 * -------------------------------------------------------------------------- */

.tvq-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--tvq-space-4);
}

.tvq-container--sm  { max-width: 800px; }
.tvq-container--lg  { max-width: 1400px; }
.tvq-container--xl  { max-width: 1600px; }
.tvq-container--full { max-width: none; }

/* --------------------------------------------------------------------------
 * Flexbox
 * -------------------------------------------------------------------------- */

.tvq-flex          { display: flex; }
.tvq-inline-flex   { display: inline-flex; }
.tvq-flex-col      { flex-direction: column; }
.tvq-flex-row      { flex-direction: row; }
.tvq-flex-wrap     { flex-wrap: wrap; }
.tvq-flex-1        { flex: 1 1 0%; }
.tvq-flex-auto     { flex: 1 1 auto; }
.tvq-flex-none     { flex: none; }
.tvq-items-start   { align-items: flex-start; }
.tvq-items-center  { align-items: center; }
.tvq-items-end     { align-items: flex-end; }
.tvq-items-stretch { align-items: stretch; }
.tvq-justify-start { justify-content: flex-start; }
.tvq-justify-center { justify-content: center; }
.tvq-justify-end   { justify-content: flex-end; }
.tvq-justify-between { justify-content: space-between; }
.tvq-self-start    { align-self: flex-start; }
.tvq-self-center   { align-self: center; }
.tvq-self-end      { align-self: flex-end; }

/* --------------------------------------------------------------------------
 * Grid
 * -------------------------------------------------------------------------- */

.tvq-grid          { display: grid; gap: var(--tvq-space-6); }
.tvq-grid-cols-1   { grid-template-columns: repeat(1, 1fr); }
.tvq-grid-cols-2   { grid-template-columns: repeat(2, 1fr); }
.tvq-grid-cols-3   { grid-template-columns: repeat(3, 1fr); }
.tvq-grid-cols-4   { grid-template-columns: repeat(4, 1fr); }
.tvq-grid-cols-6   { grid-template-columns: repeat(6, 1fr); }
.tvq-grid-cols-12  { grid-template-columns: repeat(12, 1fr); }
.tvq-col-span-2    { grid-column: span 2; }
.tvq-col-span-3    { grid-column: span 3; }
.tvq-col-span-4    { grid-column: span 4; }
.tvq-col-span-6    { grid-column: span 6; }
.tvq-col-span-full { grid-column: 1 / -1; }

/* --------------------------------------------------------------------------
 * Gap
 * -------------------------------------------------------------------------- */

.tvq-gap-1   { gap: var(--tvq-space-1); }
.tvq-gap-2   { gap: var(--tvq-space-2); }
.tvq-gap-3   { gap: var(--tvq-space-3); }
.tvq-gap-4   { gap: var(--tvq-space-4); }
.tvq-gap-5   { gap: var(--tvq-space-5); }
.tvq-gap-6   { gap: var(--tvq-space-6); }
.tvq-gap-8   { gap: var(--tvq-space-8); }

/* --------------------------------------------------------------------------
 * Responsive grid (collapse on mobile)
 * -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .tvq-grid-cols-2,
  .tvq-grid-cols-3,
  .tvq-grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .tvq-grid-cols-3,
  .tvq-grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ==========================================================================
 * Trevenque Design System — Text Utilities
 * Line-clamp pattern from child theme .card-blog h2
 * ========================================================================== */

/* Alignment */
.tvq-text-left    { text-align: left; }
.tvq-text-center  { text-align: center; }
.tvq-text-right   { text-align: right; }

/* Sizes */
.tvq-text--xs     { font-size: var(--tvq-text-xs); }
.tvq-text--sm     { font-size: var(--tvq-text-sm); }
.tvq-text--base   { font-size: var(--tvq-text-base); }
.tvq-text--lg     { font-size: var(--tvq-text-lg); }
.tvq-text--xl     { font-size: var(--tvq-text-xl); }
.tvq-text--2xl    { font-size: var(--tvq-text-2xl); }
.tvq-text--3xl    { font-size: var(--tvq-text-3xl); }
.tvq-text--4xl    { font-size: var(--tvq-text-4xl); }

/* Weights */
.tvq-font-regular  { font-weight: var(--tvq-weight-regular); }
.tvq-font-medium   { font-weight: var(--tvq-weight-medium); }
.tvq-font-semibold { font-weight: var(--tvq-weight-semibold); }
.tvq-font-bold     { font-weight: var(--tvq-weight-bold); }

/* Colors */
.tvq-text-primary   { color: var(--tvq-text-primary); }
.tvq-text-secondary { color: var(--tvq-text-secondary); }
.tvq-text-muted     { color: var(--tvq-text-muted); }
.tvq-text-brand     { color: var(--tvq-text-brand); }
.tvq-text-success   { color: var(--tvq-status-success); }
.tvq-text-error     { color: var(--tvq-status-error); }
.tvq-text-warning   { color: var(--tvq-status-warning); }

/* Truncation */
.tvq-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Line clamp (from child theme .card-blog h2) */
.tvq-line-clamp-1,
.tvq-line-clamp-2,
.tvq-line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tvq-line-clamp-1 { -webkit-line-clamp: 1; }
.tvq-line-clamp-2 { -webkit-line-clamp: 2; }
.tvq-line-clamp-3 { -webkit-line-clamp: 3; }

/* Monospace */
.tvq-font-mono { font-family: var(--tvq-font-mono); }

/* Uppercase */
.tvq-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--tvq-tracking-wide);
}

/* No wrap */
.tvq-nowrap { white-space: nowrap; }

/* Word break */
.tvq-break-words { overflow-wrap: break-word; }
/* ==========================================================================
 * Trevenque Design System — Display Utilities
 * Responsive breakpoints: 767px (child theme), 1024px (child theme)
 * ========================================================================== */

.tvq-block        { display: block; }
.tvq-inline-block { display: inline-block; }
.tvq-inline       { display: inline; }
.tvq-hidden       { display: none; }

/* Visibility */
.tvq-visible   { visibility: visible; }
.tvq-invisible { visibility: hidden; }

/* Overflow */
.tvq-overflow-hidden { overflow: hidden; }
.tvq-overflow-auto   { overflow: auto; }
.tvq-overflow-x-auto { overflow-x: auto; }

/* Position */
.tvq-relative { position: relative; }
.tvq-absolute { position: absolute; }
.tvq-fixed    { position: fixed; }
.tvq-sticky   { position: sticky; }

/* Width/Height */
.tvq-w-full  { width: 100%; }
.tvq-h-full  { height: 100%; }
.tvq-min-h-screen { min-height: 100vh; }

/* Responsive visibility */
@media (max-width: 767px) {
  .tvq-hidden-mobile  { display: none; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .tvq-hidden-tablet  { display: none; }
}

@media (min-width: 1024px) {
  .tvq-hidden-desktop { display: none; }
}

@media (max-width: 767px) {
  .tvq-show-mobile  { display: block; }
}

@media (min-width: 768px) {
  .tvq-show-mobile  { display: none; }
}

/* Cursor */
.tvq-cursor-pointer  { cursor: pointer; }
.tvq-cursor-default  { cursor: default; }
.tvq-cursor-not-allowed { cursor: not-allowed; }

/* Divider */
.tvq-divider {
  border: none;
  border-top: var(--tvq-border-width-thin) solid var(--tvq-border-default);
  margin: var(--tvq-space-4) 0;
}
/* ==========================================================================
 * Trevenque Design System — Spacing Utility Classes
 * Pattern: .tvq-{m|p}{t|r|b|l|x|y}-{scale}
 * ========================================================================== */

/* Margin — all sides */
.tvq-m-0  { margin: 0; }
.tvq-m-1  { margin: var(--tvq-space-1); }
.tvq-m-2  { margin: var(--tvq-space-2); }
.tvq-m-3  { margin: var(--tvq-space-3); }
.tvq-m-4  { margin: var(--tvq-space-4); }
.tvq-m-6  { margin: var(--tvq-space-6); }
.tvq-m-8  { margin: var(--tvq-space-8); }
.tvq-m-auto { margin: auto; }

/* Margin — top */
.tvq-mt-0  { margin-top: 0; }
.tvq-mt-1  { margin-top: var(--tvq-space-1); }
.tvq-mt-2  { margin-top: var(--tvq-space-2); }
.tvq-mt-3  { margin-top: var(--tvq-space-3); }
.tvq-mt-4  { margin-top: var(--tvq-space-4); }
.tvq-mt-6  { margin-top: var(--tvq-space-6); }
.tvq-mt-8  { margin-top: var(--tvq-space-8); }

/* Margin — bottom */
.tvq-mb-0  { margin-bottom: 0; }
.tvq-mb-1  { margin-bottom: var(--tvq-space-1); }
.tvq-mb-2  { margin-bottom: var(--tvq-space-2); }
.tvq-mb-3  { margin-bottom: var(--tvq-space-3); }
.tvq-mb-4  { margin-bottom: var(--tvq-space-4); }
.tvq-mb-6  { margin-bottom: var(--tvq-space-6); }
.tvq-mb-8  { margin-bottom: var(--tvq-space-8); }

/* Margin — horizontal */
.tvq-mx-0    { margin-left: 0; margin-right: 0; }
.tvq-mx-2    { margin-left: var(--tvq-space-2); margin-right: var(--tvq-space-2); }
.tvq-mx-4    { margin-left: var(--tvq-space-4); margin-right: var(--tvq-space-4); }
.tvq-mx-auto { margin-left: auto; margin-right: auto; }

/* Margin — vertical */
.tvq-my-0  { margin-top: 0; margin-bottom: 0; }
.tvq-my-2  { margin-top: var(--tvq-space-2); margin-bottom: var(--tvq-space-2); }
.tvq-my-4  { margin-top: var(--tvq-space-4); margin-bottom: var(--tvq-space-4); }
.tvq-my-6  { margin-top: var(--tvq-space-6); margin-bottom: var(--tvq-space-6); }

/* Margin — left/right */
.tvq-ml-auto { margin-left: auto; }
.tvq-mr-auto { margin-right: auto; }
.tvq-ml-2  { margin-left: var(--tvq-space-2); }
.tvq-ml-3  { margin-left: var(--tvq-space-3); }
.tvq-mr-2  { margin-right: var(--tvq-space-2); }
.tvq-mr-3  { margin-right: var(--tvq-space-3); }

/* Padding — all sides */
.tvq-p-0  { padding: 0; }
.tvq-p-1  { padding: var(--tvq-space-1); }
.tvq-p-2  { padding: var(--tvq-space-2); }
.tvq-p-3  { padding: var(--tvq-space-3); }
.tvq-p-4  { padding: var(--tvq-space-4); }
.tvq-p-5  { padding: var(--tvq-space-5); }
.tvq-p-6  { padding: var(--tvq-space-6); }
.tvq-p-8  { padding: var(--tvq-space-8); }

/* Padding — horizontal */
.tvq-px-0  { padding-left: 0; padding-right: 0; }
.tvq-px-2  { padding-left: var(--tvq-space-2); padding-right: var(--tvq-space-2); }
.tvq-px-3  { padding-left: var(--tvq-space-3); padding-right: var(--tvq-space-3); }
.tvq-px-4  { padding-left: var(--tvq-space-4); padding-right: var(--tvq-space-4); }
.tvq-px-6  { padding-left: var(--tvq-space-6); padding-right: var(--tvq-space-6); }

/* Padding — vertical */
.tvq-py-0  { padding-top: 0; padding-bottom: 0; }
.tvq-py-2  { padding-top: var(--tvq-space-2); padding-bottom: var(--tvq-space-2); }
.tvq-py-3  { padding-top: var(--tvq-space-3); padding-bottom: var(--tvq-space-3); }
.tvq-py-4  { padding-top: var(--tvq-space-4); padding-bottom: var(--tvq-space-4); }
.tvq-py-6  { padding-top: var(--tvq-space-6); padding-bottom: var(--tvq-space-6); }

/* Padding — individual */
.tvq-pt-0  { padding-top: 0; }
.tvq-pt-4  { padding-top: var(--tvq-space-4); }
.tvq-pt-6  { padding-top: var(--tvq-space-6); }
.tvq-pb-0  { padding-bottom: 0; }
.tvq-pb-4  { padding-bottom: var(--tvq-space-4); }
.tvq-pb-6  { padding-bottom: var(--tvq-space-6); }
.tvq-pl-4  { padding-left: var(--tvq-space-4); }
.tvq-pr-4  { padding-right: var(--tvq-space-4); }
