/* ============================================================
   LeDor VaDor · V5 r05 · 2 · LA HISTORIA DE JACOBO
   Placas 2 a 6 del carrusel «Botón» de Instagram (IG_V2): mismas
   frases, fotos limpias de Drive y el texto real encima.
   r05: solo Jacobo (decisión de Efra, 18/11) y la placa de la
   maqueta de Johi: la foto entera bajo un velo violeta; el rótulo
   chico y la frase entre dos filetes finos, a dos tercios del alto.
   Johi dibujó la primera placa; las otras cuatro siguen su estilo.
   Debajo del texto, el velo se oscurece un poco para que la frase
   crema se lea también sobre las sábanas o la camisa blanca.
   CELULAR: cada placa ocupa toda la pantalla libre; se desliza.
   ESCRITORIO: placas 4:5 a lo alto de la pantalla, varias a la
   vista, sobre plano ciruela.
   ============================================================ */

.his {
  position: relative;
  background: #000;
  color: var(--c-crema);
}
.his :focus-visible { outline-color: var(--c-foco-claro); }
.his [data-carrusel-pista]:focus-visible { outline-color: var(--c-foco-claro); }

.his-placas { height: max(26rem, var(--alto-pantalla)); }
.his-placa {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--c-violeta);
}
.his-placa img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--x, 50%) 35%;
}
/* Velo violeta de la maqueta, más denso detrás del texto. */
.his-placa::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(38 12 40 / 0) 40%, rgb(38 12 40 / 0.55) 62%, rgb(38 12 40 / 0.6) 86%, rgb(38 12 40 / 0.75) 100%),
    rgb(125 86 124 / 0.42);
}
.his-placa--motivo { --x: 38%; }
.his-placa--proyecto { --x: 62%; }
.his-placa--acompanamiento { --x: 60%; }
.his-placa--significa { --x: 46%; }
.his-placa--cierre { --x: 66%; }
.his-placa--cierre::after {
  background:
    linear-gradient(to bottom, rgb(38 12 40 / 0.2) 0%, rgb(38 12 40 / 0.45) 25%, rgb(38 12 40 / 0.8) 50%, rgb(38 12 40 / 0.9) 100%),
    rgb(125 86 124 / 0.42);
}

.his-texto {
  position: absolute;
  /* En la maqueta, el texto queda entre el 63 % y el 83 % del alto. */
  inset: auto 0 max(5.5rem, calc(var(--alto-pantalla) * 0.17));
  z-index: 1;
  padding: 0 var(--margen-m);
}
.his-texto > * { margin: 0; }
.his-rotulo {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgb(237 235 223 / 0.75);
  font-family: var(--f-interfaz);
  font-size: var(--t-etiqueta);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.his-frase {
  padding-block: 0.6rem 0.75rem;
  border-bottom: 1px solid rgb(237 235 223 / 0.75);
  font-family: var(--f-titular);
  /* 23,5 px a 390 en la maqueta (6,03vw); no menos de 22 px. */
  font-size: clamp(1.375rem, 6.03vw, 2.125rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
}
.his-titulo {
  margin-top: 0.9rem;
  font-family: var(--f-titular);
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.125rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
}
/* Línea crema de la p. 6 del brochure y de la placa 6. */
.his-titulo::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 0.25rem;
  margin-top: 0.9rem;
  background: var(--c-crema);
}
.his-bajada {
  max-width: 32ch;
  margin-top: 0.9rem;
  font-family: var(--f-lectura);
  font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.0625rem);
  font-weight: 700;
  line-height: 1.35;
}
.his-boton {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.75rem;
  margin-top: 1.1rem;
  padding: 0.75em 1.1em 0.7em;
  font-family: var(--f-interfaz);
  font-size: var(--t-boton);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--c-crema);
  color: var(--c-ciruela);
  border: 2px solid var(--c-crema);
  transition: background-color 0.18s, color 0.18s;
}
.his-boton:hover { background: transparent; color: var(--c-crema); }
.his-boton .icon { width: 1.1em; height: 1.1em; }

/* Controles sobre la foto, abajo: «Deslizá», puntos y flechas. */
.his-controles {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--margen-m) 1rem;
}
.his-deslizar {
  margin: 0;
  font-family: var(--f-interfaz);
  font-size: var(--t-etiqueta);
  font-weight: 700;
  letter-spacing: 0.136em;
  text-transform: uppercase;
}
.his-controles .carrusel-flecha { border-color: rgb(237 235 223 / 0.8); }
.his-controles .carrusel-flecha:hover:not(:disabled) { background: var(--c-crema); color: var(--c-ciruela); }


/* ---------- Escritorio ---------- */
@media (min-width: 60em) {
  .his {
    --pad: clamp(2rem, 1rem + 2vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: var(--alto-pantalla);
    padding-block: var(--pad);
    background: var(--c-ciruela);
  }
  .his-placas {
    height: auto;
    gap: clamp(1rem, 0.5rem + 1vw, 1.75rem);
    padding-inline: var(--margen);
    scroll-padding-inline: var(--margen);
  }
  .his-placa {
    width: auto;
    height: min(56rem, calc(var(--alto-pantalla) - 2 * var(--pad) - 4.5rem));
    aspect-ratio: 1122 / 1402;
  }
  .his-texto {
    inset: auto 0 0;
    padding: 0 clamp(1.5rem, 0.5rem + 1.6vw, 2.75rem) clamp(2rem, 1rem + 2vw, 4rem);
  }
  .his-frase { font-size: clamp(1.75rem, 0.6rem + 1.8vw, 3rem); }
  .his-titulo { font-size: clamp(2.375rem, 0.9rem + 2.6vw, 4.25rem); }
  .his-controles {
    position: static;
    width: min(100% - 2 * var(--margen), var(--ancho-contenido));
    margin: 1.5rem auto 0;
    padding: 0;
  }
  .his-deslizar { display: none; }
}
