/*
 * Base visual compartida por todas las herramientas de Andes Nova Lab.
 * Paleta "Cordillera" (monocromo azul) y tipografías Outfit + Inter,
 * cargadas desde archivos locales para no depender de servicios externos.
 */

@font-face {
  font-family: "Inter";
  src: url("inter-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("inter-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("outfit-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Paleta Cordillera. Cumbre 400 es solo decorativo: no tiene contraste para texto. */
  --cumbre-100: #f5f7fc;
  --cumbre-200: #d3e0f2;
  --cumbre-400: #7fa3d4;
  --cumbre-600: #2c5fa8;
  --cumbre-800: #14315c;
  --cumbre-900: #0a1930;

  --fondo: var(--cumbre-100);
  --superficie: #ffffff;
  --texto: var(--cumbre-900);
  --texto-suave: #4a5a75;
  --borde: var(--cumbre-200);
  --accion: var(--cumbre-600);
  --accion-hover: var(--cumbre-800);
  --error: #a3222b;
  --error-fondo: #fdecee;
  --exito: #1d6b45;
  --exito-fondo: #e8f5ee;

  --radio: 12px;
  --sombra: 0 1px 2px rgb(10 25 48 / 6%), 0 4px 16px rgb(10 25 48 / 6%);
  --fuente-titulo: "Outfit", system-ui, sans-serif;
  --fuente-texto: "Inter", system-ui, sans-serif;
}

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

/* El atributo hidden debe ganarle a cualquier display de los componentes (botones, listas). */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente-texto);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--fuente-titulo);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

a {
  color: var(--accion);
}

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

:focus-visible {
  outline: 3px solid var(--cumbre-600);
  outline-offset: 2px;
}

/* Texto solo para lectores de pantalla */
.solo-lector {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contenedor {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- Cabecera y pie ---------- */

.cabecera {
  background: var(--superficie);
  border-bottom: 1px solid var(--borde);
}

.cabecera .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.cabecera__logo img {
  display: block;
  height: 34px;
  width: auto;
}

.cabecera__enlace {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.cabecera__enlace:hover {
  text-decoration: underline;
}

.pie {
  margin-top: 4rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--borde);
  color: var(--texto-suave);
  font-size: 0.9rem;
}

.pie p {
  margin: 0.25rem 0;
}

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

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accion);
  color: #fff;
  font: 500 1rem var(--fuente-texto);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s;
}

.boton:hover {
  background: var(--accion-hover);
}

.boton:disabled {
  background: var(--cumbre-200);
  color: var(--texto-suave);
  cursor: not-allowed;
}

.boton--secundario {
  background: var(--superficie);
  border-color: var(--borde);
  color: var(--texto);
}

.boton--secundario:hover {
  background: var(--cumbre-100);
  border-color: var(--cumbre-400);
}

.boton svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Botón chico de solo ícono (subir, bajar, quitar) */
.boton-icono {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--borde);
  border-radius: 8px;
  background: var(--superficie);
  color: var(--texto);
  cursor: pointer;
}

.boton-icono:hover:not(:disabled) {
  background: var(--cumbre-100);
}

.boton-icono:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.boton-icono svg {
  width: 18px;
  height: 18px;
}
