/* Landing institucional — componentes shadcn-vue (estilo Nova) recreados en CSS.
   Medidas tomadas del registry oficial reka-nova; colores, radios y sombras desde tokens.json. */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap");

.ds, .ds * { box-sizing: border-box; }
.ds { font-family: var(--font-sans); color: var(--foreground); -webkit-font-smoothing: antialiased; }
.ds svg.lu { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ds, [data-theme] { --ds-focus: 0 0 0 3px color-mix(in srgb, var(--ring) 50%, transparent); }
:is([data-theme="dark"],[data-theme="dark-neutral"]) { color-scheme: dark; }

/* Button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--radius-lg); font: 500 14px/20px var(--font-sans); white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; background-clip: padding-box; text-decoration: none; user-select: none; }
.btn:focus-visible { outline: none; border-color: var(--ring); box-shadow: var(--ds-focus); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-default { background: var(--primary); color: var(--primary-foreground); }
.btn-default:hover { background: color-mix(in srgb, var(--primary) 80%, transparent); }
.btn-outline { background: var(--background); color: var(--foreground); border-color: var(--border); }
.btn-outline:hover { background: var(--muted); }
:is([data-theme="dark"],[data-theme="dark-neutral"]) .btn-outline { background: color-mix(in srgb, var(--input) 30%, transparent); border-color: var(--input); }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn-secondary:hover { background: color-mix(in srgb, var(--secondary) 80%, transparent); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--muted); }
.btn-destructive { background: color-mix(in srgb, var(--destructive) 10%, transparent); color: var(--destructive); }
.btn-destructive:hover { background: color-mix(in srgb, var(--destructive) 20%, transparent); }
.btn-link { background: transparent; color: var(--primary); padding-left: 0; padding-right: 0; height: auto; text-underline-offset: 4px; }
.btn-link:hover { text-decoration: underline; }
.btn-xs { height: 24px; gap: 4px; padding: 0 8px; font-size: 12px; line-height: 16px; border-radius: min(var(--radius-md), 10px); }
.btn-xs svg.lu { width: 12px; height: 12px; }
.btn-sm { height: 28px; gap: 4px; padding: 0 10px; font-size: 12.8px; border-radius: min(var(--radius-md), 12px); }
.btn-sm svg.lu { width: 14px; height: 14px; }
.btn-lg { height: 36px; }
.btn-xl { height: 44px; gap: 8px; padding: 0 16px; font-size: 16px; line-height: 24px; } /* propuesta propia: no existe en Nova */
.btn-icon { width: 32px; padding: 0; } .btn-icon-sm { width: 28px; height: 28px; padding: 0; border-radius: min(var(--radius-md), 12px); } .btn-icon-lg { width: 36px; height: 36px; padding: 0; }
.btn-round { border-radius: var(--radius-full); }

/* Badge */
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 20px; width: fit-content; padding: 2px 8px; border: 1px solid transparent; border-radius: var(--radius-4xl); font: 500 12px/16px var(--font-sans); white-space: nowrap; overflow: hidden; }
.badge svg.lu { width: 12px; height: 12px; }
.badge-default { background: var(--primary); color: var(--primary-foreground); }
.badge-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.badge-destructive { background: color-mix(in srgb, var(--destructive) 10%, transparent); color: var(--destructive); }
.badge-outline { border-color: var(--border); color: var(--foreground); }
.badge-ghost { color: var(--foreground); }

/* Toggle / Toggle group */
.toggle-group { display: inline-flex; align-items: center; width: fit-content; border-radius: var(--radius-lg); }
.toggle { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 32px; min-width: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--radius-lg); background: transparent; color: var(--muted-foreground); font: 500 14px/20px var(--font-sans); cursor: pointer; transition: all .15s; }
.toggle:hover { color: var(--foreground); }
.toggle[aria-pressed="true"] { background: var(--muted); color: var(--foreground); }
.toggle:focus-visible { outline: none; border-color: var(--ring); box-shadow: var(--ds-focus); }
.toggle-group.outline { gap: 0; } .toggle-group.outline .toggle { border-color: var(--input); border-radius: 0; margin-left: -1px; }
.toggle-group.outline .toggle:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); margin-left: 0; }
.toggle-group.outline .toggle:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }

