/* ─────────────────────────────────────────
   PASO DESCALZO — Estilos compartidos
   Artículos de blog + página de listado
───────────────────────────────────────── */

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

:root {
  --verde:        #2D6A4F;
  --verde-light:  #52B788;
  --verde-muted:  #E8F5EE;
  --acento:       #E07A40;
  --acento-light: #FDF0E8;
  --fondo:        #FAFAF8;
  --fondo-alt:    #F2F4F1;
  --fondo-card:   #FFFFFF;
  --texto:        #141410;
  --texto-2:      #4A4A45;
  --texto-3:      #8A8A82;
  --borde:        #E2E4DF;
  --borde-f:      #C8CCC5;
  --nav-bg:       rgba(250,250,248,0.94);
  --sombra:       rgba(20,20,16,0.08);
  --btn-bg:       #9dfd9c;
  --btn-texto:    #141410;
}

[data-theme="dark"] {
  --verde:        #52B788;
  --verde-light:  #74C69D;
  --verde-muted:  #1A2E22;
  --acento:       #F4935A;
  --acento-light: #2A1A0F;
  --fondo:        #111310;
  --fondo-alt:    #181B16;
  --fondo-card:   #1E2219;
  --texto:        #EDECEA;
  --texto-2:      #A8A89E;
  --texto-3:      #6A6A62;
  --borde:        #2A2E27;
  --borde-f:      #3A3E37;
  --nav-bg:       rgba(17,19,16,0.94);
  --sombra:       rgba(0,0,0,0.35);
  --btn-bg:       #9dfd9c;
  --btn-texto:    #141410;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--fondo); color: var(--texto);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--borde);
  height: 62px; padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s, border-color 0.3s;
}
.nav-logo {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 1.15rem; letter-spacing: -0.03em;
  color: var(--texto); text-decoration: none;
}
.nav-logo-sep { color: var(--btn-bg); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-link {
  font-size: 0.85rem; font-weight: 600;
  color: var(--texto-2); text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--verde); }
.theme-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--borde); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.theme-btn:hover { border-color: var(--verde); }
.theme-btn svg { width: 15px; height: 15px; stroke: var(--texto-3); }
.icon-moon { display: block; } .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
.nav-cta {
  background: var(--btn-bg); color: var(--btn-texto);
  padding: 0.48rem 1.1rem; border-radius: 7px;
  font-size: 0.82rem; font-weight: 700;
  text-decoration: none; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px;
  background: transparent; border: none; cursor: pointer; padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--texto); border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── FOOTER ── */
footer { background: #0D110E; padding: 2.5rem 2.5rem; }
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 700; color: #fff; }
.footer-logo span { color: #9dfd9c; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.38); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-aviso {
  width: 100%; font-size: 0.72rem; color: rgba(255,255,255,0.22);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.25rem; margin-top: 0.5rem; line-height: 1.75;
}

/* ── PÁGINA DE LISTADO ── */
.blog-header {
  max-width: 1280px; margin: 0 auto;
  padding: 5rem 2.5rem 3rem;
  border-bottom: 1px solid var(--borde);
}
.blog-header-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--verde); display: block; margin-bottom: 0.75rem;
}
.blog-header h1 {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.035em;
  line-height: 1.08; margin-bottom: 1rem;
}
.blog-header-intro {
  font-size: 1.05rem; color: var(--texto-2);
  font-weight: 300; line-height: 1.78; max-width: 560px;
}

.blog-grid-wrapper { max-width: 1280px; margin: 0 auto; padding: 4rem 2.5rem; }
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.blog-card {
  background: var(--fondo-card); border: 1px solid var(--borde);
  border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s, background 0.3s;
}
.blog-card:hover { box-shadow: 0 16px 48px var(--sombra); transform: translateY(-4px); border-color: var(--borde-f); }
.blog-card-img { height: 210px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-tag {
  display: inline-block; background: var(--verde-muted); color: var(--verde);
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.22rem 0.6rem; border-radius: 4px; margin-bottom: 0.85rem; width: fit-content;
}
.blog-card h2 {
  font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 600;
  line-height: 1.28; margin-bottom: 0.6rem; color: var(--texto);
}
.blog-card p { font-size: 0.85rem; color: var(--texto-2); line-height: 1.7; flex: 1; margin-bottom: 1.25rem; }
.blog-card-meta { font-size: 0.72rem; color: var(--texto-3); display: flex; align-items: center; gap: 0.45rem; }
.dot { width: 3px; height: 3px; background: var(--borde-f); border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ── ARTÍCULO — CABECERA ── */
.art-header { max-width: 800px; margin: 0 auto; padding: 4.5rem 2.5rem 2.5rem; }
.art-header-tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--verde-muted); color: var(--verde);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.25rem 0.65rem; border-radius: 4px; margin-bottom: 1.25rem;
}
.art-header-tag svg { width: 11px; height: 11px; }
.art-h1 {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 1.5rem; color: var(--texto);
}
.art-byline {
  display: flex; align-items: center; gap: 0.85rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--borde);
}
.art-byline-img { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 2px solid var(--borde); flex-shrink: 0; }
.art-byline-img img { width: 100%; height: 100%; object-fit: cover; }
.art-byline-text { font-size: 0.8rem; color: var(--texto-3); line-height: 1.5; }
.art-byline-text strong { color: var(--texto); font-weight: 600; display: block; }

