/* MurciaTech — dirección visual: impresión técnica.
   Papel crema, tinta negra, amarillo del logo como marcador. Líneas duras, sin degradados. */

:root {
  --paper: #f1ecdf;
  --paper-2: #e7e0cd;
  --ink: #0d0d0d;
  --yellow: #e8ae3f;     /* amarillo del logo */
  --dim: #4d483c;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --gut: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --bw: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1.0625rem;
  line-height: 1.55;
}

::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible, .ticker :focus-visible { outline-color: var(--yellow); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: var(--gut); top: -4rem;
  background: var(--yellow); color: var(--ink);
  padding: .6rem 1rem; font-family: var(--f-mono); z-index: 10;
}
.skip:focus { top: .5rem; }

/* ---------- Cabecera ---------- */
.site-head { border-bottom: var(--bw) solid var(--ink); background: var(--ink); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem 2rem; padding-block: 1rem;
}
.brand { display: block; line-height: 0; }
.brand img { width: 128px; border-radius: 6px; }

.nav { counter-reset: n -1; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.nav li { counter-increment: n; }
.nav a {
  display: block; padding: .45rem .7rem;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none;
  border: var(--bw) solid transparent;
  color: white;
}
.nav a::before { content: counter(n, decimal-leading-zero) " "; color: var(--dim); }
.nav a:hover { border-color: var(--ink); }
.nav a[aria-current="page"] { background: var(--yellow); border-color: var(--ink); }
.nav a[aria-current="page"]::before { color: white; }

@media (max-width: 559px) { .nav a { padding: .4rem .5rem; } }

/* ---------- Tipografía ---------- */
.kicker {
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 1.25rem;
}
.kicker b { color: var(--ink); background: var(--yellow); padding: .1rem .45rem; font-weight: 600; }

h1, h2 { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; letter-spacing: -.02em; }
h1 {
  font-size: clamp(2rem, 6.4vw, 5rem); line-height: .96;
  text-transform: uppercase; hyphens: none;
}
h2 { font-size: clamp(1.6rem, 4.4vw, 3rem); line-height: 1; }
h3 { font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: 1.35rem; line-height: 1.15; }

mark {
  background: var(--yellow); color: var(--ink);
  padding: 0 .12em; margin-inline: -.04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.lead { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.4; max-width: 38ch; margin-top: 1.75rem; }

/* ---------- Botones ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.btn {
  display: inline-block; padding: .85rem 1.3rem;
  font-family: var(--f-mono); font-size: .9rem; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
  border: var(--bw) solid var(--ink); background: var(--paper);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn--main { background: var(--yellow); }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }

/* ---------- Portada ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero__grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 3.6fr); gap: 3rem; } }

/* Marcas de registro, como en una prueba de imprenta */
.marks::before, .marks::after {
  content: ""; position: absolute; width: 22px; height: 22px;
  border: 0 solid var(--ink); opacity: .55;
}
.marks::before { top: 14px; left: var(--gut); border-width: 2px 0 0 2px; }
.marks::after { top: 14px; right: var(--gut); border-width: 2px 2px 0 0; }

.spec { border-top: var(--bw) solid var(--ink); font-family: var(--f-mono); font-size: .82rem; }
.spec div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--ink); }
.spec dt { color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.spec dd { overflow-wrap: anywhere; }
.spec a { text-underline-offset: 3px; }

/* ---------- Cinta ---------- */
.ticker {
  background: var(--ink); color: var(--yellow);
  border-block: var(--bw) solid var(--ink); overflow: hidden; white-space: nowrap;
}
.ticker__track { display: inline-flex; animation: slide 38s linear infinite; }
.ticker__group { display: inline-flex; }
.ticker__group span {
  padding: .8rem 1.4rem; font-family: var(--f-mono); font-size: .95rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.ticker__group span::after { content: "+"; margin-left: 2.8rem; color: var(--paper); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.block { padding-block: clamp(3rem, 7vw, 6rem); border-bottom: var(--bw) solid var(--ink); }
.block--tint { background: var(--paper-2); }
.block__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2.5rem; }

.statement {
  font-family: var(--f-display); font-stretch: 108%; font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.015em;
  max-width: 24em;
}

/* Cuatro bloques de acceso */
.tiles {
  display: grid; gap: var(--bw); background: var(--ink); border: var(--bw) solid var(--ink);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}
.tile {
  position: relative; display: flex; flex-direction: column; gap: .9rem;
  min-height: 15rem; padding: 1.5rem; background: var(--paper); text-decoration: none;
  transition: background .15s ease;
}
.tile:hover { background: var(--yellow); }
.tile__n { font-family: var(--f-mono); font-size: .8rem; color: var(--dim); }
.tile:hover .tile__n { color: var(--ink); }
.tile p { max-width: 30ch; }
.tile__go { margin-top: auto; font-family: var(--f-mono); font-size: 1.6rem; line-height: 1; transition: transform .15s ease; }
.tile:hover .tile__go { transform: translateX(8px); }

/* ---------- Próxima quedada ---------- */
.next { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 760px) { .next { grid-template-columns: auto 1fr; gap: 3.5rem; } }
.date {
  display: grid; justify-items: center; min-width: 13rem; padding: 1.25rem 1.5rem 1.4rem;
  background: var(--ink); color: var(--paper); border: var(--bw) solid var(--ink);
  box-shadow: 8px 8px 0 var(--yellow);
}
.date__dow, .date__month { font-family: var(--f-mono); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; }
.date__day { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 5.5rem; line-height: 1; color: var(--yellow); }
.next h2 { margin-bottom: 1rem; }
.next p { max-width: 46ch; }
.next .actions { margin-top: 1.5rem; }

/* ---------- Páginas interiores ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 3.5rem); border-bottom: var(--bw) solid var(--ink); position: relative; }
.page-head .lead { max-width: 34ch; }

.rows { border-top: var(--bw) solid var(--ink); }
.rows li {
  display: grid; gap: .5rem 2rem; padding-block: 1.6rem;
  border-bottom: 1px solid var(--ink); align-items: baseline;
}
@media (min-width: 760px) { .rows li { grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 6fr); } }
.rows .n { font-family: var(--f-mono); font-size: .85rem; color: var(--dim); }
.rows h3 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
.rows p { max-width: 52ch; }
.rows a { text-underline-offset: 3px; text-decoration-thickness: 2px; }
.rows a:hover { background: var(--yellow); }

/* Canales de contacto */
.channels { border-top: var(--bw) solid var(--ink); }
.channels li { border-bottom: var(--bw) solid var(--ink); }
.channels a, .channels .soon {
  display: grid; grid-template-columns: 1fr auto; gap: .25rem 1.5rem; align-items: center;
  padding: 1.35rem .25rem; text-decoration: none;
}
.channels a:hover { background: var(--yellow); padding-inline: 1.1rem; }
.channels a { transition: padding .15s ease, background .15s ease; }
.channels .name { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.7rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.channels .via { grid-column: 1; font-family: var(--f-mono); font-size: .8rem; color: var(--dim); overflow-wrap: anywhere; }
.channels .arrow { grid-row: 1 / span 2; grid-column: 2; font-family: var(--f-mono); font-size: 2rem; }
.channels .soon { color: var(--dim); }
.channels .soon .name { color: var(--dim); }
.channels .soon .arrow { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }

.place { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .place { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; } }

/* ---------- Pie ---------- */
.site-foot { background: var(--ink); color: var(--paper); }
.site-foot .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem) 1.75rem; }
.site-foot__word {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(2rem, 8.2vw, 6.4rem); line-height: .95; letter-spacing: -.035em;
  color: var(--yellow); margin-bottom: 2rem;
}
.site-foot__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  padding-top: 1.25rem; border-top: 1px solid var(--paper);
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
}
.site-foot nav ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Movimiento y contraste ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  * { transition: none !important; }
}
@media (prefers-contrast: more) {
  :root { --dim: #2b2820; }
}
