/* Busterigo — hoja de estilo común
   Eje espejo: composición centrada, retícula de 12 columnas,
   gris azulado con acento ladrillo. */

:root {
  --bg: #eceff1;
  --bg-alt: #dde3e7;
  --bg-dark: #1f2a33;
  --ink: #151c22;
  --ink-soft: #606d78;
  --ink-invert: #eceff1;
  --brick: #a2472c;
  --steel: #3f6b86;
  --sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --gap: 28px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

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

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

a:focus-visible,
:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
}

/* ---------- Retícula ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 32px;
}

.c-center6 { grid-column: 4 / span 6; }
.c-left7   { grid-column: 1 / span 7; }
.c-pair-l  { grid-column: 2 / span 4; }
.c-pair-r  { grid-column: 8 / span 4; }
.c-full    { grid-column: 1 / span 12; }

/* ---------- Tipografía ---------- */

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.15rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin-bottom: 10px;
}

p { margin: 0 0 20px; max-width: 72ch; }

.lead {
  font-size: 1.18rem;
  line-height: 1.65;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.marca {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--steel);
  margin: 0 0 10px;
}

.pie {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--steel);
  text-align: center;
  margin: 14px auto 0;
  max-width: 46ch;
}

/* ---------- Listas ---------- */

ul, ol { margin: 0 0 22px; padding-left: 22px; max-width: 68ch; }
li { margin-bottom: 10px; }
li::marker { color: var(--brick); }

ol { list-style: decimal; }

.lista-limpia { list-style: none; padding-left: 0; }
.lista-limpia li {
  padding-left: 22px;
  position: relative;
}
.lista-limpia li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--brick);
}

/* ---------- Cabecera y navegación ---------- */

.cabecera {
  border-bottom: 1px solid rgba(63, 107, 134, 0.28);
  background: var(--bg);
}

.cabecera .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px 26px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logotipo {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logotipo:hover { color: var(--brick); }

.menu ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  max-width: none;
}

.menu li { margin: 0; }

.menu a {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--brick);
  border-bottom-color: var(--brick);
}

/* ---------- Ritmo de secciones ---------- */

.sec { padding: 64px 0; }
.sec-media { padding: 80px 0; }
.sec-amplia { padding: 96px 0; }
.alterna { background: var(--bg-alt); }

.oscura {
  background: var(--bg-dark);
  color: var(--ink-invert);
  padding: 96px 0;
}

.oscura h2, .oscura h3 { color: var(--ink-invert); }
.oscura .marca { color: #90b2c7; }
.oscura .pie { color: #9fb2bf; text-align: left; }
.oscura a { color: #e08f72; }
.oscura li::marker { color: #e08f72; }
.oscura .lista-limpia li::before { background: #e08f72; }
.oscura :focus-visible { outline-color: #e08f72; }

/* ---------- Hero con eje visible ---------- */

.portada {
  position: relative;
  padding: 72px 0 80px;
}

.portada .wrap { position: relative; }

.portada .wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(162, 71, 44, 0) 0%,
    var(--brick) 18%,
    var(--brick) 82%,
    rgba(162, 71, 44, 0) 100%
  );
}

.portada .grid { row-gap: 26px; }

.portada-titulo { grid-column: 2 / span 10; }

.portada-entrada { grid-column: 4 / span 6; }

.portada-nota-izq { grid-column: 1 / span 3; }
.portada-nota-der { grid-column: 10 / span 3; }

.portada-nota-izq p,
.portada-nota-der p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.portada-nota-der { text-align: right; }
.portada-nota-der .marca { text-align: right; }

/* ---------- Imágenes ---------- */

.figura-eje {
  margin: 0;
  grid-column: 1 / span 12;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.figura-eje img {
  width: 100%;
  max-width: 680px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.figura-detalle { margin: 0; }

.figura-detalle img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.bloque-detalle { grid-column: 1 / span 5; }
.texto-detalle  { grid-column: 7 / span 6; }

/* ---------- Separador en arco ---------- */

.arco {
  width: 100%;
  max-width: 320px;
  height: 30px;
  margin: 0 auto;
  border: 1px solid rgba(63, 107, 134, 0.55);
  border-bottom: 0;
  border-radius: 300px 300px 0 0;
}

.arco-claro { border-color: rgba(144, 178, 199, 0.5); }

/* ---------- Bloques de datos simétricos ---------- */

.ficha {
  border-top: 2px solid var(--brick);
  padding-top: 14px;
}

.ficha p { margin-bottom: 0; font-size: 0.98rem; }

/* ---------- Pie ---------- */

.pieweb {
  background: var(--bg-alt);
  padding: 56px 0 48px;
  text-align: center;
  border-top: 1px solid rgba(63, 107, 134, 0.25);
}

.pieweb .arco { margin-bottom: 26px; }

.pieweb-nombre {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.pieweb ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 14px;
  margin: 0 0 18px;
  padding: 0;
  max-width: none;
}

.pieweb li { margin: 0; display: flex; align-items: center; gap: 14px; }

.pieweb li + li::before {
  content: "";
  width: 1px;
  height: 12px;
  background: var(--steel);
}

.pieweb li a {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.pieweb li a:hover { color: var(--brick); border-bottom-color: var(--brick); }

.pieweb-correo { margin: 0 0 10px; }

.pieweb-nota {
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 58ch;
}

/* ---------- Páginas de texto ---------- */

.pagina-texto { padding: 72px 0 48px; }
.pagina-texto h1 { margin-bottom: 26px; }
.pagina-texto .c-center6 > *:last-child { margin-bottom: 0; }

/* ---------- Adaptación a pantallas medias y pequeñas ---------- */

@media (max-width: 900px) {
  :root { --gap: 20px; }

  body { font-size: 17px; }

  .c-center6,
  .c-left7,
  .c-pair-l,
  .c-pair-r,
  .portada-titulo,
  .portada-entrada,
  .portada-nota-izq,
  .portada-nota-der,
  .bloque-detalle,
  .texto-detalle {
    grid-column: 1 / span 12;
  }

  .portada-nota-der,
  .portada-nota-der .marca { text-align: left; }

  .portada .wrap::before { display: none; }

  .portada { padding: 48px 0 52px; }

  .sec { padding: 44px 0; }
  .sec-media { padding: 50px 0; }
  .sec-amplia { padding: 56px 0; }
  .oscura { padding: 56px 0; }

  .grid { row-gap: 26px; }

  .pie { text-align: left; }

  .bloque-detalle { max-width: 420px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  h1 { letter-spacing: -0.025em; }
  .lead { font-size: 1.05rem; text-align: left; }
  .cabecera .wrap { justify-content: flex-start; }
  .menu ul { justify-content: flex-start; }
}

/* Alineación al eje central */
.eje-txt { text-align: center; }
p.eje-txt { margin-left: auto; margin-right: auto; }

@media (max-width: 560px) {
  .eje-txt { text-align: left; }
}

/* Encabezados dentro de fichas y páginas de texto */
.ficha h2 {
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin-bottom: 10px;
}

.pagina-texto h2 { margin-top: 34px; }
.pagina-texto .ficha h2 { margin-top: 0; }
.pagina-texto .c-center6 > h2:first-child { margin-top: 0; }
