/* ============================================================
 * Lanza Historias — UI utilities globales
 * Sistema visual v5 (operator HUD + cyan chrome + orange identity)
 * Ver CLAUDE.md para reglas de uso.
 * ============================================================ */

/* === Body base con HUD grid sutil === */
.hud-grid {
  background-image:
    linear-gradient(to right, rgba(34, 211, 238, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 211, 238, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* === Tipografias display === */
.font-display {
  font-family: 'Archivo Black', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* === Orange glow signature === */
.orange-glow {
  color: #ff7f17;
  text-shadow: 0 0 24px rgba(255, 127, 23, 0.6), 0 0 48px rgba(255, 127, 23, 0.3);
}
.orange-glow-soft {
  color: #ff7f17;
  text-shadow: 0 0 14px rgba(255, 127, 23, 0.45);
}
.orange-grad {
  background: linear-gradient(180deg, #ffc940 0%, #ff7f17 60%, #ff5500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 127, 23, 0.45));
}

/* === Hairline cyan -> naranja === */
.accent-line {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.6) 0%, rgba(255, 127, 23, 0.8) 100%);
  height: 1px;
  border: 0;
}

/* === Section label con dash cyan === */
.section-dash::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: #22d3ee;
  margin-right: 14px;
  vertical-align: middle;
}

/* === Bracket card (corner brackets en las 4 esquinas, cyan al 55%) === */
.bracket-card { position: relative; }
.bracket-card::before,
.bracket-card::after,
.bracket-card > .br-tr,
.bracket-card > .br-bl {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(34, 211, 238, 0.55);
  pointer-events: none;
}
.bracket-card::before {
  top: -1px; left: -1px;
  border-top: 1.5px solid;
  border-left: 1.5px solid;
}
.bracket-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 1.5px solid;
  border-right: 1.5px solid;
}
.bracket-card > .br-tr {
  top: -1px; right: -1px;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
}
.bracket-card > .br-bl {
  bottom: -1px; left: -1px;
  border-bottom: 1.5px solid;
  border-left: 1.5px solid;
}

/* === Boton CTA primario angular (esquinas cortadas) === */
.btn-angular {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

/* === Page indicator line (vertical, derecha) === */
.page-index-line {
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.3) 50%, transparent 100%);
}

/* === Divider entre secciones / vistas === */
.view-divider {
  background: linear-gradient(90deg, transparent 0%, rgba(34, 211, 238, 0.35) 50%, transparent 100%);
  height: 1px;
}

/* === Dialog backdrop === */
dialog::backdrop {
  background: rgb(0 0 0 / 0.7);
  backdrop-filter: blur(6px);
}

/* === Selection === */
::selection {
  background: rgba(34, 211, 238, 0.3);
  color: #fff;
}

/* === Inputs base (square corners) === */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="url"],
select,
textarea {
  font-family: 'Inter', system-ui, sans-serif;
  border-radius: 0;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.6) sepia(1) hue-rotate(160deg) saturate(3);
}

/* === Line clamp helpers === */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Textarea mono para edicion de brand.md/calendario.md === */
textarea.mono-edit {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre;
  overflow-wrap: normal;
  overflow: auto;
}
