/* ============================================================
   PADRÓN ABOGADO — BLOG
   CSS compartido v2 (con mejoras editoriales y SEO)
   ============================================================ */

:root{
  --navy:#0F1F2E;
  --navy-deep:#0B0F19;
  --gold:#C6A45C;
  --gold-soft:#d4b878;
  --gold-deep:#a88742;
  --bone:#F8F8F5;
  --cream:#f5f3ed;
  --cream-warm:#ece6d5;
  --card-light:#fdfcf9;
  --card-dark:#101a2a;
  --display:'Playfair Display', Georgia, serif;
  --body:'Montserrat', -apple-system, sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--body);
  color:var(--navy);
  background:var(--bone);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}

/* ============== BARRA DE PROGRESO DE LECTURA ============== */
.reading-progress{
  position:fixed;
  top:0;
  left:0;
  width:0;
  height:3px;
  background:linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 100%);
  z-index:100;
  transition:width .15s ease-out;
  box-shadow:0 0 8px rgba(198,164,92,.5);
}

/* ============== NAVBAR ============== */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(248,248,245,.96);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(15,31,46,.06);
  padding:14px 5vw;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.nav__logo{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
}
.nav__logo-img{
  width:40px;
  height:40px;
  object-fit:contain;
}
.nav__logo-text{
  display:flex;
  flex-direction:column;
  line-height:1;
}
.nav__logo-text strong{
  font-family:var(--display);
  font-size:1.1rem;
  color:var(--navy);
  letter-spacing:.04em;
  font-weight:500;
}
.nav__logo-text small{
  font-family:var(--body);
  font-size:.55rem;
  letter-spacing:.36em;
  color:var(--gold);
  font-weight:600;
  margin-top:3px;
}
.nav__menu{
  display:flex;
  gap:32px;
  list-style:none;
}
.nav__menu a{
  font-family:var(--body);
  font-size:.85rem;
  color:var(--navy);
  font-weight:500;
  transition:color .2s ease;
}
.nav__menu a:hover{color:var(--gold)}
.nav__menu a.is-active{color:var(--gold)}
.nav__cta{
  background:var(--navy);
  color:var(--gold);
  padding:12px 22px;
  border-radius:6px;
  font-family:var(--body);
  font-size:.74rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:700;
  transition:all .3s ease;
}
.nav__cta:hover{
  background:#142235;
  transform:translateY(-2px);
}
@media (max-width:840px){
  .nav__menu{display:none}
}

/* ============== HERO BLOG (índice) ============== */
.blog-hero{
  background:linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color:var(--bone);
  padding:90px 5vw 100px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.blog-hero::before{
  content:'';
  position:absolute;
  top:-100px;
  right:-100px;
  width:300px;
  height:300px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(198,164,92,.08) 0%, transparent 70%);
  pointer-events:none;
}
.blog-hero__container{max-width:880px;margin:0 auto;position:relative}
.blog-hero__eyebrow{
  display:inline-block;
  font-family:var(--body);
  font-size:.78rem;
  letter-spacing:.36em;
  color:var(--gold);
  text-transform:uppercase;
  font-weight:600;
  margin-bottom:24px;
}
.blog-hero__title{
  font-family:var(--display);
  font-size:clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight:500;
  line-height:1.1;
  margin-bottom:24px;
  letter-spacing:-.015em;
}
.blog-hero__title em{
  font-style:italic;
  color:var(--gold);
  font-weight:400;
}
.blog-hero__divider{
  width:60px;
  height:2px;
  background:var(--gold);
  margin:0 auto 28px;
  opacity:.7;
}
.blog-hero__intro{
  font-family:var(--body);
  font-size:1.08rem;
  line-height:1.75;
  color:rgba(248,248,245,.75);
  font-weight:400;
  max-width:620px;
  margin:0 auto;
}

