/* Senetu — hoja de estilos común */

:root {
  --bg: #1f1614;
  --bg-alt: #28201c;
  --bg-contrast: #f0e8de;
  --text: #ece3d8;
  --muted: #a08d84;
  --ink: #1f1614;
  --accent: #c9724a;
  --accent2: #8ea07c;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --step: 80px;
  --gap: 24px;
}

* { box-sizing: border-box; }

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

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

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

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

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

a:hover { color: var(--text); }

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
}

h1 {
  font-size: 54px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 27px;
  line-height: 1.26;
}

h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.35;
  margin: 34px 0 10px;
}

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

.label {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--accent2);
}

.lede {
  color: var(--muted);
  font-size: 17px;
}

/* ---------- cabecera ---------- */

.site-head {
  border-bottom: 0;
  padding: 26px 0 0;
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 28px;
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

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

.site-nav a {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

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

/* ---------- hero ---------- */

.hero { padding: 76px 0 var(--step); }

.hero-title { grid-column: 1 / 8; }
.hero-title h1 { max-width: 15ch; }

.hero-aside {
  grid-column: 9 / 13;
  align-self: start;
  color: var(--muted);
  font-size: 16px;
}

.hero-aside .label { display: block; margin-bottom: 12px; }

.axis {
  position: relative;
  height: 92px;
  margin-top: 34px;
  border-top: 1px solid var(--accent);
}

.axis span {
  position: absolute;
  top: 0;
  width: 1px;
  background: var(--accent);
}

.axis span::after {
  content: '';
  position: absolute;
  left: -3px;
  bottom: -7px;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.axis .d1 { left: 6%; height: 44px; }
.axis .d2 { left: 33%; height: 82px; }
.axis .d3 { left: 71%; height: 60px; background: var(--accent2); }
.axis .d3::after { background: var(--accent2); }

/* ---------- secciones de texto ---------- */

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

.sec-head {
  grid-column: 1 / 4;
  position: relative;
  padding-left: 22px;
}

.sec-head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.sec-head .label { display: block; margin-bottom: 10px; }

.sec-body {
  grid-column: 4 / 11;
  padding-top: 4px;
}

.sec-body > :first-child { margin-top: 0; }

/* listas prácticas */

.list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 11px;
}

.list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.list--soft li::before { background: var(--accent2); }

.list li:last-child { margin-bottom: 0; }

.term {
  color: var(--text);
  font-weight: 600;
}

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

.figblock { padding: 0 0 var(--step); }

.main-fig {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
}

.main-fig img { grid-column: 4 / 13; width: 100%; }

.main-fig figcaption {
  grid-column: 1 / 4;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  padding-bottom: 4px;
}

/* ---------- sección contrastada ---------- */

.sec--light {
  background: var(--bg-contrast);
  color: var(--ink);
  padding: var(--step) 0;
}

.sec--light h2,
.sec--light h3 { color: var(--ink); }

.sec--light .label { color: #6a7a58; }

.sec--light a { color: #a2512c; }
.sec--light a:hover { color: var(--ink); }

.sec--light .list li::before { background: #a2512c; }

.detail-fig {
  margin: 0;
  grid-column: 1 / 6;
}

.detail-fig img { width: 100%; }

.detail-fig figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b5a52;
}

.detail-text {
  grid-column: 7 / 13;
  align-self: start;
}

.detail-text .label { display: block; margin-bottom: 10px; }
.detail-text h2 { margin-bottom: 18px; }

/* ---------- páginas interiores (eje doble) ---------- */

.page-head { padding: 58px 0 40px; }
.page-head h1 { grid-column: 1 / 9; font-size: 42px; }
.page-head .label { grid-column: 1 / 9; display: block; margin-bottom: 16px; }

.axial { padding: 0 0 var(--step); }

.axial .grid { position: relative; }

.axial .grid::before {
  content: '';
  position: absolute;
  left: calc(25% - 12px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(160, 141, 132, 0.32);
}

.axial-block {
  grid-column: 1 / 4;
  padding: 0 22px 46px 0;
}

.axial-block h2 { font-size: 24px; }
.axial-block .label { display: block; margin-bottom: 8px; }

.axial-text {
  grid-column: 4 / 11;
  padding: 4px 0 46px;
}

.axial-row:last-child .axial-block,
.axial-row:last-child .axial-text { padding-bottom: 0; }

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

.site-foot {
  background: var(--bg-contrast);
  color: var(--ink);
  padding: 46px 0 54px;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 24px;
}

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

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

.site-foot a { color: #a2512c; }
.site-foot a:hover { color: var(--ink); }

.foot-rule {
  height: 1px;
  background: rgba(31, 22, 20, 0.25);
  margin: 22px 0 20px;
}

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

.foot-links a {
  font-size: 14px;
  color: #5d4a42;
  text-decoration: none;
  border-bottom: 1px solid rgba(93, 74, 66, 0.4);
}

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

.foot-note {
  font-size: 13px;
  line-height: 1.7;
  color: #6b5a52;
  max-width: 68ch;
  margin: 0;
}

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

@media (max-width: 1000px) {
  h1 { font-size: 44px; }
  .hero-title { grid-column: 1 / 9; }
  .hero-aside { grid-column: 1 / 10; margin-top: 40px; }
  .sec-head { grid-column: 1 / 5; }
  .sec-body { grid-column: 5 / 13; }
  .detail-fig { grid-column: 1 / 7; }
  .detail-text { grid-column: 7 / 13; }
  .axial-block { grid-column: 1 / 5; }
  .axial-text { grid-column: 5 / 13; }
  .axial .grid::before { left: calc(33.33% - 12px); }
}

@media (max-width: 760px) {
  :root { --step: 48px; --gap: 16px; }

  .wrap { padding: 0 20px; }

  body { font-size: 16px; }

  h1 { font-size: 32px; line-height: 1.16; }
  h2 { font-size: 23px; }
  h3 { font-size: 19px; }

  .hero { padding: 44px 0 var(--step); }
  .hero-title,
  .hero-aside,
  .sec-head,
  .sec-body,
  .detail-fig,
  .detail-text,
  .axial-block,
  .axial-text,
  .page-head h1,
  .page-head .label { grid-column: 1 / -1; }

  .hero-title h1 { max-width: none; }
  .hero-aside { margin-top: 30px; }

  .axis { height: 62px; margin-top: 26px; }
  .axis .d2 { height: 54px; }
  .axis .d3 { height: 40px; }

  .sec-head { margin-bottom: 20px; }
  .sec-body { padding-top: 0; }

  .main-fig { display: block; }
  .main-fig figcaption { margin-top: 12px; padding-bottom: 0; }

  .detail-fig { margin-bottom: 28px; }

  .axial .grid::before { display: none; }
  .axial-block { padding: 0 0 14px; }
  .axial-text { padding: 0 0 34px; }

  .page-head { padding: 38px 0 30px; }
  .page-head h1 { font-size: 30px; }

  .site-head { padding-top: 20px; }
  .site-nav ul { gap: 6px 18px; }
  .foot-name { font-size: 22px; }
}
