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

:root {
  --paper: #f1f2f0;
  --paper-alt: #e3e5e2;
  --ink: #141614;
  --text: #171917;
  --muted: #6a6e6a;
  --accent: #2a6b3c;
  --gold: #8a6a20;
  --came: 5px;
  --band-came: 6px;
  --pad-y: 72px;
  --pad-x: 44px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 24px;
}

h1 { font-size: clamp(2.1rem, 5vw, 4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); }
h3 { font-size: 1.16rem; line-height: 1.25; margin-bottom: 14px; }

p { margin: 0 0 1.15em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

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

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

strong { font-weight: 600; }

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

.masthead {
  background: var(--ink);
  color: var(--paper);
  padding: 20px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: baseline;
  justify-content: space-between;
}

.masthead__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.masthead__name:hover { color: #ffffff; }

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

.masthead nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 15px;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

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

.masthead :focus-visible { outline-color: var(--paper); }

/* ---------- bandas y rejilla ---------- */

.band { background: var(--ink); }
.band + .band { border-top: var(--band-came) solid var(--ink); }

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

.cell {
  background: var(--paper);
  padding: var(--pad-y) var(--pad-x);
  grid-column: span 12;
  min-width: 0;
}

.band--alt .cell { background: var(--paper-alt); }
.band--dark .cell { background: var(--ink); color: var(--paper); }
.band--dark h2, .band--dark h3 { color: var(--paper); }
.band--dark a { color: var(--paper); }
.band--dark :focus-visible { outline-color: var(--paper); }
.band--dark .caption { color: #c0c4c0; }
.band--dark .num { color: #cbbf98; }

.cell--tight { padding: 44px var(--pad-x); }
.cell--flush { padding: 0; background: transparent !important; }

.c3 { grid-column: span 3; }
.c4 { grid-column: span 4; }
.c5 { grid-column: span 5; }
.c7 { grid-column: span 7; }
.c8 { grid-column: span 8; }

/* ---------- portada: composición del hero ---------- */

.hero .grid { gap: var(--came); }

.hero__title {
  grid-column: span 7;
  grid-row: 1 / span 2;
  display: flex;
  align-items: flex-end;
}

.hero__title h1 { margin: 0; }
.hero__title h1 span { display: block; }

.hero__lead {
  grid-column: span 5;
  background: var(--accent) !important;
  color: var(--paper);
}

.hero__lead p { max-width: 42ch; }

.hero__field {
  grid-column: span 5;
  background: var(--ink) !important;
  min-height: 130px;
  padding: 0;
}

.hero__index { grid-column: span 12; padding: 26px var(--pad-x); }

.hero__index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  font-size: 15px;
}

.hero__index a { color: var(--text); text-decoration: none; border-bottom: 2px solid var(--accent); }
.hero__index a:hover { color: var(--accent); }

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

figure { margin: 0; }

.plate {
  display: block;
  width: 100%;
  height: auto;
  border: 5px solid var(--ink);
}

.caption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 14px 0 0;
  max-width: 40ch;
}

.detail-media { max-width: 420px; }

/* ---------- detalles tipográficos ---------- */

.num {
  font-size: 13px;
  line-height: 1.4;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.note { color: var(--muted); font-size: 15px; }

.list { list-style: none; margin: 0 0 1.2em; padding: 0; max-width: 62ch; }
.list li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 13px;
  height: 2px;
  background: var(--accent);
}
.band--dark .list li::before { background: var(--paper); }
.list li:last-child { margin-bottom: 0; }

.steps { margin: 0 0 1.2em; padding-left: 22px; max-width: 62ch; }
.steps li { margin-bottom: 10px; padding-left: 6px; }
.steps li::marker { color: var(--gold); }

.rule {
  border: 0;
  border-top: 2px solid var(--gold);
  margin: 32px 0;
  max-width: 120px;
}

.mailto { font-weight: 600; }

/* ---------- páginas interiores: panel vertical ---------- */

.panel .band .cell { padding-top: 64px; padding-bottom: 64px; }
.panel .band--dark .cell { padding-top: 80px; padding-bottom: 80px; }

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

.site-footer {
  background: var(--ink);
  border-top: var(--band-came) solid var(--ink);
}

.site-footer .grid { gap: var(--came); }

.site-footer .cell { padding: 44px var(--pad-x); }

.foot--name { grid-column: span 4; background: var(--paper-alt); }
.foot--nav { grid-column: span 4; background: var(--paper); }
.foot--mail { grid-column: span 4; background: var(--ink); color: var(--paper); }

.foot--name p, .foot--nav p, .foot--mail p { font-size: 15px; }

.foot__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.1;
  margin: 0 0 12px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.site-footer li { margin-bottom: 8px; }
.site-footer .foot--mail a { color: var(--paper); }
.site-footer .foot--mail :focus-visible { outline-color: var(--paper); }
.site-footer .foot--mail p { color: #c0c4c0; max-width: 34ch; }
.site-footer .foot--mail .mailto { color: var(--paper); font-size: 1.05rem; }

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

@media (max-width: 1080px) {
  :root { --pad-y: 56px; --pad-x: 34px; }
}

@media (max-width: 900px) {
  .c3, .c4, .c5, .c7, .c8,
  .hero__title, .hero__lead, .hero__field, .hero__index,
  .foot--name, .foot--nav, .foot--mail { grid-column: span 12; }
  .hero__title { grid-row: auto; }
  .hero__field { min-height: 90px; }
  .detail-media { max-width: none; }
}

@media (max-width: 620px) {
  :root { --pad-y: 40px; --pad-x: 22px; }
  body { font-size: 16.5px; }
  .masthead { padding: 18px 22px; }
  .hero__index ul { gap: 8px 20px; }
  p { max-width: none; }
}
