.home-main {
  padding-bottom: 2.4rem;
}

.home-presentacion {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 22rem);
  gap: 0.75rem 1.5rem;
  align-items: center;
  padding: 1.6rem 0 0.4rem;
}

.home-copy {
  min-width: 0;
  max-width: 30rem;
}

.home-titulo {
  position: relative;
  display: inline-block;
  margin: 0 0 0.7em;
}

.home-titulo h1 {
  margin: 0;
}

.home-subrayado {
  display: block;
  width: 108%;
  height: 0.55em;
  margin: -0.12em 0 0 -2%;
  pointer-events: none;
}

.home-copy .dek {
  margin: 0;
  max-width: 40ch;
}

.home-copy .dek-cierre {
  white-space: nowrap;
}

.home-copy .chiche-inline {
  display: inline-block;
  height: 1.2em;
  width: 1.2em;
  margin-left: 0.15em;
  vertical-align: -0.22em;
  max-width: none;
}

.home-chiche {
  position: relative;
  justify-self: center;
  width: min(100%, 22rem);
}

.home-chiche img.chiche {
  width: 100%;
  height: auto;
}

.home-nota {
  position: absolute;
  left: 54%;
  top: -0.4rem;
  width: 68%;
  transform: rotate(-7deg);
  pointer-events: none;
  z-index: 2;
}

.home-guias {
  position: relative;
  margin-top: 1.1rem;
  max-width: 42rem;
}

.home-guias-cabecera {
  position: relative;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.home-guias-cabecera h2 {
  margin: 0;
  position: relative;
  z-index: 1;
  padding: 0.15em 0.55em 0.2em 0.2em;
}

.home-circulo {
  position: absolute;
  left: -0.55rem;
  top: -0.45rem;
  width: calc(100% + 1.5rem);
  height: calc(100% + 0.9rem);
  pointer-events: none;
  z-index: 0;
}

.home-flecha {
  position: absolute;
  right: -1.2rem;
  top: -6.2rem;
  width: 6.2rem;
  height: auto;
  pointer-events: none;
  z-index: 2;
}

.home-lista-wrap {
  position: relative;
  padding: 0.35rem 1.15rem 0.5rem 1.05rem;
}

.home-marco {
  position: absolute;
  inset: -0.2rem -0.35rem -0.2rem -0.55rem;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  pointer-events: none;
  z-index: 0;
}

.home-lista-wrap .home-list {
  position: relative;
  z-index: 1;
  margin: 0.35rem 0 0.6rem;
}

@media (max-width: 839px) {
  .home-presentacion {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 1rem 0 0.15rem;
    gap: 0.35rem;
  }

  .home-chiche {
    width: 12.5rem;
    margin: 0.35rem 0 0.15rem 0.2rem;
    justify-self: start;
  }

  .home-nota {
    left: 56%;
    top: -0.55rem;
    width: 82%;
  }

  .home-flecha {
    display: none;
  }

  .home-guias {
    margin-top: 0.55rem;
  }

  .home-lista-wrap {
    padding: 0.2rem 0.7rem 0.3rem 0.55rem;
  }

  .home-main {
    padding-bottom: 1.5rem;
  }
}

@media (min-width: 840px) and (max-width: 1100px) {
  .home-flecha {
    right: 0;
    top: -5.4rem;
    width: 5.2rem;
  }
}

/* Lista larga de guías: aire entre el marco a mano y el texto */
.home-lista-wrap .home-list a {
  padding-left: 0.7rem;
  padding-right: 0.5rem;
}

/* Fase 4: una tarjeta por categoría. El alto depende de las categorías, no de las guías. */
.home-guias {
  max-width: 64rem;
}

.home-categorias {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 1.8rem;
  margin-top: 0.6rem;
}

.home-categoria {
  background: var(--blanco);
  border: 2.5px solid var(--vb);
  border-radius: 18px 6px 22px 8px / 8px 20px 6px 18px;
  padding: 0.9rem 1.05rem 0.75rem;
  box-shadow: 4px 5px 0 color-mix(in srgb, var(--lima) 70%, transparent);
}

.home-categoria:nth-child(even) {
  border-radius: 7px 20px 9px 22px / 20px 7px 18px 9px;
  transform: rotate(0.4deg);
}

.home-categoria:nth-child(3n) {
  transform: rotate(-0.5deg);
}

.home-categoria h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.home-categoria h3 a {
  color: var(--tinta);
  text-decoration: none;
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--lima) 85%, transparent) 58%, color-mix(in srgb, var(--lima) 85%, transparent) 92%, transparent 92%);
  padding: 0 0.15em;
}

.home-cat-nota {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-categoria .home-list {
  margin: 0.55rem 0 0.35rem;
}

.home-categoria .home-list a {
  font-size: 1rem;
  padding: 0.6rem 0.1rem;
}

.home-cat-ver {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.home-cat-ver a {
  color: var(--vb);
}

.home-cat-ver a::after {
  content: " →";
}

/* Página de categoría */
.cat-main {
  max-width: 44rem;
  padding: 0.6rem 0 2.5rem;
}

.cat-cabeza .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

.cat-guias {
  margin-top: 1.4rem;
}

.cat-guias h2 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.cat-list li {
  padding-bottom: 0.55rem;
}

.cat-list a {
  padding-bottom: 0.15rem;
}

.cat-mejor {
  display: block;
  padding: 0 0.5rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.cat-otras {
  margin-top: 1.6rem;
}

.cat-otras .etiqueta {
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.cat-otras a {
  margin-right: 0.9rem;
  white-space: nowrap;
  color: var(--vb);
  font-weight: 700;
}

@media (max-width: 839px) {
  .home-categorias {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .home-categoria,
  .home-categoria:nth-child(even),
  .home-categoria:nth-child(3n) {
    transform: none;
  }

  .home-categoria {
    padding: 0.75rem 0.85rem 0.6rem;
  }

  .home-categoria .home-list a {
    font-size: 0.97rem;
    padding: 0.5rem 0.1rem;
  }
}
