/* ═══════════════════════════════════════
   FUENTES — Lineamiento MMA
   Roboto (cuerpo) + Roboto Slab (títulos)
═══════════════════════════════════════ */
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&family=Roboto+Slab:wght@300;400;700&display=swap");

/* ═══════════════════════════════════════
   DESIGN TOKENS — Paleta institucional MMA
═══════════════════════════════════════ */

:root {
  /* ==========================
     DESIGN TOKENS — CONSOLIDATED
     This block centralizes design tokens used across V3 and
     provides compatibility aliases to support components/styles
     originating from V1. Change tokens here to affect whole UI.
     ========================== */

  /* Institutional colors */
  --mma-azul-oscuro: #001c41;
  --mma-azul: #0f69b4;
  --mma-rojo: #e22c2c;

  /* Primary/brand */
  --primary: #b52000;
  --primary-dark: #8f1800;
  --primary-soft: #fff1ec;
  --accent: #d94820;

  /* Typography */
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Roboto Slab", Georgia, serif;

  /* Text tones */
  --ink: #333333; /* canonical text color (matches V1) */
  --ink-70: #333333;
  --ink-40: #9a9a9a;
  --ink-2: #4a5563; /* secondary text */
  --muted: #6a7685;

  /* Surfaces / backgrounds */
  --surface: #ffffff;
  --surface-alt: #fafbfc;
  --bg-light: #f5f6f7;
  --bg-mid: #e7ebed;
  --bg: #f3f5f7;

  /* Lines / borders */
  --line: #d8dfe6;
  --line-strong: #b8c2cd;

  /* Semantic */
  --success: #2fae7d;
  --success-bg: #e8f7f1;
  --warning: #7a4f00;
  --warning-bg: #fff6dc;
  --info: #0f69b4;
  --info-bg: #e6f0fb;
  --danger: #e22c2c;
  --danger-bg: #fdecea;

  /* Spacing */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;

  /* Radio */
  --r1: 3px;
  --r2: 6px;
  --r3: 8px;
  --r4: 12px;
  --r-pill: 999px;

  /* Shadows (single canonical definitions) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);

  /* Inputs */
  --input-h: 44px;
  --label-h: 22px;
  --hint-h: 18px;

  /* Layout */
  --max: 1240px;

  /* Compatibility aliases (helpful when mixing V1/V3 styles)
     Keep these to avoid missing-token issues when importing older CSS. */
  --border: var(--line);
  --border-dk: var(--line-strong);
  --mma-rojo: var(--danger);
  --azul: var(--mma-azul);
  --azul-hover: #0a4f8a;
  --rojo: var(--danger);
  --rojo-hover: #b71e1e;
  --rojo-light: #fdecea;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  background: linear-gradient(180deg, #f8fafb 0%, #f1f4f6 100%);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
ul {
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
}
:focus-visible {
  outline: 3px solid var(--info);
  outline-offset: 3px;
}

/* Titulos H1-H6 usan Roboto Slab */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.2;
}

.main-title {
  color: var(--primary);
  font-size: 30px;
  font-family: var(--font-heading);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus {
  top: 12px;
}
.container {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}
.page {
  display: none;
  min-height: 100vh;
  flex-direction: column;
}
.page.active {
  display: flex;
  animation: fade 0.22s ease;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar {
  background: #fff;
  border-bottom: 1px solid rgba(31, 41, 51, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}
.govbar {
  background: #202a35;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.govbar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.flag {
  width: 22px;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: none;
}
.flag span:first-child {
  background: #0055a5;
}
.flag span:last-child {
  background: #d52b1e;
}
.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  width: 18px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0055a5 0 50%, #d52b1e 50% 100%);
  flex: none;
}
.brand-copy strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.01em;
}
.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 11px 16px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  background: none;
}
.btn:hover {
  transform: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--line-strong);
  background: #fcfcfd;
}
.btn-ghost {
  color: var(--primary);
  background: var(--primary-soft);
}
.btn-ghost:hover {
  background: #ffe8e1;
}
.btn-claveunica {
  color: white;
  background: #0f69c4;
  border-radius: 0px;
  text-decoration: underline;
}
.btn-claveunica:hover {
  background: #07305a;
  border-radius: 0px;
  text-decoration: underline;
}
.btn-block {
  width: 100%;
}

/* ═══ TIPOGRAFIA ═══ */
.page-eyebrow {
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mma-rojo);
  margin-bottom: var(--s2);
}
.page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}
.page-subtitle {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  margin-top: var(--s2);
  line-height: 1.6;
}

p.page-subtitle {
  margin-bottom: 0 !important;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.section-label {
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mma-rojo);
  margin-bottom: var(--s2);
}
.body-sm {
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--ink-40);
  line-height: 1.55;
}

/* ═══ BADGES ═══ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 3px var(--s3);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  font-family: var(--font);
}
.badge-success {
  background: var(--success-bg);
  color: #145a2e;
}
.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.badge-info {
  background: var(--info-bg);
  color: var(--mma-azul);
}
.badge-neutral {
  background: var(--bg-mid);
  color: var(--ink);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Pill para llamados cerrados (detalle de llamado histórico) */
.detail-closed-pill {
  background: var(--bg-mid);
  color: var(--muted);
  margin-top: 10px;
}

/* Responsive: mobile tweaks */
@media (max-width: 767px) {
  .main-title {
    font-size: 24px !important;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-head > button {
    margin-top: 10px;
  }
}

.hero-full {
  width: 100%;
  background: linear-gradient(135deg, #1f2933 0%, #3b2b25 60%, #7b2306 100%);
  background-image: url(../img/slider.jpg);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.12),
      transparent 20%
    ),
    radial-gradient(
      circle at 15% 80%,
      rgba(255, 255, 255, 0.08),
      transparent 18%
    );
}
.hero-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 72px 0 64px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
}
h1 {
  font-size: clamp(32px, 3.8vw, 52px);
  letter-spacing: -0.04em;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
}
.hero-lead {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  max-width: 60ch;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.hero-panel,
.card,
.panel,
.notice,
.side-card,
.list-card,
.wizard,
.summary-card,
.help-card,
.table-card,
.login-box,
.sidebar,
.welcome-card,
.status-card,
.timeline-card,
.compare-card,
.info-card,
.mini-card,
.footer-card {
  background: var(--surface);
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.hero-panel {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}
.hero-panel h3 {
  color: #fff;
  margin-bottom: 12px;
}
.hero-panel p,
.hero-panel li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.5;
}
.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
}
.hero-stat strong {
  display: block;
  font-size: 18px;
  color: #fff;
}
.hero-stat span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.74);
}
.hero-visual {
  height: 360px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(0, 0, 0, 0.22)
  );
}
.hero-browser {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-steps {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r4);
  padding: var(--s6);
  backdrop-filter: blur(6px);
}
.hero-steps h3 {
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: var(--s5);
  font-family: var(--font);
}
.hero-step {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  padding: var(--s3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-step:last-child {
  border-bottom: none;
}
.hero-step-n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mma-rojo);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  font-family: var(--font);
}
.hero-step-body strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  font-family: var(--font);
}
.hero-step-body span {
  font-size:16px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  font-family: var(--font);
}

.browser-bar {
  height: 34px;
  background: #f3f5f7;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}
.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d0d7de;
}
.browser-body {
  padding: 16px;
}
.browser-banner {
  height: 110px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8edf3, #dce4ec);
  margin-bottom: 12px;
}
.browser-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.browser-mini-card {
  height: 74px;
  border-radius: 8px;
  background: #f8fafb;
  border: 1px solid var(--line);
}

