/* ==========================================================================
   The Small Big Agency — hoja de estilos principal
   Sistema: Ink / Paper / Impact Coral / Mist — tipografía Poppins.
   ========================================================================== */

/* ---- Tipografía (Google Fonts, con fallback del sistema) ---- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&display=swap");

:root {
  --ink: #14131f;
  --paper: #f7f4ef;
  --coral: #ff5a36;
  --mist: #c9cad9;

  --ink-90: rgba(20, 19, 31, 0.9);
  --ink-70: rgba(20, 19, 31, 0.7);
  --ink-50: rgba(20, 19, 31, 0.5);
  --ink-20: rgba(20, 19, 31, 0.14);
  --ink-10: rgba(20, 19, 31, 0.08);
  --paper-70: rgba(247, 244, 239, 0.7);
  --paper-40: rgba(247, 244, 239, 0.4);
  --coral-15: rgba(255, 90, 54, 0.14);

  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius-s: 0.5rem;
  --radius-m: 1rem;
  --radius-l: 2rem;

  --step-1200: clamp(2.6rem, 1.8rem + 3.6vw, 5.2rem);
  --step-900: clamp(2rem, 1.5rem + 2.2vw, 3.4rem);
  --step-600: clamp(1.5rem, 1.25rem + 1.2vw, 2.15rem);
  --step-400: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-s: 160ms;
  --dur-m: 320ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

strong,
b {
  font-weight: 600;
}

em {
  font-style: normal;
}

/* ---- Accesibilidad: foco visible ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0.75rem;
  z-index: 1000;
  background: var(--coral);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  font-weight: 600;
  transition: top var(--dur-s) var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* ---- Contenedores ---- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 5vw + 1rem, 7rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 3vw + 1rem, 4.5rem);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--mist {
  background: var(--mist);
  color: var(--ink);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 3vw, 3.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}

.section--ink .eyebrow,
.section--ink .eyebrow::before {
  color: var(--coral);
}

h1,
.h1 {
  font-size: var(--step-1200);
  font-weight: 300;
}

h2,
.h2 {
  font-size: var(--step-900);
  font-weight: 300;
}

h3,
.h3 {
  font-size: var(--step-600);
  font-weight: 400;
}

h4,
.h4 {
  font-size: var(--step-400);
  font-weight: 500;
}

.lede {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  color: var(--ink-70);
  max-width: 46rem;
}

.section--ink .lede {
  color: var(--paper-70);
}

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

.fw-bold {
  font-weight: 700;
}

.fw-medium {
  font-weight: 500;
}

.fw-light {
  font-weight: 300;
}

/* ==========================================================================
   Logotipo — reconstrucción tipográfica fiel a la identidad de marca
   ========================================================================== */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}

.section--ink .brand,
.site-footer .brand {
  color: var(--paper);
}

.brand__mark {
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
}

.brand__mark circle:nth-child(1),
.brand__mark circle:nth-child(2) {
  fill: currentColor;
}

.brand__mark circle:nth-child(3) {
  fill: var(--coral);
}

.brand__word {
  font-size: 1.15rem;
  line-height: 1;
  white-space: nowrap;
}

.brand__word .small {
  font-weight: 400;
}

.brand__word .big {
  font-weight: 700;
}

.brand--footer .brand__word {
  font-size: 1.3rem;
}

/* ==========================================================================
   Header y navegación
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--paper-70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-10);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.nav-primary {
  display: none;
}

.nav-primary__list {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav-primary__list > li {
  position: relative;
}

.nav-link {
  display: inline-block;
  padding: 0.4rem 0.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-70);
  border-bottom: 2px solid transparent;
  transition: color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease);
}

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

.nav-link[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--coral);
}

.header-cta {
  display: none;
}

/* Submenú servicios (desktop) */
.has-submenu {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.submenu-wrap {
  position: relative;
}

.submenu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 15.5rem;
  background: var(--paper);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-m);
  box-shadow: 0 1.25rem 2.5rem rgba(20, 19, 31, 0.14);
  padding: 0.6rem;
  display: grid;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-s) var(--ease), transform var(--dur-s) var(--ease), visibility var(--dur-s);
}

.submenu-wrap:hover .submenu,
.submenu-wrap:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.submenu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-s);
  font-size: 0.9rem;
  color: var(--ink-70);
}

.submenu a:hover,
.submenu a:focus-visible {
  background: var(--coral-15);
  color: var(--ink);
}

/* Botón menú móvil */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: 1px solid var(--ink-20);
  border-radius: var(--radius-s);
  position: relative;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-s) var(--ease), opacity var(--dur-s) var(--ease);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before {
  position: absolute;
  top: -6px;
}

