:root {
  --mp-paper: #f7f4ee;
  --mp-surface: #ffffff;
  --mp-tint: #ede7dc;
  --mp-wine: #7a1f2b;
  --mp-wine-dark: #5b141e;
  --mp-teal: #116466;
  --mp-ink: #181715;
  --mp-muted: #524d46;
  --mp-rule: #cfc7ba;
  --mp-rule-strong: #181715;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--mp-paper);
  color: var(--mp-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.68;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--mp-wine);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--mp-teal);
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--mp-ink);
  margin-top: 0;
  line-height: 1.18;
  font-weight: 700;
}

.contenedor-pliego {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.cabecera-edicion-zaragoza {
  background: var(--mp-paper);
  border-bottom: 1px solid var(--mp-rule-strong);
  position: relative;
  z-index: 50;
}

.franja-edicion-meta {
  border-bottom: 1px solid var(--mp-rule);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--mp-muted);
  padding: 5px 0;
}

.franja-edicion-meta .contenedor-pliego {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.mastil-editorial {
  text-align: center;
  padding: 11px 24px 9px;
  border-bottom: 3px double var(--mp-rule-strong);
}

.marca-cabecera-serif {
  display: inline-block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mp-ink);
  line-height: 1.05;
}

.marca-cabecera-serif:hover {
  color: var(--mp-wine);
}

.bajada-mastil {
  display: block;
  margin-top: 5px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mp-wine);
  font-weight: 700;
}

.barra-rubricas {
  padding: 9px 0;
  background: var(--mp-paper);
}

.lista-rubricas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.lista-rubricas > li {
  position: relative;
}

.lista-rubricas > li > a {
  display: inline-block;
  padding: 4px 2px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--mp-ink);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.lista-rubricas > li > a:hover,
.lista-rubricas > li > a[aria-current="page"] {
  color: var(--mp-wine);
  border-bottom-color: var(--mp-wine);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 245px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-rule-strong);
  border-top: 3px solid var(--mp-wine);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 60;
}

.lista-rubricas > li:hover .dropdown-menu,
.lista-rubricas > li:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 0.84rem;
  color: var(--mp-ink);
  border-bottom: 1px solid #eee7dc;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--mp-paper);
  color: var(--mp-wine);
}

.portada-tres-columnas {
  padding: 28px 0 38px;
  border-bottom: 3px double var(--mp-rule-strong);
}

.malla-broadsheet {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr) 250px;
  gap: 0;
  align-items: start;
}

.columna-indice-izq {
  padding-right: 22px;
  border-right: 1px solid var(--mp-rule);
}

.columna-portada-centro {
  padding: 0 28px;
}

.columna-pasaporte-der {
  padding-left: 22px;
  border-left: 1px solid var(--mp-rule);
}

.kicker-editorial {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--mp-wine);
  margin-bottom: 8px;
}

.columna-portada-centro .kicker-editorial {
  text-align: center;
}

.tarjeta-burdeos-pasaporte .kicker-editorial,
.celda-texto-burdeos .kicker-editorial {
  color: #f3d7db;
}

.columna-portada-centro h1 {
  font-size: clamp(1.9rem, 2.8vw, 2.65rem);
  text-align: center;
  margin-bottom: 16px;
}

.foto-central-portada {
  margin: 0 0 16px;
  border: 1px solid var(--mp-rule-strong);
  background: var(--mp-surface);
  padding: 6px;
}

.foto-central-portada img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.foto-central-portada figcaption {
  padding: 8px 4px 2px;
  font-size: 0.78rem;
  color: var(--mp-muted);
  font-style: italic;
}

.entradilla-dos-col {
  columns: 2;
  column-gap: 24px;
  column-rule: 1px solid var(--mp-rule);
  font-size: 0.94rem;
  color: var(--mp-ink);
}

.entradilla-dos-col p {
  margin: 0 0 12px;
  break-inside: avoid;
}

.nota-origen-izq {
  font-size: 0.86rem;
  color: var(--mp-muted);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--mp-rule);
}

.nota-origen-izq h2 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.lista-indice-izq {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lista-indice-izq li {
  border-bottom: 1px solid var(--mp-rule);
  padding: 8px 0;
  font-size: 0.85rem;
}

.lista-indice-izq li:last-child {
  border-bottom: none;
}

.lista-indice-izq a {
  font-weight: 700;
  color: var(--mp-ink);
  display: block;
}

.lista-indice-izq a:hover {
  color: var(--mp-wine);
}

.lista-indice-izq span {
  display: block;
  font-size: 0.76rem;
  color: var(--mp-muted);
}

.tarjeta-burdeos-pasaporte {
  background: var(--mp-wine);
  color: #ffffff;
  padding: 20px 18px;
  margin-bottom: 16px;
}

.tarjeta-burdeos-pasaporte h2 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.fila-banda-hz {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
  font-size: 0.84rem;
}

.fila-banda-hz:last-of-type {
  border-bottom: none;
}

.fila-banda-hz strong {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  white-space: nowrap;
}

.enlace-cta-editorial {
  display: block;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--mp-paper);
  color: var(--mp-wine-dark);
  text-align: center;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.enlace-cta-editorial:hover {
  background: #ffffff;
  color: var(--mp-ink);
}

.ficha-rapida-der {
  background: var(--mp-surface);
  border: 1px solid var(--mp-rule);
  padding: 16px;
  font-size: 0.84rem;
}

.ficha-rapida-der h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.ficha-rapida-der p {
  margin: 0 0 8px;
  color: var(--mp-muted);
}

.seccion-pliego-ajedrez {
  padding: 46px 0;
}

.pliego-ajedrez {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--mp-rule-strong);
  background: var(--mp-surface);
}