/* Switch */
.switch { position: relative; display: inline-flex; align-items: center; width: 32px; height: 18.4px; flex-shrink: 0; border: 1px solid transparent; border-radius: var(--radius-full); background: var(--input); cursor: pointer; padding: 0; transition: background-color .15s; }
:is([data-theme="dark"],[data-theme="dark-neutral"]) .switch { background: color-mix(in srgb, var(--input) 80%, transparent); }
.switch[aria-checked="true"] { background: var(--primary); }
.switch::after { content: ""; width: 16px; height: 16px; border-radius: var(--radius-full); background: var(--background); transform: translateX(0); transition: transform .15s; }
.switch[aria-checked="true"]::after { transform: translateX(14px); }
:is([data-theme="dark"],[data-theme="dark-neutral"]) .switch[aria-checked="true"]::after { background: var(--primary-foreground); }
.switch:focus-visible { outline: none; border-color: var(--ring); box-shadow: var(--ds-focus); }

/* Navigation menu */
.nav { display: flex; align-items: center; gap: 4px; }
.nav-trigger { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 6px 10px; border: 0; border-radius: var(--radius-lg); background: transparent; color: var(--foreground); font: 500 14px/20px var(--font-sans); cursor: pointer; transition: background-color .15s; }
.nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--muted); }
.nav-trigger svg.lu { width: 12px; height: 12px; transition: transform .2s; }
.nav-trigger[aria-expanded="true"] svg.lu { transform: rotate(180deg); }
.nav-content { background: var(--popover); color: var(--popover-foreground); border-radius: var(--radius-lg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 10%, transparent), var(--elevation-md); padding: 8px; }
.nav-link { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border-radius: var(--radius-md); color: inherit; text-decoration: none; font-size: 14px; line-height: 20px; transition: background-color .15s; }
.nav-link:hover { background: var(--muted); }
.nav-link .t { font-weight: 500; display: block; } .nav-link .d { color: var(--muted-foreground); display: block; }
.nav-label { padding: 6px 8px 4px; font: 500 12px/16px var(--font-sans); letter-spacing: 1.08px; text-transform: uppercase; color: var(--muted-foreground); }

/* Sheet */
.sheet-overlay { position: absolute; inset: 0; background: color-mix(in srgb, #000 10%, transparent); backdrop-filter: blur(4px); }
.sheet { position: absolute; top: 0; right: 0; bottom: 0; width: 75%; max-width: 384px; display: flex; flex-direction: column; gap: 16px; background: var(--popover); color: var(--popover-foreground); border-left: 1px solid var(--border); box-shadow: var(--elevation-lg); font-size: 14px; }
.sheet-header { display: flex; flex-direction: column; gap: 2px; padding: 16px; }
.sheet-title { font: 500 16px/1.375 var(--font-sans); } .sheet-desc { color: var(--muted-foreground); }
.sheet-close { position: absolute; top: 12px; right: 12px; }

/* Tabs */
.tabs-list { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 3px; border-radius: var(--radius-lg); background: var(--muted); color: var(--muted-foreground); width: fit-content; }
.tabs-list.line { background: transparent; gap: 4px; border-radius: 0; }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: calc(100% - 1px); flex: 1; padding: 2px 6px; border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; color: color-mix(in srgb, var(--foreground) 60%, transparent); font: 500 14px/20px var(--font-sans); white-space: nowrap; cursor: pointer; transition: all .15s; }
.tab:hover { color: var(--foreground); }
.tab[aria-selected="true"] { background: var(--background); color: var(--foreground); box-shadow: var(--elevation-sm); }
:is([data-theme="dark"],[data-theme="dark-neutral"]) .tab[aria-selected="true"] { background: color-mix(in srgb, var(--input) 30%, transparent); border-color: var(--input); }
.tabs-list.line .tab[aria-selected="true"] { background: transparent; box-shadow: inset 0 -2px 0 var(--foreground); border-radius: 0; border-color: transparent; }
.tab:focus-visible { outline: none; border-color: var(--ring); box-shadow: var(--ds-focus); }

/* Stepper */
.stepper { display: flex; gap: 8px; align-items: flex-start; }
.step { display: flex; align-items: flex-start; gap: 8px; flex: 1; }
.step-trigger { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 4px; border-radius: var(--radius-md); }
.step-ind { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--muted); color: color-mix(in srgb, var(--muted-foreground) 50%, transparent); font: 600 14px/20px var(--font-sans); }
.step[data-state="active"] .step-ind, .step[data-state="completed"] .step-ind { background: var(--primary); color: var(--primary-foreground); }
.step-title { font: 600 16px/24px var(--font-sans); } .step-desc { font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.step-sep { flex: 1; height: 2px; margin-top: 19px; border-radius: 2px; background: var(--muted); }
.step[data-state="completed"] + .step-sep, .step-sep.done { background: var(--primary); }

/* Carousel */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-xl); }
.carousel-track { display: flex; transition: transform .3s ease; }
.carousel-item { min-width: 0; flex: 0 0 100%; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.carousel-dots { display: flex; gap: 6px; } .carousel-dot { width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--border); transition: all .2s; } .carousel-dot.on { width: 20px; background: var(--foreground); }