/* ============== FILTRO POR CATEGORÍAS ============== */
.blog-filter{
  background:var(--cream);
  padding:28px 5vw;
  border-bottom:1px solid rgba(198,164,92,.18);
}
.blog-filter__container{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}
.blog-filter__btn{
  background:transparent;
  border:1px solid rgba(15,31,46,.15);
  color:var(--navy);
  padding:10px 22px;
  border-radius:50px;
  font-family:var(--body);
  font-size:.78rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:600;
  cursor:pointer;
  transition:all .25s ease;
}
.blog-filter__btn:hover{
  border-color:var(--gold);
  color:var(--gold);
}
.blog-filter__btn.is-active{
  background:var(--navy);
  border-color:var(--navy);
  color:var(--gold);
}

/* ============== LISTADO DE ARTÍCULOS ============== */
.blog-list{
  background:var(--bone);
  padding:80px 5vw 100px;
}
.blog-list__container{
  max-width:1200px;
  margin:0 auto;
}

/* Grid: 1ª card = destacada (full width), resto = grid 2 cols */
.blog-list__featured{
  margin-bottom:40px;
}
.blog-list__grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:36px;
}

.post-card{
  background:var(--card-light);
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 6px 22px rgba(15,31,46,.06);
  transition:all .35s cubic-bezier(.22,.61,.36,1);
  display:flex;
  flex-direction:column;
}
.post-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 36px rgba(15,31,46,.12);
}
.post-card a{display:flex;flex-direction:column;height:100%}

/* Cover de la card: ahora más ilustrado */
.post-card__cover{
  aspect-ratio:16/9;
  background:linear-gradient(135deg, var(--navy) 0%, var(--card-dark) 100%);
  position:relative;
  overflow:hidden;
}
.post-card__cover-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
  transition:transform .5s ease;
}
.post-card:hover .post-card__cover-img{transform:scale(1.03)}
.post-card__cover--image{background:#0a1422}
.post-card__cover-pattern{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 80% 20%, rgba(198,164,92,.12) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(198,164,92,.08) 0%, transparent 40%);
}
.post-card__cover-icon{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  color:var(--gold);
  z-index:2;
  width:88px;
  height:88px;
  border-radius:50%;
  background:rgba(11,15,25,.6);
  border:1px solid rgba(198,164,92,.3);
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(4px);
}
.post-card__cover-icon svg{
  width:38px;
  height:38px;
  stroke-width:1.4;
}
.post-card__featured-badge{
  position:absolute;
  top:16px;
  left:16px;
  background:var(--gold);
  color:var(--navy);
  padding:6px 12px;
  border-radius:4px;
  font-family:var(--body);
  font-size:.65rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  font-weight:700;
  z-index:3;
}

/* Card destacada: layout horizontal en pantallas anchas */
.post-card--featured{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:0;
  background:var(--card-light);
}
.post-card--featured .post-card__cover{
  aspect-ratio:auto;
  min-height:340px;
}
.post-card--featured .post-card__cover-icon{
  width:120px;
  height:120px;
}
.post-card--featured .post-card__cover-icon svg{
  width:54px;
  height:54px;
}
.post-card--featured .post-card__body{
  padding:50px 50px;
  justify-content:center;
}
.post-card--featured .post-card__title{
  font-size:1.9rem;
  line-height:1.2;
}
.post-card--featured .post-card__excerpt{
  font-size:1rem;
  line-height:1.7;
}

@media (max-width:840px){
  .post-card--featured{grid-template-columns:1fr}
  .post-card--featured .post-card__cover{min-height:200px}
  .post-card--featured .post-card__body{padding:32px 28px}
  .post-card--featured .post-card__title{font-size:1.5rem}
}