.landing-section {
  padding: 52px 0;
  background: transparent;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head p {
  margin: 8px 0 0;
  max-width: 70ch;
  font-size: 13px;
}

.program-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: start;
}
.program-copy p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.program-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.program-stat strong {
  display: block;
  font-size: 24px;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.program-stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 4px;
}
.requirements-card {
  padding: 22px;
}
.requirements-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.requirements-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}
.check {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e6f2ea;
  color: var(--success);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.calls-wrap {
  display: grid;
  gap: 14px;
}
.call-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.call-media {
  min-height: 210px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35)),
    url("../img/temuco.webp") center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: #fff;
}
.call-media h3 {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.call-media strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.call-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.call-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.call-title {
  font-size: 18px;
  line-height: 1.35;
  max-width: 760px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8f5ee;
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}
.call-dates {
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.call-dates strong {
  margin-left: 8px;
  color: var(--ink);
}
.call-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-main {
  margin-top: auto;
  background: linear-gradient(180deg, #2b2623 0%, #24211f 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 20px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}
.footer-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-brand strong {
  display: block;
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}
.footer-brand p,
.footer-col a,
.footer-col p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}
.footer-col {
  text-align: end;
  display: grid;
  gap: 10px;
}
.footer-bottom {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-social {
  justify-content: end;
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
}

.breadcrumb {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  margin-bottom: 0px !important;
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb li {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: #a4afbb;
}
.page-shell {
  padding: 24px 0 36px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
  align-items: start;
}
.sticky {
  position: sticky;
  top: 104px;
}
.welcome-card,
.card,
.compare-card,
.info-card,
.status-card,
.timeline-card,
.table-card,
.summary-card,
.help-card,
.login-box,
.sidebar {
  padding: 18px;
}
.welcome-card h1 {
  font-size: 30px;
}
.lead {
  font-size: 14px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.kpi {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.kpi strong {
  display: block;
  font-size: 16px;
  margin-bottom: 3px;
}
.kpi span {
  font-size: 11px;
  color: var(--muted);
}
.clean-list {
  display: grid;
  gap: 10px;
}
.clean-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 12px;
}
.clean-list li strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.clean-list li span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ═══ STEPPER ═══ */
.stepper {
  display: flex;
  align-items: center;
  margin-bottom: var(--s8);
  margin-left: auto;
  margin-right: auto;
}
.step-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex: 1;
}
.step-item:last-child {
  flex: 0;
}
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--border-dk);
  background: var(--surface);
  color: var(--ink-40);
  transition: all 0.2s;
  font-family: var(--font);
}
.step-circle.done {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.step-circle.active {
  background: var(--mma-rojo);
  border-color: var(--mma-rojo);
  color: #fff;
}
.step-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-40);
  white-space: nowrap;
  font-family: var(--font);
}
.step-label.active {
  color: var(--mma-rojo);
}
.step-label.done {
  color: var(--success);
}
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 var(--s2);
}
.step-connector.done {
  background: var(--success);
}

/* ═══ CAMPOS FORM ═══ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s5);
}
.form-full {
  grid-column: 1/-1;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s6);
  margin-top: var(--s6);
  border-top: 1px solid var(--border);
}
.form-field {
  display: flex;
  flex-direction: column;
}
.form-label {
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  line-height: var(--label-h);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s2);
  min-height: var(--label-h);
  margin-bottom: 4px;
}
.form-required {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--mma-rojo);
}
.form-hint {
  font-size: 0.8125rem;
  color: var(--ink-40);
  line-height: var(--hint-h);
  min-height: var(--hint-h);
  margin-bottom: var(--s2);
  font-family: var(--font);
}
.form-hint:empty::before {
  content: "\00a0";
}
.form-hint-hidden {
  visibility: hidden;
  min-height: var(--hint-h);
  margin-bottom: var(--s2);
}

/* ═══ CALLOUT ═══ */
.callout {
  border-radius: var(--r3);
  padding: var(--s4) var(--s5);
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.55;
  font-family: var(--font);
}
.callout-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 900;
}
.callout-info {
  background: var(--info-bg);
  color: var(--mma-azul);
  border: 1px solid rgba(15, 105, 180, 0.2);
}
.callout-success {
  background: var(--success-bg);
  color: #145a2e;
  border: 1px solid rgba(47, 174, 125, 0.2);
}
.callout-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(122, 79, 0, 0.2);
}
.callout strong {
  font-weight: 700;
}

/* ═══ DETALLE LLAMADO ═══ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--s10);
  padding: var(--s10) 0;
}
.sticky-cta {
  position: sticky;
  top: calc(var(--s4) + 70px);
}
.summary-dl {
  display: flex;
  flex-direction: column;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  font-family: var(--font);
}

/* Mobile adjustments requested:
   - `.main-title` should be 24px on phones
   - `.section-head` should stack vertically so the button appears under the text
*/
@media (max-width: 767px) {
  .main-title {
    font-size: 24px;
  }

  .section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
  }

  /* Ensure the action button moves below the text and has some spacing */
  .section-head > button,
  .section-head .btn {
    margin-top: 0;
    align-self: flex-start;
  }
}
.summary-row:last-child {
  border-bottom: none;
}
.summary-dt {
  color: var(--ink-40);
}
.summary-dd {
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}

/* ═══ REQ LIST ═══ */
.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-top: var(--s4);
}
.req-item {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--ink);
  line-height: 1.55;
  font-family: var(--font);
}
.req-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success-bg);
  color: #145a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.6875rem;
  font-weight: 700;
}

/* ═══ CALEFACTOR SELECT ═══ */
.calf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
}
.calf-card {
  border: 1px solid var(--border-dk);
  border-radius: var(--r4);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface);
}
.calf-card:hover {
  border-color: var(--mma-azul);
  box-shadow: var(--shadow-md);
}
.calf-card.selected {
  border-color: var(--mma-rojo);
  border-width: 2px;
  box-shadow: 0 0 0 4px var(--rojo-light);
}
.calf-img {
  height: 140px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--ink-40);
}
.calf-body {
  padding: var(--s5);
}
.calf-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mma-rojo);
  margin-bottom: var(--s2);
  font-family: var(--font);
}
.calf-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s4);
}
.calf-specs {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.calf-spec {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-family: var(--font);
}
.calf-spec dt {
  color: var(--ink-40);
}
.calf-spec dd {
  color: var(--ink);
  font-weight: 600;
}
.calf-footer {
  padding: var(--s4) var(--s5);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

/* ═══ CARDS CALEFACTORES DISPONIBLES ═══ */
.calf-avail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  margin-top: var(--s5);
}
.calf-avail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  box-shadow: var(--shadow-sm);
}
.calf-avail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.calf-avail-header {
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.calf-avail-tag {
  display: inline-flex;
  padding: 3px var(--s3);
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--s2);
  font-family: var(--font);
}
.calf-avail-tag.gas {
  background: #fff3e0;
  color: #8b5e00;
}
.calf-avail-tag.aire {
  background: var(--info-bg);
  color: var(--mma-azul);
}
.calf-avail-name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.calf-avail-model {
  font-size: 0.8125rem;
  color: var(--ink-40);
  margin-top: 2px;
  font-family: var(--font);
}
.calf-avail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
}
.calf-avail-spec dt {
  font-size: 0.75rem;
  color: var(--ink-40);
  font-weight: 500;
  font-family: var(--font);
}
.calf-avail-spec dd {
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 700;
  margin-top: 2px;
  font-family: var(--font);
}

