/* Grupo Legales — capa cinematográfica */
.intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background:
    radial-gradient(800px 500px at 50% 40%, rgba(139, 58, 50, 0.22), transparent 60%),
    #120f0d;
  color: #f4efe6;
  animation: intro-exit 0.7s 1.2s var(--ease) forwards;
  pointer-events: none;
}
.intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-mark { text-align: center; }
.intro-seal {
  width: 5.4rem;
  height: 5.4rem;
  margin: 0 auto 1.2rem;
  border: 1px solid #c9a36a;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #c9a36a;
  box-shadow: 0 0 0 8px rgba(201, 163, 106, 0.08), inset 0 0 24px rgba(201, 163, 106, 0.12);
  animation: seal-spin 1.1s var(--ease) both;
}
.intro .brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  animation: intro-rise 0.9s 0.15s var(--ease) both;
}
.intro .brand em {
  font-style: italic;
  color: #c9a36a;
}
.intro .line {
  width: 0;
  height: 1px;
  margin: 1.05rem auto;
  background: linear-gradient(90deg, transparent, #c9a36a, transparent);
  animation: intro-line 0.85s 0.4s ease forwards;
}
.intro .tag {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.62);
  animation: intro-rise 0.8s 0.5s var(--ease) both;
}

@keyframes intro-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes intro-line {
  to { width: min(240px, 48vw); }
}
@keyframes intro-exit {
  to { opacity: 0; visibility: hidden; }
}
@keyframes seal-spin {
  from { opacity: 0; transform: scale(0.7) rotate(-18deg); }
  to { opacity: 1; transform: none; }
}

body.intro-lock { overflow: hidden; }

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.spine {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  height: 100vh;
  width: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: rgba(201, 163, 106, 0.55);
  font-size: 0.68rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border-right: 1px solid rgba(201, 163, 106, 0.12);
}
@media (max-width: 1100px) { .spine { display: none; } }

.ticker {
  overflow: hidden;
  background: var(--night);
  color: var(--brass);
  border-top: 1px solid rgba(201, 163, 106, 0.22);
  border-bottom: 1px solid rgba(201, 163, 106, 0.22);
  padding: 0.85rem 0;
}
.ticker-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: ticker 32s linear infinite;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.ticker-track span { white-space: nowrap; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Capa suave — sin tapar clics ni la foto real */
.intro { display: none !important; }
.spine { display: none !important; }
.hero-panel { display: none !important; }
.hero-media img { transform: none; animation: none; }

.ticker {
  overflow: hidden;
  background: #fff;
  color: var(--mute);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}
.ticker-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: ticker 32s linear infinite;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@keyframes ken {
  from { transform: scale(1.12) translate3d(0, 0, 0); }
  to { transform: scale(1.2) translate3d(0, -2.4%, 0); }
}

.hero-copy h1 {
  text-wrap: balance;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero--cover {
  min-height: 100vh;
  min-height: 100dvh;
  align-items: end;
}
.hero--cover .hero-media::after {
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.88) 0%, rgba(12, 10, 8, 0.42) 48%, rgba(12, 10, 8, 0.18) 100%),
    linear-gradient(180deg, rgba(12, 10, 8, 0.28) 0%, rgba(12, 10, 8, 0.15) 40%, rgba(12, 10, 8, 0.82) 100%);
}
.hero--cover .hero-copy {
  padding: 8rem 0 3.4rem;
  max-width: 58rem;
}
.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  animation: intro-rise 0.9s 0.15s var(--ease) both;
}
.hero--cover h1 {
  display: grid;
  gap: 0;
  font-size: clamp(4.2rem, 13vw, 8.6rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin: 0 0 1.1rem;
  animation: intro-rise 1s 0.22s var(--ease) both;
}
.hero--cover h1 span { display: block; font-weight: 500; }
.hero--cover h1 em {
  display: block;
  font-style: italic;
  color: var(--brass-soft);
  font-weight: 500;
}
.hero-claim {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-style: italic;
  color: rgba(244, 239, 230, 0.92);
  animation: intro-rise 1s 0.32s var(--ease) both;
}
.hero--cover .lead { animation: intro-rise 1s 0.4s var(--ease) both; }
.hero--cover .hero-actions { animation: intro-rise 1s 0.48s var(--ease) both; }
.hero--cover .hero-meta { animation: intro-rise 1s 0.55s var(--ease) both; }

.hero-panel {
  position: absolute;
  right: 6%;
  top: 18%;
  z-index: 2;
  width: min(28vw, 340px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(201, 163, 106, 0.55);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  animation: panel-in 1.1s 0.35s var(--ease) both;
}
.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ken 22s ease-in-out infinite alternate;
}
.hero-panel span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(transparent, rgba(12, 10, 8, 0.9));
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}
@keyframes panel-in {
  from { opacity: 0; transform: translate3d(24px, 28px, 0) rotate(2deg); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero-panel { display: none; }
  .hero--cover h1 { font-size: clamp(3.2rem, 16vw, 5.2rem); }
}
.scroll-hint {
  position: absolute;
  right: 7%;
  bottom: 2.2rem;
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55);
  writing-mode: vertical-rl;
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 3.2rem;
  margin: 0.7rem auto 0;
  background: linear-gradient(180deg, #c9a36a, transparent);
  animation: drip 1.6s ease-in-out infinite;
}
@keyframes drip {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 210px 210px;
  gap: 0.55rem;
}
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
  transition: transform 0.8s var(--ease), filter 0.5s;
}
.mosaic figure {
  margin: 0;
  overflow: hidden;
  min-height: 0;
}
.mosaic figure:first-child { grid-row: 1 / 3; }
.mosaic img:hover { transform: scale(1.06); filter: saturate(1) contrast(1.08); }

