/* ================= 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;
}

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;
}

.brand img { height: 40px; }

/* Desktop nav */
.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; }

.main-nav a[href="/faum/"] {
  color: #a225eb;
  font-weight: 600;
}

/* ================= MOBILE MENU ================= */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #a225eb;
  user-select: none;
}

.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);
}

.mobile-nav a {
  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;
}

.mobile-nav a:hover {
  background: rgba(255,255,255,0.12);
}

.mobile-nav.open { display: flex; }


/* ================= LINK CLICKEABLE ================= */

.article-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Imagen */
.article-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

/* Hover imagen */
.article-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* Título */
.article-card h3 {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.4;
  transition: opacity 0.3s ease;
}

/* Hover título */
.article-card:hover h3 {
  opacity: 1;
}


/* ================= FOOTER ================= */

.site-footer {
  background: #000;
  color: #fff;
  padding: 100px 24px 32px;
  position: relative;
  overflow: hidden;
}

/* Línea superior */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.2),
    transparent
  );
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 60px;
}

/* Marca */
.footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  display: inline-block;
  margin-bottom: 20px;
}

.footer-manifest {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.6;
}

/* CTA / Alianzas */
.footer-cta-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  opacity: 0.7;
}

.footer-cta-text {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.6;
  margin-bottom: 16px;
}

.footer-cta-link {
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 4px;
  display: inline-block;
}

.footer-cta-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #a225eb;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer-cta-link:hover::after {
  transform: scaleX(1);
}

/* ================= SOCIAL ICON ================= */

.footer-social {
  display: flex;
  align-items: flex-start;
}

.social-icon {
  width: 42px;
  height: 42px;
  color: #fff;
  opacity: 0.6;
  transition: all 0.35s ease;
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.social-icon:hover {
  opacity: 1;
  color: #a225eb;
  transform: translateY(-4px);
}

/* Bottom */
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.4;
}


/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {

  .main-nav { display: none; }
  .menu-toggle { display: block; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* =========================
   SLIDER
   ========================= */

.articles-viewport {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

.articles-track {
  display: flex;
  gap: 3rem;
  transition: transform 0.6s ease;
}

.article-card {
  min-width: calc(25% - 2.25rem);
}

.article-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: grayscale(10%) contrast(1.05);
  transition: all 0.4s ease;
}

.article-card h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.85;
}

.article-card:hover img {
  filter: grayscale(0%) contrast(1.1);
}

/* ========================= MOBILE · EDITORIAL FLOW ========================= */

@media (max-width: 768px) {

  .articles {
    padding: 4rem 1.5rem;
  }

  .articles-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .articles-header h2 {
    font-size: 1.8rem;
  }

  .articles-nav {
    display: none;
  }

  .articles-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .articles-track {
    gap: 1.2rem;
  }

  .article-card {
    min-width: 75%;
  }

  .article-card h3 {
    font-size: 0.95rem;
  }
}

/* Ocultar hint en desktop */
@media (min-width: 769px) {
  .articles-hint {
    display: none;
  }
}
/* ================= MAGAZINE HERO ================= */

.magazine-hero {
  background:
    radial-gradient(circle at top, rgba(162,37,235,.08), transparent 60%),
    #000;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 4rem;
  padding: 7rem 2rem 5rem;
  overflow: hidden;
}

/* ================= FRAME ================= */

.magazine-frame {
  position: relative;
  width: 360px;
  max-width: 90vw;
  aspect-ratio: 3 / 4;

  transition:
    width .9s cubic-bezier(.77,0,.18,1),
    aspect-ratio .9s cubic-bezier(.77,0,.18,1);
}

body.mag-open .magazine-frame {
  width: 88vw;
  max-width: 1200px;
  aspect-ratio: 16 / 10;
}

/* ================= SPREAD ================= */

.spread {
  display: flex;
  width: 100%;
  height: 100%;
  background: #000;

  box-shadow:
    0 50px 120px rgba(0,0,0,.85),
    0 0 0 1px rgba(255,255,255,.04);
}

.page {
  height: 100%;
  object-fit: cover;
  display: block;
}

.page.left,
.page.right {
  width: 50%;
}

.page.left {
  border-right: 1px solid rgba(255,255,255,.08);
}

.page.full {
  width: 100%;
}

/* ================= INFO (PORTADA) ================= */

.magazine-info {
  margin-top: 2rem;
  text-align: center;
  max-width: 320px;
  margin-inline: auto;

  transition: opacity .4s ease, transform .4s ease;
}

body.mag-open .magazine-info {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.mag-meta {
  font-size: .65rem;
  letter-spacing: .3em;
  opacity: .55;
}

.magazine-info h1 {
  font-size: 2rem;
  margin: .6rem 0 .4rem;
}

.magazine-info p {
  font-size: .9rem;
  opacity: .75;
}

/* ================= NAV (DESKTOP ONLY) ================= */

.mag-nav {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.6rem;
  cursor: pointer;
  opacity: .25;
  transition: opacity .25s ease, transform .25s ease;
}

.mag-nav:hover {
  opacity: .9;
  transform: scale(1.15);
}

/* ================= TOUCH ZONES (MOBILE) ================= */

.touch-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 5;
}

.touch-zone.left { left: 0; }
.touch-zone.right { right: 0; }

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .magazine-hero {
    flex-direction: column;
    padding: 5rem 1.5rem 4rem;
    gap: 1.5rem;
  }

  .magazine-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
  }

  body.mag-open .magazine-frame {
    aspect-ratio: 3 / 4;
  }

  .spread {
    flex-direction: column;
  }

  .mag-nav {
    display: none;
  }
}

@media (min-width: 769px) {
  .touch-zone {
    display: none;
  }
}

