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

:root {
  --bg: #1c1416;
  --bg-alt: #241a1d;
  --bg-contrast: #f0e7dc;
  --text: #eee4da;
  --muted: #a08f8c;
  --text-dark: #1c1416;
  --accent: #c98f3f;
  --accent2: #8fa07c;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gap: 28px;
  --pad: 24px;
  --rhythm: 96px;
}

* { 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.8;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 143, 63, .45);
}

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

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

/* ---------- rejilla base ---------- */

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

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.12; }
h3 {
  font-size: 1.16rem;
  line-height: 1.3;
  margin-top: 34px;
  margin-bottom: 8px;
  color: var(--text);
}

p { margin: 0 0 22px; }

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

.lead {
  font-size: 1.06rem;
  color: var(--text);
}

.caption {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  font-style: italic;
  margin: 12px 0 0;
}

.meta {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

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

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

.site-header {
  border-bottom: 1px solid rgba(201, 143, 63, .28);
  padding: 22px 0 20px;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: .02em;
  color: var(--text);
  border-bottom: 0;
}

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

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

.site-nav a {
  font-size: 14.5px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

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

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

.hero {
  padding: clamp(56px, 9vw, 104px) 0 var(--rhythm);
}

.hero .grid { row-gap: 30px; }

.hero-kicker {
  grid-column: 1 / 9;
  font-size: 13px;
  color: var(--accent2);
  letter-spacing: .06em;
  margin: 0 0 18px;
}

.hero h1 { grid-column: 1 / 9; }

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

.hero-figure {
  grid-column: 9 / 13;
  grid-row: 1 / 4;
  align-self: end;
  max-width: 480px;
  margin: 0;
  justify-self: end;
  width: 100%;
}

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

/* ---------- secciones ---------- */

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

.band + .band--alt,
.band--alt + .band { border-top: 1px solid rgba(201, 143, 63, .18); }

.sec .grid { row-gap: 0; }

.sec-num {
  grid-column: 1 / 2;
  font-size: 13px;
  color: var(--accent2);
  font-variant-numeric: tabular-nums;
  padding-top: 8px;
}

/* columna estrecha: 6 columnas desplazadas a la izquierda */
.col-narrow { grid-column: 2 / 8; }

/* columna ancha: 8 columnas centradas */
.col-wide { grid-column: 3 / 11; }

.sec h2 { margin-bottom: 24px; }

.sec p + h3 { margin-top: 30px; }

.rule {
  border: 0;
  border-top: 1px solid rgba(201, 143, 63, .55);
  margin: 44px 0 0;
  width: 100%;
}

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

.list-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  row-gap: 0;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.list-two li,
.list-plain li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  line-height: 1.7;
}

.list-two li::before,
.list-plain li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

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

.list-cols { grid-column: 2 / 12; }

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

.contrast {
  background: var(--bg-contrast);
  color: var(--text-dark);
  padding: var(--rhythm) 0;
}

.contrast h2,
.contrast h3,
.contrast strong { color: var(--text-dark); }

.contrast .sec-num { color: #6d7a5c; }

.contrast .caption { color: #6b5a55; }

.contrast a { color: #9c661f; border-bottom-color: rgba(156, 102, 31, .5); }

.contrast .rule { border-top-color: rgba(28, 20, 22, .3); }

.contrast .list-two li::before,
.contrast .list-plain li::before { color: #9c661f; }

.detail-figure {
  grid-column: 2 / 7;
  margin: 0;
  max-width: 460px;
}

.detail-figure img {
  width: 100%;
  border: 1px solid rgba(28, 20, 22, .18);
}

.detail-text { grid-column: 8 / 13; }

/* ---------- página About ---------- */

.about-labels {
  grid-column: 1 / 5;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
  padding-top: 10px;
}

.about-labels li {
  padding: 12px 0;
  border-top: 1px solid rgba(201, 143, 63, .35);
}

.about-labels li:last-child { border-bottom: 1px solid rgba(201, 143, 63, .35); }

.about-text { grid-column: 6 / 13; }

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

.doc { grid-column: 2 / 10; }

.doc h2 { margin-top: 52px; margin-bottom: 18px; }
.doc h2:first-of-type { margin-top: 34px; }

.page-head { padding: clamp(48px, 7vw, 84px) 0 0; }
.page-head h1 { grid-column: 1 / 10; }
.page-head .lead { grid-column: 1 / 8; margin-top: 26px; }

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

.site-footer {
  background: var(--bg-contrast);
  color: var(--text-dark);
  padding: 64px 0 56px;
  margin-top: 0;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr;
  column-gap: 48px;
  row-gap: 32px;
  align-items: start;
}

.footer-name {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 12px;
}

.footer-note {
  font-size: 13px;
  line-height: 1.7;
  color: #6b5a55;
  margin: 0;
  max-width: 34ch;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin-bottom: 10px; }

.site-footer a {
  color: #9c661f;
  border-bottom: 1px solid rgba(156, 102, 31, .4);
  font-size: 15px;
}

.footer-contact p { margin: 0 0 10px; }

.footer-label {
  font-size: 13px;
  color: #6d7a5c;
  margin: 0 0 12px;
}

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

@media (max-width: 1000px) {
  .hero h1 { grid-column: 1 / 8; }
  .hero-intro { grid-column: 1 / 6; }
  .hero-figure { grid-column: 8 / 13; }
  .col-narrow { grid-column: 2 / 10; }
  .col-wide { grid-column: 2 / 12; }
  .detail-figure { grid-column: 1 / 7; }
  .detail-text { grid-column: 7 / 13; }
  .doc { grid-column: 1 / 11; }
  .about-text { grid-column: 5 / 13; }
}

@media (max-width: 760px) {
  :root { --rhythm: 56px; --gap: 0px; }

  body { font-size: 16.5px; }

  .grid { grid-template-columns: 1fr; }

  .hero { padding-top: 40px; }
  .hero .grid { row-gap: 22px; }
  .hero-kicker,
  .hero h1,
  .hero-intro,
  .hero-figure,
  .sec-num,
  .col-narrow,
  .col-wide,
  .list-cols,
  .detail-figure,
  .detail-text,
  .about-labels,
  .about-text,
  .doc,
  .page-head h1,
  .page-head .lead {
    grid-column: 1;
  }

  .hero-figure {
    grid-row: auto;
    justify-self: start;
    max-width: 100%;
  }

  .sec-num { padding-top: 0; margin-bottom: 10px; }

  .detail-figure { max-width: 100%; margin-bottom: 30px; }

  .list-two { grid-template-columns: 1fr; column-gap: 0; }

  .site-header .wrap { flex-direction: column; align-items: flex-start; }

  .site-nav ul { gap: 6px 20px; }

  .site-footer .footer-grid { grid-template-columns: 1fr; }

  .about-labels { margin-bottom: 28px; }
}
