/*
  REFLEXIONES · ESCUCHA TU SER
  Hoja de estilos autónoma para reflexiones.escuchatuser.com
  No depende de stylesheet.css ni de CSS de www.escuchatuser.com.
*/

:root {
  --paper: #f4efe7;
  --paper-2: #ebe3d8;
  --ink: #262337;
  --ink-soft: #575265;
  --plum: #5f3f5f;
  --terracotta: #b5664b;
  --sage: #7d8b7f;
  --line: rgba(38, 35, 55, .14);
  --white: #fffdf9;
  --shadow: 0 22px 60px rgba(38, 35, 55, .10);
  --radius-lg: 34px;
  --radius-md: 22px;
  --radius-sm: 13px;
  --content: 1180px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 5%, rgba(181,102,75,.10), transparent 32rem),
    radial-gradient(circle at 3% 45%, rgba(95,63,95,.08), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: repeating-linear-gradient(0deg, transparent 0 23px, rgba(38,35,55,.018) 24px);
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }

.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.container-narrow { width: min(calc(100% - 40px), 900px); margin-inline: auto; }
.section { padding: 92px 0; }
.mt-md { margin-top: 1.5rem; }

/* ---------- Header: editorial, independent from the main site ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(244,239,231,.92);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  min-width: 155px;
}
.brand-kicker {
  color: var(--terracotta);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 800;
  margin-bottom: 7px;
}
.brand-title {
  font: 700 1.45rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
}
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-icon { display: none; }
.main-nav { justify-self: center; }
.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 650;
  position: relative;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 1px;
  background: var(--terracotta);
  transition: right .25s ease;
}
.menu a:hover::after, .menu a.active::after { right: 0; }
.menu a.active { color: var(--ink); }
.nav-cta, .btn.primary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  font-size: .84rem;
  font-weight: 750;
  letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav-cta:hover, .btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(38,35,55,.16); background: var(--plum); }

/* ---------- Labels / breadcrumbs ---------- */
.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--terracotta);
  font-size: .72rem;
  letter-spacing: .20em;
  font-weight: 850;
  text-transform: uppercase;
}
.mini-label::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.breadcrumbs {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: .82rem;
}
.breadcrumbs a { text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumbs a:hover { border-color: currentColor; }

/* ---------- Index hero ---------- */
.reflections-hero { padding: 56px 20px 0; }
.reflections-hero-panel {
  width: min(100%, 1380px);
  margin-inline: auto;
  min-height: 510px;
  padding: clamp(56px, 8vw, 110px) clamp(28px, 7vw, 100px);
  border-radius: 0 0 56px 56px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(38,35,55,.98), rgba(95,63,95,.93) 58%, rgba(181,102,75,.88));
  box-shadow: var(--shadow);
}
.reflections-hero-panel::before {
  content: "“";
  position: absolute;
  right: clamp(20px, 8vw, 120px);
  top: -90px;
  font: 400 32rem/1 Georgia, serif;
  color: rgba(255,255,255,.055);
}
.reflections-hero-panel .breadcrumbs { color: rgba(255,255,255,.66); }
.reflections-hero-panel .mini-label { color: #f1b69f; }
.reflections-hero h1 {
  position: relative;
  max-width: 850px;
  margin: 24px 0 24px;
  font: 500 clamp(3.2rem, 7vw, 6.8rem)/.93 Georgia, "Times New Roman", serif;
  letter-spacing: -.055em;
}
.reflections-hero p {
  position: relative;
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.80);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

/* ---------- Reflection index ---------- */
.reflections-section { padding-top: 72px; }
.reflections-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 58px;
  align-items: start;
}
.reflections-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.reflection-card {
  background: rgba(255,253,249,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-width: 0;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.reflection-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: rgba(181,102,75,.28); }
.reflection-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--paper-2), #d8c6b5);
}
.reflection-card-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(.96); transition: transform .6s ease; }
.reflection-card:hover .reflection-card-image img { transform: scale(1.035); }
.reflection-card-body { padding: 28px 28px 30px; }
.reflection-date { display: block; color: var(--terracotta); font-size: .76rem; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.reflection-card h2 { margin: 12px 0 15px; font: 600 clamp(1.55rem, 2vw, 2.05rem)/1.08 Georgia, serif; letter-spacing: -.025em; }
.reflection-card h2 a { text-decoration: none; }
.reflection-card p { color: var(--ink-soft); margin: 0 0 22px; }
.read-more { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: .85rem; font-weight: 800; }
.read-more::after { content: "→"; color: var(--terracotta); transition: transform .2s ease; }
.read-more:hover::after { transform: translateX(5px); }

.reflections-sidebar, .article-sidebar {
  position: sticky;
  top: 120px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  background: rgba(255,253,249,.62);
}
.reflections-sidebar h2, .article-sidebar h2 { font: 600 1.7rem/1.1 Georgia, serif; margin: 15px 0 22px; }
.latest-list { display: grid; }
.latest-item { text-decoration: none; padding: 18px 0; border-top: 1px solid var(--line); }
.latest-item span { display: block; color: var(--terracotta); font-size: .72rem; margin-bottom: 5px; }
.latest-item strong { font: 600 1rem/1.3 Georgia, serif; }
.latest-item:hover strong { color: var(--plum); }
.empty-reflections { padding: 48px; border: 1px dashed var(--line); border-radius: var(--radius-md); }

.panel {
  padding: clamp(34px, 5vw, 64px);
  border-left: 4px solid var(--terracotta);
  background: rgba(255,253,249,.58);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.panel h2 { margin: 16px 0 24px; font: 600 clamp(2.1rem, 4vw, 3.4rem)/1.02 Georgia, serif; letter-spacing: -.035em; }
.panel a { color: var(--plum); }
.lead { font-size: 1.12rem; color: var(--ink-soft); }


/* ---------- Individual reflection landings ----------
   Los artículos no muestran el menú del portal. La identidad y el CTA
   quedan integrados sobre el hero para que cada URL funcione como landing.
------------------------------------------------------- */
.reflexion-landing .article-hero {
  min-height: clamp(600px, 78vh, 820px);
  align-items: end;
}

.landing-hero-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.landing-brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,.24);
}

