/* ── Samuel Valverde · Blog ── shares the site's design language ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --black:  #080808;
  --white:  #ffffff;
  --cream:  #F7F3EE;
  --cream2: #EDE8E1;
  --gray:   #6E6E73;
  --gray2:  #1D1D1F;
  --gold:   #C8A96E;
  --gold-d: #A8956A;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── BARRA DE IDIOMA (superior, igual que el home) ── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 250; height: 33px;
  display: flex; align-items: center; justify-content: center; gap: 11px;
  background: rgba(8,7,6,0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.topbar.hide { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.topbar-lang {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.4px;
  color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s;
}
.topbar-lang:hover { color: #fff; }
.topbar-lang.active { color: #C8A96E; cursor: default; }
.topbar-sep { color: rgba(255,255,255,0.22); font-size: 0.7rem; }

/* ── HEADER ── */
header {
  position: fixed;
  top: 33px; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(8,8,8,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: top 0.35s ease, background 0.4s ease, padding 0.3s ease;
}
header.scrolled {
  top: 0;
  background: rgba(8,8,8,0.92);
  padding-top: 13px; padding-bottom: 13px;
}
.header-social { display: flex; gap: 15px; align-items: center; }
.header-social a {
  color: var(--white); opacity: 0.72; text-decoration: none;
  transition: opacity 0.2s; display: flex;
}
.header-social a:hover { opacity: 1; }
.header-social svg { width: 16px; height: 16px; fill: currentColor; }
.header-logo {
  position: absolute; left: 50%; transform: translateX(-50%);
  text-align: center; text-decoration: none;
}
.header-logo-text {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 400;
  color: var(--white); letter-spacing: 4px; text-transform: uppercase; white-space: nowrap;
}
.header-logo-text span { font-style: italic; font-weight: 300; }
.header-nav { display: flex; gap: 26px; align-items: center; }
.header-nav a {
  color: rgba(255,255,255,0.72); text-decoration: none;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.5px; transition: color 0.2s;
}
.header-nav a:hover { color: var(--white); }
.header-right { display: flex; align-items: center; gap: 22px; }
.lang-switch {
  border: 1px solid rgba(255,255,255,0.45); border-radius: 999px;
  padding: 7px 14px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px;
  color: #fff; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center;
  transition: background .2s, border-color .2s;
}
.lang-switch:hover { background: rgba(255,255,255,0.16); border-color: #fff; color: #fff; }
@media (max-width: 900px) { .header-right { gap: 0; } }
@media (max-width: 600px) { .lang-switch { padding: 6px 12px; font-size: 0.76rem; } }

/* ── BLOG INDEX HERO ── */
.blog-hero {
  background: var(--black);
  color: var(--white);
  padding: 184px 40px 92px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: ''; position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(200,169,110,0.13) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero-eyebrow {
  position: relative;
  display: inline-block;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(200,169,110,0.45);
  border-radius: 999px; padding: 5px 18px; margin-bottom: 28px;
}
.blog-hero h1 {
  position: relative;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -1px;
  margin-bottom: 22px;
}
.blog-hero p {
  position: relative;
  max-width: 540px; margin: 0 auto;
  font-size: 1.02rem; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.62);
}

/* ── GRID SECTION ── */
.blog-grid-section { background: var(--cream); padding: 80px 40px 110px; }
.blog-featured, .blog-grid { max-width: 1080px; margin: 0 auto; }
.blog-featured { margin-bottom: 64px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 36px;
}

/* ── POST CARD ── */
.post-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.post-card-thumb {
  width: 100%; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden;
  background-size: cover; background-position: center; background-color: #ddd6cc;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.post-card:hover .post-card-thumb { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(0,0,0,0.20); }
.post-card-body { padding: 20px 2px 0; display: flex; flex-direction: column; gap: 9px; }
.post-card-meta {
  font-size: 0.62rem; font-weight: 600; color: var(--gold-d);
  letter-spacing: 1.8px; text-transform: uppercase;
}
.post-card h3 {
  font-family: var(--sans); font-size: 1.14rem; font-weight: 700; color: var(--black);
  line-height: 1.3; letter-spacing: -0.3px;
}
.post-card p {
  font-size: 0.86rem; font-weight: 300; color: #6b6b6b; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-size: 0.74rem; font-weight: 600; color: var(--black); letter-spacing: 0.2px;
}
.post-card-more svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.post-card:hover .post-card-more svg { transform: translateX(4px); }

/* ── FEATURED CARD (horizontal) ── */
.post-card-featured {
  display: grid; grid-template-columns: 0.85fr 1fr; gap: 48px; align-items: center;
  background: var(--white); border-radius: 12px; padding: 26px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.08);
}
.post-card-featured .post-card-thumb { aspect-ratio: 4/5; }
.post-card-featured .post-card-body { padding: 0; gap: 14px; }
.post-card-featured .post-card-meta { font-size: 0.66rem; }
.post-card-featured h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.8px; line-height: 1.15; }
.post-card-featured p { font-size: 0.96rem; -webkit-line-clamp: 4; line-height: 1.75; }

/* ── ARTICLE ── */
.article-hero {
  background: var(--black); color: var(--white);
  padding: 160px 24px 70px; text-align: center;
  position: relative; overflow: hidden;
}
.article-hero::before {
  content: ''; position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(200,169,110,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.article-back {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 26px;
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.4px; transition: color 0.2s, gap 0.2s;
}
.article-back:hover { color: var(--white); gap: 11px; }
.article-back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.article-eyebrow {
  position: relative; display: block;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.article-hero h1 {
  position: relative;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.08; letter-spacing: -0.5px;
  max-width: 880px; margin: 0 auto 22px;
}
.article-meta {
  position: relative;
  font-size: 0.78rem; font-weight: 400; color: rgba(255,255,255,0.45); letter-spacing: 0.5px;
}
.article-cover {
  max-width: 760px; margin: -48px auto 0; padding: 0 24px; position: relative; z-index: 2;
}
.article-cover img {
  width: 100%; border-radius: 10px; display: block;
  box-shadow: 0 40px 90px rgba(0,0,0,0.35);
}

/* ── PROSE ── */
.prose {
  max-width: 720px; margin: 56px auto 0; padding: 0 24px;
  font-size: 1.0625rem; line-height: 1.85; color: #2a2724; font-weight: 400;
}
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-family: var(--sans); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  color: var(--black); letter-spacing: -0.6px; line-height: 1.2;
  margin: 52px 0 18px;
}
.prose h3 {
  font-family: var(--sans); font-size: 1.28rem; font-weight: 700; color: var(--black);
  letter-spacing: -0.3px; margin: 40px 0 14px;
}
.prose p { margin: 0 0 22px; }
.prose a { color: #9a7b3e; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--black); }
.prose strong { font-weight: 700; color: var(--black); }
.prose em { font-style: italic; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 1.4em; }
.prose li { margin-bottom: 10px; padding-left: 4px; }
.prose li::marker { color: var(--gold-d); }
.prose blockquote {
  margin: 34px 0; padding: 6px 0 6px 30px;
  border-left: 3px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.5rem; line-height: 1.5; color: #46402f;
}
.prose blockquote p { margin: 0; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 30px auto; }
.prose hr { border: none; height: 1px; background: rgba(0,0,0,0.12); margin: 44px 0; }
/* opening subtitle (first H2 styled italic in source) */
.prose h2:first-child em { font-weight: 400; }

/* ── ARTICLE END ── */
.article-end {
  max-width: 720px; margin: 56px auto 0; padding: 36px 24px 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.article-end-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--black); text-decoration: none; font-size: 0.86rem; font-weight: 600;
  transition: gap 0.2s;
}
.article-end-back:hover { gap: 12px; }
.article-end-back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.article-end-sub {
  display: inline-flex; align-items: center; padding: 11px 24px;
  background: var(--black); color: var(--white); border-radius: 999px;
  text-decoration: none; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.3px;
  transition: opacity 0.2s, transform 0.15s;
}
.article-end-sub:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── MORE POSTS ── */
.article-more { max-width: 1080px; margin: 90px auto 0; padding: 0 40px 30px; }
.article-more h2 {
  font-family: var(--sans); font-size: 1.5rem; font-weight: 800; color: var(--black);
  letter-spacing: -0.5px; margin-bottom: 32px; text-align: center;
}
.article-more .blog-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; }

/* ── FOOTER ── */
.blog-footer { background: var(--black); color: var(--white); padding: 64px 40px 32px; margin-top: 90px; }
.blog-footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap;
}
.blog-footer-brand { max-width: 360px; }
.footer-brand-name { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 1px; margin-bottom: 12px; }
.blog-footer-brand p { font-family: var(--serif); font-style: italic; color: rgba(255,255,255,0.55); font-size: 0.95rem; line-height: 1.6; }
.blog-footer-links { display: flex; flex-direction: column; gap: 12px; }
.blog-footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.blog-footer-links a:hover { color: var(--white); }
.blog-footer-bottom {
  max-width: 1080px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.74rem; color: rgba(255,255,255,0.4);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .post-card-featured { grid-template-columns: 1fr; gap: 22px; }
  .post-card-featured .post-card-thumb { aspect-ratio: 16/10; }
  .header-nav { display: none; }
}
@media (max-width: 600px) {
  header { padding: 14px 20px; }
  .header-logo-text { font-size: 1.2rem; letter-spacing: 3px; }
  .header-social-left { display: none; }
  .blog-hero { padding: 150px 24px 70px; }
  .blog-grid-section { padding: 56px 24px 80px; }
  .blog-grid { grid-template-columns: 1fr; gap: 40px; }
  .article-more .blog-grid { grid-template-columns: 1fr; }
  .prose { font-size: 1.02rem; }
  .prose blockquote { font-size: 1.3rem; }
}
