/* Fichas de ingeniería de Dintech */
.tech-figure {
  --figure-rule: var(--rule-2);
  --figure-ink: var(--ink);
  --figure-copy: var(--ink-2);
  --figure-label: var(--ink-2);
  --figure-accent: var(--accent-2);
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0;
  padding: clamp(16px, 3vw, 26px);
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--figure-rule);
  color: var(--figure-copy);
  font: 400 15px/1.5 var(--sans);
}
body.theme-dark .tech-figure {
  --figure-accent: var(--accent);
}
.tech-figure figcaption {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--figure-rule);
}
.tech-figure figcaption span {
  color: var(--figure-label);
  font: 500 10px/1.5 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tech-figure figcaption strong {
  color: var(--figure-ink);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.15;
}
.tech-figure ol, .tech-figure dl {
  margin: 0;
}
.tech-figure ol {
  list-style: none;
  counter-reset: stage;
}
.tech-figure li, .tech-figure dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--figure-rule);
}
.tech-figure li {
  grid-template-columns: minmax(0, 1fr);
  padding-left: 33px;
  position: relative;
  counter-increment: stage;
}
.tech-figure li::before {
  content: counter(stage, decimal-leading-zero);
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--figure-accent);
  font: 600 11px/1.5 var(--mono);
}
.tech-figure li strong, .tech-figure dt {
  font-weight: 600;
  color: var(--figure-ink);
}
.tech-figure li span {
  display: block;
}
.tech-figure dd { margin: 0; }
.tech-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.pillar { grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; cursor: auto; }
.pillar .tech-figure { padding: 15px 18px; }
.pillar .tech-figure figcaption strong { font-size: 18px; }
.sec.gold-bg .tech-figure {
  --figure-rule: #34342e;
  --figure-ink: #fff;
  --figure-copy: #d4dad8;
  --figure-label: #b9bdb4;
  --figure-accent: #f5c84a;
  background: #151612;
}
.story-step { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr); }
.proj > .tech-figure { margin: 14px 14px 0; }
.proj > .tech-figure figcaption strong { color: var(--figure-accent); }
.port-tab {
  appearance: none;
  text-align: left;
  width: 100%;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
}
.port-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.port-details { min-width: 0; scroll-margin-top: 90px; }

.mobile-fold > summary,
.topbar > .mobile-menu,
.topbar .mobile-nav-link { display: none; }
.gd-side.mobile-fold { display: block; }
.gd-side-content { display: flex; flex-direction: column; gap: 14px; }