.cta-stage {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
}
.cta-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 15, 13, 0.88) 0%, rgba(18, 15, 13, 0.55) 55%, rgba(18, 15, 13, 0.25) 100%);
}
.cta-stage .wrap { position: relative; z-index: 1; padding: 4.5rem 0; }

.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,15,13,0.55), rgba(18,15,13,0.88));
}
.page-hero .wrap { position: relative; z-index: 1; }

.section-head h2 {
  background-image: linear-gradient(90deg, var(--brass), transparent 72%);
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: left 1.7em;
  padding-bottom: 0.4rem;
  transition: background-size 0.9s var(--ease);
}
.section-head.is-in h2 { background-size: 160px 2px; }
.band .section-head h2 {
  background-image: linear-gradient(90deg, #dcc39a, transparent 72%);
}

.dossier article {
  position: relative;
  overflow: hidden;
}
.dossier article::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--brass);
  transition: height 0.45s var(--ease);
}
.dossier article:hover::after { height: 100%; }

.quotes article {
  position: relative;
}
.quotes article::before {
  content: "“";
  position: absolute;
  right: 1rem;
  top: 0.2rem;
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(201, 163, 106, 0.22);
  line-height: 1;
}

.seal {
  animation: seal-breathe 5s ease-in-out infinite;
}
@keyframes seal-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 163, 106, 0.15); }
  50% { box-shadow: 0 0 0 12px rgba(201, 163, 106, 0); }
}

.mail-float {
  animation: pulse-mail 2.8s ease-in-out infinite;
}
@keyframes pulse-mail {
  0%, 100% { box-shadow: 0 12px 28px rgba(139, 58, 50, 0.38); }
  50% { box-shadow: 0 12px 32px rgba(139, 58, 50, 0.55), 0 0 0 10px rgba(139, 58, 50, 0.12); }
}

[data-reveal] { transition-delay: var(--d, 0s); }

.footer-grid .brand {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

@media (prefers-reduced-motion: reduce) {
  .intro, .hero-media img, .ticker-track, .seal, .mail-float, .scroll-hint::after { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px 160px; }
  .mosaic figure:first-child { grid-column: 1 / 3; grid-row: auto; }
  .scroll-hint { display: none; }
}
