/* ---------- Portada: escena del perro (se ve a través de las letras) ---------- */
.hero { height: 380vh; }
.hero__sticky { --ledge-h: 36%; --dogw: min(42vw, 58vh, 520px); }
.hero__svg { z-index: 5; }
.hero__top, .hero__hint { z-index: 6; }

.scene { position: absolute; inset: 0; overflow: hidden; }
.scene__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 52%, rgba(255,255,255,.22), transparent 70%),
    linear-gradient(180deg, #3b78ff 0%, #2f6bff 45%, #1e4fd6 100%);
}
/* la repisa: el borde donde se apoya el perro; debajo empieza el contenido */
.scene__ledge {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--ledge-h); z-index: 3;
  background: var(--bg);
  box-shadow: 0 -18px 50px rgba(0,0,0,.28);
}
.scene__ledge::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, transparent, rgba(241,236,226,.5), transparent); }

/* el perro sale de un salto desde detrás de la repisa */
.scene__dog {
  position: absolute; z-index: 2; left: 50%;
  bottom: calc(var(--ledge-h) - var(--dogw) * .16);
  width: var(--dogw);
  transform: translate(-50%, 75%);
  transition: transform .5s var(--ease-in-out);
  outline: none; cursor: pointer;
}
.scene.is-up .scene__dog { transform: translate(-50%, 0); transition: transform .95s cubic-bezier(.3, 1.6, .5, 1); }
.scene__img { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(0, 20, 80, .35)); }

/* patas apoyadas en el borde de la repisa */
.scene__restpaw {
  position: absolute; z-index: 4; width: calc(var(--dogw) * .4); height: auto;
  top: calc(var(--dogw) * .4 * -150 / 380);
  opacity: 0; transform: translateY(-40px) rotate(-6deg);
  transition: transform .4s var(--ease), opacity .2s;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.35));
}
.scene__restpaw { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%); mask-image: linear-gradient(180deg, transparent 0%, #000 34%); }
.scene__restpaw--l { left: calc(50% - var(--dogw) * .5); }
.scene__restpaw--r { left: calc(50% + var(--dogw) * .1); transform: translateY(-40px) scaleX(-1) rotate(-6deg); }
.scene.is-up .scene__restpaw { opacity: 1; transform: none; transition: transform .6s .45s cubic-bezier(.3, 1.8, .5, 1), opacity .15s .45s; }
.scene.is-up .scene__restpaw--r { transform: scaleX(-1); transition-delay: .55s; }

/* texto debajo de la repisa */
.scene__ledge .hero__final { position: static; padding: clamp(28px, 5vh, 56px) var(--gutter) 0; }
.scene__ledge .hero__title { font-size: clamp(44px, 7.5vw, 120px); margin: 0; }

/* ---------- Foto del equipo ---------- */
.teamshot { padding-top: clamp(40px, 8vh, 90px); }
.teamshot__frame {
  margin: 0; height: 92vh; height: 92svh; overflow: hidden; position: relative;
  clip-path: inset(12% 10% 12% 10% round 32px);
  will-change: clip-path;
}
.teamshot__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.25); will-change: transform; }
.teamshot__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(22,23,26,.85)); pointer-events: none; }
.teamshot__caption { padding: clamp(40px, 8vh, 90px) var(--gutter) clamp(60px, 10vh, 120px); max-width: 1400px; margin: 0 auto; }
.teamshot__caption .section-title { margin-bottom: clamp(24px, 4vh, 40px); }
.teamshot__caption .intro__text { margin: 0; max-width: 22ch; }

/* ---------- Fotos de la portada (unas pocas) ---------- */
.photos { padding: clamp(80px, 14vh, 160px) 0 clamp(40px, 8vh, 80px); }
.photos .section-head { max-width: 1600px; }
.photos__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.photos .gallery { padding-bottom: 20px; }
.photos__more { display: flex; justify-content: center; padding: 10px var(--gutter) 0; }

@media (max-width: 860px) {
  .hero__sticky { --ledge-h: 34%; --dogw: min(80vw, 46vh, 420px); }
  .teamshot__frame { height: 70vh; clip-path: inset(8% 5% 8% 5% round 22px); }
  .photos .section-head--row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .teamshot__frame { clip-path: none; }
  .teamshot__frame img { transform: none; }
}

/* ---------- La Grada ---------- */
.grada { padding: clamp(60px, 10vh, 120px) 0; }
.grada__hint { max-width: 24ch; text-align: right; font-size: 13px; }
.grada__stand { padding: 0 var(--gutter); max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 18px; }
.fan {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 22px;
  background: linear-gradient(135deg, var(--surface), var(--bg-2)); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.fan:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); }
.fan__avatar {
  position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; overflow: visible;
  background: radial-gradient(circle at 30% 30%, #f6f2ea, #b9b6ae 70%); border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(47,107,255,.18);
}
.fan__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.fan__avatar span { font-family: var(--display); font-size: 36px; color: var(--bg); line-height: 1; }
.fan__heart { position: absolute; right: -4px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px; color: #fff; background: #e8476a; box-shadow: 0 2px 8px rgba(0,0,0,.4); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.2); } }
.fan__body { min-width: 0; flex: 1; }
.fan__name { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; margin: 0 0 8px; letter-spacing: .02em; text-transform: uppercase; }
.fan__roles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.fan__roles .chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fan__line { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.fan__clap {
  position: relative; flex: none; align-self: flex-start; padding: 8px 12px; border-radius: 999px; font-size: 14px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: background .3s, border-color .3s;
}
.fan__clap:hover { background: var(--accent); border-color: var(--accent); }
.fan__clap b { font-weight: 700; margin-left: 2px; }
.fan__pop { position: absolute; left: 50%; top: 0; font-style: normal; color: #e8476a; pointer-events: none; font-size: 16px; }
.fan--empty { border-style: dashed; background: transparent; }
.fan--empty .fan__avatar { background: transparent; border: 2px dashed var(--line-2); box-shadow: none; }
.fan--empty .fan__avatar span { color: var(--muted); }
.fan--empty .fan__name { font-size: 22px; color: var(--muted); }

/* ---------- Firma de la fotógrafa ---------- */
.byline { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: 13px; }
.byline b { font-family: "Caveat", cursive; font-weight: 600; font-size: 26px; line-height: 1; color: var(--cream); transform: rotate(-4deg); display: inline-block; }
.ico-cam { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.photos__side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.byline--photo { position: absolute; right: clamp(16px, 4vw, 48px); bottom: clamp(16px, 4vh, 40px); z-index: 2; color: rgba(241,236,226,.85); background: rgba(22,23,26,.45); backdrop-filter: blur(8px); padding: 6px 14px 6px 12px; border-radius: 999px; }
.album-hero__left { display: flex; flex-direction: column; gap: 12px; }
.lb__by { font-family: "Caveat", cursive; font-style: normal; font-size: 20px; color: var(--cream); margin-left: 12px; letter-spacing: 0; }
@media (max-width: 860px) {
  .grada__hint { display: none; }
  .photos__side { align-items: flex-start; }
  .fan { padding: 16px; gap: 14px; }
  .fan__avatar { width: 62px; height: 62px; }
}