@media (max-width: 768px) {
  .r, .r-words .word {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .sec[id], .mobile-fold [id] { scroll-margin-top: 68px; }
  .mobile-fold { margin-top: 14px; min-width: 0; }
  .mobile-fold > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 46px;
    padding: 10px 14px;
    list-style: none;
    cursor: pointer;
    touch-action: manipulation;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--rule-2);
    font-size: 15px;
    font-weight: 600;
  }
  .mobile-fold > summary::-webkit-details-marker { display: none; }
  .mobile-fold > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border: solid var(--accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  .mobile-fold[open] > summary::after { transform: rotate(225deg); }
  .mobile-fold[open] > summary { margin-bottom: 12px; }
  .mobile-fold > :nth-child(2) { margin-top: 0; }
  .console-alarms, .gd-shell .mobile-fold { margin-top: 0; }
  .gd-shell, .port-shell { margin-top: 14px; min-height: 0; }
  .gd-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 8px; }
  .gd-shell > * { min-width: 0; }
  .gd-topbar { flex-direction: column; align-items: stretch; gap: 7px; padding: 9px 11px; }
  .gd-topbar-l, .gd-topbar-r { flex-wrap: wrap; gap: 5px 12px; overflow-wrap: anywhere; }
  .gd-shell .gd-stage { min-height: 0; height: clamp(270px, 78vw, 360px); }
  .gd-stage .gd-3d { height: 100%; aspect-ratio: auto; }
  .gd-stage .gd-stage-readout { top: 18px; left: 18px; font-size: 8px; letter-spacing: .05em; }
  .gd-stage .gd-stage-coords { top: 18px; right: 18px; font-size: 8px; letter-spacing: .05em; }
  .gd-tabs { order: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .gd-tabs .gd-tab { min-width: 0; }
  .gd-tabs .gd-tab:last-child { grid-column: 1 / -1; }
  .gd-shell .gd-side { order: 2; }

  .topbar { grid-template-columns: 1fr auto auto; }
  .topbar > .mobile-menu {
    display: inline-flex;
    height: 44px;
    padding: 0 9px;
    align-self: center;
    border: 0;
    background: transparent;
    color: #3a3833;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
  }
  .topbar .mobile-menu[aria-expanded="true"] + .nav {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    gap: 0;
    height: auto;
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
    margin: 0;
    padding: 4px 14px;
    background: #fff;
    border-bottom: 1px solid #e6e2d8;
  }
  .topbar .nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px;
    text-align: left;
    font-size: 14px;
  }
}
.port-panel + .port-panel:not([hidden]) { margin-top: 28px; }
.port-panel[hidden] { display: none; }
.port-panel .tech-figure { margin-top: 22px; }
@media (max-width: 900px) {
  .story-step { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 500px) {
  .tech-figure dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .r, .r-words .word {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.tech-figure .campo-foto {
  border: 1px solid var(--figure-rule);
  border-radius: 3px;
  width: min(100%, 525px);
  margin-inline: auto;
  object-fit: contain;
  background: var(--bg-2);
}
.campo-caption {
  margin-top: -7px;
  color: var(--figure-label);
  font: 400 11px/1.4 var(--mono);
}

@media (max-width: 900px) {
  html { overflow-x: clip; }
}

.filtros-editoriales {
  position: absolute;
  pointer-events: none;
}
.tech-figure .ilustracion-tecnica {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--figure-rule);
  border-radius: 3px;
}
body:not(.theme-light):not(.theme-beige) .tinta-editorial,
.sec.gold-bg .tinta-editorial {
  filter: url("#tinta-dintech");
}
.sala-control {
  margin-top: 56px;
  scroll-margin-top: 86px;
}

/* El Plan Hídrico se lee como seis fichas de arriba abajo. */
.sec.gold-bg .plan-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.sec.gold-bg .plan-cards .story-step {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 12px;
  padding: clamp(16px, 1.8vw, 26px);
}
.plan-cards .story-num {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  font-size: 10px;
}
.plan-cards .story-num b {
  margin: 0;
  font: 600 15px/1 var(--mono);
}
.sec.gold-bg .plan-cards .story-text h4 {
  max-width: none;
  margin-bottom: 8px;
  font-size: clamp(19px, 2vw, 24px);
}
.sec.gold-bg .plan-cards .story-text p {
  max-width: none;
  font-size: 15px;
  line-height: 1.55;
}
.sec.gold-bg .plan-cards .tech-figure {
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}
.plan-cards .tech-figure figcaption {
  display: none;
}
.plan-cards .tech-figure dl > div {
  grid-template-columns: minmax(90px, .85fr) minmax(0, 1.6fr);
  font-size: 14px;
}
.plan-cards .tech-figure li {
  font-size: 14px;
}
.plan-cards .campo-caption {
  margin: 0;
}
@media (max-width: 1120px) {
  .sec.gold-bg .plan-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .sec.gold-bg .plan-cards { grid-template-columns: minmax(0, 1fr); }
}

.marcas-cintilla {
  margin-top: 30px;
  padding: 16px 0;
  border-block: 1px solid var(--rule-2);
}
.marcas-cintilla h3 {
  margin: 0 0 12px;
  color: var(--ink-2);
  font: 500 11px/1.3 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.marcas-ventana {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marcas-pista {
  display: flex;
  width: max-content;
  animation: correr-marcas 38s linear infinite;
}
.marcas-grupo {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  min-width: 100vw;
  margin: 0;
  padding: 0 12px 0 0;
  list-style: none;
}
.marca-ficha {
  display: grid;
  place-items: center;
  flex: 0 0 138px;
  min-height: 61px;
  padding: 9px 10px;
  background: transparent;
}
.marca-ficha img {
  display: block;
  width: 114px;
  height: 39px;
  object-fit: contain;
  filter: url("#marca-dorada");
}
body.theme-light .marca-ficha img,
body.theme-beige .marca-ficha img {
  filter: url("#marca-negra");
}
.marca-ficha img.marca-base-negra {
  filter: url("#marca-dorada-base-negra");
}
body.theme-light .marca-ficha img.marca-base-negra,
body.theme-beige .marca-ficha img.marca-base-negra {
  filter: url("#marca-negra-base-negra");
}
.marca-sofrel {
  display: block;
  width: 114px;
  height: 39px;
  overflow: hidden;
  clip-path: polygon(0 0, 62% 0, 62% 32%, 100% 32%, 100% 100%, 0 100%);
}
.marca-sofrel img {
  width: 100%;
  height: auto;
}
@keyframes correr-marcas {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marcas-ventana { mask-image: none; }
  .marcas-pista { width: 100%; animation: none; }
  .marcas-grupo { min-width: 0; flex-wrap: wrap; justify-content: flex-start; padding: 0; }
  .marcas-grupo[aria-hidden] { display: none; }
}

.visual-animable {
  position: relative;
  min-width: 0;
}
.visual-animable svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.visual-en-vista > img {
  animation: entrar-ilustracion .65s ease-out both;
}
@keyframes entrar-ilustracion {
  from { opacity: .65; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .visual-en-vista > img { animation: none; }
  .visual-animable svg { display: none; }
}

.metric-defs {
  position: absolute;
}
.metric-summary {
  display: block;
  list-style: none;
}
.metric-summary::-webkit-details-marker {
  display: none;
}
@media (max-width: 768px) {
  .console-grid .metric-panel {
    padding: 0 14px;
  }
  .metric-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 9px;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    cursor: pointer;
  }
  .metric-summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }
  .metric-summary .metric-title {
    margin: 0;
    color: var(--ink-2);
  }
  .metric-title .tag {
    display: none;
  }
  .metric-summary .val {
    font-size: 21px;
  }
  .metric-summary .val .u {
    font-size: 12px;
    margin-left: 4px;
  }
  .metric-summary::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
    transform: rotate(45deg);
  }
  .metric-panel[open] .metric-summary::after {
    transform: rotate(225deg);
  }
  .metric-panel .delta {
    margin-top: 0;
  }
  .metric-panel .spark {
    display: block;
    margin: 8px 0 12px;
  }
}

#plan .visual-animable > .ilustracion-tecnica {
  filter: url("#negro-plan");
}
#plan .visual-animable > .tinta-editorial {
  filter: url("#tinta-dintech") url("#negro-plan");
}

