/* ================================================================
   Plataforma de la Sociedad Civil — Estilos Globales
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ─── Variables ─── */
:root {
  --naranja: #da601b;
  --naranja-dk: #b84d12;
  --naranja-lt: #f0845a;
  --crema: #fdf7f0;
  --cafe: #3d1f0a;
  --cafe-md: #7a4520;
  --gris: #f4efe8;
  --texto: #2c1a0e;
  --texto-suave: #6b4c35;
  --blanco: #ffffff;
  --max-w: 1200px;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--crema);
  color: var(--texto);
  font-size: 17px;
  line-height: 1.75;
}

/* ─── Layout container ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ================================================================
   NAV
   ================================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 64px;
  background: rgba(253, 247, 240, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(218, 96, 27, 0.18);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--naranja-dk);
  letter-spacing: 0.02em;
  max-width: 320px;
  line-height: 1.2;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--texto-suave);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--naranja);
}

/* ================================================================
   HERO PORTADA — Slideshow
   ================================================================ */
.hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Slides */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.active {
  opacity: 1;
}

/* Overlay común a todos los slides */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(44, 26, 14, 0.35) 0%,
      rgba(44, 26, 14, 0.15) 35%,
      rgba(44, 26, 14, 0.76) 100%);
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(218, 96, 27, 0.22) 0%, transparent 60%);
}

/* Slide sources */
.hero-slide:nth-child(1) {
  background-image: url('../img/banner-3.jpg');
}

.hero-slide:nth-child(2) {
  background-image: url('../img/banner-4.jpg');
}

.hero-slide:nth-child(3) {
  background-image: url('../img/banner-5.jpg');
}

.hero-slide:nth-child(4) {
  background-image: url('../img/banner-6.jpg');
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 24px;
  right: 40px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
  transition: background .3s, transform .3s;
}

.hero-dot.active {
  background: var(--naranja-lt);
  transform: scale(1.3);
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-content-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 80px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--naranja-lt);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp .8s .3s forwards;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--blanco);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .9s .55s forwards;
}

.hero-title span {
  color: var(--naranja-lt);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp .9s .8s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================================
   HERO ARTÍCULO — Cabecera pequeña
   ================================================================ */
.article-hero {
  margin-top: 64px;
  position: relative;
  height: 44vh;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.article-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.article-hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(44, 26, 14, 0.28) 0%,
      rgba(44, 26, 14, 0.15) 30%,
      rgba(44, 26, 14, 0.82) 100%);
}

.article-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(218, 96, 27, 0.2) 0%, transparent 60%);
}

.article-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.article-hero-content-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 48px;
}

/* ================================================================
   META BAR
   ================================================================ */
.meta-bar {
  background: var(--blanco);
  border-bottom: 1px solid rgba(218, 96, 27, 0.12);
}

.meta-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: var(--texto-suave);
}

/* ================================================================
   SECCIÓN CONTENIDOS
   ================================================================ */
.section {
  padding: 80px 0;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--cafe);
  line-height: 1.2;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1.2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 52px;
  height: 3px;
  background: var(--naranja);
  border-radius: 2px;
}

/* ─── Cards de artículos ─── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.article-card {
  background: var(--blanco);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(218, 96, 27, 0.1);
  box-shadow: 0 4px 24px rgba(44, 26, 14, 0.07);
  transition: transform .3s ease, box-shadow .3s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(44, 26, 14, 0.14);
}

.article-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  filter: brightness(0.92) saturate(0.9);
}

.article-card:hover .article-card-img img {
  transform: scale(1.06);
}

.article-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(44, 26, 14, 0.35) 100%);
}

.article-tag {
  position: absolute;
  bottom: 1rem;
  left: 1.2rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blanco);
  background: var(--naranja);
  padding: 3px 10px;
  border-radius: 1px;
}

/* Tag inline (hero artículo) */
.tag-inline {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blanco);
  background: var(--naranja);
  padding: 4px 12px;
  border-radius: 1px;
  margin-bottom: 0.9rem;
}