.post-card__body{
  padding:32px 32px 28px;
  display:flex;
  flex-direction:column;
  gap:14px;
  flex:1;
}
.post-card__cat{
  font-family:var(--body);
  font-size:.7rem;
  letter-spacing:.32em;
  color:var(--gold);
  text-transform:uppercase;
  font-weight:600;
}
.post-card__title{
  font-family:var(--display);
  font-size:1.4rem;
  font-weight:500;
  line-height:1.25;
  color:var(--navy);
  letter-spacing:-.005em;
}
.post-card__excerpt{
  font-family:var(--body);
  font-size:.92rem;
  line-height:1.65;
  color:rgba(15,31,46,.65);
  flex:1;
}
.post-card__meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:14px;
  border-top:1px solid rgba(198,164,92,.18);
  font-family:var(--body);
  font-size:.78rem;
  color:rgba(15,31,46,.55);
}
.post-card__read{
  color:var(--gold);
  font-weight:600;
  letter-spacing:.05em;
  display:flex;
  align-items:center;
  gap:6px;
  transition:gap .25s ease;
}
.post-card:hover .post-card__read{gap:10px}

@media (max-width:840px){
  .blog-list__grid{grid-template-columns:1fr;gap:28px}
}

/* ============== ARTÍCULO INDIVIDUAL ============== */
.post-hero{
  background:linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color:var(--bone);
  padding:80px 5vw 100px;
  position:relative;
  overflow:hidden;
}
.post-hero::before,
.post-hero::after{
  content:'';
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
.post-hero::before{
  top:-150px;
  right:-150px;
  width:400px;
  height:400px;
  background:radial-gradient(circle, rgba(198,164,92,.06) 0%, transparent 70%);
}
.post-hero::after{
  bottom:-100px;
  left:-100px;
  width:300px;
  height:300px;
  background:radial-gradient(circle, rgba(198,164,92,.04) 0%, transparent 70%);
}
.post-hero__container{
  max-width:780px;
  margin:0 auto;
  text-align:center;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.post-hero__back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--body);
  font-size:.78rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--gold);
  font-weight:600;
  margin-bottom:36px;
  transition:gap .25s ease;
  line-height:1;
}
.post-hero__back:hover{gap:12px}

/* Icono temático grande del artículo */
.post-hero__icon{
  width:120px;
  height:120px;
  border-radius:50%;
  background:rgba(198,164,92,.08);
  border:1px solid rgba(198,164,92,.3);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--gold);
  margin-bottom:30px;
  position:relative;
}
.post-hero__icon::before{
  content:'';
  position:absolute;
  inset:-8px;
  border-radius:50%;
  border:1px solid rgba(198,164,92,.15);
}
.post-hero__icon svg{
  width:54px;
  height:54px;
  stroke-width:1.3;
}

.post-hero__cat{
  display:inline-block;
  font-family:var(--body);
  font-size:.78rem;
  letter-spacing:.34em;
  color:var(--gold);
  text-transform:uppercase;
  font-weight:600;
  margin-bottom:22px;
  line-height:1;
}
.post-hero__title{
  font-family:var(--display);
  font-size:clamp(2rem, 4.5vw, 3.2rem);
  font-weight:500;
  line-height:1.15;
  margin-bottom:26px;
  letter-spacing:-.015em;
}
.post-hero__meta{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  font-family:var(--body);
  font-size:.85rem;
  color:rgba(248,248,245,.7);
  font-weight:400;
  flex-wrap:wrap;
}
.post-hero__meta span{display:flex;align-items:center;gap:6px}
.post-hero__meta-dot{
  width:3px;
  height:3px;
  border-radius:50%;
  background:var(--gold);
  opacity:.5;
}

/* Cuerpo del artículo */
.post-body{
  background:var(--bone);
  padding:80px 5vw 100px;
}
.post-body__container{
  max-width:740px;
  margin:0 auto;
}

