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

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

* { 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: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}

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

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

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

.c5  { grid-column: 1 / span 5; }
.c6  { grid-column: 1 / span 6; }
.c7  { grid-column: 1 / span 7; }

.c6-right { grid-column: 6 / span 6; }
.c5-right { grid-column: 8 / span 5; }
.c6-mid   { grid-column: 4 / span 6; }
.c7-right { grid-column: 6 / span 7; }

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

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

h1 {
  font-size: clamp(2.35rem, 6vw, 4.1rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

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

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

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

.lead { font-size: 1.13rem; line-height: 1.75; }

.caption {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin: 12px 0 0;
}

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

/* ---------- barras separadoras ---------- */

.bar { height: 3px; background: var(--accent); border: 0; margin: 0 0 28px; }
.bar-2 { background: var(--accent-2); }
.bar-w2 { width: 16%; }
.bar-w3 { width: 25%; }
.bar-w4 { width: 33%; }
.bar-w5 { width: 42%; }
.bar-right { margin-left: auto; }

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

.site-head {
  padding: 26px 0 22px;
  border-bottom: 1px solid #c9d2d8;
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 28px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.32rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.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 {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

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

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

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

.hero-title { grid-column: 1 / span 7; }

.hero-void {
  grid-column: 9 / span 5;
  display: flex;
  align-items: flex-start;
}

.hero-slab {
  width: 10px;
  height: 2.2em;
  background: var(--accent-2);
  margin-top: 0.35em;
}

.hero-intro { grid-column: 1 / span 5; margin-top: 44px; }

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

.section { padding: 64px 0; }
.section-figure { padding-top: 112px; }
.section-alt { background: var(--bg-alt); }

.section-dark {
  background: var(--bg-dark);
  color: var(--ink-invert);
  padding: 112px 0;
}
.section-dark h2, .section-dark h3 { color: var(--ink-invert); }
.section-dark p { color: #c3ccd3; }
.section-dark .caption { color: #8c9aa5; }
.section-dark .num { color: #7fa6bd; }
.section-dark a { color: #e0a08a; }
.section-dark ul li::marker { color: #e0a08a; }
.section-dark :focus-visible { outline-color: #e0a08a; }

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

.figure-main {
  grid-column: 1 / span 8;
  margin: 0;
  margin-left: -56px;
}

.figure-main img {
  display: block;
  width: 100%;
  height: auto;
}

.figure-main .caption { text-align: right; }

.figure-detail {
  grid-column: 2 / span 4;
  margin: 0;
}

.figure-detail img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-text { grid-column: 7 / span 6; align-self: center; }

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

ul.list, ol.list { padding-left: 1.1em; margin: 0 0 22px; }
ul.list li, ol.list li { margin-bottom: 10px; }
ul.list li::marker { color: var(--accent); }
ol.list li::marker { color: var(--accent-2); font-variant-numeric: tabular-nums; }

.block { margin-bottom: 46px; }
.block:last-child { margin-bottom: 0; }

/* ---------- About ---------- */

.about-grid { position: relative; }

.about-rail {
  grid-column: 1 / span 1;
  display: flex;
  flex-direction: column;
  gap: 150px;
  padding-top: 12px;
}

.about-rail span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--accent);
}
.about-rail span:nth-child(2) { background: var(--accent-2); width: 70%; }
.about-rail span:nth-child(3) { background: var(--accent); width: 85%; }

.about-body { grid-column: 3 / span 6; }

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

.contact-box { grid-column: 1 / span 6; }

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

.site-foot {
  background: var(--bg-alt);
  padding: 72px 0 56px;
  margin-top: 96px;
}

.foot-slab {
  height: 6px;
  background: var(--accent);
  width: 33%;
  margin-bottom: 40px;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 26px;
  align-items: start;
}

.foot-main { grid-column: 1 / span 7; }
.foot-mail { grid-column: 9 / span 4; }

.foot-name {
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1.15;
  margin: 0 0 20px;
}

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

.foot-nav a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.foot-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.foot-mail .num { color: var(--accent-2); }
.foot-note {
  grid-column: 1 / span 8;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 22px;
}

/* ---------- páginas internas ---------- */

.page-head { padding: 80px 0 40px; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.page-title { grid-column: 1 / span 7; }
.page-body { grid-column: 1 / span 7; }
.page-body-right { grid-column: 5 / span 8; }

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

@media (max-width: 900px) {
  .hero { padding: 64px 0 48px; }
  .section { padding: 40px 0; }
  .section-figure { padding-top: 64px; }
  .section-dark { padding: 64px 0; }
  .site-foot { margin-top: 64px; padding: 56px 0 44px; }

  .hero-title,
  .hero-intro,
  .c5, .c6, .c7,
  .c6-right, .c5-right, .c6-mid, .c7-right,
  .page-title, .page-body, .page-body-right,
  .contact-box,
  .about-body,
  .detail-text,
  .foot-main, .foot-mail, .foot-note {
    grid-column: 1 / -1;
  }

  .hero-void { display: none; }

  .figure-main {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .figure-detail {
    grid-column: 1 / -1;
    max-width: 420px;
    margin-bottom: 34px;
  }

  .about-rail {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 26px;
    padding-top: 0;
  }
  .about-rail span { width: 60px; }
  .about-rail span:nth-child(2) { width: 40px; }
  .about-rail span:nth-child(3) { width: 50px; }

  .wrap { padding: 0 28px; }
  .foot-slab { width: 55%; }
  .bar-w2 { width: 30%; }
  .bar-w3 { width: 40%; }
  .bar-w4 { width: 50%; }
  .bar-w5 { width: 60%; }
  .bar-right { margin-left: 0; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  body { font-size: 16px; }
  .site-nav ul { gap: 6px 16px; }
  .foot-name { font-size: 1.7rem; }
}