/* Las capas SVG se reproducen sobre el arte original, sin desplazarlo. */
.mov-ilustracion { overflow: visible; }
.mov-flujo, .mov-nodo, .mov-zona { opacity: 0; }
.mov-flujo {
  fill: none;
  stroke: #ffdb85;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 11 4 2 103;
  stroke-dashoffset: 17;
}
.mov-nodo {
  fill: #fbd77d;
  fill-opacity: .22;
  stroke: #ffe2a0;
  stroke-width: 1.8;
  transform-box: fill-box;
  transform-origin: center;
}
.mov-zona {
  fill: #e7b858;
  fill-opacity: .06;
  stroke: #ffd481;
  stroke-width: 1.6;
}
.visual-en-vista .mov-flujo { animation: avance-ilustracion 5.2s linear var(--fase) infinite; }
.visual-en-vista .mov-nodo { animation: nodo-ilustracion 5.2s ease-out var(--fase) infinite; }
.visual-en-vista .mov-zona { animation: etapa-ilustracion 5.2s ease-in-out var(--fase) infinite; }
@keyframes avance-ilustracion {
  0% { stroke-dashoffset: 17; opacity: 0; }
  8% { opacity: 1; }
  62% { stroke-dashoffset: -102; opacity: .95; }
  72%, 100% { stroke-dashoffset: -103; opacity: 0; }
}
@keyframes nodo-ilustracion {
  0%, 11% { transform: scale(.65); opacity: 0; }
  17% { transform: scale(.9); opacity: 1; }
  42%, 100% { transform: scale(2.4); opacity: 0; }
}
@keyframes etapa-ilustracion {
  0%, 43%, 100% { opacity: 0; }
  13%, 24% { opacity: .86; }
}

