/* ========================================================================== *
   LA 15 RUGBY — Secciones de la home
 * ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: grid;
  place-items: end center;
  background: var(--forest);
  overflow: hidden;
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  filter: saturate(.96) contrast(1.03);
  animation: heroZoom 22s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1); } }

/* Degradé superior: extiende el encuadre y sostiene el título */
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(8, 20, 15, .94) 0%,
      rgba(8, 20, 15, .80) 18%,
      rgba(9, 16, 13, .66) 38%,
      rgba(9, 14, 11, .52) 54%,
      rgba(9, 11, 10, .34) 68%,
      rgba(9, 9, 9, .46) 86%,
      rgba(9, 9, 9, .74) 100%);
}
.hero__vignette {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 50% 45%, transparent 42%, rgba(9, 9, 9, .55) 100%);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  padding: calc(var(--header-h) * .55) var(--gutter) clamp(3rem, 7vh, 5.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: space-between;
  gap: clamp(1.5rem, 5vh, 3rem);
}

.hero__top { display: flex; flex-direction: column; align-items: center; }

.hero__mark {
  width: clamp(74px, 9vw, 112px);
  height: auto;
  margin-bottom: clamp(1rem, 2.4vh, 1.75rem);
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .6));
  animation: fadeUp .9s var(--ease) both;
}

.hero__title {
  font-size: var(--fs-hero);
  line-height: .92;
  color: var(--white);
  letter-spacing: -.012em;
  text-shadow: 0 6px 34px rgba(0, 0, 0, .5);
  max-width: 22ch;
  text-wrap: balance;
  animation: fadeUp .9s .1s var(--ease) both;
}
.hero__sub {
  margin-top: clamp(.7rem, 1.6vh, 1.15rem);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 2.15vw, 1.75rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-2);
  text-shadow: 0 4px 22px rgba(0, 0, 0, .6);
  animation: fadeUp .9s .2s var(--ease) both;
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center;
  animation: fadeUp .9s .32s var(--ease) both;
}

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.1rem;
  transform: translateX(-50%);
  display: grid; place-items: center; gap: .4rem;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(244, 240, 231, .55);
  font-family: var(--font-display);
}
.hero__scroll span {
  display: block; width: 1px; height: 34px;
  background: linear-gradient(to bottom, rgba(201,148,40,.9), transparent);
  animation: scrollHint 2.2s ease-in-out infinite;
}
@keyframes scrollHint { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } }

@media (max-width: 780px) {
  .hero { min-height: min(94vh, 720px); }
  .hero__title { max-width: 13ch; line-height: .96; }
  .hero__sub { font-size: clamp(.9rem, 3.6vw, 1.2rem); letter-spacing: .08em; }
  .hero__scroll { display: none; }
  .hero__actions .btn { flex: 1 1 auto; min-width: 172px; }
}

/* --------------------------------------------------------------------------
   2. BRAND STORY
   -------------------------------------------------------------------------- */

.story {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
}

.story__title {
  font-size: clamp(1.9rem, 3.55vw, 3.05rem);
  line-height: .98;
  margin-bottom: 1.75rem;
}
.story__title em { font-style: normal; color: var(--gold); }

.story__copy { max-width: 44ch; }
.story__copy p { color: var(--text-soft); font-size: .9875rem; line-height: 1.72; margin-bottom: 1.15rem; }
.story__copy p.is-lead { color: var(--text); font-size: var(--fs-lead); line-height: 1.6; }
.story__copy strong { color: var(--text); font-weight: 600; }

.story__punch {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--gold-3);
  line-height: 1.15;
  margin-top: 1.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* --- Collage tipo fotos impresas ------------------------------------------ */

.collage {
  position: relative;
  aspect-ratio: 1 / .88;
  min-height: 320px;
}
.polaroid {
  position: absolute;
  background: var(--white);
  padding: 10px 10px 34px;
  box-shadow: var(--shadow-md);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid figcaption {
  position: absolute;
  left: 12px; right: 12px; bottom: 9px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.polaroid:hover { transform: rotate(0deg) translateY(-6px) scale(1.02) !important; box-shadow: var(--shadow-lg); z-index: 9 !important; }

.polaroid--1 { left: 0; top: 0; width: 39%; z-index: 2; transform: rotate(-4deg); }
.polaroid--1 img { aspect-ratio: 3 / 4; }

.polaroid--2 { right: 0; top: 2%; width: 50%; z-index: 1; transform: rotate(2.5deg); }
.polaroid--2 img { aspect-ratio: 4 / 3; filter: grayscale(1) contrast(1.1) brightness(.98); }

.polaroid--3 { left: 38%; bottom: 0; width: 36%; z-index: 3; transform: rotate(-2deg); }
.polaroid--3 img { aspect-ratio: 3 / 4; }

.collage__tape {
  position: absolute;
  left: 0; bottom: 2%;
  z-index: 4;
  width: 33%;
  background: var(--ink);
  color: var(--cream);
  padding: .85rem 1rem;
  transform: rotate(-1.5deg);
  box-shadow: var(--shadow-md);
}
.collage__tape strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}
.collage__tape span {
  display: block;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-top: .3rem;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__copy { max-width: 62ch; }
  .collage { aspect-ratio: 1 / .74; max-width: 620px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .collage {
    aspect-ratio: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem .9rem;
    align-items: start;
    padding-block: .5rem 1rem;
  }
  .polaroid { position: static; width: auto !important; padding: 7px 7px 24px; }
  .polaroid figcaption { font-size: 9px; letter-spacing: .07em; left: 8px; right: 8px; bottom: 7px; }
  .polaroid--1 { grid-column: 1; grid-row: 1; transform: rotate(-3deg); }
  .polaroid--3 { grid-column: 2; grid-row: 1; transform: rotate(2.5deg) translateY(14px); }
  .polaroid--2 { grid-column: 1 / -1; grid-row: 2; transform: rotate(1.5deg); }
  .collage__tape {
    position: static;
    grid-column: 1 / -1; grid-row: 3;
    width: auto;
    justify-self: start;
    padding: .75rem 1.1rem;
    transform: rotate(-1.5deg);
  }
  .collage__tape strong { font-size: 1.5rem; }
}

/* --------------------------------------------------------------------------
   3. CATEGORÍAS
   -------------------------------------------------------------------------- */

.cats { background: var(--cream-2); }
.cats__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.75rem, 1.4vw, 1.25rem); }