/* Imagen hero del artículo */
.art-hero-img {
  max-width: 1000px; margin: 0 auto 0;
  padding: 0 2.5rem 3rem;
}
.art-hero-img img {
  width: 100%; border-radius: 14px; display: block;
  max-height: 480px; object-fit: cover;
}
.art-hero-img figcaption {
  font-size: 0.75rem; color: var(--texto-3);
  margin-top: 0.65rem; text-align: center; font-style: italic;
}

/* ── ARTÍCULO — CUERPO ── */
.art-body {
  max-width: 720px; margin: 0 auto;
  padding: 0 2.5rem 4rem;
  font-size: 1.05rem; color: var(--texto-2);
  line-height: 1.82; font-weight: 300;
}

/* Primer párrafo más grande */
.art-body .intro {
  font-size: 1.15rem; color: var(--texto);
  font-weight: 400; line-height: 1.75;
  margin-bottom: 1.75rem;
}

.art-body p { margin-bottom: 1.4rem; }
.art-body p:last-child { margin-bottom: 0; }

.art-body strong { color: var(--texto); font-weight: 600; }

/* Subheadings dentro del artículo */
.art-body h2 {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 1.45rem; letter-spacing: -0.02em;
  line-height: 1.2; color: var(--texto);
  margin: 2.5rem 0 1rem;
}

/* Pull quote */
.pull-quote {
  border-left: 3px solid var(--verde);
  padding: 1rem 0 1rem 1.75rem;
  margin: 2.5rem 0;
}
.pull-quote p {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 1.25rem; font-weight: 400; color: var(--texto);
  line-height: 1.45; margin-bottom: 0 !important;
}

/* Bloque de citación científica */
.study-block {
  background: var(--fondo-alt); border: 1px solid var(--borde);
  border-radius: 12px; padding: 1.4rem 1.6rem;
  margin: 2.5rem 0; display: flex; align-items: flex-start; gap: 1rem;
  transition: background 0.3s, border-color 0.3s;
}
.study-block-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--verde-muted); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.study-block-icon svg { width: 18px; height: 18px; color: var(--verde); }
.study-block-content { flex: 1; }
.study-block-label { font-size: 0.67rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--verde); margin-bottom: 0.35rem; }
.study-block-title { font-size: 0.88rem; font-weight: 600; color: var(--texto); margin-bottom: 0.4rem; line-height: 1.4; }
.study-block-detail { font-size: 0.82rem; color: var(--texto-3); line-height: 1.6; }
.study-block-link { display: inline-block; margin-top: 0.5rem; font-size: 0.78rem; color: var(--verde); font-weight: 600; text-decoration: none; }
.study-block-link:hover { text-decoration: underline; }

/* ── CTA BLOQUE ── */
.art-cta {
  max-width: 720px; margin: 0 auto 5rem;
  padding: 0 2.5rem;
}
.art-cta-inner {
  background: var(--verde); border-radius: 16px;
  padding: 2.25rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.art-cta-text { color: #fff; }
.art-cta-text strong { display: block; font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 600; margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.art-cta-text span { font-size: 0.88rem; color: rgba(255,255,255,0.72); }
.btn-cta-white {
  background: #fff; color: var(--verde);
  padding: 0.75rem 1.6rem; border-radius: 8px;
  font-weight: 700; font-size: 0.88rem; text-decoration: none;
  white-space: nowrap; transition: opacity 0.2s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-cta-white:hover { opacity: 0.9; }
.btn-cta-white svg { width: 14px; height: 14px; }

/* ── ARTÍCULOS RELACIONADOS ── */
.related {
  background: var(--fondo-alt); padding: 4rem 2.5rem;
  transition: background 0.3s;
}
.related-inner { max-width: 1280px; margin: 0 auto; }
.related-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--verde); display: block; margin-bottom: 0.6rem; }
.related h2 { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 2rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  nav { padding: 0 1.25rem; }
  .nav-hamburger { display: flex; }
  .nav-right {
    display: none;
    position: fixed; top: 62px; left: 0; right: 0;
    background: var(--nav-bg); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--borde);
    padding: 1rem 1.25rem 1.5rem;
    flex-direction: column; align-items: flex-start; gap: 1rem;
    z-index: 99; box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  }
  .nav-right.open { display: flex; }
  .nav-link { display: block !important; font-size: 1rem; padding: 0.25rem 0; }
  .nav-cta { width: 100%; text-align: center; padding: 0.7rem; }
  .blog-header, .blog-grid-wrapper { padding-left: 1.25rem; padding-right: 1.25rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .art-header, .art-hero-img, .art-body, .art-cta { padding-left: 1.25rem; padding-right: 1.25rem; }
  .related { padding: 3rem 1.25rem; }
  .related-grid { grid-template-columns: 1fr; }
  .art-cta-inner { flex-direction: column; }
}
