/* Zadurdo — hoja de estilo común
   Trama tejida: retícula de 12 columnas con celdas de borde visible */

:root {
  --bg: #1f1614;
  --bg-alt: #28201c;
  --bg-contrast: #f0e8de;
  --ink: #ece3d8;
  --ink-soft: #a08d84;
  --ink-dark: #1f1614;
  --accent: #c9724a;
  --accent-2: #8ea07c;
  --line: rgba(160, 141, 132, 0.34);
  --line-dark: rgba(31, 22, 20, 0.28);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gap: 72px;
}

* { 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;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 18px;
}

h1 { font-size: 40px; letter-spacing: 0.01em; }
h2 { font-size: 28px; }
h3 { font-size: 21px; }

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

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

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

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

.cap {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.num {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: block;
  margin-bottom: 10px;
}

/* ---------- retícula ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.cell {
  border: 1px solid var(--line);
  padding: 26px 24px;
  min-width: 0;
}

.cell + .cell { border-left: none; }

.c3 { grid-column: span 3; }
.c4 { grid-column: span 4; }
.c5 { grid-column: span 5; }
.c6 { grid-column: span 6; }
.c7 { grid-column: span 7; }
.c8 { grid-column: span 8; }
.c9 { grid-column: span 9; }
.c12 { grid-column: span 12; }

/* ---------- separador de hilo doble ---------- */

.weave { padding: 0; margin: 0; border: 0; }
.weave::before,
.weave::after {
  content: "";
  display: block;
  width: 100%;
}
.weave::before { height: 2px; background: var(--accent); }
.weave::after { height: 1px; margin-top: 6px; background: var(--accent-2); }

.weave-dark::before { background: #b4603a; }
.weave-dark::after { background: #6f8060; }

/* ---------- cabecera y navegación ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--accent); }

.brand span {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}

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

.site-nav a {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}
.site-nav a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent-2); }

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

section { padding: var(--gap) 0; }
section.tight { padding-top: 44px; }

.band-alt { background: var(--bg-alt); }

.band-contrast {
  background: var(--bg-contrast);
  color: var(--ink-dark);
}
.band-contrast h2,
.band-contrast h3 { color: var(--ink-dark); }
.band-contrast .cell { border-color: var(--line-dark); }
.band-contrast .cap { color: #5c4a42; }
.band-contrast .num { color: #5c7049; }
.band-contrast a { color: #a1522e; }
.band-contrast .mark li::before { background: #a1522e; }

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

.hero { padding-top: 58px; padding-bottom: var(--gap); }

.hero-title {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 30px;
  margin-bottom: 0;
}
.hero-title h1 {
  max-width: 75%;
  margin: 0;
  font-size: 44px;
}

.hero-grid { margin-top: 34px; }
.hero-grid .cell { padding: 28px 24px; }
.hero-pause {
  border: 1px solid var(--line);
  border-left: none;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 9px,
      rgba(142, 160, 124, 0.13) 9px 10px
    );
}

/* ---------- listas ---------- */

.mark {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mark li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  line-height: 1.75;
}
.mark li:last-child { margin-bottom: 0; }
.mark li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.mark-soft li::before { background: var(--accent-2); }

.checklist { margin-top: 30px; }
.checklist .cell { padding: 24px 22px; }

.lead { font-size: 19px; }

.note {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ---------- imágenes ---------- */

.figure-cell { padding: 14px; }
.figure-cell img { width: 100%; }

.figure-side { display: flex; flex-direction: column; justify-content: flex-end; }

.detail-block { margin-top: 30px; }
.detail-block .figure-cell { padding: 12px; }

/* ---------- página "Sobre el proyecto" ---------- */

.about-grid { margin-top: 34px; }
.about-side {
  border: none;
  border-right: 1px solid var(--line);
  padding-right: 26px;
  padding-left: 0;
}
.about-body { border: none; }
.about-side ul { margin-top: 0; }
.about-body { padding-left: 34px; }
.about-body h2 { margin-top: 42px; }
.about-body h2:first-child { margin-top: 0; }

/* ---------- páginas de texto ---------- */

.page-head {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0 28px;
  margin-top: 48px;
}
.page-head h1 { max-width: 80%; font-size: 36px; }
.page-head p { margin: 16px 0 0; max-width: 62ch; }

.doc { padding-top: 44px; }
.doc h2 { margin-top: 44px; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { margin-top: 30px; }
.doc > p, .doc > ul { max-width: 68ch; }

/* ---------- contacto ---------- */

.contact-cell p { margin-bottom: 14px; }

/* ---------- pie ---------- */

.site-foot { padding-bottom: 64px; }
.foot-grid { margin-top: 0; }
.foot-grid .cell { padding: 24px 22px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot-grid a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.foot-name { font-family: var(--serif); font-size: 21px; margin: 0 0 8px; }
.foot-legal { padding-top: 26px; font-size: 14px; color: var(--ink-soft); }

/* ---------- adaptación ---------- */

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

  body { font-size: 17px; }
  h1 { font-size: 30px; }
  .hero-title h1 { font-size: 31px; max-width: 100%; }
  .page-head h1 { font-size: 27px; max-width: 100%; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }

  .grid { grid-template-columns: 1fr; }
  .c3, .c4, .c5, .c6, .c7, .c8, .c9, .c12 { grid-column: 1 / -1; }

  .cell { padding: 22px 18px; }
  .cell + .cell { border-left: 1px solid var(--line); border-top: none; }
  .band-contrast .cell + .cell { border-left: 1px solid var(--line-dark); }

  .hero-pause { display: none; }

  .about-side {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 26px;
    margin-bottom: 26px;
  }
  .about-body { padding-left: 0; border: none; }

  .head-inner { flex-direction: column; align-items: flex-start; }
  .site-nav ul { gap: 8px 18px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .site-nav a { font-size: 14px; }
}