.celda-texto-burdeos {
  background: var(--mp-wine);
  color: #ffffff;
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.celda-texto-burdeos h2,
.celda-texto-burdeos h3 {
  color: #ffffff;
}

.celda-texto-burdeos p {
  color: #f3e6e8;
}

.celda-texto-papel {
  background: var(--mp-surface);
  color: var(--mp-ink);
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.celda-foto-pliego {
  min-height: 320px;
  overflow: hidden;
}

.celda-foto-pliego img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-editorial-claro {
  display: inline-block;
  align-self: flex-start;
  margin-top: 10px;
  padding: 10px 22px;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-editorial-claro:hover {
  background: #ffffff;
  color: var(--mp-wine-dark);
}

.btn-editorial-burdeos {
  display: inline-block;
  align-self: flex-start;
  margin-top: 10px;
  padding: 10px 22px;
  background: var(--mp-wine);
  border: 2px solid var(--mp-wine);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.btn-editorial-burdeos:hover {
  background: var(--mp-teal);
  border-color: var(--mp-teal);
  color: #ffffff;
}

.seccion-simulador-rt60 {
  background: var(--mp-tint);
  border-top: 1px solid var(--mp-rule-strong);
  border-bottom: 1px solid var(--mp-rule-strong);
  padding: 48px 0;
}

.caja-simulador {
  background: var(--mp-surface);
  border: 1px solid var(--mp-rule-strong);
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: 30px;
}

.grupo-selector-rt60 {
  margin-bottom: 18px;
}

.grupo-selector-rt60 label {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--mp-ink);
}

.fila-botones-rt60 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.btn-opcion-rt60 {
  padding: 10px 12px;
  background: var(--mp-paper);
  border: 1px solid var(--mp-rule);
  color: var(--mp-ink);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.btn-opcion-rt60[aria-pressed="true"] {
  background: var(--mp-wine);
  border-color: var(--mp-wine);
  color: #ffffff;
}

.rango-volumen-sala {
  width: 100%;
  accent-color: var(--mp-wine);
  cursor: pointer;
}

.panel-resultados-rt60 {
  background: #fbf9f5;
  border: 1px solid var(--mp-rule);
  border-top: 4px solid var(--mp-teal);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-resultados-rt60 h3 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--mp-teal);
}

.svg-comparativa-rt60 {
  width: 100%;
  height: auto;
  display: block;
  background: #ffffff;
  border: 1px solid var(--mp-rule);
}

.malla-kpis-rt60 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kpi-rt60 {
  background: var(--mp-surface);
  border: 1px solid var(--mp-rule);
  padding: 10px 12px;
}

.kpi-rt60 small {
  display: block;
  font-size: 0.74rem;
  color: var(--mp-muted);
  text-transform: uppercase;
}

.kpi-rt60 output,
.kpi-rt60 strong {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--mp-ink);
  white-space: nowrap;
}

.importe-rt60 {
  background: var(--mp-wine);
  color: #ffffff;
  padding: 12px 14px;
}

.importe-rt60 small {
  display: block;
  font-size: 0.76rem;
  color: #f3d7db;
}

.importe-rt60 strong {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1.25rem;
  white-space: nowrap;
}

.seccion-articulos {
  padding: 48px 0;
}

.seccion-papel-blanco {
  background: var(--mp-surface);
  border-top: 1px solid var(--mp-rule);
  border-bottom: 1px solid var(--mp-rule);
  padding: 48px 0;
}

.portadilla-interior {
  background: var(--mp-surface);
  border-bottom: 3px double var(--mp-rule-strong);
  padding: 34px 0 28px;
}

.miga-editorial {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mp-muted);
  margin-bottom: 10px;
}

.portadilla-interior h1 {
  font-size: clamp(1.8rem, 2.9vw, 2.55rem);
  max-width: 880px;
  margin-bottom: 12px;
}

.portadilla-interior p {
  max-width: 780px;
  color: var(--mp-muted);
  margin: 0;
  font-size: 1.02rem;
}

.rejilla-dos-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.rejilla-asimetrica-7030 {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
}

.rejilla-tres-fichas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.ficha-editorial-card {
  background: var(--mp-surface);
  border: 1px solid var(--mp-rule);
  border-top: 3px solid var(--mp-wine);
  padding: 20px;
}

.ficha-editorial-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.ficha-editorial-card p {
  font-size: 0.92rem;
  color: var(--mp-muted);
  margin: 0;
}

.lamina-editorial {
  margin: 0;
  border: 1px solid var(--mp-rule-strong);
  background: var(--mp-surface);
  padding: 8px;
}

.lamina-editorial img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.lamina-editorial figcaption {
  padding-top: 8px;
  font-size: 0.8rem;
  color: var(--mp-muted);
  font-style: italic;
}

.recuadro-tecnico-teal {
  background: #eef6f6;
  border: 1px solid var(--mp-teal);
  border-left: 5px solid var(--mp-teal);
  padding: 22px;
}

.recuadro-tecnico-teal h3 {
  color: var(--mp-teal);
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.tabla-acustica-wrap {
  overflow-x: auto;
  margin: 22px 0;
}

.tabla-acustica {
  width: 100%;
  border-collapse: collapse;
  background: var(--mp-surface);
  border: 1px solid var(--mp-rule-strong);
  font-size: 0.91rem;
}

.tabla-acustica th,
.tabla-acustica td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--mp-rule);
  text-align: left;
  vertical-align: top;
}

