/* Vutrapu — hoja de estilo común */

:root {
  --bg: #f1f2f0;
  --bg-alt: #e3e5e2;
  --bg-dark: #141614;
  --ink: #171917;
  --ink-soft: #6a6e6a;
  --ink-inv: #f1f2f0;
  --accent: #2a6b3c;
  --accent2: #8a6a20;
  --step: 80px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

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

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

figure { margin: 0; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.dark :focus-visible { outline-color: #9fd3ac; }

/* ---------- rejilla de 12 columnas ---------- */

.grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}

.rail { grid-column: 1 / 3; }
.body7 { grid-column: 3 / 10; }
.body6 { grid-column: 3 / 9; }
.wide9 { grid-column: 4 / 13; }

/* escala vertical de la columna de servicio */

.rail-mark {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  padding-top: 10px;
}

.rail-mark .num {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.ticks {
  display: block;
  margin-top: 16px;
  height: 100%;
  min-height: 120px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--ink-soft) 0,
    var(--ink-soft) 24px,
    transparent 24px,
    transparent 44px
  );
  background-repeat: repeat-y;
  background-size: 1px 44px;
}

.dark .ticks {
  background-image: repeating-linear-gradient(
    to bottom,
    #4c524c 0,
    #4c524c 24px,
    transparent 24px,
    transparent 44px
  );
}

.dark .rail-mark { color: #c9a44f; }
.dark .rail-mark .num { color: #9aa09a; }

/* ---------- encabezado y navegación ---------- */

.site-head {
  border-bottom: 1px solid #c9ccc8;
  background: var(--bg);
}

.site-head .grid { padding-top: 20px; padding-bottom: 20px; align-items: baseline; }

.brand {
  grid-column: 1 / 4;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand span { color: var(--accent); }

.site-nav { grid-column: 4 / 13; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }

/* ---------- ritmo de secciones ---------- */

section { padding: var(--step) 0; }
section.alt { background: var(--bg-alt); }

section.dark {
  background: var(--bg-dark);
  color: var(--ink-inv);
}

section.dark h2, section.dark h3 { color: var(--ink-inv); }
section.dark a { color: #9fd3ac; }
section.dark .caption { color: #9aa09a; }

/* ---------- tipografía ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.3;
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}

h1 { font-size: 44px; }
h2 { font-size: 31px; }
h3 { font-size: 22px; margin-bottom: 14px; }

p { margin: 0 0 30px; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 20px; color: #2c302c; }

.caption {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.caption strong { font-weight: 600; color: var(--accent2); }

/* ---------- portada ---------- */

.hero { padding: 96px 0 72px; }

.hero h1 {
  grid-column: 3 / 12;
  font-size: 50px;
  margin-bottom: 30px;
  max-width: 17em;
}

.hero .lead { grid-column: 3 / 9; }

.hero-meta {
  grid-column: 3 / 12;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid #c9ccc8;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- imagen principal ---------- */

.figure-main { padding-top: 0; }

.figure-main figure { display: contents; }

.figure-main .caption {
  grid-column: 1 / 4;
  align-self: end;
  padding-bottom: 4px;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}

.figure-main .shot { grid-column: 4 / 13; }

.figure-main img { width: 100%; }

/* ---------- bloques de texto ---------- */

.stack > * + * { margin-top: 0; }

.rule-marks {
  display: block;
  height: 24px;
  width: 100%;
  margin: 34px 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--accent2) 0,
    var(--accent2) 1px,
    transparent 1px,
    transparent 22px
  );
  opacity: 0.55;
}

/* listas prácticas en dos subcolumnas */

.cols2 {
  grid-column: 3 / 12;
  columns: 2;
  column-gap: 48px;
}

.cols2 ul, .cols2 ol { margin: 0; padding-left: 20px; }

.cols2 li {
  margin-bottom: 18px;
  break-inside: avoid;
  padding-left: 4px;
}

ul li::marker { color: var(--accent); }
ol li::marker { color: var(--accent2); font-family: var(--serif); }

.checklist {
  grid-column: 3 / 12;
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  border-top: 1px solid #c9ccc8;
  padding: 16px 0 16px 34px;
  position: relative;
}

.dark .checklist li { border-top-color: #353935; }

.checklist li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 26px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

.dark .checklist li::before { background: #9fd3ac; }

/* definiciones de micrófonos */

.deflist { grid-column: 3 / 12; margin: 0; }
.deflist dt {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #c9ccc8;
}
.deflist dt:first-child { margin-top: 0; }
.deflist dd { margin: 10px 0 0; }

/* ---------- sección oscura con imagen de detalle ---------- */

.detail-shot { grid-column: 3 / 7; }
.detail-shot img { width: 100%; }
.detail-shot .caption { margin-top: 14px; }
.detail-text { grid-column: 8 / 13; }

/* ---------- página sobre el proyecto ---------- */

.page-head { padding: 72px 0 40px; }
.page-head h1 { grid-column: 3 / 12; }
.page-head .lead { grid-column: 3 / 10; }

.doc { grid-column: 3 / 10; }
.doc h2 { margin-top: 0; }
.doc h3 { margin-top: 34px; }

.rail-sticky { position: sticky; top: 28px; }

/* ---------- pie de página: fila de patchbay ---------- */

.site-foot {
  background: var(--bg);
  border-top: 1px solid #c9ccc8;
  padding: 44px 0 40px;
}

.foot-row {
  grid-column: 1 / 13;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
}

.foot-name {
  font-family: var(--serif);
  font-size: 21px;
}

.foot-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin: 0;
  padding: 0;
}

.foot-links a {
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #c9ccc8;
  padding-bottom: 2px;
}

.foot-links a:hover { border-bottom-color: var(--accent); }

.foot-mail { font-size: 16px; }

.foot-note {
  grid-column: 1 / 13;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #c9ccc8;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- adaptación a pantallas estrechas ---------- */

@media (max-width: 900px) {
  :root { --step: 56px; }
  .grid { column-gap: 18px; }
  h1 { font-size: 36px; }
  .hero h1 { font-size: 38px; }
  h2 { font-size: 27px; }
  .hero { padding: 64px 0 48px; }
  .brand { grid-column: 1 / 13; }
  .site-nav { grid-column: 1 / 13; margin-top: 12px; }
  .site-nav ul { justify-content: flex-start; }
  .hero h1, .hero .lead, .hero-meta,
  .body7, .body6, .wide9, .cols2, .checklist, .deflist, .doc,
  .page-head h1, .page-head .lead,
  .detail-shot, .detail-text,
  .figure-main .shot, .figure-main .caption { grid-column: 1 / 13; }
  .cols2 { columns: 1; }
  .detail-text { margin-top: 36px; }
  .figure-main .caption {
    order: 2;
    margin-top: 14px;
    border-left: 0;
    border-top: 2px solid var(--accent);
    padding: 12px 0 0;
  }
  .figure-main .shot { order: 1; }
  .rail {
    grid-column: 1 / 13;
    margin-bottom: 14px;
  }
  .rail-mark { padding-top: 0; }
  .rail-mark .num { display: inline; font-size: 16px; margin-right: 10px; }
  .ticks { display: none; }
  .rail-sticky { position: static; }
  .rail-sticky ol { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 17px; line-height: 1.85; }
  .grid { padding: 0 18px; }
  h1, .hero h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .lead { font-size: 18px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}
