:root {
  --arena: #f5ede0;
  --crema: #fffaf2;
  --linea: #dccfb8;
  --tinta: #1d2a2d;
  --tinta-suave: #44555a;
  --petroleo: #0f4c5c;
  --petroleo-osc: #0a3743;
  --terracota: #a3411f;
  --terracota-osc: #84330f;
  --ocre: #8a5a0b;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--arena);
  overflow-wrap: break-word;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.hero .foto {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 24px;
  background: #d9cdb6;
  box-shadow: 0 14px 34px rgba(15, 76, 92, 0.18);
}

h1,
h2 {
  font-family: var(--serif);
  color: var(--petroleo);
  font-weight: 700;
}

h1 {
  position: relative;
  margin: -3rem 0.75rem 0;
  padding: 1.5rem 1.25rem 0.5rem;
  background: var(--crema);
  border: 1px solid var(--linea);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  font-size: clamp(1.65rem, 6.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1::before {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-bottom: 0.9rem;
  border-radius: 2px;
  background: var(--terracota);
}

.subtitulo {
  margin: 0 0.75rem 2.5rem;
  padding: 0.25rem 1.25rem 1.5rem;
  background: var(--crema);
  border: 1px solid var(--linea);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 8px 20px rgba(15, 76, 92, 0.08);
  font-size: 1.15rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--tinta-suave);
}

main > section:first-of-type {
  counter-reset: bloque;
}

.bloque {
  counter-increment: bloque;
  position: relative;
  margin: 1.25rem 0;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  background: var(--crema);
  border: 1px solid var(--linea);
  border-left: 5px solid var(--petroleo);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 76, 92, 0.06);
}

h2 {
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}

.bloque h2::before {
  content: "0" counter(bloque);
  display: block;
  margin-bottom: 0.15rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ocre);
}

.bloque p {
  margin: 0;
  max-width: 62ch;
}

.estadia {
  margin: 2rem 0 0.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px dashed var(--ocre);
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--tinta);
}

.cta {
  text-align: center;
  margin-top: 1.5rem;
}

.boton {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  background: var(--terracota);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(132, 51, 15, 0.28);
}

.boton:hover,
.boton:focus-visible {
  background: var(--terracota-osc);
}

.nota {
  font-size: 0.88rem;
  color: var(--tinta-suave);
  margin: 0.6rem 0 0;
}

.pie {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--tinta-suave);
  text-align: center;
  border-top: 2px solid var(--linea);
}

.pie a,
.link-btn {
  color: var(--petroleo);
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--petroleo-osc);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #ffffff;
}

.privacidad a {
  color: var(--petroleo);
}

.privacidad h1 {
  margin: 1rem 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

.privacidad h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.privacidad p,
.privacidad li {
  max-width: 65ch;
  overflow-wrap: break-word;
}

.privacidad ul {
  padding-left: 1.25rem;
  margin: 0.25rem 0;
}

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem;
  background: var(--crema);
  border-top: 3px solid var(--petroleo);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.12);
  font-size: 0.92rem;
}

.consent-texto {
  margin: 0 0 0.75rem;
}

.consent-texto a {
  color: var(--petroleo);
}

.consent-botones {
  display: flex;
  gap: 0.75rem;
}

/* Aceptar y Rechazar: mismo tamaño, estilo y prominencia. */
.consent-btn {
  flex: 1 1 0;
  padding: 0.9rem 1rem;
  border: 2px solid var(--petroleo);
  border-radius: 999px;
  background: var(--crema);
  color: var(--petroleo);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.consent-btn:hover,
.consent-btn:focus-visible {
  background: #e3eef0;
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }

  h1 {
    margin-top: -2.25rem;
  }

  .cta .boton {
    position: fixed;
    left: 50%;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 5;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 38rem;
    padding: 0.75rem 1rem;
  }
}