/* Login ClaveUnica */
.cu-page {
  background: #ececec;
  min-height: calc(100vh - 85px);
  padding: 50px 0 70px;
}
.cu-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.cu-card {
  background: #fff;
  border: 1px solid #555;
  padding: 0 44px 34px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.cu-topline {
  display: flex;
  height: 12px;
  width: 220px;
  margin: 0 0 28px 2px;
}
.cu-topline span:first-child {
  flex: 1;
  background: var(--gov-blue);
}
.cu-topline span:last-child {
  flex: 1.35;
  background: #ef4444;
}
.cu-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-top: 28px;
}
.cu-logo {
  font-size: 2rem;
  color: #245eb4;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cu-logo-mark {
  width: 28px;
  height: 28px;
  border: 3px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.cu-logo-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 3px solid currentColor;
  border-radius: 50%;
}
.cu-tools {
  display: flex;
  gap: 10px;
}
.cu-tool {
  width: 52px;
  height: 52px;
  border: 1px solid #444;
  background: #fff;
  color: #444;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.cu-title {
  text-align: center;
  margin: 28px 0 30px;
}
.cu-title h1 {
  font-size: 2.5rem;
  color: #666;
}
.cu-form {
  display: grid;
  gap: 18px;
}
.cu-group {
  position: relative;
}
.cu-group label {
  display: block;
  font-size: 1.15rem;
  color: #6c757d;
  margin-bottom: 6px;
}
.cu-input,
.cu-password-row input {
  width: 100%;
  height: 62px;
  border: 1px solid #6a6a6a;
  background: #dfe7f5;
  padding: 0 16px;
  font-size: 1.45rem;
}
.cu-password-row {
  display: grid;
  grid-template-columns: 1fr 64px;
}
.cu-password-row button {
  border: 0;
  background: #1469d3;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.cu-links {
  display: grid;
  gap: 12px;
  margin: 12px 0 8px;
}
.cu-links a {
  font-size: 1.1rem;
  text-decoration: underline;
}
.cu-submit {
  width: 100%;
  height: 78px;
  border: 0;
  background: #1469d3;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-top: 16px;
}
.cu-help {
  text-align: center;
  margin-top: 28px;
}
.cu-help a {
  font-size: 1.05rem;
  color: #666;
  text-decoration: underline;
}

/* LLAMADOS */
.call-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.call-visual {
  background:
    linear-gradient(rgba(0, 28, 65, 0.24), rgba(0, 28, 65, 0.45)),
    url("../img/temuco.webp") center/cover no-repeat;
  min-height: 260px;
  color: #fff;
  display: flex;
  align-items: end;
  padding: 24px;
}
.call-visual span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}
.call-visual strong {
  display: block;
  font-family: "Roboto Slab", serif;
  font-size: 2rem;
  margin-top: 4px;
}
.call-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.call-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-success {
  background: #eaf7ef;
  color: var(--success);
}
.badge-info {
  background: #ebf5fb;
  color: var(--gov-blue);
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.meta-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.meta-list strong {
  color: var(--ink);
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
}
.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.region-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.region-card strong {
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
}
.region-card .tag {
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 6px 10px;
  align-self: flex-start;
  background: #eef4f9;
  color: var(--gov-blue);
  font-weight: 700;
}
.region-card .tag.closed {
  background: #f5f5f5;
  color: #64748b;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
}
th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  font-size: 0.92rem;
}
th {
  background: #f8fafc;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  color: var(--gov-navy);
}
tr:last-child td {
  border-bottom: 0;
}

.heater-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.heater-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.heater-media {
  height: 120px;
  background: linear-gradient(135deg, #eef2f6, #dce4ec);
  display: grid;
  place-items: center;
  font-size: 34px;
  color: #748292;
}
.heater-head {
  padding: 14px 14px 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.heater-head h3 {
  font-size: 14px;
  margin-bottom: 5px;
}
.heater-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.heater-badge {
  white-space: nowrap;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
}
.heater-body {
  padding: 0 14px 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.spec {
  background: #f8fafb;
  border: 1px solid #eef2f5;
  border-radius: 8px;
  padding: 10px;
}
.spec small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 5px;
}
.spec strong {
  font-size: 12px;
  line-height: 1.35;
}

.auth-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  padding: 20px 0 36px;
}
.sidebar {
  padding: 12px;
  position: sticky;
  top: 102px;
  height: fit-content;
}
.side-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 10px;
}
.side-nav {
  display: grid;
  gap: 6px;
}
.side-link {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-weight: 600;
  padding: 11px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 13px;
}
.side-link:hover {
  background: var(--surface-alt);
}
.side-link.active {
  background: var(--primary-soft);
  color: var(--primary);
}
.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.status-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.status-step-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  text-align: center;
}
.status-step-card strong {
  display: block;
  font-size: 12px;
  margin-top: 7px;
  line-height: 1.35;
}
.status-step-card span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.status-bubble {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
  color: var(--muted);
  font-size: 12px;
}
.status-step-card.done .status-bubble {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.status-step-card.active .status-bubble {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}
.timeline-list {
  display: grid;
  gap: 10px;
}
.timeline-item {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: start;
}
.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  margin-top: 5px;
}
.timeline-item small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 11px;
}
.table-card {
  padding: 0;
  overflow: hidden;
}
.table-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: #fafbfc;
}
td {
  color: var(--ink-2);
}
.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mini-btn {
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.mini-btn.danger {
  color: var(--danger);
  border-color: #f4c8bf;
  background: #fff8f6;
}
.option-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.option-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s ease;
  position: relative;
  padding: 0;
}
.option-card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: #d8b7af;
}
.option-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(181, 32, 0, 0.08);
}
.option-media {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #eceff3, #dce3ea);
  display: grid;
  place-items: center;
  font-size: 34px;
  color: #6e7b89;
}
.option-card strong {
  display: block;
  padding: 10px 12px 14px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
}
.option-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: none;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
}
.option-card.selected .option-check {
  display: grid;
}
.wizard {
  overflow: hidden;
}
.wizard-top {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.wizard-top p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.progress-step {
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-alt);
  border: 1px solid #edf1f4;
  min-height: 68px;
}
.progress-step.active {
  background: var(--primary-soft);
  border-color: rgba(181, 32, 0, 0.18);
}
.progress-step.done {
  background: #f4fbf6;
  border-color: #d2ecdd;
}
.progress-step small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.progress-step strong {
  font-size: 12px;
  display: block;
  line-height: 1.35;
}
.wizard-body {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
}
.form-side {
  padding: 20px;
  background: #fff;
}
.context-side {
  padding: 20px;
  background: #f9fbfc;
  border-left: 1px solid var(--line);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
.field.full {
  grid-column: 1/-1;
}
label {
  font-size: 12px;
  font-weight: 700;
  color: #24303b;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}
input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
input::placeholder {
  color: #93a1af;
}
.assist {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 14px;
  background: var(--info-soft);
  color: var(--info);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-2);
}
.summary-list {
  display: grid;
  gap: 10px;
}
.summary-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}
.summary-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.summary-item span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.login-wrap {
  padding: 28px 0 40px;
}
.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.login-cover {
  border-radius: 8px;
  padding: 28px;
  background: linear-gradient(145deg, #1f2933 0%, #3b2b25 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}
.login-cover::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.login-cover p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.cover-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}
.cover-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cover-item b {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}
.cover-item span {
  font-size: 12px;
}
.login-box {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-box h1 {
  font-size: 30px;
  letter-spacing: -0.04em;
}
.login-box .muted {
  margin-top: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}
.stack {
  display: grid;
  gap: 12px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.login-footer-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .hero-inner,
  .program-grid,
  .detail-grid,
  .dash-grid,
  .login-grid,
  .auth-layout,
  .wizard-body,
  .call-card {
    grid-template-columns: 1fr;
  }
  .hero-stat-grid,
  .kpi-grid,
  .option-grid,
  .status-flow,
  .heater-grid,
  .progress {
    grid-template-columns: 1fr 1fr;
  }
  .sticky,
  .sidebar {
    position: static;
  }
  .context-side {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .call-media {
    min-height: 180px;
  }
  .region-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .topbar-inner {
    min-height: 72px;
  }
  .nav {
    width: 100%;
    justify-content: stretch;
  }
  .nav .btn {
    flex: 1;
  }
  .hero-inner {
    padding: 52px 0 44px;
  }
  .hero-stat-grid,
  .program-grid,
  .kpi-grid,
  .option-grid,
  .status-flow,
  .heater-grid,
  .progress,
  .field-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    display: grid;
  }
  h1 {
    font-size: 34px;
  }
  .call-body,
  .requirements-card,
  .welcome-card,
  .card,
  .compare-card,
  .info-card,
  .status-card,
  .timeline-card,
  .login-box,
  .sidebar,
  .wizard-top,
  .form-side,
  .context-side,
  .table-head,
  .hero-panel {
    padding: 16px;
  }
  .call-media strong {
    font-size: 24px;
  }
  .region-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .hero-content,
  .program-grid,
  .llamado-card,
  .detail-grid,
  .dash-grid,
  .calf-grid,
  .calf-avail-grid {
    grid-template-columns: 1fr;
  }
  .hero-steps {
    display: none;
  }
  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
  .tipo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s4);
  }
  .footer-contact {
    text-align: left;
  }
  .footer-social {
    justify-content: flex-end;
  }
}