.landing-brand-kicker {
  margin-bottom: 8px;
  color: #f1b69f;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.landing-brand-title {
  font: 700 1.48rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}

.landing-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  color: var(--white);
  background: rgba(25,22,38,.34);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  text-decoration: none;
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .015em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.landing-hero-cta:hover {
  transform: translateY(-2px);
  background: rgba(25,22,38,.68);
  border-color: rgba(255,255,255,.8);
}

.reflexion-landing .article-hero-content {
  padding-top: 175px;
  padding-bottom: clamp(72px, 10vh, 112px);
}

.reflexion-landing .site-footer {
  margin-top: 84px;
}

/* ---------- Articles: journal / reading room ---------- */
.article-hero {
  min-height: 590px;
  display: flex;
  align-items: end;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
}
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(28,25,42,.96) 0%, rgba(38,35,55,.88) 45%, rgba(38,35,55,.40) 100%);
}
.article-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.22));
  z-index: -1;
}
.article-hero-content { max-width: 830px; color: var(--white); padding: 110px 0 82px; }
.article-hero-content .mini-label { color: #f1b69f; }
.article-hero h1 { margin: 20px 0 24px; font: 500 clamp(3rem, 6vw, 6rem)/.95 Georgia, serif; letter-spacing: -.05em; }
.article-hero p { margin: 0; max-width: 700px; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.article-section { padding-top: 86px; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--reading)) 300px; justify-content: space-between; gap: 70px; align-items: start; }
.article-content {
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.105rem;
  line-height: 1.88;
}
.article-content > p { margin: 0 0 1.55em; }
.article-content > .lead { color: var(--ink); font-size: 1.28rem; line-height: 1.72; }
.article-content h2 { margin: 2.35em 0 .8em; font: 600 clamp(2rem, 3.8vw, 3rem)/1.05 Georgia, serif; letter-spacing: -.035em; }
.article-content h3 { margin: 2em 0 .7em; font: 600 1.45rem/1.15 Georgia, serif; }
.article-content strong { color: #342f45; }
.article-content a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-quote {
  margin: 44px 0;
  padding: 34px 36px 34px 42px;
  border-left: 3px solid var(--terracotta);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(181,102,75,.075);
  color: var(--plum);
  font: italic 500 clamp(1.35rem, 2.7vw, 2rem)/1.42 Georgia, serif;
}
.article-cta {
  margin-top: 62px;
  padding: 38px;
  border-radius: var(--radius-md);
  color: var(--white);
  background: linear-gradient(135deg, var(--plum), var(--ink));
  box-shadow: var(--shadow);
}
.article-cta h2, .article-cta h3 { color: var(--white); margin-top: 0; }
.article-cta p { color: rgba(255,255,255,.78); }
.article-cta .btn.primary { background: var(--white); color: var(--ink); border-color: var(--white); }
.article-sidebar { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.article-sidebar a { text-decoration: none; }
.article-sidebar ul { padding-left: 18px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: #e9e0d4; }
.footer-inner { padding: 48px 0 40px; display: grid; grid-template-columns: 1fr auto; gap: 28px 50px; }
.site-footer strong { font: 600 1.25rem/1.2 Georgia, serif; }
.site-footer p { margin: 8px 0 0; color: var(--ink-soft); font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: start; justify-content: flex-end; gap: 14px 20px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: .82rem; }
.footer-links a:hover { color: var(--ink); }
.footer-note { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------- Scroll to top ---------- */
#scrollTopBtn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .22s ease;
  box-shadow: 0 12px 28px rgba(38,35,55,.18);
}
#scrollTopBtn.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

.fade-in { animation: fadeUp .7s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto auto; min-height: 78px; }
  .menu-icon { display: grid; gap: 5px; width: 42px; height: 42px; place-content: center; cursor: pointer; }
  .menu-icon span { width: 22px; height: 2px; background: var(--ink); transition: .2s ease; }
  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    background: rgba(244,239,231,.98);
    border-bottom: 1px solid var(--line);
    padding: 18px 20px 26px;
  }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu a { display: block; padding: 13px 0; font-size: .98rem; }
  .menu a::after { display: none; }
  .menu-toggle:checked ~ .main-nav { display: block; }
  .reflections-layout, .article-layout { grid-template-columns: 1fr; gap: 50px; }
  .reflections-sidebar, .article-sidebar { position: static; }
  .article-layout { justify-content: stretch; }
  .article-content { max-width: var(--reading); margin-inline: auto; }
  .reflections-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .container, .container-narrow { width: min(calc(100% - 28px), var(--content)); }
  .section { padding: 66px 0; }
  .nav { gap: 12px; }
  .brand { min-width: 0; }
  .brand-title { font-size: 1.2rem; }
  .brand-kicker { font-size: .56rem; letter-spacing: .16em; }
  .nav-cta { padding: 10px 13px; font-size: .76rem; }
  .reflections-hero { padding: 22px 10px 0; }
  .reflections-hero-panel { min-height: 460px; border-radius: 0 0 30px 30px; padding: 50px 24px 58px; }
  .reflections-hero h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .reflections-grid { grid-template-columns: 1fr; }
  .reflection-card-body { padding: 24px; }
  .article-hero { min-height: 520px; }
  .article-hero-content { padding: 86px 0 58px; }
  .article-hero h1 { font-size: clamp(2.65rem, 13vw, 4.7rem); }
  .article-content { font-size: 1.04rem; }
  .article-content > .lead { font-size: 1.16rem; }
  .article-quote { margin: 34px 0; padding: 28px 24px 28px 28px; }
  .article-cta { padding: 28px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}


@media (max-width: 700px) {
  .reflexion-landing .article-hero {
    min-height: 650px;
  }
  .landing-hero-nav {
    min-height: 86px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .landing-brand-title { font-size: 1.22rem; }
  .landing-brand-kicker { font-size: .55rem; letter-spacing: .16em; }
  .landing-hero-cta {
    min-height: 42px;
    padding: 0 15px;
    font-size: .75rem;
  }
  .reflexion-landing .article-hero-content {
    padding-top: 145px;
    padding-bottom: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* =========================================================
   LANDING ARTICLE HERO — ALTURA COMPACTA
   ========================================================= */

.reflexion-landing .article-hero {
    min-height: clamp(460px, 55vh, 540px);
    height: auto;
    padding-top: 28px;
    padding-bottom: 42px;
}

.reflexion-landing .article-hero-content {
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 1024px) {
    .reflexion-landing .article-hero {
        min-height: 470px;
        padding-top: 24px;
        padding-bottom: 38px;
    }
}

@media (max-width: 680px) {
    .reflexion-landing .article-hero {
        min-height: 400px;
        padding-top: 20px;
        padding-bottom: 30px;
    }
}


/* Ajuste definitivo: hero landing más compacto */
.reflexion-landing .article-hero {
    min-height: 470px !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.reflexion-landing .article-hero-content {
    min-height: 470px !important;
    padding-top: 70px !important;
    padding-bottom: 35px !important;
    justify-content: center;
}

@media (max-width: 1024px) {
    .reflexion-landing .article-hero,
    .reflexion-landing .article-hero-content {
        min-height: 440px !important;
    }

    .reflexion-landing .article-hero-content {
        padding-top: 60px !important;
        padding-bottom: 30px !important;
    }
}

@media (max-width: 680px) {
    .reflexion-landing .article-hero,
    .reflexion-landing .article-hero-content {
        min-height: 390px !important;
    }

    .reflexion-landing .article-hero-content {
        padding-top: 50px !important;
        padding-bottom: 24px !important;
    }
}
