/* EL HOTELISTA — Sistema visual 2026
   Papel hueso + negro carbón + rojo editorial + mostaza.
   Titulares: DM Serif Display · Destacados/etiquetas: Bebas Neue / Oswald · Cuerpo: Inter. */

:root {
  --paper: #F2ECE4;      /* papel hueso (fondo principal) */
  --paper-2: #EAE3D6;    /* cremita más profunda para bandas */
  --panel: #FBF9F4;      /* tarjeta / superficie elevada */
  --ink: #141210;        /* negro carbón */
  --muted: #4C483F;      /* texto secundario */
  --faint: #837F74;      /* metadatos, etiquetas suaves */
  --line: #D9D6CF;       /* gris claro (hairline) */
  --line-2: #C6C1B4;     /* hairline más marcado */
  --rule: #141210;       /* filete fuerte */
  --red: #D63828;        /* rojo editorial (acentos, datos, CTA) */
  --red-ink: #B02A1E;    /* rojo hover */
  --gold: #E8AF5B;       /* mostaza (etiquetas, highlights) */
  --steel: #8B8F94;      /* gris acero */
  --readw: 700px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .display {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 2px; }

img, svg { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.read { max-width: var(--readw); margin: 0 auto; padding: 0 28px; }

/* ---- Kickers / labels (Oswald condensada) ---- */
.kicker, .label {
  font-family: "Oswald", "Bebas Neue", sans-serif;
  font-weight: 600; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--red);
}
.label.muted { color: var(--faint); }

/* ---------- Masthead / logotipo ---------- */
.masthead { background: var(--paper); }
.masthead .topline { border-top: 4px solid var(--rule); border-bottom: 1px solid var(--line); }
.masthead .topline .wrap {
  display: flex; justify-content: space-between; align-items: center; height: 36px;
  font-family: "Oswald", sans-serif; font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.masthead .topline a { color: var(--faint); }
.masthead .topline a:hover { color: var(--red); }
.masthead .center { text-align: center; padding: 30px 0 20px; }

.wordmark {
  font-family: "DM Serif Display", serif; font-weight: 400;
  font-size: clamp(38px, 7.5vw, 68px); letter-spacing: .01em; text-transform: uppercase;
  color: var(--ink); line-height: .92; display: inline-block; position: relative;
}
.wordmark:hover { color: var(--ink); }
.wordmark .wm-el {
  font-family: "Oswald", sans-serif; font-weight: 600;
  font-size: .2em; letter-spacing: .22em; vertical-align: top;
  position: relative; top: .18em; margin-right: .1em; color: var(--ink);
}
.wordmark .dot { color: var(--red); }
.wordmark img { height: clamp(32px, 5vw, 54px); width: auto; display: block; }
.masthead .tagline {
  font-family: "Oswald", sans-serif; font-size: 12.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 14px;
}
.masthead .nav-rule { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.masthead .nav { display: flex; justify-content: center; align-items: center; height: 48px; flex-wrap: wrap; }
.masthead .nav a {
  font-family: "Oswald", sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  padding: 0 22px; position: relative;
}
.masthead .nav a + a::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 14px; background: var(--line-2); }
.masthead .nav a:hover { color: var(--red); }
.masthead .nav a.cta { color: var(--red); }

/* ---------- Front / lead ---------- */
.front { padding: 64px 0 12px; }
.lead-head { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.0; max-width: 16ch; margin: 0 0 20px; }
.standfirst { font-size: clamp(19px, 2.2vw, 23px); color: var(--muted); line-height: 1.5; max-width: 42ch; margin: 0 0 6px; font-weight: 400; }
.standfirst strong { color: var(--ink); font-weight: 600; }
.byline {
  font-family: "Oswald", sans-serif; font-size: 12.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); margin: 20px 0 0;
}

/* running text columns */
.columns { column-gap: 42px; }
@media (min-width: 900px) { .columns.two { column-count: 2; } }
.columns p { margin: 0 0 18px; }
.dropcap::first-letter {
  font-family: "DM Serif Display", serif; float: left; font-size: 3.6em; line-height: .72;
  padding: 8px 12px 0 0; color: var(--red);
}

/* section rule heading */
.rule-h { display: flex; align-items: baseline; gap: 14px; border-bottom: 3px solid var(--rule); padding-bottom: 10px; margin: 0 0 28px; }
.rule-h .n { font-family: "Bebas Neue", "Oswald", sans-serif; font-weight: 400; font-size: 26px; line-height: 1; color: var(--red); letter-spacing: .04em; }
.rule-h h2 { font-size: clamp(24px, 3.2vw, 34px); }
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: none; }

