/* Gozendame — hoja de estilo común
   Sistema: rejilla de 12 columnas con columna de servicio (escala) a la izquierda */

:root {
  --bg: #181a19;
  --bg-alt: #202422;
  --bg-light: #eef0ee;
  --text: #e6e9e6;
  --text-dim: #8f9691;
  --text-on-light: #181a19;
  --text-dim-on-light: #575f59;
  --accent: #5fae86;
  --accent-2: #d8c07a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --step: 80px;
  --gutter: 24px;
}

* { 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(95, 174, 134, .45); }
a:hover { border-bottom-color: var(--accent); }

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

/* ---------- Rejilla ---------- */

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

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

/* Columna de servicio (columnas 1–2) */
.rail {
  grid-column: 1 / 3;
  align-self: start;
}

.rail .num {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--accent-2);
  line-height: 1;
  padding-bottom: 14px;
}

.rail .tag {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 14px;
}

/* Escala vertical dibujada solo con CSS */
.rail .scale {
  display: block;
  width: 22px;
  height: 96px;
  border-left: 1px solid rgba(143, 150, 145, .35);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(143, 150, 145, .55) 0 1px,
    transparent 1px 12px
  );
  background-size: 10px 100%;
  background-repeat: no-repeat;
}

.rail .scale.tall { height: 280px; }

.sec--light .rail .num { color: #8a7433; }
.sec--light .rail .tag { color: var(--text-dim-on-light); }
.sec--light .rail .scale {
  border-left-color: rgba(24, 26, 25, .3);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(24, 26, 25, .45) 0 1px,
    transparent 1px 12px
  );
}

/* Bloques de contenido */
.body-col { grid-column: 3 / 10; }      /* 7 columnas */
.wide-col { grid-column: 3 / 12; }      /* 9 columnas */

/* ---------- Cabecera ---------- */

.site-head {
  border-bottom: 1px solid rgba(143, 150, 145, .22);
}

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

.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .04em;
  color: var(--text);
  border-bottom: 0;
}

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

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

.site-nav a {
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--text-dim);
  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-top: var(--step);
  padding-bottom: var(--step);
}

.hero h1 {
  grid-column: 3 / 12;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 28px;
}

.hero h1 .line { display: block; }

.hero .lead {
  grid-column: 3 / 9;                    /* 6 columnas */
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
}

.hero .lead + .lead { margin-top: 18px; color: var(--text-dim); font-size: 17px; }

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

.sec {
  padding-top: var(--step);
  padding-bottom: var(--step);
}

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

.sec--light {
  background: var(--bg-light);
  color: var(--text-on-light);
}

.sec--light a { color: #2f7a55; border-bottom-color: rgba(47, 122, 85, .4); }
.sec--light a:hover { border-bottom-color: #2f7a55; }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.4vw, 29px);
  line-height: 1.25;
  letter-spacing: -.005em;
  margin: 0 0 20px;
}

h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  margin: 34px 0 12px;
}

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

.dim { color: var(--text-dim); }
.sec--light .dim { color: var(--text-dim-on-light); }

/* Trazo de acento entre párrafos */
.stroke {
  display: block;
  width: 100%;
  height: 24px;
  margin: 26px 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--accent) 0 1px,
    transparent 1px 14px
  );
  background-size: 100% 24px;
  background-repeat: no-repeat;
  opacity: .55;
}

.stroke--short { width: 120px; }
.sec--light .stroke {
  background-image: repeating-linear-gradient(
    to right,
    #2f7a55 0 1px,
    transparent 1px 14px
  );
}

/* ---------- Listas ---------- */

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

.list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85em;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

.list--two {
  columns: 2;
  column-gap: var(--gutter);
}

.list--two li { break-inside: avoid; }

.list-block { grid-column: 3 / 12; margin-top: 26px; }

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

.sec--light .list-title { color: #8a7433; }
.sec--light .list li::before { background: #2f7a55; }

/* ---------- Imagen principal ---------- */

.figure-main { padding-top: 0; padding-bottom: var(--step); }

.figure-main .caption {
  grid-column: 1 / 4;
  align-self: end;
  padding-bottom: 6px;
}

.figure-main .shot { grid-column: 4 / 13; }   /* 9 columnas, pegada al borde derecho */

.figure-main img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.caption {
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--text-dim);
  margin: 0;
}

.caption .mark {
  display: block;
  color: var(--accent-2);
  letter-spacing: .16em;
  padding-bottom: 8px;
}

.sec--light .caption { color: var(--text-dim-on-light); }
.sec--light .caption .mark { color: #8a7433; }

/* ---------- Imagen de detalle (sección clara) ---------- */

.detail-shot { grid-column: 3 / 7; }          /* 4 columnas, desplazada a un borde */

.detail-shot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.detail-shot figcaption { margin-top: 12px; }

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

/* ---------- Bloque de contacto ---------- */

.contact-line {
  font-family: var(--serif);
  font-size: 20px;
  margin-top: 8px;
}

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

.site-foot {
  background: var(--bg);
  border-top: 1px solid rgba(143, 150, 145, .22);
  padding-top: 34px;
  padding-bottom: 40px;
}

.patchbay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  flex-wrap: wrap;
}

.patchbay .foot-name {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .04em;
}

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

.patchbay a {
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
}

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

.patchbay .foot-mail a { color: var(--accent); border-bottom-color: rgba(95, 174, 134, .45); }

.foot-rule {
  height: 1px;
  background: rgba(143, 150, 145, .22);
  margin: 26px 0 14px;
}

.foot-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero h1 { grid-column: 3 / 13; }
  .hero .lead { grid-column: 3 / 12; }
  .body-col { grid-column: 3 / 13; }
  .wide-col, .list-block { grid-column: 3 / 13; }
  .figure-main .caption { grid-column: 1 / 13; align-self: start; padding-bottom: 16px; }
  .figure-main .shot { grid-column: 1 / 13; }
  .detail-shot { grid-column: 3 / 8; }
  .detail-text { grid-column: 3 / 13; margin-top: 30px; }
}

@media (max-width: 720px) {
  :root { --step: 48px; --gutter: 16px; }

  body { font-size: 16px; line-height: 1.75; }

  .wrap { padding: 0 18px; }

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

  /* La columna de servicio se convierte en una etiqueta en línea sobre el título */
  .rail {
    grid-column: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
  }

  .rail .num, .rail .tag { padding-bottom: 0; }

  .rail .scale {
    width: 100%;
    height: 12px;
    border-left: 0;
    border-top: 1px solid rgba(143, 150, 145, .35);
    background-image: repeating-linear-gradient(
      to right,
      rgba(143, 150, 145, .55) 0 1px,
      transparent 1px 12px
    );
    background-size: 100% 6px;
  }

  .rail .scale.tall { height: 12px; }

  .sec--light .rail .scale {
    border-top-color: rgba(24, 26, 25, .3);
    background-image: repeating-linear-gradient(
      to right,
      rgba(24, 26, 25, .45) 0 1px,
      transparent 1px 12px
    );
  }

  .hero h1, .hero .lead,
  .body-col, .wide-col, .list-block,
  .figure-main .caption, .figure-main .shot,
  .detail-shot, .detail-text { grid-column: auto; }

  .list--two { columns: 1; }

  .detail-text { margin-top: 26px; }

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

  .site-nav ul { gap: 4px 18px; }

  .patchbay { flex-direction: column; align-items: flex-start; }

  .contact-line { font-size: 18px; }
}