.mov-orbita {
  fill: none;
  stroke: #ffdb85;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 10 15;
  opacity: 0;
}
.mov-secuencia .mov-flujo { stroke-width: 3; }
.mov-secuencia .mov-zona { fill-opacity: .10; }
.visual-en-vista .mov-secuencia .mov-flujo { animation: avance-secuencia 5.8s linear var(--fase) infinite; }
.visual-en-vista .mov-secuencia .mov-nodo { animation: nodo-secuencia 5.8s ease-out var(--fase) infinite; }
.visual-en-vista .mov-secuencia .mov-zona { animation: zona-secuencia 5.8s ease-out var(--fase) infinite; }
.visual-en-vista .mov-orbita { animation: orbita-secuencia 5.8s linear infinite; }
@keyframes avance-secuencia {
  0% { stroke-dashoffset: 17; opacity: 0; }
  3% { opacity: 1; }
  16% { stroke-dashoffset: -100; opacity: 1; }
  19%, 100% { stroke-dashoffset: -103; opacity: 0; }
}
@keyframes nodo-secuencia {
  0% { transform: scale(.55); opacity: 0; }
  4% { transform: scale(1); opacity: 1; }
  20%, 100% { transform: scale(2.8); opacity: 0; }
}
@keyframes zona-secuencia {
  0%, 27%, 100% { opacity: 0; }
  5%, 14% { opacity: .9; }
}
@keyframes orbita-secuencia {
  0% { stroke-dashoffset: 0; opacity: 0; }
  8% { opacity: 1; }
  37% { opacity: .75; }
  61%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mov-ilustracion * { animation: none !important; }
}