.nav-toggle__bars::after {
  position: absolute;
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Menú móvil */
.nav-mobile {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 600;
  padding: 1.25rem var(--gutter) 2.5rem;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform var(--dur-m) var(--ease);
}

.nav-mobile[data-open="true"] {
  transform: translateY(0);
}

.nav-mobile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.nav-mobile__top .nav-toggle {
  border-color: var(--paper-40);
}

.nav-mobile__top .nav-toggle .nav-toggle__bars,
.nav-mobile__top .nav-toggle .nav-toggle__bars::before,
.nav-mobile__top .nav-toggle .nav-toggle__bars::after {
  background: var(--paper);
}

.nav-mobile__list {
  display: grid;
  gap: 0.25rem;
}

.nav-mobile__list > li {
  border-bottom: 1px solid var(--paper-40);
}

.nav-mobile__link {
  display: block;
  padding: 1rem 0.1rem;
  font-size: 1.4rem;
  font-weight: 300;
}

.nav-mobile__link[aria-current="page"] {
  color: var(--coral);
  font-weight: 500;
}

.nav-mobile__sublist {
  display: grid;
  padding-bottom: 0.75rem;
}

.nav-mobile__sublist a {
  display: block;
  padding: 0.55rem 0.1rem;
  font-size: 1rem;
  color: var(--paper-70);
}

.nav-mobile__cta {
  margin-top: 2rem;
}

.no-scroll {
  overflow: hidden;
}

@media (min-width: 62rem) {
  .nav-primary {
    display: block;
  }
  .header-cta {
    display: inline-flex;
  }
  .nav-toggle,
  .nav-mobile {
    display: none;
  }
}

/* ==========================================================================
   Botones y enlaces
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  min-height: 2.9rem;
  transition: background var(--dur-s) var(--ease), color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--coral {
  background: var(--coral);
  color: var(--paper);
}

.btn--coral:hover {
  background: #e64d2c;
}

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

.btn--ink:hover {
  background: #050509;
}

.btn--outline {
  background: transparent;
  border-color: var(--ink-20);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--ink);
}

.section--ink .btn--outline {
  border-color: var(--paper-40);
  color: var(--paper);
}

.section--ink .btn--outline:hover {
  border-color: var(--paper);
}

.btn--ghost-paper {
  background: transparent;
  border-color: var(--paper-40);
  color: var(--paper);
}

.btn--ghost-paper:hover {
  border-color: var(--paper);
  background: var(--paper-40);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink-20);
  padding-bottom: 0.15rem;
  transition: gap var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
}

.link-arrow:hover {
  gap: 0.8rem;
  border-color: var(--coral);
  color: var(--coral);
}

.section--ink .link-arrow {
  color: var(--paper);
  border-color: var(--paper-40);
}

.section--ink .link-arrow:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.link-arrow__icon {
  transition: transform var(--dur-s) var(--ease);
}

.link-arrow:hover .link-arrow__icon {
  transform: translateX(3px);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--ink-10);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-50);
}

.breadcrumbs__list a {
  color: var(--ink-50);
  transition: color var(--dur-s) var(--ease);
}

.breadcrumbs__list a:hover {
  color: var(--coral);
}

.breadcrumbs__list li[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

.breadcrumbs__sep {
  color: var(--ink-20);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-block: clamp(3rem, 6vw, 6rem) clamp(3rem, 5vw, 5rem);
}

.hero__mark {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  height: 2.75rem;
}

.hero__mark span {
  display: block;
  border-radius: 50%;
  background: var(--ink);
}

.hero__mark span:nth-child(1) {
  width: 0.55rem;
  height: 0.55rem;
}

.hero__mark span:nth-child(2) {
  width: 1rem;
  height: 1rem;
}

.hero__mark span:nth-child(3) {
  width: 2.1rem;
  height: 2.1rem;
  background: var(--coral);
}

.hero h1 {
  max-width: 20ch;
}

.hero h1 .big {
  font-weight: 700;
  color: var(--coral);
}

.hero__lede {
  margin-top: 1.75rem;
  max-width: 38rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero__intro {
  margin-top: clamp(2.5rem, 4vw, 4rem);
  padding-top: clamp(2.5rem, 4vw, 4rem);
  border-top: 1px solid var(--ink-10);
  display: grid;
  gap: 2rem;
}

@media (min-width: 52rem) {
  .hero__intro {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero__intro-item h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.hero__intro-item p {
  color: var(--ink-70);
  font-size: 0.95rem;
}

/* ==========================================================================
   Grids / Cards
   ========================================================================== */

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 40rem) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 56rem) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-m);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color var(--dur-s) var(--ease), transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
}

a.card:hover,
a.card:focus-visible {
  border-color: var(--coral);
  transform: translateY(-3px);
  box-shadow: 0 1.5rem 2.5rem rgba(20, 19, 31, 0.1);
}

