/* paleta rosa-carbón y tipografía */
:root {
  --fondo: #FBF4F4;
  --superficie: #F0E2E2;
  --texto: #221A1A;
  --acento: #C24A5B;
  --apagado: #8E7C7C;
  --borde: 1px solid rgba(34, 26, 26, .14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 168px;
  background: var(--fondo);
  color: var(--texto);
  font-family: Petrona, Georgia, serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.72;
}

body:has(.franja-cookies--oculta) {
  padding-bottom: 0;
}

body.sin-scroll {
  overflow: hidden;
}

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

a {
  color: var(--acento);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

h1, h2, h3,
.marca-tipo,
.boton-menu,
.boton-primario,
.boton-liso,
.rotulo,
.menu-total__lista a {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.012em;
}

h1, h2, h3 {
  color: var(--texto);
  line-height: 1.2;
  margin: 0 0 0.7em;
}

h1 {
  font-size: 2.05rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.08rem;
}

@media (max-width: 620px) {
  h1 {
    font-size: 1.72rem;
  }
}

p {
  margin: 0 0 1em;
}

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

.columna {
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 22px;
  padding-right: 22px;
}

@media (min-width: 1100px) {
  .columna {
    max-width: 680px;
  }
}

/* cabecera fija */
.cinta-sup {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 58px;
  background: var(--fondo);
  border-bottom: var(--borde);
}

.cinta-sup .columna {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.marca-tipo {
  color: var(--texto);
  text-decoration: none;
  font-size: 1.05rem;
}

.marca-tipo:hover {
  color: var(--acento);
}

.boton-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.boton-menu span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--texto);
  border-radius: 1px;
}

/* menú a pantalla completa */
.menu-total {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #221A1A;
  color: #FBF4F4;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.menu-total--abierto {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.menu-total .columna {
  position: relative;
  padding-top: 72px;
  padding-bottom: 40px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.menu-total__cerrar {
  position: absolute;
  top: 14px;
  right: 22px;
  border: 0;
  background: transparent;
  color: #FBF4F4;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  font-family: "Hanken Grotesk", sans-serif;
}

.menu-total__lista {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-total__lista li + li {
  margin-top: 14px;
}

.menu-total__lista a {
  color: #FBF4F4;
  text-decoration: none;
  font-size: 1.5rem;
}

.menu-total__lista a:hover,
.menu-total__lista a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: #C24A5B;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.menu-total__pie {
  margin-top: auto;
  padding-top: 36px;
  font-size: 0.85rem;
  color: #8E7C7C;
  line-height: 1.5;
}

main.columna {
  padding-top: 28px;
  padding-bottom: 56px;
}

.tramo {
  margin-bottom: 42px;
}

.tramo--realce {
  background: var(--superficie);
  padding: 22px 20px;
  border: var(--borde);
}

.rotulo {
  display: block;
  font-size: 0.8rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--apagado);
  margin-bottom: 8px;
}

.titular {
  margin-bottom: 0.45em;
}

.bajada {
  color: var(--texto);
}

.fila-par {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 20px;
  align-items: start;
}

.fila-par + .fila-par {
  margin-top: 22px;
  padding-top: 22px;
  border-top: var(--borde);
}

@media (max-width: 620px) {
  .fila-par {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.lista-puntos {
  margin: 0;
  padding-left: 1.15em;
}

.lista-puntos li {
  margin-bottom: 0.7em;
}

.lista-puntos li::marker {
  color: var(--acento);
}

.tarjeta-nota {
  background: var(--superficie);
  padding: 18px 18px 16px;
  border: var(--borde);
  margin-bottom: 14px;
}

.tarjeta-nota__meta {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--apagado);
  margin-bottom: 8px;
}

.tarjeta-nota h2,
.tarjeta-nota h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4em;
}

.tarjeta-nota h2 a,
.tarjeta-nota h3 a {
  color: var(--texto);
  text-decoration: none;
}

.tarjeta-nota h2 a:hover,
.tarjeta-nota h3 a:hover {
  color: var(--acento);
}

.ficha-indicador,
.pregunta-bloque {
  padding-bottom: 4px;
}

.foto-bloque {
  margin: 0 0 42px;
}

.foto-bloque img {
  display: block;
  width: 100%;
}

.foto-bloque__pie {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--apagado);
}

.boton-primario,
.boton-liso {
  display: inline-block;
  font-size: 0.95rem;
  padding: 10px 16px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  line-height: 1.3;
}

.boton-primario {
  background: #C24A5B;
  color: #FBF4F4;
  border: 1px solid #C24A5B;
}

.boton-primario:hover {
  background: #A33B4A;
  color: #FBF4F4;
  border-color: #A33B4A;
}

.boton-liso {
  background: transparent;
  color: #221A1A;
  border: 1px solid #221A1A;
}

.boton-liso:hover {
  background: #221A1A;
  color: #FBF4F4;
}

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

.nota-legal {
  font-size: 0.9rem;
  color: var(--apagado);
  border-top: var(--borde);
  padding-top: 18px;
  margin-top: 36px;
}

.formulario-consulta {
  margin-top: 8px;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.campo label {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
}

.campo input,
.campo select,
.campo textarea {
  font-family: Petrona, Georgia, serif;
  font-size: 1.0625rem;
  color: #221A1A;
  background: #FBF4F4;
  border: var(--borde);
  padding: 10px 12px;
  width: 100%;
}

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

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: 2px solid #C24A5B;
  outline-offset: 1px;
}

.campo__error {
  min-height: 1.2em;
  color: #C24A5B;
  font-size: 0.88rem;
}

.campo__cuenta {
  font-size: 0.8rem;
  color: var(--apagado);
  font-family: "Hanken Grotesk", sans-serif;
}

.campo--check {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.campo--check label {
  font-family: Petrona, Georgia, serif;
  font-weight: 400;
  font-size: 0.98rem;
}

.campo--check input {
  width: auto;
  margin-top: 5px;
}

.campo--check .campo__error {
  flex-basis: 100%;
}

.trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.aviso-ok {
  background: #F0E2E2;
  border-left: 3px solid #C24A5B;
  padding: 14px 16px;
  margin-bottom: 22px;
}

.aviso-ok[hidden] {
  display: none;
}

iframe {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* pie en una sola línea */
.pie-linea {
  border-top: var(--borde);
  padding: 18px 0 28px;
  font-size: 0.82rem;
  color: #8E7C7C;
  line-height: 1.7;
}

.pie-linea a {
  color: #8E7C7C;
}

.pie-linea a:hover {
  color: #C24A5B;
}

/* franja de cookies: visible por defecto */
.franja-cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #221A1A;
  color: #FBF4F4;
  padding: 16px 0;
}

.franja-cookies p {
  margin: 0 0 12px;
}

.franja-cookies a {
  color: #C24A5B;
  text-decoration: underline;
}

.franja-cookies__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.franja-cookies--oculta {
  display: none;
}

.asoma {
  animation: asoma 0.65s ease both;
}

@keyframes asoma {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
