/* =========================================================
   MANUAL — PORTADA
   Solo la portada del Manual, la página `manual_home`.
   Se carga después de `v4-manual.css`.
   ========================================================= */


/* =========================================================
   01) CABECERA DE LA PORTADA
   El logotipo, el título sin partir, el rótulo y el lema.
   ========================================================= */

.manual-composed-home .manual-hero {
  display: grid;
  min-height: clamp(28rem, 55svh, 44rem);
  padding-block: clamp(6rem, 11vh, 8rem) clamp(3rem, 7vh, 5rem);
  place-content: center;
  place-items: center;
}

/* La portada anula el degradado del h1 general y devuelve el color plano. nowrap mantiene el título en una sola línea, que es la condición del diseño aprobado. */
.manual-composed-home .manual-hero h1 {
  max-width: none;
  color: var(--v4-petrol-link);
  background: none;
  font-size: clamp(2rem, 6.5vw, 5.8rem);
  white-space: nowrap;
  -webkit-text-fill-color: currentcolor;
}

.manual-home-mark {
  width: clamp(2.8rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.manual-home-kicker,
.manual-motto {
  color: var(--v4-text-tertiary);
  font-family: var(--v4-font-heading);
}

.manual-home-kicker {
  margin-bottom: 2.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.manual-motto {
  margin: -0.45rem 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.manual-hero-actions {
  justify-content: center;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.manual-hero-actions .button {
  min-width: min(100%, 16rem);
}


/* =========================================================
   02) CUERPO Y APERTURA
   La columna de la portada y el párrafo doble con que se abre.
   ========================================================= */

.manual-home-reading {
  --v4-manual-home-copy-width: 44rem;
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.manual-home-body {
  display: grid;
  gap: clamp(5.5rem, 11vw, 10rem);
}

.manual-home-opening {
  max-width: var(--v4-manual-home-copy-width);
  margin-inline: auto;
  text-align: center;
}

.manual-home-opening-lead {
  margin-bottom: 1.5rem;
  color: var(--v4-text-heading);
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  line-height: 1.35;
}

.manual-home-opening-answer {
  margin-bottom: 0;
  color: var(--v4-petrol-hover);
  font-family: var(--v4-font-heading);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
}


/* =========================================================
   03) LA PIEZA DE VÍDEO
   El marco del vídeo de apertura y su pie.
   ========================================================= */

.manual-home-film {
  margin: 0;
}

/* El marco reserva su sitio en 16:9 mientras la pieza no existe: el fondo son dos degradados, no una imagen. */
.manual-home-film-frame {
  display: grid;
  aspect-ratio: 16 / 9;
  min-height: 18rem;
  overflow: hidden;
  place-content: center;
  place-items: center;
  border: 1px solid var(--v4-petrol-border);
  background:
    radial-gradient(circle at 50% 46%, rgb(90 130 144 / 18%), transparent 26%),
    linear-gradient(135deg, #0b0c0d, #171a1b 52%, #0b0c0d);
  text-align: center;
}

.manual-home-film-frame img {
  width: clamp(3.5rem, 8vw, 6rem);
  margin-bottom: 1.3rem;
  opacity: 0.76;
}

.manual-home-film-frame p {
  margin: 0;
  color: var(--v4-text-secondary);
  font-family: var(--v4-font-heading);
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.manual-home-film figcaption {
  padding-top: 0.85rem;
  text-align: center;
}


/* =========================================================
   04) SECCIONES Y PÁRRAFOS
   El ritmo vertical de las secciones y la anchura de sus párrafos.
   ========================================================= */

.manual-home-section {
  display: grid;
  grid-template-columns: minmax(13rem, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding-block: clamp(4rem, 8vw, 7rem);
  border-block: 1px solid var(--v4-petrol-border);
}

.manual-home-section + .manual-home-section {
  margin-top: calc(clamp(5.5rem, 11vw, 10rem) * -1);
  border-top: 0;
}

.manual-home-section > .manual-home-eyebrow {
  grid-column: 1;
}

.manual-home-section > h2 {
  grid-column: 1;
  max-width: 10ch;
  color: var(--v4-petrol-link);
  font-family: var(--v4-font-heading);
  font-size: clamp(2.2rem, 4.5vw, 4.3rem);
  font-weight: 700;
}

/* El texto ocupa la segunda columna a lo alto de las dos filas; rótulo y título quedan a su izquierda. */
.manual-home-section > .manual-home-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.manual-home-copy {
  max-width: var(--v4-manual-home-copy-width);
  font-size: clamp(1.06rem, 1.45vw, 1.2rem);
}

.manual-home-copy p:last-child {
  margin-bottom: 0;
}

.manual-home-copy p + p {
  margin-top: 1.4rem;
}

.manual-home-eyebrow {
  margin-bottom: 1.3rem;
  color: var(--v4-ochre);
  font-family: var(--v4-font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


/* =========================================================
   05) LA TESIS
   El panel de la tesis y los cuatro tiempos que la desarrollan.
   ========================================================= */

.manual-home-thesis {
  max-width: 68rem;
  margin-inline: auto;
  text-align: center;
}

.manual-home-thesis h2 {
  max-width: 54ch;
  margin-inline: auto;
  color: var(--v4-text);
  font-family: var(--v4-font-text);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
}

/* La tesis repite el degradado del h1 sobre un texto que no es un título. El color plano queda como alternativa para quien no admita background-clip. */
.manual-home-thesis-statement {
  max-width: 24ch;
  margin: clamp(3rem, 6vw, 5rem) auto clamp(2.5rem, 5vw, 4rem);
  color: var(--v4-petrol-hover);
  background: linear-gradient(90deg, var(--v4-petrol) 0%, var(--v4-petrol-hover) 100%);
  background-clip: text;
  font-family: var(--v4-font-heading);
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-style: normal;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.manual-home-thesis ul {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  margin: 0;
  padding: 0;
  color: var(--v4-text-secondary);
  list-style: none;
}

.manual-home-thesis li {
  font-family: var(--v4-font-heading);
  line-height: 1.35;
}

/* Los cuatro tiempos de la tesis crecen con la lectura. El orden lo da el marcado, no una clase por elemento. */
.manual-home-thesis li:nth-child(1) {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

.manual-home-thesis li:nth-child(2) {
  font-size: clamp(1.08rem, 1.45vw, 1.25rem);
}

.manual-home-thesis li:nth-child(3) {
  font-size: clamp(1.16rem, 1.7vw, 1.42rem);
}

.manual-home-thesis li:nth-child(4) {
  color: var(--v4-text-heading);
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  font-weight: 600;
}

/* El margen negativo hace que el filete caiga dentro del espacio entre secciones en vez de añadir otro. */
.manual-home-section-divider {
  width: 100%;
  height: 0;
  margin-block: calc(clamp(5.5rem, 11vw, 10rem) * -0.5);
  border: 0;
  border-top: 1px solid var(--v4-petrol-border);
}

@media (forced-colors: active) {

  .manual-home-thesis-statement {
    color: CanvasText;
    background: none;
    -webkit-text-fill-color: currentcolor;
  }

}


/* =========================================================
   06) LOS TRES RECORRIDOS
   La cuadrícula de los tres accesos y el estado de cada uno.
   ========================================================= */

.manual-home-routes-header {
  max-width: 47rem;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.manual-home-routes-header h2 {
  max-width: 15ch;
  margin-inline: auto;
  color: var(--v4-petrol-link);
  font-family: var(--v4-font-heading);
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  font-weight: 700;
}

.manual-home-routes-header > p:last-child {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.manual-home-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.manual-home-route {
  display: flex;
  min-height: 25rem;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border-top: 2px solid var(--v4-petrol);
  background: var(--v4-bg-raised);
  flex-direction: column;
}

.manual-home-route-number {
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
  color: var(--v4-ochre);
  font-family: var(--v4-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.manual-home-route h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 3.9em;
  color: var(--v4-petrol-link);
  font-family: var(--v4-font-heading);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.3;
}

.manual-home-route > p:last-child {
  margin: 0;
}

.manual-home-route-status,
.manual-home-route > .text-link {
  margin-top: auto;
  padding-top: 1.5rem;
}

.manual-home-route-status {
  color: var(--v4-text-tertiary);
  font-family: var(--v4-font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* =========================================================
   07) CIERRE Y ACCESO AL MAPA
   El acceso al mapa que cierra la portada tras un filete.
   ========================================================= */

.manual-home-reading > .actions {
  justify-content: center;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--v4-petrol-border);
}

.manual-home-reading > .actions .button {
  min-width: min(100%, 17rem);
}

/* Margen de desplazamiento para el acceso «Ir a los tres recorridos», que salta hasta aquí. */
.manual-home-routes {
  scroll-margin-top: 5rem;
}


/* =========================================================
   08) ADAPTACIÓN A PANTALLAS ESTRECHAS
   Lo que cambia cuando la portada deja de admitir dos columnas.
   ========================================================= */

@media (max-width: 50rem) {

  .manual-composed-home .manual-hero {
    min-height: 28rem;
  }

  .manual-home-section {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .manual-home-section > .manual-home-eyebrow,
  .manual-home-section > h2,
  .manual-home-section > .manual-home-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .manual-home-section > h2 {
    max-width: 14ch;
    margin-bottom: 2.25rem;
  }

  .manual-home-route-grid {
    grid-template-columns: 1fr;
  }

  .manual-home-route {
    min-height: 0;
  }

  .manual-home-route-number {
    margin-bottom: 2.5rem;
  }

  .manual-home-route h3 {
    min-height: 0;
  }

}

@media (max-width: 38rem) {

  .manual-composed-home .manual-hero {
    min-height: 25rem;
    padding-block: 4.5rem 3rem;
  }

  .manual-home-kicker {
    max-width: 18rem;
    line-height: 1.5;
  }

  .manual-home-reading {
    padding-bottom: 4rem;
  }

  .manual-home-body {
    gap: 4.5rem;
  }

  .manual-home-section-divider {
    margin-block: -2.25rem;
  }

  .manual-home-opening {
    text-align: left;
  }

  .manual-home-opening-answer {
    margin-bottom: 2rem;
  }

  .manual-home-film-frame {
    min-height: 0;
  }

  .manual-home-film figcaption {
    line-height: 1.5;
  }

  .manual-home-section {
    padding-block: 3.5rem;
  }

  .manual-home-section + .manual-home-section {
    margin-top: -4.5rem;
  }

  .manual-home-thesis,
  .manual-home-routes-header {
    text-align: left;
  }

  .manual-home-thesis h2,
  .manual-home-routes-header h2 {
    margin-inline: 0;
  }

  .manual-home-thesis-statement {
    margin-inline: 0;
  }

  .manual-home-thesis ul {
    gap: 0.75rem;
  }

  .manual-home-route {
    padding: 1.5rem;
  }

}