/* Letra capitular: la primera letra del primer párrafo, grande y dorada */
.post-body p{
  font-family:var(--body);
  font-size:1.08rem;
  line-height:1.85;
  color:var(--navy);
  margin-bottom:22px;
}
.post-body__container > p:first-of-type{
  font-size:1.18rem;
  line-height:1.75;
  color:rgba(15,31,46,.85);
  font-weight:400;
}
.post-body h2{
  font-family:var(--display);
  font-size:clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight:500;
  line-height:1.25;
  color:var(--navy);
  margin:48px 0 18px;
  letter-spacing:-.005em;
  position:relative;
  padding-left:18px;
}
.post-body h2::before{
  content:'';
  position:absolute;
  left:0;
  top:.45em;
  width:4px;
  height:.85em;
  background:var(--gold);
  border-radius:2px;
}
.post-body h3{
  font-family:var(--display);
  font-size:1.3rem;
  font-weight:500;
  color:var(--navy);
  margin:34px 0 14px;
}
.post-body strong{color:var(--navy);font-weight:600}
.post-body em{font-style:italic;color:rgba(15,31,46,.85)}
.post-body ul, .post-body ol{
  margin:0 0 22px 24px;
  padding:0;
}
.post-body li{
  font-family:var(--body);
  font-size:1.05rem;
  line-height:1.8;
  color:var(--navy);
  margin-bottom:10px;
  padding-left:6px;
}
.post-body ul li::marker{color:var(--gold)}
.post-body ol li::marker{color:var(--gold);font-weight:700}

.post-body blockquote{
  margin:36px 0;
  padding:28px 36px;
  background:var(--cream);
  border-left:4px solid var(--gold);
  border-radius:0 8px 8px 0;
  font-family:var(--display);
  font-style:italic;
  font-size:1.2rem;
  line-height:1.6;
  color:var(--navy);
  position:relative;
}
.post-body blockquote::before{
  content:'"';
  position:absolute;
  top:-12px;
  right:24px;
  font-family:var(--display);
  font-size:5rem;
  color:var(--gold);
  opacity:.2;
  line-height:1;
  font-style:normal;
}
.post-body blockquote p{margin:0;font-size:1.2rem}
.post-body blockquote p::first-letter{
  font-size:inherit !important;
  color:inherit !important;
  float:none !important;
  margin:0 !important;
}

.post-body a{
  color:var(--navy);
  border-bottom:1px solid var(--gold);
  font-weight:600;
  transition:all .25s ease;
}
.post-body a:hover{
  color:var(--gold);
  background:rgba(198,164,92,.08);
}

/* ============== BOTONES DE COMPARTIR ============== */
.post-share{
  margin:50px 0;
  padding:24px 0;
  border-top:1px solid rgba(198,164,92,.2);
  border-bottom:1px solid rgba(198,164,92,.2);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}
.post-share__label{
  font-family:var(--body);
  font-size:.78rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(15,31,46,.6);
  font-weight:600;
}
.post-share__buttons{
  display:flex;
  gap:10px;
}
.post-share__btn{
  width:42px;
  height:42px;
  border-radius:50%;
  background:transparent;
  border:1px solid rgba(15,31,46,.15);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--navy);
  transition:all .3s ease;
  cursor:pointer;
}
.post-share__btn:hover{
  background:var(--navy);
  color:var(--gold);
  border-color:var(--navy);
  transform:translateY(-2px);
}
.post-share__btn svg{
  width:18px;
  height:18px;
}

