/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.4;
}

/* ================= LINKS ================= */
a {
  color: inherit;
  text-decoration: none;
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #a225eb;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 24px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.brand img {
  height: 40px;
}

/* Navegación desktop */
.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.main-nav a:hover {
  opacity: 1;
}

/* ================= MENU HAMBURGUESA ================= */

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #a225eb;
  user-select: none;
}

/* Menú mobile */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #a225eb;
  color: #fff;

  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;

  border-top: 1px solid rgba(255,255,255,0.2);
  z-index: 99;
}
/* FAUM destacado en desktop */
.main-nav a[href="/faum/"] {
  color: #a225eb;
  font-weight: 600;
}
/* Links del menú */
.mobile-nav a {
  color: #fff;
  padding: 18px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: background 0.25s ease;
}

/* Hover elegante */
.mobile-nav a:hover {
  background: rgba(255,255,255,0.12);
}

/* Estado activo */
.mobile-nav.open {
  display: flex;
}

/* Activo */
.mobile-nav.open {
  display: flex;
}

/* ================= HERO MANADA ================= */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

/* Fondo limpio editorial */
.hero-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #f5f5f5, #ffffff);
  z-index: 0;
}

/* Rayones */
.hero-scratches {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -25deg,
      transparent,
      transparent 80px,
      rgba(162, 37, 235, 0.15) 82px,
      rgba(162, 37, 235, 0.15) 84px
    );
  mix-blend-mode: multiply;
  opacity: 0.7;
  animation: scratchMove 8s linear infinite;
  z-index: 1;
}

/* Contenido */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
}

/* Logo intervenido */
.hero-logo-wrapper {
  width: 280px;
  margin-bottom: 50px;
  transform: rotate(-3deg);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.25));
  animation: logoGlitch 3s ease-in-out infinite alternate;
}

.hero-logo {
  width: 100%;
  display: block;
}

/* Texto principal */
.hero-tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #111;
}

.hero-tagline span {
  display: block;
  opacity: 0;
  animation: textReveal 0.9s forwards;
}

.hero-tagline span:nth-child(1) { animation-delay: 0.3s; }
.hero-tagline span:nth-child(2) { animation-delay: 0.6s; }
.hero-tagline span:nth-child(3) { animation-delay: 0.9s; }

.hero-tagline em {
  font-style: normal;
  color: #a225eb;
}

.hero-tagline strong {
  color: #a225eb;
}

/* Sub */
.hero-sub {
  margin-top: 25px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.25em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #555;
}

/* Animaciones */
@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoGlitch {
  0% {
    transform: rotate(-3deg) translateY(0);
  }
  100% {
    transform: rotate(-1deg) translateY(-10px);
  }
}

@keyframes scratchMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 300px 0;
  }
}

/* Hover editorial */
.hero-logo-wrapper:hover {
  transform: rotate(0deg) scale(1.05);
  transition: transform 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-logo-wrapper {
    width: 200px;
  }
}

/* ================= SECTIONS ================= */
section {
  padding: 80px 24px;
}

.section-header {
  max-width: 1400px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ================= MAGAZINE ================= */
.magazine {
  background: #fff;
  color: #000;
}

.magazine-grid {
  max-width: 800px;      /* más estrecho que trending para centrar */
  margin: 0 auto;
  display: flex;
  justify-content: center; /* centra la card */
  gap: 32px;
}

.magazine-item a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Hover: levanta y agrega sombra elegante */
.magazine-item a:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Contenedor de imagen grande y rectangular */
.magazine-item .img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 5;  /* más alto para portada estilo revista */
  overflow: hidden;
  background: #222;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.magazine-item .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.magazine-item .img-wrapper img:hover {
  transform: scale(1.03);
}

/* Título y texto */
.magazine-item h3 {
  margin-top: 20px;
  font-size: 1.4rem;
  font-weight: 700;
}

.magazine-item p {
  margin: 10px 0 0;
  font-size: 1rem;
  opacity: 0.85;
}

/* ================= TRENDING ================= */
.trending {
  background: #111;
  color: #fff;
}

.trending-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.trending-item {
  display: flex;
  flex-direction: column;
}

/* Contenedor de imagen estándar 4:3 */
.trending-item .img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;    /* rectangular estándar */
  overflow: hidden;
  background: #222;
  border-radius: 4px;     /* opcional, esquinas suaves */
}

/* Imagen dentro del contenedor */
.trending-item .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* recorta lo mínimo necesario */
  object-position: center;
  transition: transform 0.3s ease;
}

/* Efecto hover: zoom suave */
.trending-item .img-wrapper img:hover {
  transform: scale(1.05);
}

.trending-item h3 {
  margin-top: 16px;
  font-size: 1.1rem;
  font-weight: 600;
}

.trending-item p {
  margin: 8px 0 12px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.trending-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #fff;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.trending-link:hover {
  color: #a225eb;
  border-color: #a225eb;
}

/* ================= CARTELERA ================= */
.cartelera {
  background: #fff;
  color: #000;
}

.cartelera-list {
  max-width: 1000px;
  margin: 0 auto;
}

.cartelera-item {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  gap: 16px;

  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.cartelera-item .date {
  font-weight: 600;
}

.cartelera-item .title {
  font-weight: 500;
}

.cartelera-item .place {
  text-align: right;
  opacity: 0.7;
}

/* ================= FOOTER ================= */
.site-footer {
  background: #000;
  padding: 60px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-club h4 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-club p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 8px;
}

.footer-club a {
  font-size: 0.9rem;
  border-bottom: 1px solid #fff;
}

.footer-social {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-copy {
  display: block;
  margin-top: 40px;
  font-size: 0.75rem;
  opacity: 0.5;
  text-align: center;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

}
