/* ================= 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; }

/* ================= HERO ================= */

.section-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 95vh;
  position: relative;
  overflow: hidden;

  background: linear-gradient(
    to bottom,
    #a225eb 0%,
    #8a1fd6 35%,
    #5a138f 60%,
    #2b083f 80%,
    #000 100%
  );
}

/* Glow suave */
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 60% 20%,
    rgba(255,255,255,0.18),
    transparent 55%
  );
  z-index: 1;
}

/* Grain */
.section-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/textures/grain.png');
  opacity: 0.06;
  pointer-events: none;
  z-index: 2;
}

/* ================= MEDIA ================= */

.section-hero-media {
  position: relative;
  z-index: 0;
}

.section-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0)
  );
}

.section-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= TEXTO ================= */

.section-hero-text {
  position: relative;
  z-index: 3;
  color: #fff;
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-hero-text::before {
  content: '';
  width: 40px;
  height: 2px;
  background: #fff;
  opacity: 0.6;
  margin-bottom: 40px;
}

.section-hero-text h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 24px;
}

.section-hero-text p {
  max-width: 460px;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.85;
}

.section-hero-link {
  margin-top: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  width: fit-content;
}

.section-hero-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: #fff;
  opacity: 0.6;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {
  .section-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .section-hero-media {
    height: 60vh;
  }

  .section-hero-text {
    padding: 60px 32px;
  }

  .section-hero-text h1 {
    letter-spacing: 0.12em;
  }
}


/* ================= ARTICLES GRID ================= */

.articles {
  background: #000;
  color: #fff;
  padding: 6rem 4rem;
}

.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.articles-header h2 {
  font-size: 2.4rem;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.articles-nav button {
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.articles-nav button:hover {
  background: #fff;
  color: #000;
}

.articles-viewport {
  overflow: hidden;
}

.articles-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s ease;
}

.article-card {
  min-width: calc(25% - 1.5rem); /* 4 visibles */
}

/* ================= 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;
  }
}
/* =========================
   ARTÍCULOS · SECCIÓN
   ========================= */

.articles {
  background: #000;
  color: #fff;
  padding: 8rem 3rem;
  overflow: hidden;
}

.articles-header {
  max-width: 1400px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.articles-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.articles-nav button {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1.2rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.articles-nav button:hover {
  border-color: #a225eb;
  color: #a225eb;
}

/* ===== Hint ===== */
.articles-hint {
  max-width: 1400px;
  margin: 0 auto 1.5rem;
  font-size: 0.75rem;
  opacity: 0.5;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* =========================
   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;
  }
}