.port-shell { grid-template-columns: 280px minmax(0, 1fr); }
.port-body { min-width: 0; }
.port-panel:not([hidden]) { animation: entrar-capacidad .38s ease-out both; }
@keyframes entrar-capacidad {
  from { opacity: .5; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1000px) {
  .port-shell { grid-template-columns: minmax(0, 1fr); }
  .port-tabs { flex-flow: row wrap; overflow: visible; gap: 4px; padding: 8px; }
  .port-tabs .group { display: none; }
  .port-tabs .port-tab { width: auto; flex: 1 1 auto; gap: 10px; white-space: normal; padding-inline: 12px; }
  .port-3d-mini { min-height: 0; height: clamp(225px, 56vw, 350px); }
}
@media (prefers-reduced-motion: reduce) {
  .port-panel:not([hidden]) { animation: none; }
}

/* Aviso de privacidad */
.privacy {
  scroll-margin-top: 68px;
  padding-block: clamp(32px, 5vw, 72px);
  background: var(--bg-2);
}
.privacy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 58px);
  align-items: center;
  border: 1px solid var(--rule-2);
  border-top: 2px solid var(--accent);
  background: var(--panel);
  padding: clamp(18px, 3.5vw, 48px);
}
.privacy .eyebrow { margin-bottom: 12px; }
.privacy-intro h2 {
  font: 600 clamp(34px, 5vw, 68px)/1.04 var(--sans);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.privacy-intro h2 em { color: var(--accent); font-style: normal; }
.privacy-intro p {
  max-width: 44ch;
  margin-top: 14px;
  font: 400 17px/1.55 var(--sans);
  color: var(--ink-2);
}
.privacy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.privacy-actions a { min-height: 44px; align-content: center; }
.privacy-actions .btn { width: auto; }
.privacy-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .26em;
  overflow-wrap: anywhere;
}
.privacy-cover { min-width: 0; }
.privacy-cover img, .privacy-detail {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-2);
}
.privacy-cover img { aspect-ratio: 3 / 2; object-fit: cover; }
.privacy-layout {
  display: grid;
  grid-template-columns: minmax(215px, .7fr) minmax(0, 2fr);
  gap: clamp(16px, 3vw, 36px);
  align-items: start;
  margin-top: 20px;
}
.privacy-meta {
  padding: 17px;
  border: 1px solid var(--rule-2);
  color: var(--ink-2);
  background: var(--panel);
}
.privacy-kicker { color: var(--ink-2); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.privacy-meta > strong { display: block; color: var(--ink); font-size: 17px; margin-block: 4px 10px; }
.privacy-meta dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; padding-block: 6px; border-bottom: 1px solid var(--rule-2); }
.privacy-meta a { display: inline-block; margin-top: 12px; }
.privacy-detail { margin-top: 15px; aspect-ratio: 3 / 2; object-fit: cover; }
.privacy-chapters { display: grid; gap: 8px; min-width: 0; }
.privacy-chapter {
  scroll-margin-top: 80px;
  border: 1px solid var(--rule-2);
  background: var(--panel);
  min-width: 0;
}
.privacy-chapter > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 10px 16px;
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
}
.privacy-chapter > summary::-webkit-details-marker { display: none; }
.privacy-chapter > summary::after {
  content: "+";
  color: var(--accent);
  font-size: 21px;
}
.privacy-chapter[open] > summary { border-bottom: 1px solid var(--rule-2); }
.privacy-chapter[open] > summary::after { content: "−"; }
.privacy-index { color: var(--accent); font-size: 11px; letter-spacing: .08em; }
.privacy-chapter-title { font-family: var(--sans); line-height: 1.25; }
.privacy-chapter-title strong, .privacy-chapter-title small { display: block; }
.privacy-chapter-title strong { font-size: 17px; }
.privacy-chapter-title small { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.privacy-copy { padding: clamp(16px, 2.6vw, 30px); font: 400 16px/1.6 var(--sans); color: var(--ink-2); overflow-wrap: anywhere; }
.privacy-copy h3 { margin: 1.4em 0 .55em; font-size: 20px; line-height: 1.25; color: var(--ink); }
.privacy-copy h3:first-child { margin-top: 0; }
.privacy-copy h3 span { color: var(--accent); }
.privacy-copy p, .privacy-copy ul, .privacy-copy .ct, .privacy-copy .arco { margin-bottom: .8em; }
.privacy-copy ul { padding-left: 1.3em; }
.privacy-copy li + li { margin-top: .35em; }
.privacy-copy a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.privacy-copy .sub { color: var(--ink); font-weight: 600; margin-block: .9em .4em; }
.privacy-copy .info, .privacy-copy .ct, .privacy-copy .marco { padding: 12px 14px; margin-bottom: .8em; border-left: 2px solid var(--accent); background: var(--bg-2); }
.privacy-copy .marco p:last-child { margin-bottom: 0; }
.privacy-copy .arco, .privacy-cookies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.privacy-copy .arco > div, .privacy-cookies > div { padding: 12px; border: 1px solid var(--rule-2); background: var(--bg-2); }
.privacy-copy .arco b, .privacy-cookies dt { display: block; color: var(--ink); font-weight: 600; }
.privacy-actions a:focus-visible, .privacy-chapter > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 768px) {
  .privacy { padding-block: 24px; }
  .privacy-hero, .privacy-layout { grid-template-columns: minmax(0, 1fr); }
  .privacy-hero { gap: 14px; }
  .privacy-intro p { font-size: 15px; margin-top: 10px; }
  .privacy-actions { gap: 6px 14px; margin-top: 12px; }
  .privacy-cover img { aspect-ratio: 2.2 / 1; object-position: center 53%; }
  .privacy-layout { gap: 10px; margin-top: 10px; }
  .privacy-meta { order: 1; }
  .privacy-detail { display: none; }
  .privacy-chapter > summary { gap: 10px; padding-inline: 12px; }
  .privacy-copy .arco, .privacy-cookies { grid-template-columns: minmax(0, 1fr); }
}