/* CTA dentro del artículo */
.post-cta{
  margin:48px 0;
  padding:28px 32px;
  background:var(--navy);
  color:var(--bone);
  border-radius:10px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:24px;
  box-shadow:0 14px 32px rgba(15,31,46,.18);
}
.post-cta__icon{
  width:54px;
  height:54px;
  border-radius:50%;
  border:1px solid rgba(198,164,92,.4);
  background:rgba(198,164,92,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--gold);
  flex-shrink:0;
  align-self:center;
}
.post-cta__icon svg{width:22px;height:22px;stroke-width:1.5}
.post-cta__text{
  display:flex;
  flex-direction:column;
  gap:6px;
  text-align:left;
  min-width:0;
}
.post-cta__title{
  font-family:var(--display);
  font-size:1.15rem;
  font-weight:500;
  margin:0 0 4px 0;
  line-height:1.3;
  color:var(--bone);
  display:block;
}
.post-cta__sub{
  font-family:var(--body);
  font-size:.88rem;
  color:rgba(248,248,245,.7) !important;
  margin:0 !important;
  line-height:1.55;
  display:block !important;
}
.post-cta__btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:13px 24px;
  background:var(--gold);
  color:var(--navy);
  border-radius:6px;
  font-family:var(--body);
  font-size:.72rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:700;
  transition:all .3s ease;
  white-space:nowrap;
  flex-shrink:0;
}
.post-cta__btn:hover{
  background:var(--gold-soft);
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(198,164,92,.3);
}
.post-cta__btn svg{width:14px;height:14px;transition:transform .3s ease}
.post-cta__btn:hover svg{transform:translateX(4px)}

@media (max-width:740px){
  .post-cta{
    grid-template-columns:1fr;
    text-align:center;
    gap:18px;
    padding:32px 24px;
  }
  .post-cta__icon{margin:0 auto}
  .post-cta__btn{justify-self:center}
  .post-cta__text{text-align:center}
}

/* ============== BIOGRAFÍA DEL AUTOR ============== */
.post-author{
  margin:48px 0 40px;
  padding:28px 32px;
  background:var(--cream);
  border-radius:10px;
  display:flex;
  align-items:center;
  gap:24px;
  border:1px solid rgba(198,164,92,.18);
}
.post-author__avatar{
  width:72px;
  height:72px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--gold);
  font-family:var(--display);
  font-size:1.4rem;
  letter-spacing:.05em;
  font-weight:500;
  border:2px solid var(--gold);
  box-shadow:0 6px 16px rgba(15,31,46,.15);
}
.post-author__info{flex:1}
.post-author__label{
  font-family:var(--body);
  font-size:.65rem;
  letter-spacing:.24em;
  color:var(--gold);
  text-transform:uppercase;
  font-weight:700;
  margin-bottom:6px;
}
.post-author__name{
  font-family:var(--display);
  font-size:1.2rem;
  font-weight:500;
  color:var(--navy);
  margin-bottom:6px;
  line-height:1.2;
}
.post-author__bio{
  font-family:var(--body);
  font-size:.88rem;
  line-height:1.6;
  color:rgba(15,31,46,.7);
  margin:0;
}

@media (max-width:600px){
  .post-author{
    flex-direction:column;
    text-align:center;
    padding:30px 24px;
  }
}

/* Posts relacionados */
.related{
  background:var(--cream);
  padding:60px 5vw 70px;
  border-top:1px solid rgba(198,164,92,.18);
}
.related__container{
  max-width:1080px;
  margin:0 auto;
}
.related__title{
  font-family:var(--display);
  font-size:1.6rem;
  font-weight:500;
  color:var(--navy);
  text-align:center;
  margin-bottom:36px;
}
.related__grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
@media (max-width:840px){
  .related__grid{grid-template-columns:1fr;gap:20px}
}

/* ============== FOOTER ============== */
.footer{
  background:var(--navy-deep);
  color:rgba(248,248,245,.7);
  padding:50px 5vw;
  border-top:1px solid rgba(198,164,92,.18);
  text-align:center;
}
.footer__container{
  max-width:1080px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
}
.footer__logo{
  width:160px;
  height:auto;
  border-radius:8px;
}
.footer__nav{
  display:flex;
  gap:30px;
  flex-wrap:wrap;
  justify-content:center;
  list-style:none;
}
.footer__nav a{
  font-family:var(--body);
  font-size:.85rem;
  color:rgba(248,248,245,.7);
  transition:color .2s ease;
}
.footer__nav a:hover{color:var(--gold)}
.footer__copy{
  font-family:var(--body);
  font-size:.78rem;
  color:rgba(248,248,245,.45);
  margin-top:10px;
}