/* editorial numbered list */
.contents { border-top: 2px solid var(--rule); }
.contents .item { display: grid; grid-template-columns: 60px 1fr; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contents .item .no { font-family: "Bebas Neue", "Oswald", sans-serif; font-size: 42px; line-height: .8; color: var(--red); letter-spacing: .02em; }
.contents .item h3 { font-size: 24px; margin: 0 0 6px; }
.contents .item p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }

/* ---------- Data graphic ---------- */
.figure { margin: 8px 0 0; }
.figure .fig-kicker {
  font-family: "Oswald", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); border-bottom: 2px solid var(--rule); padding-bottom: 8px; margin-bottom: 6px;
}
.figure .fig-title { font-family: "DM Serif Display", serif; font-size: 24px; margin: 12px 0 20px; }
.bars { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: center; }
.bar-label { font-family: "Oswald", sans-serif; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.bar-track { background: var(--paper-2); height: 28px; position: relative; box-shadow: inset 0 0 0 1px var(--line-2); }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.bar-fill.accent { background: var(--red); }
.bar-fill.hatch { background: repeating-linear-gradient(45deg, var(--red), var(--red) 5px, #e26456 5px, #e26456 10px); }
.bar-val { font-family: "Bebas Neue", "Oswald", sans-serif; font-size: 24px; line-height: 1; color: var(--ink); letter-spacing: .02em; }
.bar-val.neg { color: var(--red); font-size: 15px; font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.fig-note { font-family: "Oswald", sans-serif; font-size: 12px; letter-spacing: .02em; color: var(--faint); margin: 20px 0 0; padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.6; }
.fig-annot { font-size: 14px; color: var(--muted); margin: 16px 0 0; font-weight: 500; }

/* big stat */
.statline { display: flex; gap: 26px; align-items: baseline; border-top: 3px solid var(--rule); border-bottom: 3px solid var(--rule); padding: 26px 0; margin: 24px 0; }
.statline .big { font-family: "DM Serif Display", serif; font-size: clamp(56px, 10vw, 96px); line-height: .82; color: var(--ink); }
.statline .cap { font-size: 17px; color: var(--muted); line-height: 1.45; }
.statline .cap strong { color: var(--ink); }

/* ---------- Subscribe module ---------- */
.subbox { border: 2px solid var(--rule); background: var(--panel); padding: 40px 32px; text-align: center; position: relative; }
.subbox .kicker { display: block; margin-bottom: 14px; }
.subbox h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 12px; max-width: 22ch; margin-left: auto; margin-right: auto; }
.subbox p.sub { color: var(--muted); margin: 0 auto 24px; max-width: 46ch; }
.subscribe { display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px; margin: 0 auto 12px; justify-content: center; }
.subscribe-embed { max-width: 480px; margin: 8px auto 14px; }
.subscribe-embed iframe { width: 100% !important; }
.subscribe input[type=email] { flex: 1 1 220px; min-width: 180px; padding: 14px 15px; font-size: 16px; font-family: "Inter", sans-serif; border: 1.5px solid var(--rule); background: #fff; color: var(--ink); }
.subscribe input[type=email]:focus { outline: none; box-shadow: 0 0 0 3px rgba(214,56,40,.2); border-color: var(--red); }

.btn {
  display: inline-block; cursor: pointer; background: var(--ink); color: #F7F3EC;
  border: 2px solid var(--ink); padding: 14px 26px; font-size: 14px; font-weight: 600;
  font-family: "Oswald", sans-serif; letter-spacing: .1em; line-height: 1; text-transform: uppercase;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.accent { background: var(--red); border-color: var(--red); color: #fff; }
.btn.accent:hover { background: var(--red-ink); border-color: var(--red-ink); }
.micro { font-family: "Oswald", sans-serif; font-size: 12.5px; letter-spacing: .06em; color: var(--faint); margin: 0; text-transform: uppercase; }
.micro strong { color: var(--muted); }

/* teaser */
.teaser { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.teaser .label { display: block; margin-bottom: 10px; color: var(--red); }
.teaser h3 { font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 12px; max-width: 24ch; }
.teaser p { margin: 0; color: var(--muted); }
.teaser .more { font-family: "Oswald", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }

/* ---------- Article ---------- */
.article-head { padding: 40px 0 0; }
.article-head .dateline { font-family: "Oswald", sans-serif; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.article-head .dateline a { color: var(--red); }
.article-head h1 { font-size: clamp(34px, 5.6vw, 58px); line-height: 1.02; text-align: center; margin: 0 auto 18px; max-width: 20ch; }
.article-head .dek { font-family: "Inter", sans-serif; font-style: italic; font-size: 20px; color: var(--muted); text-align: center; max-width: 46ch; margin: 0 auto; }
.article-head .hr { border: none; border-top: 1px solid var(--line); margin: 30px 0 0; }

.prose { font-size: 18.5px; line-height: 1.72; color: var(--ink); }
.prose > p:first-of-type { margin-top: 0; }
.prose p { margin: 0 0 22px; }
.prose .rule-h { margin-top: 46px; }
.prose h3 { font-size: 23px; margin: 30px 0 10px; }
.prose ol, .prose ul { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin: 0 0 14px; padding-left: 4px; }
.prose li::marker { color: var(--red); }
.prose strong { font-weight: 700; }
.prose em { color: var(--muted); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.prose a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose a:hover { color: var(--red-ink); }
.prose .lead-para::first-letter { font-family: "DM Serif Display", serif; float: left; font-size: 3.8em; line-height: .68; padding: 8px 12px 0 0; color: var(--red); }

.radar { list-style: none; padding: 0; margin: 0; }
.radar li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.radar li:first-child { border-top: 1px solid var(--line); }
.radar .why { display: block; color: var(--muted); font-style: italic; font-size: 16.5px; margin-top: 6px; }

.sources { font-family: "Oswald", sans-serif; font-size: 13px; letter-spacing: .02em; color: var(--faint); border-top: 3px solid var(--rule); padding-top: 18px; margin-top: 40px; line-height: 1.6; }
.sources strong { color: var(--muted); }

/* ---------- Archive ---------- */
.issue { display: grid; grid-template-columns: 92px 1fr; gap: 26px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.issue:first-child { border-top: 3px solid var(--rule); }
.issue .no { font-family: "Bebas Neue", "Oswald", sans-serif; font-size: 22px; color: var(--red); letter-spacing: .04em; }
.issue .date { display: block; font-family: "Oswald", sans-serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.issue h3 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 8px; }
.issue p { margin: 0; color: var(--muted); font-size: 17px; }
.issue.soon { opacity: .62; }
.issue .tag { display: inline-block; font-family: "Oswald", sans-serif; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); background: var(--gold); padding: 2px 9px; margin-left: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 4px solid var(--rule); margin-top: 24px; padding: 44px 0 30px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.site-footer .fw { font-family: "DM Serif Display", serif; font-size: 30px; text-transform: uppercase; color: var(--ink); line-height: 1; }
.site-footer .fw .wm-el { font-family: "Oswald", sans-serif; font-weight: 600; font-size: .28em; letter-spacing: .2em; vertical-align: top; position: relative; top: .2em; margin-right: .1em; }
.site-footer .fw .dot { color: var(--red); }
.site-footer .footer-brand { display: block; text-align: center; padding-bottom: 26px; }
.footer-brand .fw-mark { display: inline-block; line-height: 0; }
.footer-brand .fw-mark img { height: 18px; width: auto; display: inline-block; }
.site-footer p { max-width: 260px; font-size: 15px; margin: 12px 0 0; }
.footcol h4 { font-family: "Oswald", sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink); margin: 0 0 12px; }
.footcol ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-family: "Inter", sans-serif; font-size: 14px; }
.footcol a { color: var(--muted); }
.footcol a:hover { color: var(--red); }
.footstrip { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; }
.colophon { font-family: "Oswald", sans-serif; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.colophon a { color: inherit; }
.colophon a:hover { color: var(--red); }

/* utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  /* nav compacta: Ediciones y Artículos ya cubren el archivo */
  .nav .nav-sec { display: none; }
  /* en móvil la barra superior solo deja la llamada a suscribirse, centrada:
     los tres elementos juntos se leían como una sola frase rota */
  .masthead .topline .wrap span.hide-sm { display: none; }
  .masthead .topline .wrap span:first-child { display: none; }
  .masthead .topline .wrap { justify-content: center; }
  /* el nav tenía altura fija de 48px con flex-wrap: al envolverse en pantallas
     angostas se desbordaba por debajo de la línea divisoria, y el separador
     del primer enlace de cada renglón quedaba colgando */
  .masthead .nav { height: auto; min-height: 48px; padding: 9px 0; row-gap: 2px; }
  .masthead .nav a { padding: 3px 14px; }
  .masthead .nav a + a::before { display: none; }
  .bar-row { grid-template-columns: 96px 1fr auto; gap: 10px; }
  .contents .item { grid-template-columns: 44px 1fr; gap: 16px; }
  .issue { grid-template-columns: 1fr; gap: 6px; }
  .statline { flex-direction: column; gap: 12px; }
}


/* ---------- Archivo compacto ---------- */
.arch { border-top: 3px solid var(--rule); }
.arch-group { font-family: "Oswald", sans-serif; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); margin: 0; padding: 26px 0 6px; }
.arch-row { display: grid; grid-template-columns: 82px 1fr 112px; gap: 20px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.arch-row .n { font-family: "Bebas Neue", "Oswald", sans-serif; font-size: 17px; color: var(--red); letter-spacing: .04em; }
.arch-row .t { font-size: 19px; line-height: 1.32; }
.arch-row .d { font-family: "Oswald", sans-serif; font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint); text-align: right; }
a.arch-row:hover .t { color: var(--red); }
.arch-row.soon { opacity: .55; }
@media (max-width: 700px) {
  .arch-row { grid-template-columns: 1fr; gap: 3px; }
  .arch-row .d { text-align: left; }
}


/* ---------- Consentimiento de cookies ---------- */
.eh-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: var(--panel); border-top: 3px solid var(--rule);
  box-shadow: 0 -10px 30px rgba(0,0,0,.08);
  transform: translateY(100%); transition: transform .26s ease;
}
.eh-consent.is-open { transform: translateY(0); }
.eh-consent-in {
  max-width: 1180px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 28px;
}
.eh-consent-txt {
  margin: 0; flex: 1 1 auto; font-size: 15px; line-height: 1.5; color: var(--muted);
}
.eh-consent-txt a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.eh-consent-txt a:hover { color: var(--red); }
.eh-consent-btns { flex: 0 0 auto; display: flex; gap: 10px; }
.eh-btn {
  font-family: "Oswald", sans-serif; font-size: 12.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 11px 20px; border: 1px solid var(--rule); cursor: pointer;
  background: transparent; color: var(--ink); transition: background .15s, color .15s;
}
.eh-btn-solid { background: var(--red); border-color: var(--red); color: #fff; }
.eh-btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.eh-btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.eh-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (max-width: 760px) {
  .eh-consent-in { flex-direction: column; align-items: stretch; gap: 13px; padding: 15px 18px; }
  .eh-consent-txt { font-size: 14px; line-height: 1.45; }
  .eh-consent-btns { flex-direction: row; }
  .eh-btn { flex: 1 1 0; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .eh-consent { transition: none; }
}


/* ---------- Gráfico de tuberías (marca → infraestructura) ---------- */
.tuberias .tub-heads {
  display: grid; grid-template-columns: minmax(0,.62fr) 60px minmax(0,1fr); gap: 0;
  font-family: "Oswald", sans-serif; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.tuberias .tub-heads span:last-child { grid-column: 3; }
.tub-row {
  display: grid; grid-template-columns: minmax(0,.62fr) 60px minmax(0,1fr); align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.tub-row .m {
  font-family: "Oswald", sans-serif; font-size: 15px; font-weight: 600;
  letter-spacing: .04em; color: var(--ink);
}
.tub-row .c { position: relative; height: 1px; }
.tub-row .c::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 1px; background: var(--line-2);
}
.tub-row .c::after {
  content: ""; position: absolute; right: 0; top: -3px;
  border-left: 5px solid var(--line-2);
  border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
}
.tub-row .t { font-size: 16px; color: var(--ink); line-height: 1.35; }
.tub-row .t em {
  display: block; font-style: normal;
  font-family: "Oswald", sans-serif; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); margin-top: 3px;
}
.tub-row.alerta .c::before { background: var(--red); height: 2px; }
.tub-row.alerta .c::after { border-left-color: var(--red); }
.tub-row.alerta .t { color: var(--red); font-weight: 600; }
.tub-row.alerta .t em { color: var(--red); }
.tub-remate {
  margin: 20px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted);
  border-left: 3px solid var(--red); padding-left: 16px;
}
.tub-remate b { color: var(--ink); }
@media (max-width: 700px) {
  .tuberias .tub-heads { grid-template-columns: 1fr; }
  .tuberias .tub-heads span:last-child { display: none; }
  .tub-row { grid-template-columns: 1fr; padding: 12px 0; }
  .tub-row .c { height: 14px; margin: 2px 0 4px; width: 22px; }
  .tub-row .c::before { top: 7px; }
  .tub-row .c::after { top: 4px; }
  .tub-row .t { font-size: 15px; }
}