/* Forzar logo footer 80px en móviles — selector más específico para evitar overrides */
@media (max-width: 480px) {
  footer.footer-main .brand-logo-footer {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

/* Popover para documentos en llamados históricos */
.doc-popover {
  position: absolute;
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 6px 18px rgba(15,23,42,0.12);
  border-radius: 8px;
  padding: 10px;
  z-index: 1200;
  min-width: 220px;
}
.doc-popover a {
  display: block;
  color: var(--primary);
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
}
.doc-popover a:hover { background: rgba(11, 89, 161, 0.06); }
.doc-popover .popover-title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 13px;
}
.doc-popover .popover-empty {
  color: #64748b;
  font-size: 13px;
}
/* === Ajustes finales Konrix + fixes registro/login === */
.cu-page {
  min-height: calc(100vh - 74px);
  padding: 28px 16px;
  background: #f5f7fb;
  display: grid;
  place-items: center;
}
.cu-wrap {
  width: min(100%, 420px);
  margin: auto;
}
.cu-card {
  transform: scale(0.86);
  transform-origin: center;
  max-width: 420px;
  margin: auto;
}
.cu-title h1 {
  font-size: 1.28rem !important;
}
.cu-toolbar {
  padding: 16px 18px !important;
}
.cu-form {
  gap: 12px !important;
  padding: 0 24px 24px !important;
}
.cu-input,
.cu-password-row input {
  height: 42px !important;
}
.cu-submit {
  height: 42px !important;
}
.cu-links {
  font-size: 0.82rem !important;
}
.cu-help {
  margin-top: 4px !important;
}

#page-dashboard {
  background: #f5f5f5;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #64748b;
}
#page-dashboard .footer-main {
  display: none;
}
.konrix-shell {
  min-height: 100vh;
  display: flex;
  background: #f5f5f5;
}
.konrix-sidebar {
  width: 250px;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  transition:
    width 0.22s ease,
    transform 0.22s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.konrix-brand {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  border-bottom: 2px solid #1e85ff;
  text-decoration: none;
}
.konrix-cube {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #1e85ff, #0c4fa2);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 15px rgba(30, 133, 255, 0.22);
}
.konrix-cube span {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: #48b4ff;
  transform: rotate(45deg);
}
.konrix-brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f172a;
}
.konrix-menu-label {
  padding: 20px 30px 9px;
  color: #94a3b8;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.konrix-nav {
  padding: 0 15px;
}
.konrix-nav .side-link {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #6c757d;
  font-size: 16px;
  font-weight: 500;
  padding: 0 15px;
  margin: 2px 0;
  text-align: left;
  width: 100%;
  transition: 0.18s;
}
.konrix-nav .side-link:hover,
.konrix-nav .side-link.active {
  background: rgba(30, 133, 255, 0.1);
  color: #1e85ff;
}
.side-icon {
  width: 20px;
  text-align: center;
  font-size: 18px;
  line-height: 1;
}
.konrix-main {
  flex: 1;
  margin-left: 250px;
  min-width: 0;
  transition: margin-left 0.22s ease;
}
.konrix-topbar {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.konrix-topbar-left,
.konrix-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.konrix-icon-btn {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 22px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.konrix-icon-btn:hover {
  background: rgba(30, 133, 255, 0.1);
  color: #1e85ff;
}
.konrix-search {
  font-size: 30px;
}
.konrix-flag {
  width: 25px;
  height: 18px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  background: linear-gradient(
    #b22234 0 8%,
    #fff 8% 16%,
    #b22234 16% 24%,
    #fff 24% 32%,
    #b22234 32% 40%,
    #fff 40% 48%,
    #b22234 48% 56%,
    #fff 56% 64%,
    #b22234 64% 72%,
    #fff 72% 80%,
    #b22234 80% 88%,
    #fff 88% 100%
  );
  position: relative;
}
.konrix-flag:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 11px;
  height: 10px;
  background: #3c3b6e;
}
.konrix-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid #eaf2ff;
  background: linear-gradient(135deg, #bfdbfe, #dbeafe);
  font-weight: 800;
  color: #1e40af;
  position: relative;
}
.konrix-avatar:before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3073f1;
  left: -5px;
  top: 4px;
}
.konrix-logout {
  padding: 9px 12px;
}
.konrix-content {
  padding: 26px 28px 34px;
  background: #f5f5f5;
}
.konrix-breadcrumb {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  font-size: 14px;
  color: #64748b;
  margin: 0 0 20px;
}
.konrix-breadcrumb strong {
  color: #334155;
}
.konrix-content-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.dashboard-head h1,
#page-dashboard h1 {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  font-family: Inter, system-ui !important;
  letter-spacing: 0 !important;
}
.lead {
  color: #94a3b8;
  font-size: 14px;
}
.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
.tag-info {
  background: rgba(30, 133, 255, 0.1);
  color: #1e85ff;
}
#page-dashboard .card,
#page-dashboard .status-card,
#page-dashboard .timeline-card,
#page-dashboard .info-card,
#page-dashboard .table-card,
#page-dashboard .wizard,
#page-dashboard .summary-card,
#page-dashboard .visual-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 24px;
}
#page-dashboard .btn-primary {
  background: #3073f1;
  color: #fff;
}
#page-dashboard .btn-primary:hover {
  background: #1e63d9;
}
#page-dashboard .btn-secondary {
  border-color: #e5e7eb;
  color: #475569;
  background: #fff;
}
.status-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.status-step-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  background: #fff;
}
.status-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  background: #e5e7eb;
  color: #64748b;
  font-weight: 800;
}
.status-step-card.done .status-bubble {
  background: #bbf7d0;
  color: #16a34a;
}
.status-step-card.active .status-bubble {
  background: #dbeafe;
  color: #3073f1;
}
.status-step-card strong {
  display: block;
  color: #334155;
}
.status-step-card span {
  font-size: 12px;
  color: #94a3b8;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
}
.timeline-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
}
.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #16a34a;
  margin-top: 6px;
  flex: none;
}
.timeline-item small {
  display: block;
  color: #94a3b8;
  margin-top: 4px;
}
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.summary-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}
.summary-item strong {
  display: block;
  color: #64748b;
  font-size: 13px;
}
.summary-item span {
  display: block;
  color: #0f172a;
  font-weight: 600;
  margin-top: 4px;
}
.option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.option-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  min-height: 120px;
  display: grid;
  gap: 8px;
  place-items: center;
  color: #334155;
}
.option-card.selected {
  border-color: #3073f1;
  box-shadow: 0 0 0 4px rgba(48, 115, 241, 0.12);
}
.option-check {
  display: none;
}
.option-media {
  font-size: 34px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  display: block;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 12px;
  background: #fff;
  color: #334155;
}
.hint {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 5px;
}
.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.progress-step {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}
.progress-step.active {
  border-color: #3073f1;
  background: #eff6ff;
}
.progress-step.done {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.progress-step small {
  display: block;
  color: #94a3b8;
}
.progress-step strong {
  display: block;
  color: #334155;
}
.wizard-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  margin-top: 16px;
}
.assist {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.chip {
  font-size: 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  padding: 6px 10px;
}
.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mini-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  padding: 7px 10px;
  color: #475569;
}
.mini-btn.danger {
  border-color: #fecaca;
  color: #dc2626;
}
.konrix-collapsed .konrix-sidebar {
  width: 80px;
}
.konrix-collapsed .konrix-brand-text,
.konrix-collapsed .konrix-menu-label,
.konrix-collapsed .side-link span:not(.side-icon) {
  display: none;
}
.konrix-collapsed .konrix-brand {
  justify-content: center;
  padding: 0;
}
.konrix-collapsed .konrix-main {
  margin-left: 80px;
}
.konrix-collapsed .konrix-nav .side-link {
  justify-content: center;
  padding: 0;
}
@media (max-width: 1024px) {
  .konrix-sidebar {
    transform: translateX(-100%);
  }
  .konrix-main {
    margin-left: 0;
  }
  .konrix-shell.menu-open .konrix-sidebar {
    transform: translateX(0);
  }
  .konrix-shell.menu-open:before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 70;
  }
  .dash-grid,
  .wizard-body {
    grid-template-columns: 1fr;
  }
  .status-flow {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .cu-card {
    transform: scale(0.78);
  }
  .konrix-topbar {
    padding: 0 14px;
  }
  .konrix-topbar-right {
    gap: 8px;
  }
  .hide-sm,
  .konrix-logout {
    display: none;
  }
  .konrix-content {
    padding: 24px 16px;
  }
  .konrix-breadcrumb {
    justify-content: flex-start;
    overflow: auto;
  }
  .dashboard-head {
    display: block;
  }
  .dashboard-head .hero-actions {
    margin-top: 14px !important;
  }
  .status-flow,
  .split,
  .option-grid,
  .field-grid,
  .progress {
    grid-template-columns: 1fr;
  }
  .table-wrap {
    overflow: auto;
  }
  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr !important;
  }
  .form-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .form-actions .btn {
    width: 100%;
  }
}

