:root {
  --fondo: #1A1512;
  --superficie: #26201B;
  --tinta: #F0EAE2;
  --ambar: #D89A5B;
  --humo: #8C837A;
  --borde: rgba(240, 234, 226, 0.12);
  --superficie-alta: #2F2822;
  --radio: 14px;
  --espacio: 22px;
  --ancho: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--fondo);
  color: var(--tinta);
}

body {
  font-family: Spectral, Georgia, serif;
  font-weight: 400;
  font-size: 17.5px;
  line-height: 1.62;
  min-height: 100vh;
}

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

a {
  color: var(--ambar);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #E3AC72;
}

p {
  max-width: 68ch;
  margin: 0 0 1em;
}

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

h1,
h2,
h3,
h4 {
  font-family: Epilogue, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
}

h3 {
  font-weight: 700;
  font-size: 1.2rem;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.15em;
}

li + li {
  margin-top: 0.35em;
}

.marco {
  width: min(var(--ancho), 100% - 44px);
  margin-inline: auto;
}

.seccion {
  padding: 72px 0;
}

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

.marca {
  font-family: Epilogue, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ambar);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.marca::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--ambar);
  display: block;
  flex: 0 0 28px;
}

.nota-metodo {
  font-style: italic;
  color: var(--humo);
  max-width: 68ch;
}

.alza {
  opacity: 1;
  transform: none;
}

html.js .alza {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js .alza.alza--vista {
  opacity: 1;
  transform: none;
}

.no-js .alza {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .alza,
  html.js .alza {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Epilogue, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  line-height: 1;
  border-radius: 999px;
  padding: 13px 20px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.boton--solido {
  background: var(--ambar);
  color: #1A1512;
  border-color: var(--ambar);
}

.boton--solido:hover {
  background: #E3AC72;
  color: #1A1512;
  border-color: #E3AC72;
}

.boton--borde {
  background: transparent;
  color: #F0EAE2;
  border-color: rgba(240, 234, 226, 0.45);
}

.boton--borde:hover {
  background: #F0EAE2;
  color: #1A1512;
}

.boton--oscuro {
  background: #1A1512;
  color: #F0EAE2;
  border-color: #1A1512;
}

.boton--oscuro:hover {
  background: #2F2822;
  color: #F0EAE2;
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

:focus-visible {
  outline: 2px solid #D89A5B;
  outline-offset: 3px;
}

/* Rejilla bento */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.pieza {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 26px 24px;
  min-width: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pieza:hover {
  transform: translateY(-2px);
}

.pieza:not(.pieza--foto):not(.pieza--ambar):hover {
  background: var(--superficie-alta);
}

.pieza--w2 {
  grid-column: span 2;
}

.pieza--w3 {
  grid-column: span 3;
}

.pieza--w4 {
  grid-column: span 4;
}

.pieza--alta {
  grid-row: span 2;
}

.pieza--foto {
  background-size: cover;
  background-position: center;
  color: var(--tinta);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  isolation: isolate;
}

.pieza--foto::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(26, 21, 18, 0.18) 0%, rgba(26, 21, 18, 0.86) 100%);
  z-index: -1;
}

.pieza--ambar {
  background: var(--ambar);
  color: #1A1512;
  border-color: transparent;
}

.pieza--ambar:hover {
  background: #E3AC72;
}

.pieza--ambar a {
  color: #1A1512;
}

.pieza--ambar .marca {
  color: #1A1512;
}

.pieza--ambar .marca::before {
  background: #1A1512;
}

.barra-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(26, 21, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}

.barra-nav .marco {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tinta);
}

.logo svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.logo-texto {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-nombre {
  font-family: Epilogue, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-micro {
  font-family: Spectral, Georgia, serif;
  font-size: 11px;
  color: var(--humo);
  line-height: 1.2;
}

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  color: var(--tinta);
  text-decoration: none;
  font-family: Epilogue, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
}

.menu a:hover,
.menu a.esta-activo {
  color: var(--ambar);
}

.menu a.esta-activo {
  box-shadow: inset 0 -2px 0 var(--ambar);
  padding-bottom: 2px;
}

.menu li + li {
  margin-top: 0;
}

.menu .boton {
  color: #1A1512;
  box-shadow: none;
  padding: 13px 20px;
}

.menu .boton:hover,
.menu .boton.esta-activo {
  color: #1A1512;
}

.nav-llave {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ambar);
  border-radius: 10px;
  background: var(--ambar);
  color: #1A1512;
  padding: 0;
  cursor: pointer;
}

.nav-llave span,
.nav-llave span::before,
.nav-llave span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #1A1512;
  margin: 0 auto;
  position: relative;
}

.nav-llave span::before,
.nav-llave span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-llave span::before {
  top: -6px;
}

.nav-llave span::after {
  top: 6px;
}

.heroe-sangre {
  min-height: clamp(560px, 78vh, 720px);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 90px 0 36px;
}

.heroe-sangre::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 21, 18, 0.68) 0%, rgba(26, 21, 18, 0.88) 70%, #1A1512 100%);
}

.heroe-sangre .marco {
  position: relative;
  z-index: 1;
}

.heroe-caja {
  padding: 48px 0 20px;
}

.heroe-caja .pieza--foto {
  min-height: 320px;
}

.lead {
  font-size: 1.08rem;
  max-width: 62ch;
}

.cinta-datos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 36px;
  padding: 18px;
  background: rgba(26, 21, 18, 0.45);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
}

