/* Atenciora · web pública. Sin recursos de terceros: letra del sistema, sin JS. */

:root {
  color-scheme: light dark;
  --fondo: #f6f7f5;
  --superficie: #ffffff;
  --texto: #15201c;
  --suave: #4b5a54;
  --acento: #0e5c4c;
  --acento-fondo: #e2efea;
  --borde: #d9e1dd;
  --hueco-fondo: #ffe600;
  --hueco-texto: #000000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0e1412;
    --superficie: #151d1a;
    --texto: #e7eeeb;
    --suave: #a7b5af;
    --acento: #72d0b8;
    --acento-fondo: #183029;
    --borde: #29362f;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fondo);
  color: var(--texto);
  font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

.contenedor {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 48em) {
  .contenedor {
    padding: 0 1.5rem;
  }
}

a {
  color: var(--acento);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--acento);
  outline-offset: 2px;
  border-radius: 4px;
}

.saltar {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--superficie);
  color: var(--texto);
  border: 1px solid var(--borde);
  border-radius: 0.5rem;
  z-index: 10;
}

.saltar:focus {
  top: 0.75rem;
}

/* Cabecera */

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

.cabecera .contenedor {
  display: flex;
  align-items: center;
  min-height: 4rem;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  color: var(--texto);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.marca img {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}

/* Textos */

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 1.25rem + 2.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 0.75rem;
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

.entrada {
  font-size: 1.125rem;
  color: var(--suave);
}

.fecha {
  color: var(--suave);
  font-size: 0.95rem;
}

mark.hueco {
  background: var(--hueco-fondo);
  color: var(--hueco-texto);
  padding: 0 0.25em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.clave {
  display: inline-block;
  padding: 0 0.4em;
  border: 1px solid var(--borde);
  border-radius: 0.35rem;
  background: var(--superficie);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Bloques */

.portada {
  padding: 2.5rem 0 2rem;
}

.bloque {
  padding: 1.75rem 0;
  border-top: 1px solid var(--borde);
}

.bloque:last-child {
  padding-bottom: 2.5rem;
}

.lista {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lista li {
  position: relative;
  padding-left: 1.4rem;
}

.lista li + li {
  margin-top: 0.5rem;
}

.lista li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--acento);
}

.aviso {
  padding: 1rem 1.125rem;
  border-radius: 0.75rem;
  background: var(--acento-fondo);
}

/* Tiendas */

.tiendas {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 30em) {
  .tiendas {
    grid-template-columns: 1fr 1fr;
  }
}

.tienda {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.875rem 1.125rem;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 0.75rem;
  color: var(--texto);
  text-decoration: none;
}

.tienda:hover {
  border-color: var(--acento);
}

.tienda:focus-visible {
  border-radius: 0.75rem;
}

.tienda-texto {
  min-width: 0;
}

.tienda strong {
  display: block;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
}

.tienda-web {
  display: block;
  color: var(--suave);
  font-size: 0.95rem;
}

.tienda svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--acento);
}

/* Política */

.politica h1 {
  margin-bottom: 0.4rem;
}

/* Pie */

.pie {
  border-top: 1px solid var(--borde);
  background: var(--superficie);
  color: var(--suave);
  font-size: 0.95rem;
}

.pie .contenedor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.25rem;
  min-height: 4rem;
}

.pie a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--suave);
}

@media (prefers-reduced-motion: no-preference) {
  .tienda {
    transition: border-color 0.15s ease;
  }
}