/* Ajustes solicitados: identidad MMA y footer único */
.brand-logo {
  width: 120px;
  min-width: 120px;
  height: auto;
  object-fit: contain;
}
.brand-logo-footer {
  width: 130px;
  min-width: 130px;
  height: auto;
  object-fit: contain;
}
.konrix-brand {
  height: 86px;
  padding: 10px 20px;
  justify-content: center;
  align-items: center;
}
.konrix-brand-logo {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  height: auto;
  object-fit: contain;
  display: block;
}
.konrix-collapsed .konrix-brand {
  height: 70px;
  padding: 8px;
  justify-content: center;
}
.konrix-collapsed .konrix-brand-logo {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
}
@media (max-width: 720px) {
  .brand-logo {
    width: 100px;
    min-width: 100px;
  }
  .konrix-brand-logo {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
  }
}

/* ═══════════════════════════════════════
   LOGIN CLAVEÚNICA — CSS oficial adaptado y aislado
═══════════════════════════════════════ */
@import url("https://fonts.googleapis.com/css?family=Roboto+Slab:300,400,700|Roboto:300,400,700&display=swap");
.claveunica-page {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem 16px 2rem;
}

.claveunica-login {
  --primary-color: #0f69b4;
  --secondary-color: #eb3c46;
  --background-color: #fff;
  --text-color: #575757;
  --error-message: #575757;
  --border-color: #264b7f;
  --success-color: #007d57;
  --error-color: #e22c2c;
  --warning-color: #f56b0f;
  --link-color: #0f69c4;
  --dark-blue-color: #092039;
  --background: #000;
  --gob-response-error-bg: #e22c2c;
  --gob-response-success-bg: #04a398;
  --gob-response-warning-bg: #f87800;
  --img-aplus-bg: #fff;
  --img-contraste-bg: #fff;
  --img-amin-bg: #fff;
  --border-fr-grey: #373737;
  --group-label: #4d4d4d;
  --gob-btn-primary: #0062cc;
  --gob-btn-border: #005cbf;
  --gob-message-response: #00ada2;
  --gob-message-response-div: #001c41;
  --btn-toggle-password-bg: #0362cc;
  --banner-login: #dff4ff;
  --paragraph-color: #575757;
  --header-text-color: #575757;
  --list-text-color: #575757;
  width: 100%;
  font-family: "Roboto", Arial, sans-serif;
  color: var(--text-color);
}
.claveunica-login .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.claveunica-login .main-body {
  width: min(100%, 500px);
  margin: 3% auto 0;
  min-height: auto;
}
.claveunica-login .cu-login-card {
  background: #fff;
  position: relative;
}
.claveunica-login .border-fr-grey {
  border: 1px solid var(--border-fr-grey);
  padding: 0;
}
.claveunica-login .header-form {
  position: relative;
  margin-bottom: 0;
  padding: 0 1.5rem;
  min-height: 88px;
}
.claveunica-login .headerloginCU .franja {
  width: 131px;
  height: 16px;
}
.claveunica-login .headerloginCU .franja .franjaazul,
.claveunica-login .franja .franjaazul {
  background-color: var(--primary-color);
  display: block;
  float: left;
  width: 37%;
}
.claveunica-login .headerloginCU .franja .franjaroja,
.claveunica-login .franja .franjaroja {
  background-color: var(--secondary-color);
  display: block;
  float: left;
  width: 63%;
}
.claveunica-login .headerloginCU .franja .franjaazul,
.claveunica-login .headerloginCU .franja .franjaroja {
  height: 16px;
}
.claveunica-login .headerloginCU h3 {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 1.44rem;
  font-weight: 700;
  line-height: 28px;
  color: var(--text-color);
  margin-top: 9px;
  width: 134px;
}
.claveunica-login > .main-body > .cu-login-card > .franja {
  width: 168px;
  height: 8px;
  margin-left: 0.6rem;
  clear: both;
}
.claveunica-login > .main-body > .cu-login-card > .franja .franjaazul,
.claveunica-login > .main-body > .cu-login-card > .franja .franjaroja {
  height: 8px;
}
.claveunica-login .cu-accessibility {
  position: absolute;
  right: 1.3rem;
  top: 21px;
  display: flex;
  gap: 8px;
}
.claveunica-login .img-aplus,
.claveunica-login .img-contraste,
.claveunica-login .img-amin {
  width: 38px;
  height: 38px;
  cursor: pointer;
  background: #fff;
  border: 0;
  color: #575757;
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}
.claveunica-login .header-form-title {
  text-align: center;
  margin: 1.5rem 0;
}
.claveunica-login .header-form-title h2 {
  font-family: "Roboto Slab", Georgia, serif;
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.95rem;
  margin: 0;
  line-height: 1.2;
}
.claveunica-login .header-form-title p {
  color: var(--text-color);
  font-size: 1.25rem;
  margin: 0;
}
.claveunica-login .goblogin {
  padding: 0.5rem 2rem 1rem;
  min-height: auto;
}
.claveunica-login fieldset {
  border: 0;
  color: var(--border-color);
  text-align: center;
  margin: 0;
  padding: 0;
}
.claveunica-login .group-label {
  position: relative;
  margin-bottom: 0.5rem;
  min-height: 80px;
  text-align: left;
}
.claveunica-login input[type="text"],
.claveunica-login input[type="password"],
.claveunica-login input[type="email"],
.claveunica-login select,
.claveunica-login .form-control {
  height: auto !important;
  min-height: 48px !important;
  border: 1px solid var(--border-fr-grey);
  border-radius: 0;
  font-size: 1.125rem !important;
  line-height: 21px !important;
  box-shadow: none;
  background-color: var(--background-color);
  width: 100%;
  padding: 0.5rem 0.75rem;
  color: #495057;
  font-family: "Roboto", Arial, sans-serif;
}
.claveunica-login .group-label label {
  color: var(--group-label);
  font-size: 1.125rem;
  font-weight: 400;
  position: absolute;
  background-color: var(--background-color);
  pointer-events: none;
  left: 8px;
  top: 10px;
  transition: 0.2s ease all;
  padding: 0 4px;
  z-index: 1;
}
.claveunica-login .group-label input:focus ~ label,
.claveunica-login .group-label input:valid ~ label,
.claveunica-login .group-label .input-group input:focus ~ label,
.claveunica-login .group-label .input-group input:valid ~ label {
  color: var(--border-color);
  top: -12px !important;
  font-size: 0.8rem !important;
}
.claveunica-login .group-label input:focus,
.claveunica-login .group-label .input-group input:focus {
  border: 1px solid var(--link-color) !important;
  box-shadow: none;
  outline: 0;
}
.claveunica-login .form-control:focus {
  color: #495057;
  background: #fff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem #ffbe5c !important;
}
.claveunica-login a:not([aria-disabled="true"]):focus,
.claveunica-login a:not([aria-disabled="true"]):hover,
.claveunica-login button:not([disabled]):focus,
.claveunica-login button:not([disabled]):hover,
.claveunica-login
  .gob-btn-primary:not([disabled]):not([aria-disabled="true"]):focus,
