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

:root {
  --bg: #f5f4f0;
  --bg-alt: #e2ded4;
  --bg-deep: #14456b;
  --ink: #1c1e20;
  --ink-soft: #6a6d6e;
  --ink-invert: #f5f4f0;
  --accent: #c2522f;
  --accent-2: #1d6b8f;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gap: 28px;
}

*, *::before, *::after { 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;
}

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

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

.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;
  letter-spacing: -0.005em;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.14;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.3;
  margin-bottom: 22px;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.4;
  margin: 34px 0 12px;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(194, 82, 47, 0.45);
  padding-bottom: 1px;
}

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

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

.lead {
  font-size: 1.06rem;
  line-height: 1.85;
}

.caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

.label {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  line-height: 1.6;
  margin: 0 0 18px;
}

.num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent-2);
  line-height: 1.6;
  letter-spacing: 0.06em;
}

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

.site-head {
  padding: 26px 0 22px;
  border-bottom: 1px solid rgba(28, 30, 32, 0.16);
}

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

.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  border-bottom: 0;
}

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

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

.site-nav a {
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

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

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

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

.hero .grid { align-items: start; }

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

.hero h1 { max-width: 15ch; }

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

.hero-meta {
  grid-column: 1 / 9;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid rgba(194, 82, 47, 0.5);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
}

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

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

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

.section { padding: 96px 0; }

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

.section-deep {
  background: var(--bg-deep);
  color: var(--ink-invert);
}

.section-deep h2,
.section-deep h3 { color: var(--ink-invert); }

.section-deep .num,
.section-deep .caption,
.section-deep .label { color: #a8c6dc; }

.section-deep a { color: #f0b39c; border-bottom-color: rgba(240, 179, 156, 0.5); }

.section-deep .rule { background: rgba(245, 244, 240, 0.35); }

.section-deep li::before { background: #f0b39c; }

.rule {
  height: 1px;
  border: 0;
  background: rgba(194, 82, 47, 0.55);
  margin: 0;
}

.section > .wrap > .rule { margin-bottom: 34px; }

/* bloque numerado: número en el margen izquierdo, fuera de la columna de texto */

.block { position: relative; }

.block .num {
  grid-column: 1 / 2;
  padding-top: 8px;
}

.block-narrow { grid-column: 3 / 9; }
.block-wide { grid-column: 3 / 11; }
.block-right { grid-column: 5 / 12; }

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

.list-two {
  grid-column: 3 / 13;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  margin-top: 8px;
}

ul.plain, ol.plain {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}

ul.plain li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  line-height: 1.75;
}

ul.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 9px;
  height: 1px;
  background: var(--accent);
}

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

ol.steps li {
  counter-increment: st;
  position: relative;
  padding-left: 38px;
  margin-bottom: 18px;
  line-height: 1.8;
}

ol.steps li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent-2);
  line-height: 2.2;
}

dl.terms { margin: 0; }
dl.terms dt {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid rgba(28, 30, 32, 0.16);
}
dl.terms dd { margin: 8px 0 0; }

/* ---------- sección con imagen de detalle ---------- */

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

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

/* ---------- páginas interiores ---------- */

.page-head { padding: 72px 0 8px; }
.page-head h1 { grid-column: 1 / 10; max-width: 18ch; }
.page-head .lead { grid-column: 1 / 8; margin-top: 34px; }

.prose { grid-column: 4 / 12; }
.prose h2 { margin-top: 58px; }
.prose h2:first-child { margin-top: 0; }

.side-marks {
  grid-column: 1 / 4;
  padding-top: 8px;
}

.side-marks p {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid rgba(28, 30, 32, 0.2);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.side-marks p:first-child { border-top: 0; padding-top: 0; }

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

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

.contact-inner { grid-column: 3 / 10; }

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

.site-foot {
  background: var(--bg-deep);
  color: var(--ink-invert);
  padding: 64px 0 52px;
  margin-top: 0;
}

.foot-grid {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr;
  column-gap: var(--gap);
  align-items: start;
}

.foot-name {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  margin: 0;
}

.foot-name small {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: #a8c6dc;
  margin-top: 12px;
  max-width: 30ch;
}

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

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

.foot-nav a,
.foot-contact a {
  color: var(--ink-invert);
  font-size: 15px;
  border-bottom: 1px solid rgba(245, 244, 240, 0.35);
}

.foot-nav a:hover,
.foot-contact a:hover {
  color: #f0b39c;
  border-bottom-color: #f0b39c;
}

.foot-contact p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #a8c6dc;
}

.foot-bottom {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 244, 240, 0.28);
  font-size: 13px;
  color: #a8c6dc;
  line-height: 1.7;
}

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

@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-text { grid-column: 1 / 13; }
  .hero-intro { grid-column: 1 / 13; margin-top: 30px; }
  .hero-meta { grid-column: 1 / 13; }
  .hero-figure {
    grid-column: 1 / 13;
    grid-row: auto;
    margin-top: 44px;
    max-width: 420px;
  }
  .section { padding: 56px 0; }
  .block .num { grid-column: 1 / 13; padding-top: 0; margin-bottom: 10px; }
  .block-narrow, .block-wide, .block-right { grid-column: 1 / 13; }
  .list-two { grid-column: 1 / 13; grid-template-columns: 1fr; column-gap: 0; }
  .detail-figure { grid-column: 1 / 13; max-width: 420px; }
  .detail-text { grid-column: 1 / 13; margin-top: 34px; }
  .page-head { padding: 48px 0 4px; }
  .page-head h1, .page-head .lead { grid-column: 1 / 13; }
  .prose, .about-body, .contact-inner { grid-column: 1 / 13; }
  .side-marks { grid-column: 1 / 13; margin-bottom: 34px; }
  .foot-grid { grid-template-columns: 1fr; row-gap: 34px; }
}

@media (max-width: 600px) {
  body { font-size: 17px; line-height: 1.85; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; }
  .site-nav ul { gap: 4px 20px; }
  .site-foot { padding: 48px 0 40px; }
}