/* Card */
.card { display: flex; flex-direction: column; gap: 16px; padding: 16px 0; overflow: hidden; border-radius: var(--radius-xl); background: var(--card); color: var(--card-foreground); box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 10%, transparent); font-size: 14px; line-height: 20px; }
.card-header { display: grid; gap: 4px; padding: 0 16px; } .card-title { font: 500 16px/1.375 var(--font-sans); } .card-desc { color: var(--muted-foreground); }
.card-content { padding: 0 16px; }
.card-footer { display: flex; align-items: center; padding: 16px; margin-bottom: -16px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 50%, transparent); }
.card.sm { gap: 12px; padding: 12px 0; } .card.sm .card-header, .card.sm .card-content { padding: 0 12px; }

/* Item */
.item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: var(--radius-lg); font-size: 14px; line-height: 20px; color: inherit; text-decoration: none; transition: background-color .1s; }
.item.outline { border-color: var(--border); } .item.muted { background: color-mix(in srgb, var(--muted) 50%, transparent); }
a.item:hover { background: var(--muted); }
.item-media { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-md); background: var(--muted); color: var(--foreground); flex-shrink: 0; }
.item-content { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.item-title { font-weight: 500; line-height: 1.375; } .item-desc { color: var(--muted-foreground); }

/* Avatar */
.avatar { position: relative; display: inline-flex; width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--radius-full); overflow: hidden; }
.avatar.lg { width: 40px; height: 40px; } .avatar.sm { width: 24px; height: 24px; }
.avatar-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: var(--radius-full); background: var(--muted); color: var(--muted-foreground); font: 500 14px/1 var(--font-sans); }
.avatar.sm .avatar-fallback { font-size: 12px; }

/* Table */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; caption-side: bottom; font-size: 14px; line-height: 20px; }
.table th { height: 40px; padding: 0 8px; text-align: left; vertical-align: middle; font-weight: 500; color: var(--foreground); white-space: nowrap; border-bottom: 1px solid var(--border); }
.table td { padding: 8px; vertical-align: middle; white-space: nowrap; border-bottom: 1px solid var(--border); }
.table tbody tr:last-child td { border-bottom: 0; } .table tbody tr:hover { background: color-mix(in srgb, var(--muted) 50%, transparent); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table caption { margin-top: 16px; color: var(--muted-foreground); }

/* Chart */
.chart { display: flex; flex-direction: column; gap: 12px; font-size: 12px; color: var(--muted-foreground); }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--border); stroke-width: 1; } .chart .s1 { stroke: var(--chart-1); } .chart .s2 { stroke: var(--chart-2); } .chart .bench { stroke: var(--chart-benchmark); stroke-dasharray: 4 4; }
.chart-legend { display: flex; gap: 16px; justify-content: center; } .chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* Accordion */
.accordion { display: flex; flex-direction: column; width: 100%; }
.acc-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.acc-trigger { display: flex; flex: 1; width: 100%; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 10px 0; border: 1px solid transparent; border-radius: var(--radius-lg); background: none; color: var(--foreground); text-align: left; font: 500 14px/20px var(--font-sans); cursor: pointer; }
.acc-trigger:hover { text-decoration: underline; } .acc-trigger svg.lu { color: var(--muted-foreground); transition: transform .2s; margin-top: 2px; }
.acc-trigger[aria-expanded="true"] svg.lu { transform: rotate(180deg); }
.acc-trigger:focus-visible { outline: none; border-color: var(--ring); box-shadow: var(--ds-focus); }
.acc-content { padding: 0 0 10px; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }

