:root {
  --blanco: #ffffff;
  --niebla: #e6e7e8;
  --gris: #5f6369;
  --grafito: #232428;
  --linea: #c9cbce;
  --boton: #3b3f46;
  --margen: max(clamp(16px, 5vw, 48px), calc((100vw - 1040px) / 2));
  --letra: "Schibsted Grotesk", "Segoe UI", Arial, sans-serif;
}

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

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

@media (min-width: 1000px) {
  html {
    font-size: 93.75%;
  }
}

body {
  min-height: 100svh;
  margin: 0;
  background: var(--niebla);
  color: var(--grafito);
  font-family: var(--letra);
  font-size: 1rem;
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--grafito);
  outline-offset: 2px;
}

.definiciones {
  position: absolute;
  width: 0;
  height: 0;
}

.cabecera {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px var(--margen);
  background: var(--blanco);
  border-bottom: 1px solid var(--linea);
}

.cabecera nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  font-size: 0.9375rem;
  font-weight: 500;
}

.cabecera nav a {
  text-decoration: none;
}

.cabecera nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.marca svg {
  width: 28px;
  height: 21px;
  fill: currentColor;
}

.enlace {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.ingreso {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  width: min(760px, calc(100% - 32px));
  min-height: 400px;
  margin: clamp(32px, 9vh, 88px) auto;
  overflow: hidden;
  background: var(--blanco);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(35, 36, 40, 0.14);
}

.ingreso-marca {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  background: var(--grafito);
  color: var(--blanco);
}

.ingreso-marca svg {
  width: 56px;
  height: 42px;
  fill: currentColor;
}

.ingreso-marca p {
  max-width: 18ch;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.ingreso-cuerpo {
  align-self: center;
  padding: 36px;
}

.ingreso h1 {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ingreso .ayuda {
  margin-top: 4px;
  color: var(--gris);
}

.ingreso form {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.ingreso label {
  font-size: 0.875rem;
  font-weight: 600;
}

.ingreso input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--linea);
  border-radius: 10px;
  background: var(--blanco);
  color: var(--grafito);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ingreso input:focus {
  border-color: var(--boton);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 63, 70, 0.16);
}

.boton {
  margin-top: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--boton);
  color: var(--blanco);
  font: 600 0.9375rem var(--letra);
  cursor: pointer;
  transition: background 0.15s ease;
}

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

.ingreso .enlace {
  justify-self: start;
  margin-top: 6px;
  color: var(--gris);
  font-size: 0.875rem;
}

.ingreso .aviso {
  margin-top: 14px;
  color: var(--grafito);
  font-size: 0.9375rem;
  font-weight: 500;
}

.tablero {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
  padding: clamp(28px, 4vw, 44px) var(--margen) 64px;
}

.saludo h1 {
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.saludo p {
  margin-top: 4px;
  color: var(--gris);
}

.tablero h2 {
  margin-bottom: 14px;
  font-size: 1.1875rem;
  font-weight: 700;
}

.tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.tarjeta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 20px 22px;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.tarjeta:hover {
  border-color: var(--grafito);
}

.estado {
  color: var(--gris);
  font-size: 0.875rem;
  font-weight: 500;
}

.tarjeta h3 {
  margin-top: 4px;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}

.tarjeta p {
  margin-top: 4px;
  color: var(--gris);
  font-size: 0.9375rem;
}

.ir {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.vacio {
  color: var(--gris);
}

.lista {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 10px;
}

.lista li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.lista li + li {
  border-top: 1px solid var(--linea);
}

.lista strong {
  font-weight: 600;
}

.lista p,
.lista time {
  color: var(--gris);
  font-size: 0.875rem;
}

.lista a {
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  text-underline-offset: 4px;
}

.lista time {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .ingreso {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .ingreso-marca {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    justify-content: flex-start;
    padding: 18px 22px;
  }

  .ingreso-marca svg {
    flex-shrink: 0;
    width: 36px;
    height: 27px;
  }

  .ingreso-marca p {
    max-width: none;
    font-size: 1rem;
  }

  .ingreso-cuerpo {
    padding: 24px 22px;
  }
}

@media (max-width: 520px) {

  .lista li {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