.article-body {
  padding: 1.8rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 0.6rem;
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cafe);
  line-height: 1.3;
  margin-bottom: 0.9rem;
}

.article-excerpt {
  font-size: 0.93rem;
  color: var(--texto-suave);
  line-height: 1.68;
  flex: 1;
  margin-bottom: 1.5rem;
}

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--naranja-dk);
  text-decoration: none;
  border-bottom: 2px solid var(--naranja);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
  width: fit-content;
}

.btn-read:hover {
  color: var(--naranja-lt);
  border-color: var(--naranja-lt);
}

.btn-read svg {
  transition: transform .2s;
}

.btn-read:hover svg {
  transform: translateX(4px);
}

/* ================================================================
   LOGOS
   ================================================================ */
.logos-section {
  background: var(--gris);
  padding: 60px 0;
  border-top: 1px solid rgba(218, 96, 27, 0.12);
}

.logos-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.logos-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-bottom: 2.5rem;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 3.5rem;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.logo-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--blanco);
  letter-spacing: 0.04em;
}

.logo-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--texto-suave);
  text-align: center;
  max-width: 90px;
  line-height: 1.3;
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--cafe);
  color: rgba(255, 255, 255, 0.65);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blanco);
  max-width: 280px;
  line-height: 1.4;
}

.footer-brand span {
  color: var(--naranja-lt);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--naranja-lt);
}

.footer-bottom {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ================================================================
   ARTÍCULO INTERIOR
   ================================================================ */
.article-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.article-wrapper h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--cafe);
  line-height: 1.3;
  margin: 2.4rem 0 0.9rem;
}

.article-wrapper h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cafe-md);
  line-height: 1.35;
  margin: 1.8rem 0 0.7rem;
}

.article-wrapper p {
  margin-bottom: 1.3rem;
  font-size: 1.02rem;
  color: var(--texto);
}

.article-wrapper ul {
  margin: 0.5rem 0 1.3rem 1.4rem;
}

.article-wrapper ul li {
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
}

.article-wrapper ul li::marker {
  color: var(--naranja);
}

.article-wrapper ol {
  margin: 0.5rem 0 1.3rem 1.4rem;
}

.article-wrapper ol li {
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
}

.article-wrapper ol li::marker {
  color: var(--naranja);
  font-weight: 600;
}

.pull-quote {
  border-left: 4px solid var(--naranja);
  margin: 2.5rem 0;
  padding: 1.2rem 1.8rem;
  background: rgba(218, 96, 27, 0.05);
  border-radius: 0 4px 4px 0;
}

.pull-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.12rem;
  color: var(--cafe-md);
  margin: 0;
  line-height: 1.6;
}

.demands-box {
  background: var(--cafe);
  border-radius: 4px;
  padding: 2rem 2.2rem;
  margin: 2.5rem 0;
}

.demands-box h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--naranja-lt);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.demands-box ol {
  margin-left: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
}

.demands-box ol li {
  margin-bottom: 0.55rem;
  font-size: 0.97rem;
}

.demands-box ol li::marker {
  color: var(--naranja-lt);
}

.article-signature {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(218, 96, 27, 0.2);
  font-size: 0.95rem;
  color: var(--texto-suave);
  font-style: italic;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--naranja-dk);
  text-decoration: none;
  border-bottom: 2px solid var(--naranja);
  padding-bottom: 2px;
  margin-bottom: 2.5rem;
  transition: color .2s;
}

.back-link:hover {
  color: var(--naranja-lt);
}

/* ================================================================
   DIVISOR
   ================================================================ */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(218, 96, 27, 0.3), transparent);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {

  .container,
  .nav-inner,
  .hero-content-inner,
  .article-hero-content-inner,
  .meta-bar-inner,
  .section-inner,
  .logos-inner,
  .footer-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-links {
    display: none;
  }

  .article-wrapper {
    padding: 40px 24px 60px;
  }

  .hero-dots {
    right: 24px;
  }
}

@media (max-width: 480px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}