.card__index {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--coral);
  letter-spacing: 0.08em;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 500;
}

.card p {
  color: var(--ink-70);
  font-size: 0.95rem;
  flex-grow: 1;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.25rem;
}

.section--ink .card {
  background: rgba(247, 244, 239, 0.04);
  border-color: var(--paper-40);
}

.section--ink .card p {
  color: var(--paper-70);
}

.section--ink a.card:hover {
  border-color: var(--coral);
}

/* Pilares */
.pillar {
  display: flex;
  gap: 1.25rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--ink-10);
}

.pillar:last-child {
  border-bottom: 1px solid var(--ink-10);
}

.section--ink .pillar,
.section--ink .pillar:last-child {
  border-color: var(--paper-40);
}

.pillar__num {
  flex-shrink: 0;
  width: 3rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--coral);
}

.pillar h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.pillar p {
  color: var(--ink-70);
  max-width: 34rem;
}

.section--ink .pillar p {
  color: var(--paper-70);
}

/* Manifiesto */
.manifesto {
  font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.4rem);
  font-weight: 300;
  line-height: 1.35;
  max-width: 52rem;
}

.manifesto strong {
  font-weight: 700;
  color: var(--coral);
}

/* Clientes */
.client-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1rem;
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-s);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  color: var(--ink-70);
  min-height: 5.5rem;
}

.client-group {
  margin-top: 2.5rem;
}

.client-group__label {
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--ink-70);
}

/* Tag / badge */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tag--diagnostico {
  background: var(--mist);
  color: var(--ink);
}

.tag--tentativa {
  background: var(--coral-15);
  color: #b53c22;
}

.tag--sugerida {
  background: var(--ink);
  color: var(--paper);
}

/* Nota legal / editorial discreta */
.note {
  font-size: 0.85rem;
  color: var(--ink-50);
  max-width: 40rem;
}

/* CTA final */
.cta-band {
  text-align: left;
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: flex-start;
}

@media (min-width: 48rem) {
  .cta-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-band h2 {
  max-width: 20ch;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Formulario de contacto
   ========================================================================== */

.form-field {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-field .optional {
  font-weight: 400;
  color: var(--ink-50);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--paper);
  border: 1px solid var(--ink-20);
  border-radius: var(--radius-s);
  padding: 0.85rem 1rem;
  width: 100%;
  min-height: 2.9rem;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
  border-color: var(--coral);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: #c0392b;
}

.form-field small {
  font-size: 0.8rem;
  color: var(--ink-50);
}

.form-row {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 40rem) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-status {
  border-radius: var(--radius-s);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  margin-top: 1.25rem;
  display: none;
}

.form-status[data-visible="true"] {
  display: block;
}

.form-status--info {
  background: var(--mist);
  color: var(--ink);
}

.form-status--error {
  background: #fbe4e0;
  color: #8a2c1c;
}

form[aria-busy="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.form-field input:required + label,
.required-mark {
  color: var(--coral);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 5vw, 5rem) 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--paper-40);
}

@media (min-width: 40rem) {
  .footer-grid {
    grid-template-columns: 1.3fr repeat(3, 1fr);
  }
}

.footer-about p {
  color: var(--paper-70);
  max-width: 26rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-70);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.65rem;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--paper-70);
  transition: color var(--dur-s) var(--ease);
}

.footer-col a:hover {
  color: var(--coral);
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--paper-70);
}

@media (min-width: 40rem) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom a {
  color: var(--paper-70);
}

.footer-bottom a:hover {
  color: var(--coral);
}

/* ==========================================================================
   Página 404
   ========================================================================== */

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Utilidades
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.stack {
  display: grid;
  gap: 1rem;
}

.mt-0 {
  margin-top: 0;
}

.diagnostic-list {
  display: grid;
  gap: 1.75rem;
}

.diagnostic-item {
  padding: 1.5rem;
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-m);
}

.diagnostic-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.diagnostic-item h4 {
  font-size: 1rem;
  font-weight: 500;
}

.diagnostic-item ul {
  display: grid;
  gap: 0.4rem;
  color: var(--ink-70);
  font-size: 0.92rem;
}

.diagnostic-item li::before {
  content: "— ";
  color: var(--ink-20);
}

.section--ink .diagnostic-item {
  border-color: var(--paper-40);
}

.section--ink .diagnostic-item ul {
  color: var(--paper-70);
}

.section--ink .diagnostic-item li::before {
  color: var(--paper-40);
}

.section--ink .tag--diagnostico {
  background: rgba(247, 244, 239, 0.14);
  color: var(--paper);
}

.section--ink .tag--tentativa {
  background: rgba(255, 90, 54, 0.22);
  color: #ffb49c;
}

.section--ink .tag--sugerida {
  background: var(--paper);
  color: var(--ink);
}