.claveunica-login
  .gob-btn-primary:not([disabled]):not([aria-disabled="true"]):hover,
.claveunica-login
  #login-submit:not([disabled]):not([aria-disabled="true"]):focus,
.claveunica-login
  #login-submit:not([disabled]):not([aria-disabled="true"]):hover {
  outline: 4px solid #ffbe5c !important;
}
.claveunica-login .group-label .gob-cancel,
.claveunica-login .group-label .gob--lbl-error,
.claveunica-login .group-label .gob-check {
  display: none;
}
.claveunica-login .group-label span {
  position: absolute;
  font-size: 0.8rem;
}
.claveunica-login .group-label i {
  position: absolute;
  right: 10px;
  top: 10px;
}
.claveunica-login .input-group {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  z-index: 2;
}
.claveunica-login .input-group .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  margin-bottom: 0;
  border-right: none;
}
.claveunica-login .input-group-append {
  display: flex;
  margin-left: -1px;
}
.claveunica-login .btn-toggle-password {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 48px;
  height: 48px;
  background-color: var(--btn-toggle-password-bg);
  border: 1px solid var(--btn-toggle-password-bg);
  color: #fff;
  cursor: pointer;
  position: relative;
  z-index: 3;
  border-radius: 0;
}
.claveunica-login .btn-toggle-password span {
  font-size: 20px;
  line-height: 1;
  filter: grayscale(1) brightness(0) invert(1);
}
.claveunica-login .textUnderInputs {
  text-align: center;
  margin-top: 0.25rem;
}
.claveunica-login a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.claveunica-login .form-buttom {
  text-align: center;
  padding: 0.5rem 0 1rem;
}
.claveunica-login .gob-btn-primary {
  color: var(--background-color);
  background-color: var(--gob-btn-primary);
  border: 1px solid var(--gob-btn-border);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1.25rem;
  text-decoration: underline;
  padding: 0.8rem 5.5rem;
  min-height: 48px;
  cursor: pointer;
  border-radius: 0;
}
.claveunica-login .row-login-banner {
  margin-right: -24px;
  margin-left: -24px;
}
.claveunica-login .login-banner {
  background-color: var(--banner-login);
  padding: 12px 16px;
}
.claveunica-login .login-banner p {
  color: var(--text-color);
  font-size: 0.9rem;
  margin: 0;
  text-align: left;
}
.claveunica-login .foofr {
  padding: 0.5rem 0 1.5rem;
  text-align: center;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.claveunica-login .foofr a {
  text-decoration: underline !important;
  text-decoration-color: var(--text-color);
  color: var(--text-color);
  font-size: 0.95rem;
}
.claveunica-login p,
.claveunica-login h5,
.claveunica-login li {
  color: var(--text-color);
}
@media (min-width: 1440px) {
  .claveunica-login .main-body {
    margin: 3% auto 0;
    padding-top: 2rem;
  }
  .claveunica-login .goblogin {
    padding: 0.5rem 2rem;
  }
}
@media (min-width: 600px) and (max-width: 1376px) {
  .claveunica-login .main-body {
    margin: 3% auto 0;
  }
  .claveunica-login .goblogin {
    padding: 0.5rem 2rem;
  }
  .claveunica-login .header-form {
    margin-bottom: 0;
    padding: 0 1.5rem;
  }
}
@media (max-width: 480px) {
  .claveunica-page {
    padding: 0;
    background: #fff;
  }
  .claveunica-login .main-body {
    width: 100%;
    margin: 0 auto;
  }
  .claveunica-login .border-fr-grey {
    border: none;
  }
  .claveunica-login .header-form {
    margin-bottom: 0.5rem;
    padding: 0 1rem;
  }
  .claveunica-login .header-form-title {
    margin-top: 0;
  }
  .claveunica-login > .main-body > .cu-login-card > .franja {
    margin-left: 0;
  }
  .claveunica-login .cu-accessibility {
    right: 1rem;
    top: 3%;
    gap: 4px;
  }
  .claveunica-login .goblogin {
    padding: 1rem;
    min-height: calc(100vh - 255px);
  }
  .claveunica-login .gob-btn-primary {
    width: 100%;
    padding: 0.8rem 1rem;
  }
  .claveunica-login .form-buttom {
    text-align: center;
  }
  .claveunica-login .foofr {
    padding: 0.5rem 2rem 0 0;
    display: block;
    text-align: right;
  }
  .claveunica-login .foofr a:first-child {
    display: block;
    padding-bottom: 1rem;
  }
  .claveunica-login .header-form-title h2 {
    font-size: 1.55rem;
  }
  .claveunica-login .header-form-title p {
    font-size: 1rem;
  }
  .claveunica-login .row-login-banner {
    margin-left: -16px;
    margin-right: -16px;
  }
  /* Ajustes móviles adicionales: logo footer y tamaño de texto */
  .brand-logo-footer {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .footer-brand p,
  .footer-col p {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
}
.claveunica-logo {
  max-width: 150px;
}

/* ═══ STATUS FLOW → STEPPER LINEAL ═══ */
.status-card .status-flow {
  display: flex;
  align-items: flex-start;
  padding: var(--s6) var(--s8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  overflow-x: auto;
  gap: 0;
}

.status-card .status-step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  flex: 1;
  min-width: 120px;
  position: relative;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.status-card .status-step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--border);
}

.status-card .status-step-card.done:not(:last-child)::after {
  background: var(--success);
}

.status-card .status-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--ink-40);
  font-size: 0.875rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.status-card .status-step-card.done .status-bubble {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.status-card .status-step-card.active .status-bubble {
  background: var(--mma-rojo);
  border-color: var(--mma-rojo);
  color: #fff;
  box-shadow: 0 0 0 4px var(--rojo-light);
}

.status-card .status-step-card strong {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-40);
  text-align: center;
  line-height: 1.25;
}

.status-card .status-step-card span {
  display: none;
}

.status-card .status-step-card.done strong {
  color: var(--success);
}

.status-card .status-step-card.active strong {
  color: var(--mma-rojo);
}

@media (max-width: 768px) {
  .status-card .status-flow {
    padding: var(--s4);
  }

  .status-card .status-step-card {
    min-width: 96px;
  }
}

/* ═══ OVERRIDE PROGRESS STEPPER — elimina cards/grid ═══ */
.progress {
  display: flex !important;
  grid-template-columns: unset !important;
  align-items: center;
  padding: var(--s6) var(--s8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  overflow-x: auto;
  gap: 0 !important;
  margin-top: 16px;
  margin-bottom: var(--s8);
}

.progress-step,
.progress-step.active,
.progress-step.done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 130px;
  position: relative;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.progress-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--border);
}

.progress-step.done:not(:last-child)::after {
  background: var(--success);
}

.progress-step::before {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--ink-40);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.progress-step:nth-child(1)::before {
  content: "1";
}
.progress-step:nth-child(2)::before {
  content: "2";
}
.progress-step:nth-child(3)::before {
  content: "3";
}
.progress-step:nth-child(4)::before {
  content: "4";
}

.progress-step.done::before {
  content: "✓";
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.progress-step.active::before {
  background: var(--mma-rojo);
  border-color: var(--mma-rojo);
  color: #fff;
  box-shadow: 0 0 0 4px var(--rojo-light);
}

.progress-step small {
  display: none !important;
}

.progress-step strong,
.progress-step.active strong,
.progress-step.done strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  margin-top: 8px;
  color: var(--ink-40);
}

