/* pages.css — Estrellas del Mundial
   Estilos específicos de héroe, portada de revista, perfil, artículo, etc. */

/* ===== Hero portada de revista ===== */
.hero {
  position: relative;
  padding-block: clamp(60px, 9vw, 120px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 380px at 78% 22%, rgba(212, 175, 55, 0.16), transparent 65%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 9px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}

.hero__issue {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 22px;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero__issue span {
  color: var(--gold-2);
}

.hero h1 {
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-2);
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* tarjeta de portada visual */
.cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(212, 175, 55, 0.22), transparent 55%),
    linear-gradient(180deg, #16140d, #0a0a0b);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
}

.cover__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-2);
}

.cover__art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.cover__art svg {
  width: 72%;
  opacity: 0.92;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.cover__caption {
  position: relative;
  z-index: 2;
}

.cover__caption h2 {
  font-size: 1.9rem;
  color: var(--text);
}

.cover__caption p {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.cover__barcode {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 34px;
}

.cover__barcode i {
  display: block;
  width: 2px;
  background: var(--gold-2);
  opacity: 0.65;
}

/* ===== Section header ===== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}

.section-head h2 {
  max-width: 18ch;
}

.section-head p {
  max-width: 42ch;
}

/* ===== Page hero (interior) ===== */
.page-hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 86px) clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 320px at 85% 10%, rgba(212, 175, 55, 0.12), transparent 65%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  max-width: 64ch;
}

.page-hero h1 {
  margin: 18px 0 18px;
}

/* ===== Artículo / longread ===== */
.article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.prose {
  max-width: 72ch;
  margin-inline: auto;
}

.prose > * + * {
  margin-top: 1.15em;
}

.prose h2 {
  margin-top: 1.8em;
  margin-bottom: 0.3em;
}

.prose h3 {
  margin-top: 1.4em;
  color: var(--gold-2);
}

.prose p {
  font-size: 1.06rem;
  line-height: 1.78;
}

.prose .dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 0.8;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--gold-2);
}

.prose figure {
  margin-block: 1.8em;
}

.prose blockquote {
  margin-block: 1.6em;
}

.prose ul.dotted {
  display: grid;
  gap: 10px;
}

.prose ul.dotted li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
}

.prose ul.dotted li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-faint);
  margin-top: 18px;
}

.article-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* ===== Perfil de jugador ===== */
.profile {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.profile__card {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--black-3), var(--black-2));
}

.profile__portrait {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.3), transparent 62%),
    linear-gradient(160deg, #1a160c, #0a0a0b);
}

.profile__portrait svg {
  width: 62%;
}

.profile__facts {
  padding: 22px 24px 26px;
  display: grid;
  gap: 14px;
}

.profile__fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.profile__fact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile__fact dt {
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.profile__fact dd {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

/* ===== Timeline ===== */
.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--line);
  margin-left: 8px;
}

.timeline__item {
  position: relative;
  padding: 0 0 28px 28px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--gold);
}

.timeline__year {
  font-family: var(--font-display);
  color: var(--gold-2);
  font-size: 1.1rem;
}

.timeline__item p {
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ===== Contacto ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.05), transparent);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-card:hover {
  border-color: var(--line);
  transform: translateY(-4px);
}

.contact-card .ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-2);
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.contact-card a {
  color: var(--gold-2);
  font-weight: 600;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ===== CTA banda ===== */
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(34px, 5vw, 56px);
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(212, 175, 55, 0.14), transparent 60%),
    linear-gradient(180deg, var(--black-3), var(--black-2));
}

.cta-band h2 {
  max-width: 24ch;
  margin-inline: auto;
  margin-bottom: 14px;
}

.cta-band p {
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 26px;
}

/* ===== Hotlink foto opcional ===== */
.photo-band {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
  background: linear-gradient(160deg, #11130f, #06120a);
}

.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0.55;
}

.photo-band__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 11, 0.9));
}

/* ===== Legal ===== */
.legal {
  max-width: 76ch;
  margin-inline: auto;
}

.legal h2 {
  margin-top: 1.6em;
  margin-bottom: 0.4em;
  font-size: 1.5rem;
}

.legal p,
.legal li {
  font-size: 0.98rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.legal ul {
  display: grid;
  gap: 8px;
  margin: 0.6em 0 0.6em 0;
}

.legal ul li {
  position: relative;
  padding-left: 20px;
}

.legal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.9rem;
}

.legal th,
.legal td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
}

.legal th {
  color: var(--gold-2);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .cover {
    max-width: 380px;
    margin-inline: auto;
  }

  .profile {
    grid-template-columns: 1fr;
  }

  .profile__card {
    position: static;
    max-width: 380px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .prose p {
    font-size: 1rem;
  }
}

/* ===== Fotos reales (acabado final) ===== */
/* Fondo fotográfico del héroe principal con velo oscuro para legibilidad */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 420px at 78% 22%, rgba(212, 175, 55, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.82), rgba(10, 10, 11, 0.9));
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Foto dentro de la tarjeta de portada de revista */
.cover__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cover__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(212, 175, 55, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.35) 0%, rgba(10, 10, 11, 0.86) 78%);
}

.cover__top,
.cover__art,
.cover__caption {
  position: relative;
  z-index: 2;
}

/* Foto dentro de la media de una tarjeta */
.card__photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__photo {
  transform: scale(1.05);
}

.card__media--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 11, 0.55));
  pointer-events: none;
}

/* Foto en el retrato del perfil */
.profile__portrait--photo {
  padding: 0;
}

.profile__portrait--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Figura con pie de foto dentro del longread */
.prose .figure {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.prose .figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.prose .figure figcaption {
  font-size: 0.82rem;
  color: var(--text-faint);
  padding: 12px 16px;
  background: var(--black-2);
}

/* Marco de imagen genérico (columnas, asides) */
.media-frame {
  margin-top: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
