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

:root {
  --paper: #f5f0df;
  --paper-alt: #e9e1c9;
  --ink-dark: #2f2a1e;
  --text: #241f16;
  --text-soft: #736b55;
  --accent: #8a6a1f;
  --accent-2: #4a6b52;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gap: 96px;
}

* { box-sizing: border-box; }

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

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

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

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

a:hover { text-decoration-thickness: 2px; }

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

/* ---------- Rejilla base de 12 columnas ---------- */

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

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

/* ---------- Cabecera y navegación ---------- */

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

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

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

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

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

.site-nav a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

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

/* ---------- Etiquetas de servicio ---------- */

.tag {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 14px;
}

.num {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.rule {
  border: 0;
  border-top: 1px solid var(--accent);
  margin: 0;
  width: 100%;
  opacity: 0.55;
}

/* ---------- Portada ---------- */

.hero {
  padding: 74px 0 var(--gap);
}

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

.hero-text { grid-column: 1 / span 8; }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0;
  max-width: 15ch;
}

.hero-lede {
  grid-column: 1 / span 4;
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
}

.hero-figure {
  grid-column: 9 / span 4;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 480px;
  margin-top: 46px;
}

figure { margin: 0; }

figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-soft);
  margin-top: 12px;
  line-height: 1.5;
}

/* ---------- Secciones ---------- */

.band { padding: var(--gap) 0; }
.band--alt { background: var(--paper-alt); }

.band--dark {
  background: var(--ink-dark);
  color: var(--paper);
}

.band--dark h2,
.band--dark h3 { color: var(--paper); }

.band--dark p,
.band--dark li { color: #ded7c1; }

.band--dark a { color: #d9bd72; }
.band--dark .num,
.band--dark .tag { color: #9dbba4; }
.band--dark figcaption { color: #b3ab93; }
.band--dark .rule { border-top-color: #6b6046; opacity: 1; }

.sec-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  margin-bottom: 26px;
}

.sec-head .num { grid-column: 1 / span 1; padding-top: 12px; }
.sec-head h2 { grid-column: 2 / span 9; }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.008em;
}

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

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

/* Columnas de texto */
.col-left {              /* 6 columnas con sangría izquierda */
  grid-column: 2 / span 6;
}

.col-mid {               /* 8 columnas centradas */
  grid-column: 3 / span 8;
}

.col-wide { grid-column: 2 / span 9; }

/* Listas */
.list-two {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 0;
  margin-top: 34px;
}

.list-two > ul {
  grid-column: span 5;
  margin: 0;
}

.list-two > ul:first-child { grid-column: 2 / span 5; }

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

ul.marks li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
}

ul.marks li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.band--dark ul.marks li::before { color: #d9bd72; }

ol.steps {
  margin: 30px 0 0;
  padding-left: 0;
  list-style: none;
  counter-reset: st;
}

ol.steps li {
  counter-increment: st;
  position: relative;
  padding-left: 44px;
  margin-bottom: 16px;
}

ol.steps li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.list-caption {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 14px;
}

/* Sección oscura con imagen de detalle */
.detail-grid {
  align-items: center;
  row-gap: 40px;
}

.detail-figure {
  grid-column: 1 / span 4;
  max-width: 440px;
}

.detail-text { grid-column: 6 / span 6; }

.detail-figure figcaption { font-size: 14px; }

/* Bloque de contacto en portada */
.contact-grid { row-gap: 24px; }
.contact-grid .contact-label { grid-column: 1 / span 3; }
.contact-grid .contact-body { grid-column: 4 / span 7; }

/* ---------- Páginas interiores ---------- */

.page-head { padding: 66px 0 40px; }

.page-head .page-title { grid-column: 1 / span 9; }

.page-head h1 { max-width: 20ch; }

.page-head .page-sub {
  grid-column: 1 / span 5;
  margin: 22px 0 0;
  color: var(--text-soft);
}

.prose { padding: 56px 0 var(--gap); }

.prose h2 { margin-top: 0; }

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

/* About: columna a la derecha, etiquetas a la izquierda */
.about-grid { row-gap: 34px; }

.about-marks {
  grid-column: 1 / span 3;
  align-self: start;
}

.about-marks ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--accent);
}

.about-marks li {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 12px 0;
  border-bottom: 1px solid var(--accent);
}

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

/* ---------- Pie ---------- */

.site-foot {
  background: var(--ink-dark);
  color: var(--paper);
  padding: 62px 0 54px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr;
  column-gap: 32px;
  row-gap: 34px;
  align-items: start;
}

.foot-name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  margin: 0 0 12px;
}

.foot-note {
  color: #b3ab93;
  font-size: 15px;
  margin: 0;
  max-width: 34ch;
}

.foot-grid nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-grid nav li { margin-bottom: 10px; }

.foot-grid nav a,
.foot-mail a {
  color: #ded7c1;
  text-decoration: none;
  border-bottom: 1px solid #6b6046;
  padding-bottom: 2px;
}

.foot-grid nav a:hover,
.foot-mail a:hover {
  color: #f5f0df;
  border-bottom-color: #d9bd72;
}

.foot-mail p { margin: 0 0 10px; }

.foot-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9dbba4;
  margin: 0 0 14px;
}

.foot-bottom {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid #6b6046;
  font-size: 14px;
  color: #b3ab93;
}

.foot-bottom p { margin: 0; }

/* ---------- Adaptación ---------- */

@media (max-width: 1000px) {
  .hero-figure { grid-column: 8 / span 5; margin-top: 30px; }
  .hero-text { grid-column: 1 / span 7; }
  .hero-lede { grid-column: 1 / span 6; }
  .detail-figure { grid-column: 1 / span 5; }
  .detail-text { grid-column: 7 / span 6; }
  .about-body { grid-column: 5 / span 8; }
}

@media (max-width: 780px) {
  :root { --gap: 56px; }

  body { font-size: 16.5px; }

  .shell { padding: 0 20px; }

  .site-head .shell { flex-direction: column; align-items: flex-start; }

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

  .hero { padding: 44px 0 var(--gap); }

  .hero-text,
  .hero-lede,
  .hero-figure,
  .detail-figure,
  .detail-text,
  .col-left,
  .col-mid,
  .col-wide,
  .about-marks,
  .about-body,
  .page-head .page-title,
  .page-head .page-sub,
  .contact-grid .contact-label,
  .contact-grid .contact-body {
    grid-column: 1 / -1;
  }

  .hero-figure {
    grid-row: auto;
    margin-top: 6px;
    max-width: 100%;
  }

  .detail-figure { max-width: 100%; }

  .sec-head { display: block; margin-bottom: 20px; }
  .sec-head .num { display: block; margin-bottom: 10px; padding-top: 0; }

  .list-two { display: block; }
  .list-two > ul { margin-bottom: 26px; }
  .list-two > ul:last-child { margin-bottom: 0; }

  ul.marks li { margin-bottom: 14px; }

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

  .block { margin-bottom: 44px; }
}

/* Encabezado interno de lista */
li.list-caption {
  padding-left: 0 !important;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}

li.list-caption::before { content: none !important; }