.celda-dato strong {
  display: block;
  font-family: Epilogue, Helvetica, sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.celda-dato span {
  font-size: 13px;
  color: var(--humo);
  display: block;
  line-height: 1.35;
}

.ficha-dossier h3 {
  margin-bottom: 10px;
}

.mes-tema {
  font-family: Epilogue, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ambar);
  margin-bottom: 8px;
}

.dato-grande {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.dato-grande div {
  background: rgba(26, 21, 18, 0.45);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

.dato-grande strong {
  display: block;
  font-family: Epilogue, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.dato-grande span {
  font-size: 0.78rem;
  color: var(--humo);
}

.pieza--ambar .dato-grande div {
  background: rgba(26, 21, 18, 0.12);
  border-color: rgba(26, 21, 18, 0.16);
}

.pieza--ambar .dato-grande span {
  color: #3d3228;
}

.fuente-linea,
.formato-linea {
  font-size: 0.92rem;
  color: var(--humo);
  margin: 0 0 0.4em;
}

.pasos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.paso {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 24px 20px;
}

.paso-plazo {
  font-family: Epilogue, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--ambar);
  margin-top: 14px;
}

.bloque-dos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

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

.lista-coberturas li {
  border-bottom: 1px solid var(--borde);
  padding: 12px 0;
}

.lista-coberturas strong {
  font-family: Epilogue, Helvetica, sans-serif;
  display: block;
  margin-bottom: 4px;
}

.franja-boletin {
  background: var(--ambar);
  color: #1A1512;
  padding: 56px 0;
}

.franja-boletin h2,
.franja-boletin p {
  color: #1A1512;
}

.franja-boletin .marca {
  color: #1A1512;
}

.franja-boletin .marca::before {
  background: #1A1512;
}

.acordeon {
  display: grid;
  gap: 12px;
}

details {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 16px 18px;
}

summary {
  font-family: Epilogue, Helvetica, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

details p {
  margin-top: 12px;
}

.tabla-ritmo {
  width: 100%;
  border-collapse: collapse;
  background: var(--superficie);
  border-radius: var(--radio);
  overflow: hidden;
}

.tabla-ritmo th,
.tabla-ritmo td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--borde);
  vertical-align: top;
}

.tabla-ritmo th {
  font-family: Epilogue, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--ambar);
  width: 22%;
}

.glosario {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.glosario dt {
  font-family: Epilogue, Helvetica, sans-serif;
  font-weight: 700;
}

.glosario dd {
  margin: 4px 0 0;
  color: var(--humo);
}

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

.archivo-lista li {
  padding: 16px 0;
  border-bottom: 1px solid var(--borde);
}

.archivo-lista time {
  font-family: Epilogue, Helvetica, sans-serif;
  font-size: 0.82rem;
  color: var(--ambar);
  display: block;
  margin-bottom: 4px;
}

.formulario {
  display: grid;
  gap: 14px;
}

.campo label {
  display: block;
  font-family: Epilogue, Helvetica, sans-serif;
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.campo input,
.campo textarea,
.campo select {
  width: 100%;
  background: #1A1512;
  color: var(--tinta);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}

.campo textarea {
  min-height: 140px;
  resize: vertical;
}

.chequeo {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.chequeo input {
  margin-top: 5px;
}

.gracias {
  background: var(--superficie-alta);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 22px;
}

.gracias[hidden],
.aviso-cookie[hidden],
.formulario[hidden] {
  display: none !important;
}

.mapa {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radio);
  filter: grayscale(0.25) contrast(1.05);
}

.pie-mega {
  background: #201A16;
  border-top: 1px solid var(--borde);
  padding: 48px 0 0;
}

.pie-columnas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 36px;
}

.pie-mega h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}

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

.pie-mega li + li {
  margin-top: 8px;
}

.pie-mega a {
  color: var(--tinta);
  text-decoration: none;
}

.pie-mega a:hover {
  color: var(--ambar);
}

.pie-mega p {
  color: var(--humo);
  font-size: 0.95rem;
}

.pie-base {
  border-top: 1px solid var(--borde);
  padding: 22px 0 28px;
  display: grid;
  gap: 10px;
  color: var(--humo);
  font-size: 0.92rem;
}

.pie-base p {
  max-width: none;
  margin: 0;
}

code {
  font-family: Epilogue, Helvetica, sans-serif;
  font-size: 0.88em;
  color: var(--ambar);
}

.aviso-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.aviso-cookie p {
  margin: 0;
  max-width: 68ch;
}

.aviso-cookie .acciones {
  margin: 0;
}

.pagina-error {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

@media (max-width: 1040px) {
  .bento,
  .pasos,
  .pie-columnas {
    grid-template-columns: repeat(2, 1fr);
  }

  .pieza--w3,
  .pieza--w4 {
    grid-column: span 2;
  }

  .cinta-datos,
  .bloque-dos,
  .glosario {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1320px) {
  .nav-llave {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(26, 21, 18, 0.98);
    border-bottom: 1px solid var(--borde);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 22px 22px;
    gap: 14px;
  }

  .menu.esta-abierto {
    display: flex;
  }

  .barra-nav {
    position: sticky;
  }

  .barra-nav .marco {
    position: relative;
  }
}

@media (max-width: 640px) {
  .bento,
  .pasos,
  .pie-columnas,
  .cinta-datos,
  .bloque-dos,
  .glosario,
  .dato-grande {
    grid-template-columns: 1fr;
  }

  .pieza,
  .pieza--w2,
  .pieza--w3,
  .pieza--w4 {
    grid-column: auto;
  }

  .pieza--alta {
    grid-row: auto;
  }

  .seccion {
    padding: 48px 0;
  }

  .aviso-cookie {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}
