/* Coplea · web pública (portada, privacidad, eliminar cuenta). Sin cookies ni recursos externos. */

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url('fuentes/playfair-900-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fuentes/source-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fuentes/source-sans-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fuentes/source-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fuentes/source-sans-700.woff2') format('woff2');
}

:root {
  --granate: #5e1224;
  --granate-oscuro: #470d1b;
  --dorado: #d9a441;
  --crema: #f6ebdd;
  --texto: #2b1a1e;
  --texto-suave: #6b5a5e;
  --linea: #e4d3bd;
  --blanco: #fffdf9;
  --ancho: 46rem;
  --titulo: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --cuerpo: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font-family: var(--cuerpo);
  font-size: 1.1875rem;
  line-height: 1.6;
}

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

a {
  color: var(--granate);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--granate-oscuro);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 3px;
  border-radius: 4px;
}

.saltar {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--granate);
  color: var(--crema);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 10;
}
.saltar:focus {
  left: 1rem;
}

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Cabecera de las páginas interiores ─────────────────────────────────── */
.cabecera {
  background: var(--granate);
  color: var(--crema);
}
.cabecera .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.cabecera a.marca {
  display: block;
  line-height: 0;
}
.cabecera a.marca img {
  width: 7.5rem;
}
.cabecera nav a {
  color: var(--crema);
  font-weight: 600;
  text-decoration: none;
}
.cabecera nav a:hover {
  text-decoration: underline;
  color: var(--crema);
}

/* ── Portada ──────────────────────────────────────────────────────────────── */
.heroe {
  background: var(--granate);
  color: var(--crema);
  text-align: center;
  padding: 3.5rem 0 3rem;
}
.heroe img.logo {
  width: min(20rem, 80%);
  margin: 0 auto 1.5rem;
  display: block;
}
.heroe .lema {
  font-size: 1.375rem;
  line-height: 1.45;
  max-width: 30rem;
  margin: 0 auto;
}
.estado {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--dorado);
  color: var(--granate-oscuro);
  font-weight: 700;
  font-size: 1rem;
}

.rasgos {
  display: grid;
  gap: 1rem;
  padding: 2.5rem 0 1rem;
  margin: 0;
  list-style: none;
}
@media (min-width: 44rem) {
  .rasgos {
    grid-template-columns: repeat(3, 1fr);
  }
}
.rasgos li {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-top: 4px solid var(--dorado);
  border-radius: 12px;
  padding: 1.25rem;
}
.rasgos h2 {
  font-family: var(--cuerpo);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--granate);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.rasgos p {
  margin: 0;
  color: var(--texto-suave);
  font-size: 1.05rem;
}

/* ── Texto largo (privacidad, eliminar cuenta) ──────────────────────────── */
main {
  display: block;
}
.documento {
  padding-top: 2rem;
  padding-bottom: 3rem;
}
h1 {
  font-family: var(--titulo);
  font-style: italic;
  font-weight: 900;
  color: var(--granate);
  font-size: clamp(2.1rem, 7vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
}
.documento h2 {
  font-family: var(--titulo);
  font-style: italic;
  font-weight: 900;
  color: var(--granate);
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 2.25rem 0 0.5rem;
}
.documento h3 {
  font-size: 1.15rem;
  color: var(--granate);
  margin: 1.5rem 0 0.25rem;
}
.documento p,
.documento li {
  max-width: 40rem;
}
.documento ul,
.documento ol {
  padding-left: 1.3rem;
}
.documento li + li {
  margin-top: 0.35rem;
}
.actualizado {
  color: var(--texto-suave);
  margin-top: 0;
}
.resumen {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-left: 5px solid var(--dorado);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.resumen p {
  margin: 0.25rem 0;
}
.resumen ul {
  margin: 0.25rem 0;
}

.tabla {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  background: var(--blanco);
  font-size: 1rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--linea);
}
th {
  background: #efe0cc;
  color: var(--granate);
}

.pasos {
  counter-reset: paso;
  list-style: none;
  padding-left: 0 !important;
}
.pasos li {
  counter-increment: paso;
  position: relative;
  padding-left: 2.6rem;
  min-height: 2rem;
}
.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--granate);
  color: var(--crema);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boton {
  display: inline-block;
  background: var(--granate);
  color: var(--crema);
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
}
.boton:hover {
  background: var(--granate-oscuro);
  color: var(--crema);
}

/* ── Botones de descarga (los genera npm run web:zip desde scripts/web/tiendas.json) ── */
.tiendas {
  margin-top: 1rem;
}
.tiendas p {
  margin: 0.5rem 0;
}
.tiendas .boton {
  margin: 0.25rem 0.5rem 0.25rem 0;
}
.heroe .tiendas .boton {
  background: var(--crema);
  color: var(--granate);
}
.tiendas .nota-prueba {
  font-size: 1rem;
  opacity: 0.85;
}

/* ── Página de invitación ─────────────────────────────────────────────────── */
.invitacion .codigo {
  font-family: var(--cuerpo);
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 0.12em;
  color: var(--granate);
  background: var(--blanco);
  border: 2px solid var(--dorado);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  display: inline-block;
  margin: 0.25rem 0 0.75rem;
  user-select: all;
  -webkit-user-select: all;
}
button.boton {
  font: inherit;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.invitacion .nota {
  color: var(--texto-suave);
  font-size: 1rem;
}

/* Datos que faltan por completar: se ven a propósito para no publicarlos así. */
.pendiente {
  background: #ffe28a;
  color: #5a3b00;
  padding: 0 0.25rem;
  border-radius: 3px;
  font-weight: 700;
}

/* ── Pie ──────────────────────────────────────────────────────────────────── */
.pie {
  border-top: 1px solid var(--linea);
  padding: 1.75rem 0 2.5rem;
  color: var(--texto-suave);
  font-size: 1rem;
}
.pie nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.5rem;
}
.pie p {
  margin: 0.25rem 0;
}
