/* NSE — hoja de estilo única para legal.nicashopperexpress.com
 *
 * Sin recursos externos A PROPÓSITO: ni fuentes de un CDN, ni analítica, ni
 * imágenes remotas. Una página de privacidad que llama a un tercero para
 * renderizarse se contradice sola, y además tiene que declarar esa llamada.
 * Todo lo que hace falta viaja en este archivo.
 *
 * Paleta de marca (S6-M13 LA MARCA): Papel #FAF9F6 · Tinta #1C1917 · Ámbar #B45309
 */

:root {
  --papel: #faf9f6;
  --tinta: #1c1917;
  --ambar: #b45309;
  --tenue: #78706a; /* AA sobre Papel — 4.61:1, verificado en S6-M13 */
  --linea: #e7e3dc;
  --realce: #f5f1ea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papel: #17150f;
    --tinta: #f2efe8;
    --ambar: #f0a355;
    --tenue: #a8a096;
    --linea: #322d26;
    --realce: #221e18;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.envoltura {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

/* ---- encabezado ---- */

header.marca {
  border-bottom: 1px solid var(--linea);
  margin-bottom: 2rem;
  padding: 1.75rem 0 1.25rem;
}

header.marca a.logo {
  color: var(--tinta);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: inline-block;
}

header.marca a.logo span {
  color: var(--ambar);
}

nav.paginas {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.94rem;
}

nav.paginas a {
  color: var(--tenue);
  text-decoration: none;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}

nav.paginas a:hover {
  color: var(--tinta);
}

nav.paginas a[aria-current="page"] {
  color: var(--tinta);
  font-weight: 600;
  border-bottom-color: var(--ambar);
}

/* ---- texto ---- */

h1 {
  font-size: 1.85rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.6rem 0 0.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--linea);
}

h3 {
  font-size: 1.02rem;
  margin: 1.7rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1.05rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.42rem;
}

a {
  color: var(--ambar);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

strong {
  font-weight: 650;
}

.fecha {
  color: var(--tenue);
  font-size: 0.92rem;
  margin: 0 0 2rem;
}

.entrada {
  font-size: 1.06rem;
  color: var(--tinta);
}

/* ---- bloques ---- */

.nota {
  background: var(--realce);
  border-left: 3px solid var(--ambar);
  border-radius: 0 6px 6px 0;
  padding: 0.9rem 1.1rem;
  margin: 1.4rem 0;
  font-size: 0.97rem;
}

.nota p:last-child {
  margin-bottom: 0;
}

.nota .rotulo {
  display: block;
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--ambar);
  margin-bottom: 0.3rem;
}

/* tarjetas de contacto / sucursales */

.tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.85rem;
  margin: 1.2rem 0 1.5rem;
}

.tarjeta {
  border: 1px solid var(--linea);
  border-radius: 8px;
  padding: 0.95rem 1.05rem;
  background: var(--realce);
}

.tarjeta h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.tarjeta p {
  margin: 0 0 0.3rem;
  font-size: 0.94rem;
  color: var(--tenue);
}

.tarjeta p.dato {
  color: var(--tinta);
}

.tarjeta a {
  word-break: break-word;
}

/* tabla — con scroll propio para que el body nunca se corra en horizontal */

.tabla-envoltura {
  overflow-x: auto;
  margin: 1.2rem 0 1.5rem;
  border: 1px solid var(--linea);
  border-radius: 8px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.94rem;
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--linea);
  vertical-align: top;
}

th {
  background: var(--realce);
  font-weight: 650;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--tenue);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ---- pie ---- */

footer.pie {
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--linea);
  color: var(--tenue);
  font-size: 0.9rem;
}

footer.pie p {
  margin-bottom: 0.4rem;
}

/* ---- índice (portada) ---- */

.indice {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
}

.indice li {
  margin-bottom: 0.7rem;
}

.indice a {
  display: block;
  border: 1px solid var(--linea);
  border-radius: 8px;
  padding: 0.95rem 1.1rem;
  text-decoration: none;
  color: var(--tinta);
  background: var(--realce);
}

.indice a:hover {
  border-color: var(--ambar);
}

.indice .titulo {
  font-weight: 650;
  display: block;
}

.indice .sub {
  color: var(--tenue);
  font-size: 0.93rem;
}