@media (max-width: 1080px) {
  .cats__grid { grid-template-columns: repeat(3, 1fr); }
  .cats__grid > :nth-child(4) { grid-column: span 1; }
}
@media (max-width: 720px) {
  .cats__grid {
    grid-template-columns: repeat(5, 68vw);
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .75rem;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .cats__grid > * { scroll-snap-align: start; }
}

/* --------------------------------------------------------------------------
   4. HISTORIAS
   -------------------------------------------------------------------------- */

.stories { background: var(--cream); }
.stories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.4vw, 2rem);
  align-items: stretch;
}
@media (max-width: 1024px) {
  .stories__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .stories__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   5. ¿POR QUÉ LA 15?
   -------------------------------------------------------------------------- */

.why {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}
.why::before {
  content: "";
  position: absolute;
  left: -80px; top: 50%;
  width: 320px; height: 320px;
  transform: translateY(-50%) rotate(-28deg);
  background: radial-gradient(circle, rgba(201, 148, 40, .10), transparent 68%);
  pointer-events: none;
}
.why__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4rem);
  padding-block: clamp(2.75rem, 5.5vw, 4.5rem);
}

.why__title {
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1;
  color: var(--cream);
}
.why__title span { color: var(--gold); display: block; }

.why__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.6vw, 2.5rem);
  border-inline: 1px solid var(--line-dark);
  padding-inline: clamp(1.25rem, 3.5vw, 3rem);
}
.why__item { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .85rem; }
.why__ico { color: var(--gold); }
.why__ico .ico { width: 38px; height: 38px; stroke-width: 1.15; }
.why__item p {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.45;
  color: rgba(244, 240, 231, .78);
  max-width: 16ch;
}

.why__claim {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.7vw, 2.35rem);
  font-weight: 600;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -.005em;
  text-align: right;
  white-space: nowrap;
}
.why__claim em { font-style: normal; color: var(--gold); display: block; }

@media (max-width: 1120px) {
  .why__inner { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
  .why__items { grid-column: 1 / -1; order: 3; border-inline: 0; padding-inline: 0; border-top: 1px solid var(--line-dark); padding-top: 2rem; }
  .why__claim { text-align: right; }
}
@media (max-width: 640px) {
  .why__inner { grid-template-columns: 1fr; text-align: center; }
  .why__title { text-align: center; }
  .why__claim { text-align: center; white-space: normal; }
  .why__items { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
}

/* --------------------------------------------------------------------------
   6. COMUNIDAD
   -------------------------------------------------------------------------- */

.community { background: var(--cream); }
.community__grid {
  display: grid;
  grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.community__title { font-size: var(--fs-h1); line-height: .96; margin-bottom: 1.5rem; }
.community__copy p { color: var(--text-soft); font-size: .9875rem; line-height: 1.72; margin-bottom: 1.1rem; }
.community__cta { margin-top: 1.9rem; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.6rem, 1.1vw, 1rem); }
.gallery figure { margin: 0; overflow: hidden; background: var(--cream-3); }
.gallery img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform .8s var(--ease), filter .6s var(--ease);
  filter: saturate(.95);
}
.gallery figure:hover img { transform: scale(1.05); filter: saturate(1.05); }
.gallery figure:nth-child(2) { transform: translateY(clamp(12px, 2.2vw, 30px)); }
.gallery figure:nth-child(4) { transform: translateY(clamp(12px, 2.2vw, 30px)); }

.follow {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  display: flex; align-items: center; justify-content: center; gap: 1.1rem; flex-wrap: wrap;
}
.follow__label {
  font-family: var(--font-display);
  font-size: .8125rem;
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  color: var(--text-soft);
}
.follow .social a { border-color: var(--line); color: var(--text-soft); }
.follow .social a:hover { color: var(--gold-3); border-color: var(--gold); }
.follow .social { margin-top: 0; }

@media (max-width: 900px) {
  .community__grid { grid-template-columns: 1fr; }
  .community__copy p { max-width: 62ch; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:nth-child(2), .gallery figure:nth-child(4) { transform: none; }
  .gallery figure:nth-child(3), .gallery figure:nth-child(4) { transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   7. DESTACADOS
   -------------------------------------------------------------------------- */

.featured { background: var(--cream-2); }
.featured__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.featured__head .shead { margin-bottom: 0; }
.featured__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.4vw, 2rem);
}
@media (max-width: 1024px) { .featured__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .featured__grid { grid-template-columns: 1fr; } }
