/* El tema se activa con la clase `.dark` en <html> (ver composables/useTheme.js) */
/* ==========================================================================
   ENTRETURNO — SISTEMA VISUAL «PANEL DE OPERACIONES»
   Interfaz compacta, recta y de alta densidad. Sin sombras ornamentales,
   sin tarjetas redondeadas y con un único acento de señal (vermellón).
   ========================================================================== */

:root {
  --canvas: #efeee9;
  --surface: #f8f7f3;
  --surface-2: #e7e5de;
  --ink: #161615;
  --muted: #68665f;
  --line: #d5d3ca;
  --line-strong: #a7a49a;
  --accent: #c44722;
  --accent-ink: #fffaf5;
  --accent-soft: rgba(196, 71, 34, 0.1);
  --success: #1f6a4e;
  --success-soft: rgba(31, 106, 78, 0.1);
  --warning: #8a5b00;
  --warning-soft: rgba(138, 91, 0, 0.12);
  --danger: #a92c24;
  --danger-soft: rgba(169, 44, 36, 0.1);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html.dark {
  --canvas: #0f0f0e;
  --surface: #161615;
  --surface-2: #1e1d1a;
  --ink: #ece9e1;
  --muted: #9c988f;
  --line: #2c2a26;
  --line-strong: #4a463f;
  --accent: #e76f45;
  --accent-ink: #17110e;
  --accent-soft: rgba(231, 111, 69, 0.14);
  --success: #6ac39a;
  --success-soft: rgba(106, 195, 154, 0.12);
  --warning: #e0a63a;
  --warning-soft: rgba(224, 166, 58, 0.12);
  --danger: #f07a70;
  --danger-soft: rgba(240, 122, 112, 0.12);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}



/* Reset mínimo (la landing no usa Tailwind) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

/* --------------------------------------------------------------------------
   Estructura y tipografía
   -------------------------------------------------------------------------- */

.shell {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
}

.kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
}

.h1 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

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

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

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

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

.font-mono {
  font-family: var(--mono);
}

.page-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

@media (min-width: 768px) {
  .page-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  border-top: 2px solid var(--line-strong);
  padding-top: 8px;
}

.section-head.is-fixed {
  border-top-color: var(--warning);
}

.section-head.is-fixed .section-title {
  color: var(--warning);
}

.section-head.is-active {
  border-top-color: var(--accent);
}

.section-head.is-active .section-title {
  color: var(--accent);
}

.section-head.is-expired {
  border-top-color: var(--danger);
}