.progress-step.done strong {
  color: var(--success);
}

.progress-step.active strong {
  color: var(--mma-rojo);
}

/* ═══════════════════════════════════════
   AJUSTES V5.1 — Observaciones cliente
   Compliance institucional + mejoras PMG
═══════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body {
  font-size: 16px;
  line-height: 1.55;
}
.brand {
  gap: 14px;
}
.brand-logo {
  width: 130px !important;
  min-width: 130px !important;
  max-width: 130px !important;
}
.brand-copy strong {
  font-size: 16px;
}
.brand-copy span {
  font-size: 14px;
  color: var(--muted);
}
.btn {
  font-size: 16px;
  min-height: 44px;
}
.body-sm,
.section-head p,
.program-copy p,
.requirements-list li,
.call-dates,
.footer-brand p,
.footer-col a,
.footer-col p,
.lead {
  font-size: 16px;
  line-height: 1.65;
}
.badge,
.tag,
.status-pill {
  font-size: 13px;
}
label {
  font-size: 15px !important;
}
.hint {
  font-size: 14px !important;
  line-height: 1.5;
}
input,
select {
  font-size: 16px !important;
  min-height: 46px;
}
.mini-btn {
  font-size: 14px;
  min-height: 40px;
  padding: 9px 12px;
}
.table-actions {
  gap: 10px;
}
th,
td {
  font-size: 16px;
}
th {
  font-size: 12px;
}
.footer-title {
  font-size: 14px;
}
.footer-main {
  background: #222;
  color: rgba(255, 255, 255, 0.75);
}
.footer-grid {
  grid-template-columns: 2fr 1fr;
}
.brand-logo-footer {
  width: 130px !important;
  min-width: 130px !important;
  max-width: 130px !important;
}
.pmg-followup {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.pmg-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--mma-azul);
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.pmg-card h2 {
  font-size: 22px;
  margin: 8px 0 6px;
}
.pmg-card p {
  font-size: 16px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.6;
}
.pmg-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dashboard-pmg {
  margin-bottom: 22px;
  border-left-color: #3073f1;
}
.dashboard-pmg h2 {
  color: #0f172a;
  font-family: Inter, system-ui !important;
}
.channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.channel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.channel-card.recommended {
  border-top: 4px solid var(--mma-azul);
}
.channel-card h3 {
  font-size: 20px;
  margin: 8px 0 10px;
}
.channel-card p,
.simple-list li {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.65;
}
.channel-kicker {
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mma-azul);
}
.simple-list {
  margin: 12px 0 0 18px;
  display: grid;
  gap: 6px;
}
.filters-bar {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.filters-bar input,
.filters-bar select {
  margin: 0;
}
.docs-section,
.where-section {
  margin-bottom: var(--s8);
  margin-top: var(--s8);
}
.docs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
.docs-accordion-list {
  width: 100%;
}
.doc-accordion {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.doc-accordion summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  cursor: pointer;
  color: var(--ink);
}
.doc-accordion summary::-webkit-details-marker {
  display: none;
}
.doc-accordion:hover {
  border-color: var(--mma-azul);
  box-shadow: var(--shadow-sm);
}
.doc-accordion-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mma-azul);
  font-size: 24px;
}
.public-index-root .fa-regular {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 1;
  text-rendering: auto;
}
.public-index-root .fa-file-lines::before {
  content: "\f15c";
}
.doc-accordion-copy {
  display: grid;
  gap: 6px;
}
.doc-accordion-copy strong {
  font-size: 16px;
  color: var(--ink);
}
.doc-accordion-copy span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.doc-accordion-chevron {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 20px;
  transition: transform 0.2s ease;
}
.doc-accordion[open] .doc-accordion-chevron {
  transform: rotate(180deg);
}
.doc-file-list {
  border-top: 1px solid var(--line);
  padding: 8px 18px 16px 68px;
  display: grid;
  gap: 8px;
}
.doc-file-list a {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: var(--mma-azul);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.doc-file-list a:hover {
  text-decoration: underline;
}
.callout-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(122, 79, 0, 0.25);
  margin: 5px 0px;
}
@media (max-width: 900px) {
  .channel-grid,
  .docs-grid,
  .filters-bar {
    grid-template-columns: 1fr;
  }
  .pmg-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .pmg-actions,
  .pmg-actions .btn {
    width: 100%;
  }
  .brand-copy {
    display: none;
  }
  .footer-grid {
    text-align: right;
    grid-template-columns: 1fr 2fr;

  }
  .brand-logo {
    width: 120px !important;
    min-width: 120px !important;
  }
  .brand-logo-footer {
    width: 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;
  }
}

/* Header institucional MMA — estructura 2 filas */
.topbar.mma-header {
  background: #fff;
  border-bottom: 1px solid #d9dee7;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  backdrop-filter: none;
}
.mma-header-inner {
  display: grid;
  grid-template-rows: auto auto;
  padding-bottom: 14px;
}
.mma-header-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  column-gap: 48px;
}
.mma-header-row-top {
  min-height: 104px;
}
.mma-header-row-bottom {
  min-height: 56px;
  padding-top: 10px;
}
.mma-logo-area,
.mma-title-area,
.mma-header-empty,
.mma-header .header-actions {
  min-width: 0;
}
.mma-brand-logo {
  display: inline-flex;
  align-items: flex-start;
  text-decoration: none;
}
.mma-logo,
.brand-logo.mma-logo {
  width: 130px !important;
  min-width: 130px !important;
  max-width: 130px !important;
  height: auto;
  object-fit: contain;
}
.mma-title-area {
  justify-self: end;
  text-align: right;
}
.mma-site-title {
  font-family:
    Inter,
    Public Sans,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  color: #2d2d2d;
  letter-spacing: -0.02em;
}
.mma-site-subtitle {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: #707b8d;
}
.mma-header .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.mma-header .header-actions .btn {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 700;
}
.mma-header .header-actions .btn-claveunica {
  border-radius: 0;
  padding-left: 18px;
  padding-right: 22px;
}

@media (max-width: 900px) {
  .mma-header-row {
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 24px;
  }
  .mma-header-row-top {
    min-height: 86px;
  }
  .mma-logo,
  .brand-logo.mma-logo {
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
  }
  .mma-site-title {
    font-size: 22px;
  }
  .mma-site-subtitle {
    font-size: 17px;
  }
  .mma-header .header-actions .btn {
    font-size: 14px;
    padding: 10px 14px;
  }
}

