/* ================================================================
   HERO.CSS — Hero con retrato protagonista + botón de progreso de scroll.
   Sustituye la foto con assets/images/hero.jpg (B/N o color: el CSS la pasa a grises).
================================================================ */
.hero { position: relative; min-height: min(100svh, 880px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; z-index: -1; right: max(0px, calc((100vw - 1520px) / 2)); bottom: 0; height: min(100%, 1100px); aspect-ratio: 2 / 3; margin: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; filter: grayscale(1) contrast(1.08) brightness(0.84); }
.hero-photo::after { content: ""; position: absolute; inset: -1px;
  background:
    linear-gradient(to right, var(--bg) 0%, rgba(5, 5, 7, 0.78) 14%, rgba(5, 5, 7, 0) 52%),
    linear-gradient(to top, var(--bg) 0%, rgba(5, 5, 7, 0) 26%),
    linear-gradient(to bottom, rgba(5, 5, 7, 0.65) 0%, rgba(5, 5, 7, 0) 22%),
    linear-gradient(to left, rgba(5, 5, 7, 0.8) 0%, rgba(5, 5, 7, 0) 22%); }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; mix-blend-mode: soft-light; pointer-events: none;
  background: radial-gradient(70% 60% at 62% 38%, rgba(var(--accent-r), 0.24), transparent 70%); }
.hero-copy { width: 90%; max-width: var(--max-w); padding: calc(var(--nav-h) + 2rem) 1rem 4.5rem; margin: 0 auto; }
.hero-status { text-shadow: 0 1px 18px rgba(5, 5, 7, 0.95); display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--muted); margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(3.4rem, 9.6vw, 9.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.88; margin: 0 0 1.7rem; max-width: 9.4em; color: var(--text); text-shadow: 0 2px 40px rgba(5, 5, 7, 0.55); font-variation-settings: "opsz" 96; }
.hero h1 span { display: block; }
.hero-role { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.8rem); letter-spacing: -0.02em; color: var(--accent); margin: 0 0 0.9rem; }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--text); max-width: 31rem; line-height: 1.5; text-shadow: 0 1px 24px rgba(5, 5, 7, 0.9); }
.hero-grad { font-size: 0.92rem; color: var(--muted); max-width: 31rem; margin-top: 0.8rem; line-height: 1.55; text-shadow: 0 1px 24px rgba(5, 5, 7, 0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
@media (max-width: 920px) {
  .hero { align-items: flex-end; min-height: max(720px, 100svh); }
  .hero-photo { left: 0; right: 0; top: 0; bottom: auto; height: 76%; width: 100%; aspect-ratio: auto; }
  .hero-photo img { object-position: 50% 8%; }
  .hero-photo::after { background: linear-gradient(to top, var(--bg) 14%, rgba(5, 5, 7, 0.86) 40%, rgba(5, 5, 7, 0) 72%), linear-gradient(to bottom, rgba(5, 5, 7, 0.7) 0%, rgba(5, 5, 7, 0) 20%); }
  .hero-copy { padding-top: 0; padding-bottom: 3.5rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5.6rem); }
}
.progress-wrap { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 900; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgba(8, 8, 11, 0.82); color: var(--accent-b); cursor: pointer; display: grid; place-items: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.3s, transform 0.3s, visibility 0.3s, color 0.2s, background 0.2s; }
.progress-wrap.active-progress { opacity: 1; visibility: visible; transform: none; }
.progress-wrap:hover { color: #fff; background: rgba(var(--accent-r), 0.14); }
.progress-circle { position: absolute; inset: 0; width: 100%; height: 100%; }
.progress-circle path { fill: none; stroke-width: 3; }
.progress-circle .track { stroke: rgba(255, 255, 255, 0.1); }
.progress-circle .bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 307.919, 307.919; stroke-dashoffset: 307.919; transition: stroke-dashoffset 10ms linear; }
.progress-arrow { position: relative; width: 18px; height: 18px; transition: transform 0.25s; }
.progress-wrap:hover .progress-arrow { transform: translateY(-2px); }
@media (max-width: 640px) { .progress-wrap { right: 1rem; bottom: 1rem; width: 42px; height: 42px; } }
