/* ════════════════════════════════════════════════════════════════
   UNIVERSO RURALIA · TERRITORIO
   Tierra oscura, papel cálido, serifa editorial y una grieta que
   recorre la página. Los niveles llevan color de tierra: óxido,
   ocre, musgo y coral.
   ════════════════════════════════════════════════════════════════ */
.u-ruralia {
  --r-fondo: #0c0a07;
  --r-panel: #14110c;
  --r-linea: #2b251a;
  --r-linea-2: #3d3524;
  --r-texto: #efe7d8;
  --r-texto-2: #d4cbb9;
  --r-mudo: #a59c8a;
  --r-oxido: #e0663f;
  --r-ocre: #dcaa48;
  --r-musgo: #9db365;
  --r-coral: #ec8f70;
  --r-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --acento: #ec8f70;
  /* El marco común toma el fondo y las líneas del universo */
  --fondo: var(--r-fondo); --cabecera: var(--r-fondo); --borde: var(--r-linea); --borde-fuerte: var(--r-linea-2); --hueco: #1d1810; --mudo: var(--r-mudo);
  background: var(--r-fondo);
}
.u-ruralia main { color: var(--r-texto); }
.u-ruralia ::selection { background: var(--r-oxido); color: #140b06; }

.r-hero { position: relative; max-width: 1100px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--margen) 56px; }
.r-kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--r-ocre); }
.r-titulo { position: relative; margin-top: 18px; font: 600 clamp(72px, 13vw, 168px)/.92 var(--r-serif); font-variation-settings: 'opsz' 144; letter-spacing: -.035em; color: var(--r-texto); }
.r-titulo em { font-style: italic; font-weight: 500; color: var(--r-oxido); }
.r-grieta { position: absolute; left: -2%; top: 4%; width: 104%; height: 92%; overflow: visible; pointer-events: none; }
.r-grieta path { fill: none; stroke: var(--r-oxido); stroke-width: 2.4; stroke-linejoin: bevel; stroke-dasharray: 100; stroke-dashoffset: 100; animation: r-abre 2.6s .3s cubic-bezier(.6, .1, .3, 1) forwards; opacity: .85; }
@keyframes r-abre { to { stroke-dashoffset: 0; } }
.r-dek { margin-top: 30px; max-width: 30ch; font: italic 400 clamp(22px, 2.6vw, 30px)/1.3 var(--r-serif); color: var(--r-texto-2); }
.r-alcance { max-width: 64ch; margin-top: 34px; padding-left: 22px; border-left: 3px solid var(--r-oxido); font-size: 17px; line-height: 1.7; color: var(--r-texto-2); }
.r-alcance strong { color: var(--r-texto); font-weight: 600; }
.r-hero p a, .r-grieta-item p a, .r-lead a, .r-nota a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: color-mix(in oklab, currentColor 50%, transparent); }
.r-cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--r-linea-2); }
.r-cifras > div { padding: 18px 20px 0 0; }
.r-cifras > div + div { padding-left: 20px; border-left: 1px solid var(--r-linea); }
.r-cifras dd { margin: 0; font: 600 clamp(48px, 6vw, 76px)/1 var(--r-serif); letter-spacing: -.03em; color: var(--r-texto); }
.r-cifras dt { order: 2; margin-top: 8px; font: 500 11.5px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--r-mudo); }
.r-cifras > div { display: flex; flex-direction: column; }

.r-grietas { max-width: 1100px; margin: 0 auto; padding: 56px var(--margen) 40px; background: linear-gradient(var(--r-linea), var(--r-linea)) no-repeat top center / calc(100% - 2 * var(--margen)) 1px; scroll-margin-top: 16px; }
.r-grietas-cab { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: end; }
.r-grietas-cab h2 { font: 600 clamp(34px, 4.4vw, 52px)/1.02 var(--r-serif); letter-spacing: -.02em; color: var(--r-texto); }
.r-grietas-cab h2 em { font-style: italic; font-weight: 500; color: var(--r-oxido); }
.r-lead { grid-column: 1 / -1; max-width: 66ch; font-size: 16.5px; line-height: 1.7; color: var(--r-mudo); }
.r-filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.r-filtros button {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
  border: 1px solid var(--r-linea-2); border-radius: 999px; background: transparent; color: var(--r-texto-2); font-size: 13px;
}
.r-filtros button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.r-filtros button span { color: var(--r-mudo); font-variant-numeric: tabular-nums; }
.r-filtros button:hover { border-color: var(--c); }
.r-filtros button[aria-pressed="true"] { border-color: var(--c); background: color-mix(in oklab, var(--c) 18%, transparent); color: var(--r-texto); }

.r-lista { list-style: none; position: relative; margin-top: 40px; }
.r-lista::before {
  content: ""; position: absolute; left: 47px; top: 10px; bottom: 10px; width: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='60' viewBox='0 0 14 60'%3E%3Cpath d='M7 0L3 9L10 17L4 28L11 37L5 47L9 54L7 60' fill='none' stroke='%23e0663f' stroke-opacity='.45' stroke-width='1.4'/%3E%3C/svg%3E") repeat-y;
}
.r-grieta-item { position: relative; display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 0 28px; padding: 30px 0; border-top: 1px solid var(--r-linea); }
.r-grieta-item:first-child { border-top: 0; }
.r-n { position: relative; z-index: 1; justify-self: start; padding: 0 6px; background: var(--r-fondo); font: 600 56px/1 var(--r-serif); letter-spacing: -.04em; color: var(--c); }
.r-nivel { font: 600 11.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.r-grieta-item h3 { margin: 8px 0 12px; max-width: 30ch; font: 600 clamp(22px, 2.4vw, 28px)/1.2 var(--r-serif); letter-spacing: -.01em; color: var(--r-texto); }
.r-grieta-item p { max-width: 68ch; font-size: 16px; line-height: 1.72; color: var(--r-texto-2); }
.r-dato { display: flex; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--r-linea-2); max-width: 68ch; font-size: 14px !important; line-height: 1.6 !important; color: var(--r-texto) !important; }
.r-dato svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; color: var(--c); }
.critico { --c: var(--r-oxido); }
.alto { --c: var(--r-ocre); }
.estructural { --c: var(--r-musgo); }
.urgente { --c: var(--r-coral); }

.r-cierre { max-width: 1100px; margin: 0 auto; padding: 64px var(--margen) 96px; background: linear-gradient(var(--r-linea), var(--r-linea)) no-repeat top center / calc(100% - 2 * var(--margen)) 1px; }
.r-cierre p:first-child { font: 600 clamp(38px, 5.6vw, 72px)/1.02 var(--r-serif); letter-spacing: -.025em; color: var(--r-texto); }
.r-cierre p:first-child em { display: block; font-style: italic; font-weight: 500; color: var(--r-oxido); }
.r-nota { max-width: 74ch; margin-top: 32px; font-size: 13.5px; line-height: 1.7; color: var(--r-mudo); }

@media (max-width: 760px) {
  .r-cifras { grid-template-columns: minmax(0, 1fr); }
  .r-cifras > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--r-linea); }
  .r-grietas-cab { grid-template-columns: minmax(0, 1fr); }
  .r-lista::before { left: 25px; }
  .r-grieta-item { grid-template-columns: 64px minmax(0, 1fr); gap: 0 16px; }
  .r-n { font-size: 38px; padding: 0 4px; }
}
@media (prefers-reduced-motion: reduce) { .r-grieta path { animation: none; stroke-dashoffset: 0; } }