@media (max-width: 640px) {
  .mma-header-inner {
    padding-bottom: 12px;
  }
  .mma-header-row {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }
  .mma-header-row-top {
    min-height: 76px;
    padding-bottom: 8px;
  }
  .mma-header-row-bottom {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 10px;
  }
  .mma-header-empty {
    display: none;
  }
  .mma-title-area {
    justify-self: end;
    width: auto;
  }
  .mma-site-title {
    font-size: 18px;
  }
  .mma-site-subtitle {
    font-size: 14px;
    margin-top: 4px;
  }
  .mma-logo,
  .brand-logo.mma-logo {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
  }
  .mma-header .header-actions {
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  .mma-header .header-actions .btn {
    flex: 1;
    min-height: 42px;
    font-size: 13px;
    padding: 9px 10px;
  }
  .mma-header .header-actions .btn-claveunica svg {
    width: 18px;
    height: 18px;
  }
}

/* Página de llamados homologada */
.calls-page-main {
  background: var(--background, #f7f8fa);
}
.calls-hero-section {
  padding: 52px 0 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.calls-hero-section .page-title {
  max-width: 880px;
  margin: 12px 0 10px;
  color: var(--ink);
  letter-spacing: -0.04em !important;
}
.calls-hero-section .page-subtitle {
  max-width: 820px;
  font-size: 17px;
  line-height: 1.65;
}
.calls-directory {
  padding-top: 34px;
}
.calls-filters {
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
}
.calls-filters-active {
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
}
.calls-filters-past {
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
}
.calls-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
}
.calls-summary strong {
  color: var(--ink);
}
.calls-block {
  margin-top: 28px;
}
.section-head.compact {
  margin-bottom: 14px;
}
.call-description {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.call-media.region-los-lagos {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.38)),
    url("../img/los_lagos.jpeg") center/cover no-repeat;
}
.call-media.region-biobio {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.38)),
    url("../img/biobio.jpg") center/cover no-repeat;
}
.call-media.region-nuble {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.38)),
    url("../img/nuble.JPG") center/cover no-repeat;
}
.status-pill.upcoming {
  background: var(--warning-bg);
  color: var(--warning);
}
.past-calls-table td a {
  font-weight: 700;
  color: var(--mma-azul);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.empty-state {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin-top: 22px;
  color: var(--muted);
}
.empty-state strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.table-call-item[hidden],
.call-card[hidden],
.past-call-item[hidden],
.active-call-item[hidden] {
  display: none !important;
}
.calls-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.pagination-pages {
  display: flex;
  gap: 6px;
  align-items: center;
}
.pagination-pages button {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.pagination-pages button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pagination-pages button:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pagination-pages button.active:hover {
  color: #fff;
}
@media (max-width: 900px) {
  .calls-filters,
  .calls-filters-active,
  .calls-filters-past {
    grid-template-columns: 1fr;
  }
  .calls-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .calls-hero-section {
    padding: 36px 0 18px;
  }
  .calls-pagination {
    justify-content: flex-start;
  }
  .pagination-pages {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }
}

/* === Fix registro: password toggle y teléfono === */
.input-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.input-wrap .form-input {
  width: 100%;
  padding-right: 52px;
}
.pwd-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}
.pwd-toggle:hover {
  background: var(--bg-light);
  color: var(--info);
  transform: translateY(-50%);
}
.pwd-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
  overflow: visible;
  pointer-events: none;
}
.phone-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
  flex-wrap: nowrap;
  gap: 0;
}
.phone-prefix {
  height: var(--input-h);
  min-height: var(--input-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: var(--bg-light);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}
.phone-wrap .form-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  border-radius: 0 8px 8px 0;
}


/* Ajuste final: elimina elevaciones hover en botones/cards interactivos públicos */
.btn:hover,
button:hover,
.doc-accordion:hover,
.option-card:hover {
  transform: none;
}

/* Public landing overrides: keep Bootstrap/Vite from repainting the new design. */
#app .public-index-root {
  --primary: #b52000;
  --primary-dark: #8f1800;
  --primary-soft: #fff1ec;
  --max: 1240px;
}

#app .public-index-root .container {
  width: min(calc(100% - 32px), var(--max));
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

#app .public-index-root h1,
#app .public-index-root h2,
#app .public-index-root h3,
#app .public-index-root h4,
#app .public-index-root h5,
#app .public-index-root h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: 0;
}

#app .public-index-root .hero-full h1,
#app .public-index-root .hero-inner h1 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

#app .public-index-root .main-title {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
}
#app .public-index-root .main-title {
  letter-spacing: -0.03em !important;
}

#app .public-index-root .page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

#app .public-index-root .program-copy h2,
#app .public-index-root .section-head h2,
#app .public-index-root .requirements-card h3,
#app .public-index-root .channel-card h3,
#app .public-index-root .call-title,
#app .public-index-root .section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

#app .public-index-root .program-copy h2,
#app .public-index-root .section-head h2 {
  font-size: 20px;
  letter-spacing: -0.03em;
}

#app .public-index-root .requirements-card h3 {
  font-size: 20px;
  letter-spacing: -0.03em;
}

#app .public-index-root .channel-card h3 {
  font-size: 20px;
  margin: 8px 0 10px;
  letter-spacing: -0.03em;
}

#app .public-index-root .hero-steps h3 {
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

#app .public-index-root .hero-step-body strong {
  color: #fff;
  font-family: var(--font);
  font-weight: 800;
}

#app .public-index-root .hero-step-body span {
  color: rgba(255, 255, 255, 0.68);
}

#app .page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#app .page .btn-primary,
#app .page .btn-primary:focus,
#app .page .btn-primary.focus {
  color: #fff;
  background: #b52000;
  border-color: #b52000;
  box-shadow: var(--shadow-sm);
}

#app .page .btn-primary:hover,
#app .page .btn-primary:active,
#app .page .btn-primary:not(:disabled):not(.disabled):active {
  color: #fff;
  background: #8f1800;
  border-color: #8f1800;
}

#app .page .btn-secondary,
#app .page .btn-secondary:focus,
#app .page .btn-secondary.focus {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

#app .page .btn-secondary:hover,
#app .page .btn-secondary:active,
#app .page .btn-secondary:not(:disabled):not(.disabled):active {
  color: var(--ink);
  background: #fcfcfd;
  border-color: var(--line-strong);
}

#app .page .btn-claveunica,
#app .page .btn-claveunica:focus,
#app .page .btn-claveunica.focus {
  color: #fff;
  background: #0f69c4;
  border-color: #0f69c4;
  border-radius: 0;
  padding-left: 18px !important;
  padding-right: 22px !important;
  padding-top: 11px !important;
  padding-bottom: 11px !important;
  text-decoration: underline !important;
  box-shadow: var(--shadow-sm);
}

#app .page .btn-claveunica:hover,
#app .page .btn-claveunica:active,
#app .page .btn-claveunica:not(:disabled):not(.disabled):active {
  color: #fff;
  background: #07305a;
  border-color: #07305a;
  text-decoration: none;
}

#app .page .btn-claveunica svg {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
}

#app .mma-header .header-actions .btn {
  min-height: 48px;
  padding: 12px 18px;
}

@media (max-width: 767px) {
  #app .public-index-root .main-title {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  #app .mma-header-row-bottom {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 10px;
    font-size: 13px;
  }

  #app .mma-header .header-actions .btn {
    min-height: 42px;
    font-size: 13px !important;
    padding: 9px 10px !important;
  }
}

/* Login publico ClaveUnica */
.login-public-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.login-public-root .claveunica-page {
  min-height: 620px;
  flex: 1;
  padding: 48px 16px 64px;
  align-items: flex-start;
  background: #fff;
}

.login-public-root .claveunica-login .main-body {
  width: min(100%, 500px);
  margin: 0 auto;
  padding: 0;
}

.login-public-root .claveunica-login .cu-login-card {
  border-color: #333;
  box-shadow: none;
}

.login-public-root .claveunica-logo {
  width: 150px;
  max-width: 150px;
  margin-top: 18px;
}

.login-public-root .claveunica-login .header-form-title {
  margin: 1.35rem 0 1.5rem;
}

.login-public-root .claveunica-login .group-label.has-value label,
.login-public-root .claveunica-login .group-label:focus-within label {
  color: var(--border-color);
  top: -12px !important;
  font-size: 0.8rem !important;
}

.login-public-root .claveunica-login .group-label label {
  z-index: 5;
}

.login-public-root .claveunica-login .btn-toggle-password {
  display: grid;
  place-items: center;
}

.login-public-root .claveunica-login .btn-toggle-password i {
  display: block;
  font-size: 18px;
  line-height: 1;
  color: #fff;
}

.login-public-root .claveunica-login .cu-error-box {
  margin: 0.25rem 0 1rem;
  padding: 0.875rem 1rem;
  color: #7f1d1d;
  background: #fdecea;
  border: 1px solid #f5b5b5;
  text-align: left;
}

.login-public-root .claveunica-login .cu-error-box strong {
  display: block;
  margin-bottom: 0.35rem;
}

.login-public-root .claveunica-login .cu-error-box ul {
  margin: 0;
  padding-left: 1rem;
}

.login-public-root .login-header-back {
  font-size: 16px !important;
}

@media (max-width: 640px) {
  .login-public-root .claveunica-page {
    min-height: auto;
    padding: 28px 16px 40px;
  }

  .login-public-root .claveunica-login .cu-login-card {
    border: 1px solid #333;
  }
}