/* Aspect ratio + captura */
.ratio { position: relative; width: 100%; overflow: hidden; border-radius: var(--radius-xl); background: var(--muted); }
.ratio > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.shot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted-foreground); font-size: 12px; }
.shot svg.lu { width: 24px; height: 24px; }

/* Separator */
.sep { flex-shrink: 0; background: var(--border); height: 1px; width: 100%; } .sep.v { width: 1px; height: auto; align-self: stretch; }

/* Forms: Field, Label, Input, Select, Textarea */
.field-group { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.field { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.field-desc { font-size: 14px; line-height: 1.5; color: var(--muted-foreground); }
.field-error { font-size: 14px; line-height: 20px; color: var(--destructive); }
.field[data-invalid="true"] .label { color: var(--destructive); }
.label { display: flex; align-items: center; gap: 8px; font: 500 14px/1 var(--font-sans); color: var(--foreground); user-select: none; }
.input, .textarea, .select-trigger { width: 100%; border: 1px solid var(--input); border-radius: var(--radius-lg); background: transparent; color: var(--foreground); font: 400 14px/20px var(--font-sans); transition: border-color .15s, box-shadow .15s; }
:is([data-theme="dark"],[data-theme="dark-neutral"]) :is(.input, .textarea, .select-trigger) { background: color-mix(in srgb, var(--input) 30%, transparent); }
.input { height: 32px; padding: 4px 10px; }
.textarea { min-height: 64px; padding: 8px 10px; resize: vertical; display: flex; }
.input::placeholder, .textarea::placeholder { color: var(--muted-foreground); }
:is(.input, .textarea, .select-trigger):focus-visible { outline: none; border-color: var(--ring); box-shadow: var(--ds-focus); }
:is(.input, .textarea, .select-trigger)[aria-invalid="true"] { border-color: var(--destructive); box-shadow: 0 0 0 3px color-mix(in srgb, var(--destructive) 20%, transparent); }
:is(.input, .textarea):disabled { opacity: .5; background: color-mix(in srgb, var(--input) 50%, transparent); cursor: not-allowed; }
.select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 32px; padding: 8px 8px 8px 10px; cursor: pointer; text-align: left; }
.select-trigger svg.lu { color: var(--muted-foreground); }
.select-trigger[data-placeholder="true"] .v { color: var(--muted-foreground); }
.select-content { min-width: 144px; padding: 4px; border-radius: var(--radius-lg); background: var(--popover); color: var(--popover-foreground); box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 10%, transparent), var(--elevation-md); }
.select-item { position: relative; display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 32px 4px 6px; border-radius: var(--radius-md); font-size: 14px; line-height: 20px; cursor: default; }
.select-item:hover, .select-item[data-highlighted] { background: var(--accent); color: var(--accent-foreground); }
.select-item .chk { position: absolute; right: 8px; display: inline-flex; }

/* Popover */
.popover { display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: var(--radius-lg); background: var(--popover); color: var(--popover-foreground); box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 10%, transparent), var(--elevation-md); font-size: 14px; line-height: 20px; }

/* Range calendar */
.cal { display: inline-flex; flex-direction: column; gap: 8px; padding: 12px; }
.cal-head { position: relative; display: flex; align-items: center; justify-content: center; height: 28px; font: 500 14px/20px var(--font-sans); }
.cal-head .prev { position: absolute; left: 0; } .cal-head .next { position: absolute; right: 0; }
.cal-grid { border-collapse: collapse; }
.cal-grid th { width: 32px; height: 24px; font: 400 12.8px/1 var(--font-sans); color: var(--muted-foreground); }
.cal-grid td { padding: 0; text-align: center; }
.cal-day { width: 32px; height: 32px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--foreground); font: 400 14px/1 var(--font-sans); cursor: pointer; }
.cal-day:hover { background: var(--accent); }
.cal-day.out { color: color-mix(in srgb, var(--muted-foreground) 60%, transparent); }
td.in-range { background: var(--accent); } td.range-start { border-radius: var(--radius-md) 0 0 var(--radius-md); } td.range-end { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
td.range-start .cal-day, td.range-end .cal-day { background: var(--primary); color: var(--primary-foreground); }

/* Progress */
.progress { position: relative; display: flex; align-items: center; width: 100%; height: 4px; overflow: hidden; border-radius: var(--radius-full); background: var(--muted); }
.progress-indicator { flex: 1; width: 100%; height: 100%; background: var(--primary); transition: transform .35s ease; }
