#hero { position: relative; padding: 0; color: var(--texto); background: var(--tinta); isolation: isolate; }
#hero [data-reveal] { opacity: 1; transform: none; transition: none; }
#hero .eyebrow { --regla: 1; }
#hero .eyebrow::before { transform: scaleX(var(--regla)); flex-shrink: 0; }
#hero .hero__pantalla { min-height: 100svh; position: relative; isolation: isolate; }
#hero .hero__pantalla::before { opacity: var(--grano, 0.06); }
#hero .hero__mapa { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
#hero .hero__mapa-movimiento { height: 100%; }
#hero .hero__mapa img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
#hero .hero__mapa::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--tinta), transparent), linear-gradient(0deg, var(--tinta), transparent 75%); }
#hero .hero__mapa .leyenda { left: auto; right: var(--gutter); z-index: 2; }
#hero .hero__composicion { display: grid; position: relative; min-height: 100svh; }
#hero .hero__retrato { position: relative; width: 100%; align-self: end; }
#hero .hero__retrato-movimiento { height: 100%; }
#hero .hero__retrato img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%;
  /* A1: el fondo negro del retrato se disuelve en la tinta: sin bordes rectos. */
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 52% 42%, #000 40%, rgba(0,0,0,0.55) 66%, transparent 94%), linear-gradient(180deg, transparent 0, #000 16%, #000 60%, transparent 97%);
  mask-image: radial-gradient(ellipse 50% 60% at 52% 42%, #000 40%, rgba(0,0,0,0.55) 66%, transparent 94%), linear-gradient(180deg, transparent 0, #000 16%, #000 60%, transparent 97%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
#hero .hero__retrato.retrato-fundido { -webkit-mask-image: none; mask-image: none; }
#hero .hero__texto { position: relative; z-index: 2; min-width: 0; padding-bottom: var(--e-7); }
#hero .hero__nombre { font-family: var(--f-display); font-size: var(--t-xl); margin-bottom: var(--e-5); }
#hero .hero__facetas { font-size: var(--t-xs); letter-spacing: 0.09em; color: var(--texto-suave); margin-block: var(--e-4) var(--e-5); }
#hero .hero__texto .bajada { max-width: 55ch; }
#hero .hero__scroll { position: absolute; bottom: var(--e-4); left: 50%; width: 1px; height: 48px; background: var(--linea); }
#hero .hero__scroll > span { display: block; height: 100%; background: var(--oro); }
#hero .hero__contexto { display: grid; gap: var(--e-4); padding-block: var(--e-5) var(--e-7); }
#hero .hero__contexto > p:first-child { max-width: 60ch; color: var(--texto); font-size: var(--t-lg); line-height: 1.55; padding-left: var(--e-5); border-left: 1px solid var(--oro); }
#hero .hero__contexto .fuente { max-width: 60ch; margin: 0; padding-left: var(--e-5); }
@media (min-width: 900px) {
  #hero .hero__composicion { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; padding-top: var(--e-8); padding-bottom: var(--e-8); }
  #hero .hero__retrato { position: absolute; bottom: 0; right: 2%; width: auto; height: 96svh; max-height: 1080px; aspect-ratio: 752 / 940; }
  #hero .hero__retrato img { object-fit: cover; object-position: center top; }
  #hero .hero__texto { grid-column: 1 / 8; padding-bottom: 0; }
  #hero .hero__texto .bajada { max-width: 44ch; }
  #hero .hero__texto .titular { font-size: clamp(3rem, 4.45vw, 5.2rem); max-width: 17ch; }
  /* #8: el segundo tiempo continúa la diagonal: bajo el retrato, a la derecha. */
  #hero .hero__contexto { grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: calc(-1 * var(--e-8)); position: relative; z-index: 2; }
  #hero .hero__contexto > * { grid-column: 1 / 8; }
}
@media (max-width: 899px) {
  #hero .contenedor { padding-inline: 16px; }
  #hero .hero__mapa { display: none; }
  #hero .hero__retrato { height: min(46svh, 24rem); width: auto; aspect-ratio: 752 / 940; max-width: 100%; justify-self: center; }
  #hero .hero__texto { margin-top: -8svh; }
  #hero .hero__nombre { margin-bottom: var(--e-2); }
  #hero .hero__texto .titular { font-size: 44px; line-height: 1.02; max-width: 22ch; margin-bottom: var(--e-3); }
  #hero .hero__texto .eyebrow { max-width: 33ch; font-size: var(--t-xs); margin-bottom: var(--e-3); }
  #hero .hero__facetas { margin-block: var(--e-3) var(--e-5); }
  #hero .hero__scroll { display: none; }
}
@media (max-width: 480px) and (max-height: 740px) {
  #hero .hero__retrato { height: 38svh; }
  #hero .hero__texto { margin-top: -8svh; }
  #hero .hero__texto .titular { font-size: clamp(34px, 10.5vw, 40px); }
}
@media (prefers-reduced-motion: reduce) {
  #hero .hero__scroll { display: none; }
}

@media (max-width: 899px) {
  /* #9: pies de fuente legibles en móvil. */
  #hero .fuente, #hero .leyenda { font-size: 13px; line-height: 1.5; }
  #hero .fuente { color: var(--texto-suave); }
}