.section-head.is-expired .section-title {
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   Barra superior y navegación
   -------------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-word {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.brand-word span {
  color: var(--accent);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 9px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-link.active {
  color: var(--ink);
  background: var(--surface-2);
  border-color: var(--line);
}

.mobile-panel {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
}

/* --------------------------------------------------------------------------
   Paneles y herramientas
   -------------------------------------------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
}

.panel-pad {
  padding: 13px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Control segmentado (filtros) */
.seg {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.seg button {
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.seg button:last-child {
  border-right: 0;
}

.seg button:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.seg button.active {
  background: var(--ink);
  color: var(--surface);
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn:hover {
  background: var(--surface-2);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.btn-primary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

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

.btn-accent:hover {
  filter: brightness(0.92);
}

.btn-ghost {
  border-color: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: transparent;
  background: var(--surface-2);
  color: var(--ink);
}

.btn-danger {
  border-color: var(--line-strong);
  color: var(--danger);
}

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

.btn-sm {
  height: 26px;
  padding: 0 7px;
  font-size: 12.5px;
}

.btn-icon {
  width: 32px;
  padding: 0;
}

.btn-icon.btn-sm {
  width: 26px;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Formularios
   -------------------------------------------------------------------------- */

.label {
  display: block;
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
}

.input,
.select {
  height: 34px;
  padding: 0 9px;
}

.textarea {
  min-height: 84px;
  padding: 7px 9px;
  line-height: 1.45;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2368665f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 12px 12px;
}

html.dark .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239c988f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.select-sm {
  width: auto;
  height: 26px;
  padding: 0 26px 0 6px;
  background-position: right 7px center;
  font-size: 12.5px;
}

.checkbox {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Etiquetas de estado
   -------------------------------------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-accent {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.tag-critical {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.tag-high {
  border-color: var(--warning);
  background: var(--warning-soft);
  color: var(--warning);
}

.tag-low {
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--success);
}

.tag-muted {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Notas del tablero
   -------------------------------------------------------------------------- */

.note {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-left: 3px solid var(--note-accent, var(--line-strong));
  background: var(--surface);
  transition: border-color 120ms ease, background-color 120ms ease;
}

.note:hover {
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-2));
}

.note-critical {
  --note-accent: var(--danger);
}

.note-high {
  --note-accent: var(--warning);
}

.note-medium {
  --note-accent: var(--line-strong);
}

.note-low {
  --note-accent: var(--success);
}

.note-expired {
  --note-accent: var(--danger);
}

/* --------------------------------------------------------------------------
   Alertas y estados vacíos
   -------------------------------------------------------------------------- */

.alert {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-left-width: 3px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
}

.alert-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alert-accent {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.alert-warning {
  border-color: var(--warning);
  background: var(--warning-soft);
  color: var(--warning);
}

.alert-danger {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.alert-success {
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--success);
}

.empty {
  border: 1px dashed var(--line-strong);
  padding: 24px 14px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Tablas
   -------------------------------------------------------------------------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  padding: 7px 9px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td {
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

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

.table .meta {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Modales
   -------------------------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 8, 7, 0.68);
  backdrop-filter: blur(2px);
}

.modal {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Acceso / activación
   -------------------------------------------------------------------------- */

.auth-layout {
  display: grid;
  min-height: calc(100vh - 48px);
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.auth-aside {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  padding: 40px;
}

@media (min-width: 1024px) {
  .auth-aside {
    display: flex;
  }
}

.auth-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 32px;
}

@media (min-width: 1024px) {
  .auth-main {
    align-items: center;
    padding: 24px;
  }
}

.auth-form {
  width: 100%;
  max-width: 360px;
}

.auth-stat {
  border-top: 1px solid var(--line-strong);
  padding-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.auth-stat strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Landing pública
   -------------------------------------------------------------------------- */

.landing {
  background: var(--canvas);
  color: var(--ink);
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 94%, transparent);
  backdrop-filter: blur(10px);
}

.landing-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 1024px) {
  .landing-wrap {
    padding: 0 24px;
  }
}

.landing-header-row {
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-nav {
  display: none;
  align-items: center;
  gap: 2px;
}

@media (min-width: 768px) {
  .landing-nav {
    display: flex;
  }
}

.landing-nav a {
  display: inline-flex;
  height: 30px;
  align-items: center;
  border: 1px solid transparent;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.landing-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.landing-hero {
  border-bottom: 1px solid var(--line);
  padding: 44px 0 40px;
}

@media (min-width: 1024px) {
  .landing-hero {
    padding: 72px 0 64px;
  }
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .landing-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
  }
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  padding: 5px 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.launch-dot {
  position: relative;
  display: inline-flex;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
}

.launch-dot::before,
.launch-dot::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  content: '';
}

.launch-dot::before {
  animation: launch-pulse 1.8s ease-out infinite;
}

@keyframes launch-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .launch-dot::before {
    animation: none;
  }
}

.countdown {
  display: grid;
  max-width: 360px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 24px;
}

.countdown-box {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 8px 5px;
  text-align: center;
}

.countdown-value {
  display: block;
  font-family: var(--mono);
  font-size: 25.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.countdown-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.launch-live {
  margin-top: 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

.landing-title {
  margin-top: 14px;
  font-size: clamp(39px, 6.2vw, 71.5px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.landing-lead {
  margin-top: 16px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .landing-lead {
    font-size: 17px;
  }
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.landing-actions.is-flush {
  margin-top: 0;
}

.landing-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
}

.btn-lg {
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.landing-section {
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}

@media (min-width: 1024px) {
  .landing-section {
    padding: 60px 0;
  }
}

.landing-section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.landing-video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  background: #171716;
}

.landing-section-head.is-flush {
  margin-bottom: 0;
}

.landing-h2 {
  font-size: clamp(27.5px, 3.9vw, 43.5px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.landing-intro {
  max-width: 62ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-strong);
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature-card {
  border-bottom: 1px solid var(--line);
  padding: 16px 16px 20px 0;
}

@media (min-width: 640px) {
  .feature-card {
    padding: 18px 20px 22px 0;
  }
}

.feature-index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
}

.feature-card h3 {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
}

.feature-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.carousel {
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line);
}

.carousel-slide.is-movil img {
  padding: 14px;
  background: var(--surface-2);
  object-fit: contain;
}

.carousel-slide figcaption {
  padding: 10px 12px 0;
  color: var(--muted);
  font-size: 15px;
}

.carousel-slide figcaption strong {
  color: var(--ink);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px 12px;
}

.carousel-count {
  margin-right: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.landing-steps {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-strong);
}

@media (min-width: 768px) {
  .landing-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.landing-step {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px 20px 0;
}

@media (min-width: 768px) {
  .landing-step {
    border-bottom: 0;
    padding: 18px 24px 0 0;
  }
}

.landing-step .step-number {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12.5px;
}

.landing-step h3 {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
}

.landing-step p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.landing-pricing-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}

@media (min-width: 768px) {
  .landing-pricing-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.landing-pricing-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Cuatro duraciones: en pantallas estrechas, en dos filas */
@media (max-width: 559px) {
  .landing-pricing-toggle,
  .landing-pricing-toggle .seg {
    width: 100%;
  }

  .landing-pricing-toggle .seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line-strong);
  }

  .landing-pricing-toggle .seg button {
    border-right: 0;
  }

  .landing-pricing-toggle .seg button:not(.active) {
    background: var(--surface);
  }
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .price-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: inset 0 3px 0 var(--accent);
}

.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-card h3 {
  font-size: 16px;
  font-weight: 700;
}

.price-value {
  margin-top: 14px;
  font-size: 34.5px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-value small {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.price-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.price-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.price-list li {
  position: relative;
  padding-left: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.price-list li + li {
  margin-top: 4px;
}

.price-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.price-card .btn {
  width: 100%;
  margin-top: 16px;
}

.faq {
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--muted);
  font-family: var(--mono);
}

.faq details[open] summary::after {
  content: '−';
}

.faq p {
  margin-top: 6px;
  max-width: 72ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.landing-cta {
  padding: 48px 0;
}

.landing-cta-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  background: var(--surface);
  padding: 24px;
}

@media (min-width: 768px) {
  .landing-cta-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 28px 30px;
  }
}

.landing-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
}

.landing-footer-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-size: 12.5px;
}

@media (min-width: 768px) {
  .landing-footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   Priority picker del modal de nota
   -------------------------------------------------------------------------- */

.priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.priority-btn {
  height: 30px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.priority-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.priority-btn.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

/* --------------------------------------------------------------------------
   Consumo de plan (vista de suscripciones)
   -------------------------------------------------------------------------- */

.usage {
  display: flex;
  min-width: 120px;
  flex-direction: column;
  gap: 4px;
}

.usage-track {
  height: 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.usage-fill {
  height: 100%;
  background: var(--accent);
  transition: width 180ms ease;
}

.usage-fill.is-warning {
  background: var(--warning);
}

.usage-fill.is-critical {
  background: var(--danger);
}

.kpi-value {
  margin-top: 4px;
  font-size: 27.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Código / enlaces
   -------------------------------------------------------------------------- */

.code-block {
  display: block;
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 7px 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink);
  word-break: break-all;
}

.link {
  color: var(--accent);
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Compatibilidad con utilidades de color usadas puntualmente
   -------------------------------------------------------------------------- */

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

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

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

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

.border-line {
  border-color: var(--line);
}

.border-line-strong {
  border-color: var(--line-strong);
}

/* Visibilidad responsive con especificidad suficiente para convivir con .btn */
@media (min-width: 768px) {
  .btn.hide-md {
    display: none;
  }
}

@media (max-width: 639px) {
  .hide-sm {
    display: none !important;
  }
}

@media (min-width: 640px) {
  .hide-from-sm {
    display: none !important;
  }
}


/* --------------------------------------------------------------------------
   Utilidades específicas de la landing estática
   -------------------------------------------------------------------------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.icon-sun {
  display: none;
}

html.dark .icon-sun {
  display: inline;
}

html.dark .icon-moon {
  display: none;
}

.price-card .btn {
  width: 100%;
  margin-top: 16px;
}

[hidden] {
  display: none !important;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

.price-desc {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Páginas legales
   -------------------------------------------------------------------------- */

.legal-wrap {
  max-width: 840px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.legal-back:hover {
  color: var(--accent);
}

.legal h1 {
  font-size: clamp(34.5px, 4.6vw, 48.5px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.legal-lead {
  margin-top: 10px;
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--muted);
}

.legal h2 {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal p,
.legal ul,
.legal table {
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
}

.legal strong {
  color: var(--ink);
}

.legal ul {
  padding-left: 20px;
  list-style: disc;
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--accent);
  font-weight: 600;
}

.legal a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal .datos {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 18px;
}

.legal .datos ul {
  margin-top: 0;
  padding-left: 0;
  list-style: none;
}

.legal .datos li + li {
  margin-top: 4px;
}

.legal table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15.5px;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal .legal-updated {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 14px;
}

.launch-badge + .kicker {
  margin-top: 12px;
}
