/* Web de colorea.app (docs/14 §7 y docs/15 §8.1): sin fuentes, scripts ni recursos de terceros.
   La política de seguridad del servidor no admite estilos en línea: todo va aquí. */
:root { --paper: #f8f5ef; --ink: #231f1c; --muted: #6b625a; --primary: #c8502f; --on-primary: #fff; --line: #e6ded3; --card: #fffdf9; --mark: #fde3a7; }
@media (prefers-color-scheme: dark) {
  :root { --paper: #1c1916; --ink: #f1ebe3; --muted: #b5aa9e; --primary: #e8795a; --on-primary: #1c1916; --line: #3a332d; --card: #25201c; --mark: #5c4511; }
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0 auto; max-width: 46rem; padding: 2.5rem 1.25rem 4rem; font: 1.0625rem/1.6 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 2rem; }
header a.marca { font-weight: 800; font-size: 1.4rem; color: var(--primary); text-decoration: none; }
nav a { color: var(--muted); margin-left: 1rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.25rem; margin: 2.2rem 0 .6rem; }
a { color: var(--primary); }
.fecha { color: var(--muted); margin-top: 0; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.pendiente { background: var(--mark); padding: 0 .25rem; border-radius: .25rem; }
footer { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1rem; color: var(--muted); font-size: .9rem; }

/* ---- Portada (index.html y en.html) ---------------------------------------- */
.portada { max-width: 70rem; }
.portada header { align-items: center; }
.portada header a.marca { display: inline-flex; align-items: center; gap: .6rem; }
.marca img { width: 2.25rem; height: 2.25rem; border-radius: .6rem; }
.portada section { margin: 4rem 0; }
.portada h2 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 1.25rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; padding: 1rem 0 0; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); letter-spacing: -.02em; line-height: 1.08; margin-bottom: 1rem; }
.entradilla { font-size: 1.25rem; color: var(--muted); max-width: 33rem; margin: 0; }
.tiendas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1rem; padding: 0; list-style: none; }
.boton { display: inline-flex; flex-direction: column; justify-content: center; min-height: 3.6rem; padding: .55rem 1.4rem; border-radius: 1rem; border: 1px solid transparent; font-size: 1.15rem; font-weight: 700; line-height: 1.2; text-decoration: none; }
.boton small { font-size: .75rem; font-weight: 500; opacity: .9; }
.boton.principal { background: var(--primary); color: var(--on-primary); }
.boton.principal:hover, .boton.principal:focus-visible { filter: brightness(1.08); }
.boton.pronto { border: 1px dashed var(--muted); color: var(--muted); }
.boton.secundario { border-color: var(--primary); color: var(--primary); }
.boton.secundario:hover, .boton.secundario:focus-visible { background: var(--card); }
.nota { color: var(--muted); font-size: .95rem; margin: 0; }
.movil { justify-self: center; width: min(100%, 18.5rem); margin: 0; border: .45rem solid var(--ink); border-radius: 2.6rem; background: var(--ink); overflow: hidden; box-shadow: 0 1.5rem 3rem rgb(0 0 0 / .2); }
.movil img { display: block; width: 100%; height: auto; }

.capturas { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(10rem, 1fr); gap: 1rem; margin: 0; padding: 0 0 .75rem; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; }
.capturas li { scroll-snap-align: start; }
.capturas img { display: block; width: 100%; height: auto; border-radius: 1.1rem; }

.ventajas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.ventajas li { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--card); }
.ventajas h3 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 .4rem; }
.ventajas p { margin: 0; color: var(--muted); font-size: .98rem; }

.galeria { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.galeria figure { margin: 0; }
.galeria img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); border-radius: 1rem; }
.galeria figcaption { margin-top: .4rem; color: var(--muted); font-size: .88rem; line-height: 1.3; }
.galeria + .nota { margin-top: 1.25rem; }

.cierre { padding: 2.5rem 1.5rem; border-radius: 1.5rem; background: var(--card); border: 1px solid var(--line); text-align: center; }
.cierre .tiendas { justify-content: center; margin-bottom: 0; }
.cierre p { margin: 0; color: var(--muted); }

@media (max-width: 56rem) {
  .ventajas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .movil { width: min(72%, 17rem); }
  .portada section { margin: 3rem 0; }
  .capturas { grid-auto-columns: 58%; }
  .ventajas { grid-template-columns: minmax(0, 1fr); }
  .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