.tabla-acustica thead th {
  background: var(--mp-ink);
  color: #ffffff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tabla-acustica tbody tr:nth-child(even) {
  background: #faf7f2;
}

.dl-editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.dl-editorial > div {
  background: var(--mp-surface);
  border: 1px solid var(--mp-rule);
  padding: 14px 16px;
}

.dl-editorial dt {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mp-wine);
  margin-bottom: 4px;
}

.dl-editorial dd {
  margin: 0;
  font-size: 0.94rem;
}

.lista-numerada-editorial {
  padding-left: 22px;
  margin: 18px 0;
}

.lista-numerada-editorial li {
  margin-bottom: 11px;
}

.preguntas-acordeon details {
  background: var(--mp-surface);
  border: 1px solid var(--mp-rule);
  padding: 14px 18px;
  margin-bottom: 10px;
}

.preguntas-acordeon summary {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.02rem;
}

.preguntas-acordeon p {
  margin: 10px 0 0;
  font-size: 0.93rem;
  color: var(--mp-muted);
}

.formulario-editorial {
  background: var(--mp-surface);
  border: 1px solid var(--mp-rule-strong);
  border-top: 4px solid var(--mp-wine);
  padding: 28px;
}

.malla-form-editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.campo-editorial {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.campo-total {
  grid-column: 1 / -1;
}

.campo-editorial label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--mp-ink);
}

.campo-editorial input,
.campo-editorial select,
.campo-editorial textarea {
  padding: 10px 12px;
  border: 1px solid #b5aca0;
  background: #fdfcf9;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--mp-ink);
}

.campo-editorial input:focus,
.campo-editorial select:focus,
.campo-editorial textarea:focus {
  outline: 2px solid var(--mp-wine);
  border-color: var(--mp-wine);
}

.casilla-rgpd-editorial {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 20px;
  font-size: 0.85rem;
  color: var(--mp-muted);
}

.casilla-rgpd-editorial input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--mp-wine);
}

.zaragoza-acustica-visado {
  margin-top: 22px;
  background: #eef6f6;
  border: 1px solid var(--mp-teal);
  border-top: 4px solid var(--mp-teal);
  padding: 18px 20px;
}

.zaragoza-acustica-visado h4 {
  color: var(--mp-teal);
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.zaragoza-acustica-visado table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.zaragoza-acustica-visado th,
.zaragoza-acustica-visado td {
  padding: 7px 10px;
  border-bottom: 1px solid #c6dddd;
  text-align: left;
}

.zaragoza-acustica-visado th {
  width: 34%;
  color: #0e4a4c;
}

.pie-edicion-zaragoza {
  background: #181715;
  color: #d6cfc4;
  padding: 40px 0 28px;
  border-top: 4px solid var(--mp-wine);
  font-size: 0.86rem;
}

.malla-pie-editorial {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.pie-edicion-zaragoza h4 {
  color: #ffffff;
  font-size: 0.96rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pie-edicion-zaragoza ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pie-edicion-zaragoza li {
  margin-bottom: 6px;
}

.pie-edicion-zaragoza a {
  color: #e6dfd4;
}

.pie-edicion-zaragoza a:hover {
  color: #f3b2ba;
}

.cierre-legal-pie {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.79rem;
  color: #a9a194;
}

@media (max-width: 1060px) {
  .malla-broadsheet {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .columna-indice-izq,
  .columna-portada-centro,
  .columna-pasaporte-der {
    padding: 0;
    border: none;
  }
  .columna-portada-centro {
    order: -1;
  }
  .caja-simulador,
  .pliego-ajedrez {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .cabecera-edicion-zaragoza {
    position: static;
  }
  .lista-rubricas {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start;
    gap: 10px 16px;
  }
  .entradilla-dos-col {
    columns: 1;
  }
  .rejilla-dos-col,
  .rejilla-asimetrica-7030,
  .rejilla-tres-fichas,
  .dl-editorial,
  .malla-form-editorial,
  .malla-pie-editorial,
  .fila-botones-rt60,
  .malla-kpis-rt60 {
    grid-template-columns: 1fr;
  }
  .celda-texto-burdeos,
  .celda-texto-papel {
    padding: 26px 20px;
  }
}