/* Directorio de contacto */
.foot {
  color: #19160f;
  background: #f5c84a;
  border-top: 1px solid #3a2e13;
  scroll-margin-top: 68px;
}
.foot-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
  padding: clamp(26px, 5vw, 68px) var(--pad-x) 22px;
}
.foot-cta h2 {
  max-width: 22ch;
  margin: 8px 0;
  font: 600 clamp(26px, 3.5vw, 44px)/1.08 var(--sans);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.foot-cta p {
  max-width: 48ch;
  font: 400 16px/1.45 var(--sans);
}
.foot-cta .btn.primary {
  min-height: 44px;
  margin-top: 14px;
  padding: 10px 16px;
  background: #13120e;
  color: #ffda73;
  border: 1px solid #13120e;
}
.foot-cta .btn.primary:hover { background: #302617; }
.foot-label, .foot-directory dt {
  color: #594416;
  font: 600 10px/1.25 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.foot-directory {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  border: 1px solid #b18b34;
  background: #ffdb71;
}
.foot-directory > div { min-width: 0; padding: 13px clamp(10px, 1.6vw, 20px); }
.foot-directory > div:nth-child(even) { border-left: 1px solid #b18b34; }
.foot-directory > div:nth-child(n+3) { border-top: 1px solid #b18b34; }
.foot-directory dd { margin-top: 5px; font: 500 15px/1.35 var(--sans); }
.foot-directory a { display: block; overflow-wrap: anywhere; }
.foot-directory a + a { margin-top: 4px; }
.foot-directory a:hover, .foot-nav a:hover { text-decoration: underline; text-underline-offset: .22em; }
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  margin: 0 var(--pad-x);
  border-top: 1px solid #a47f2d;
}
.foot-nav a { display: flex; align-items: center; min-height: 44px; font: 600 14px/1.35 var(--sans); }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 13px var(--pad-x);
  background: #10120f;
  color: #e9e6dc;
  font: 400 11px/1.45 var(--sans);
}
.foot-bottom span:last-child { color: #b0b6ad; font-family: var(--mono); }
@media (max-width: 768px) {
  .foot-main { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px var(--pad-x) 12px; }
  .foot-cta h2 { max-width: none; }
  .foot-cta p { font-size: 14px; }
  .foot-directory > div { padding-block: 9px; }
  .foot-directory dd { font-size: 14px; }
  .foot-bottom { padding-right: max(var(--pad-x), 66px); }
  .privacy-copy .arco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.plan-phase { min-width: 0; background: #0a0a0a; }
.plan-phase > summary { display: none; }
@media (max-width: 768px) {
  #plan .plan-cards, #plan .plan-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 0;
  }
  .plan-phase > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 9px 12px;
    cursor: pointer;
    color: #fff;
    list-style: none;
  }
  .plan-phase > summary::-webkit-details-marker { display: none; }
  .plan-phase > summary span { color: #f5c84a; font-size: 10px; }
  .plan-phase > summary strong { font: 600 15px/1.25 var(--sans); }
  .plan-phase > summary::after { content: "+"; color: #f5c84a; }
  .plan-phase[open] > summary::after { content: "−"; }
  .plan-phase .story-num, .plan-phase .story-text h4 { display: none; }
}

/* Contacto: celdas delimitadas en escritorio y móvil */
.foot-directory{border:0;gap:0}.foot-directory>div{border:1px solid #9f7c2d!important}.foot-directory>div:nth-child(even){border-left:0!important}.foot-directory>div:nth-child(n+3){border-top:0!important}.foot-directory>div:last-child:nth-child(odd){grid-column:1 / -1}
