/*
Theme Name: Lema Legal
Theme URI: https://lemalegal.com
Author: Zolvi AI Group
Description: Tema oficial del blog de Lema Legal — Dra. Claudia María León Manosalva
Version: 1.0
*/

/* ── VARIABLES ── */
:root {
  --navy:   #0C2357;
  --navy2:  #0F2D6B;
  --navy3:  #091A44;
  --gold:   #C49A3C;
  --gold2:  #D4B060;
  --cream:  #F8F4EE;
  --cream2: #EDE8DF;
  --carbon: #3D4A5C;
  --tinta:  #1A1F2E;
  --white:  #FFFFFF;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --max-w: 1200px;
  --nav-h: 72px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--carbon); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ── UTILITIES ── */
.eyebrow { font-family: var(--font-sans); font-size: 11px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); }
.gold-rule { width: 40px; height: 1px; background: var(--gold); margin: 16px 0 24px; }

/* ══════════════════════════
   NAV
══════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(9, 26, 68, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 154, 60, 0.12);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo-img { height: 44px; width: auto; display: block; filter: brightness(0) invert(1); }
.nav-vl { width: 1px; height: 28px; background: rgba(196,154,60,0.3); }
.nav-brand { display: flex; flex-direction: column; gap: 2px; }
.nav-name { font-family: var(--font-serif); font-size: 15px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.88); line-height: 1; }
.nav-sub { font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { padding: 10px 22px; border: 1px solid var(--gold); color: var(--gold) !important; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; transition: all 0.25s; }
.nav-cta:hover { background: var(--gold); color: var(--navy3) !important; }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: default; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--navy3); border: 1px solid rgba(196,154,60,0.18);
  padding: 6px; min-width: 230px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s, transform 0.22s; z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-dropdown-item { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.45); padding: 10px 16px; transition: color 0.2s, background 0.2s; border-left: 2px solid transparent; }
.nav-dropdown-item:hover { color: var(--gold); background: rgba(196,154,60,0.06); border-left-color: var(--gold); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: rgba(255,255,255,0.8); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99; background: var(--navy3); border-top: 1px solid rgba(196,154,60,0.1); padding: 32px 24px; flex-direction: column; gap: 24px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.7); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-menu .nav-cta { align-self: flex-start; margin-top: 8px; }
.mobile-svc-label { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: rgba(196,154,60,0.55); padding: 10px 0 4px; display: block; }
.mobile-svc-item { font-size: 11px; letter-spacing: 1.5px; color: rgba(255,255,255,0.4); padding: 7px 0 7px 14px; border-bottom: 1px solid rgba(255,255,255,0.04) !important; display: block; }

/* ══════════════════════════
   BLOG HERO
══════════════════════════ */
.blog-hero {
  background: var(--navy3); padding: 120px 0 80px;
  position: relative; overflow: hidden;
}
.blog-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(196,154,60,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.blog-hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.blog-hero-eyebrow { margin-bottom: 20px; }
.blog-hero-h { font-family: var(--font-serif); font-size: clamp(40px, 5vw, 68px); font-weight: 300; font-style: italic; color: rgba(255,255,255,0.90); line-height: 1.2; margin-bottom: 16px; }
.blog-hero-h strong { font-weight: 600; color: var(--white); font-style: normal; }
.blog-hero-sub { font-family: var(--font-serif); font-size: 18px; font-style: italic; color: rgba(255,255,255,0.45); max-width: 520px; line-height: 1.7; }

/* ══════════════════════════
   FEATURED POST
══════════════════════════ */
.featured { padding: 80px 0 0; background: var(--white); }
.featured-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-label { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: rgba(15,45,107,0.35); margin-bottom: 28px; }

.feat-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  text-decoration: none; color: inherit;
  border-top: 2px solid var(--navy); transition: border-color 0.25s;
}
.feat-card:hover { border-top-color: var(--gold); }
.feat-img { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.feat-card:hover .feat-img img { transform: scale(1.03); }
.feat-img-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(9,26,68,0.2) 0%, transparent 60%); }
.feat-content { background: var(--cream); padding: 48px 52px; display: flex; flex-direction: column; justify-content: center; }
.feat-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.feat-cat { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.feat-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(15,45,107,0.3); }
.feat-time { font-size: 11px; color: rgba(15,45,107,0.4); letter-spacing: 0.5px; }
.feat-title { font-family: var(--font-serif); font-size: clamp(26px, 3vw, 38px); font-weight: 500; color: var(--navy); line-height: 1.25; margin-bottom: 16px; }
.feat-excerpt { font-family: var(--font-serif); font-size: 16px; font-style: italic; color: var(--carbon); line-height: 1.7; margin-bottom: 28px; }
.feat-link { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--navy); font-weight: 500; border-bottom: 1px solid rgba(15,45,107,0.25); padding-bottom: 3px; display: inline-block; transition: color 0.2s, border-color 0.2s; }
.feat-card:hover .feat-link { color: var(--gold); border-color: var(--gold); }
.feat-link::after { content: ' →'; }

/* ══════════════════════════
   POST GRID
══════════════════════════ */
.grid-section { padding: 60px 0 100px; background: var(--white); }
.grid-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.art-card { border-top: 2px solid var(--navy); background: var(--cream); transition: border-color 0.25s, transform 0.25s; }
.art-card:hover { border-top-color: var(--gold); transform: translateY(-4px); }
.art-img { overflow: hidden; aspect-ratio: 16/9; }
.art-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.art-card:hover .art-img img { transform: scale(1.04); }
.art-img-placeholder { aspect-ratio: 16/9; background: var(--navy2); display: flex; align-items: center; justify-content: center; }
.art-img-placeholder-text { font-family: var(--font-serif); font-size: 64px; font-weight: 600; font-style: italic; color: rgba(196,154,60,0.15); }
.art-body { padding: 24px 24px 28px; }
.art-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.art-cat { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.art-date { font-size: 11px; color: rgba(15,45,107,0.35); }
.art-title { font-family: var(--font-serif); font-size: 22px; font-weight: 500; color: var(--navy); line-height: 1.3; margin-bottom: 10px; }
.art-excerpt { font-size: 13px; color: var(--carbon); line-height: 1.65; margin-bottom: 20px; }
.art-read { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--navy); font-weight: 500; border-bottom: 1px solid rgba(15,45,107,0.2); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; display: inline-block; }
.art-card:hover .art-read { color: var(--gold); border-color: var(--gold); }
.art-read::after { content: ' →'; }

/* Pagination */
.pagination { margin-top: 60px; display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(15,45,107,0.15); font-size: 13px; color: var(--carbon); transition: all 0.2s; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ══════════════════════════
   SINGLE POST
══════════════════════════ */
.post-hero { background: var(--navy3); padding: 120px 0 72px; position: relative; overflow: hidden; }
.post-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 60%, rgba(196,154,60,0.07) 0%, transparent 60%); }
.post-hero-inner { max-width: 860px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.post-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.post-cat { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.post-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(196,154,60,0.4); }
.post-date { font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 0.5px; }
.post-read-time { font-size: 11px; color: rgba(255,255,255,0.35); }
.post-hero-title { font-family: var(--font-serif); font-size: clamp(32px, 4.5vw, 58px); font-weight: 400; color: rgba(255,255,255,0.92); line-height: 1.2; margin-bottom: 20px; }
.post-hero-excerpt { font-family: var(--font-serif); font-size: 19px; font-style: italic; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 680px; }

.post-featured-img { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.post-featured-img img { width: 100%; height: 420px; object-fit: cover; margin-top: -1px; }

.post-body-wrap { max-width: 860px; margin: 0 auto; padding: 64px 24px 80px; }
.post-content { font-family: var(--font-serif); font-size: 19px; color: var(--carbon); line-height: 1.8; }
.post-content h2 { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 36px); font-weight: 500; color: var(--navy); line-height: 1.25; margin: 48px 0 20px; }
.post-content h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 500; color: var(--navy); margin: 36px 0 16px; }
.post-content p { margin-bottom: 24px; }
.post-content ul, .post-content ol { margin: 0 0 24px 28px; }
.post-content li { margin-bottom: 8px; line-height: 1.7; }
.post-content strong { font-weight: 600; color: var(--navy); }
.post-content em { font-style: italic; }
.post-content a { color: var(--navy); border-bottom: 1px solid rgba(15,45,107,0.3); transition: color 0.2s, border-color 0.2s; }
.post-content a:hover { color: var(--gold); border-color: var(--gold); }
.post-content blockquote {
  border-left: 3px solid var(--gold); padding: 20px 28px; margin: 36px 0;
  background: var(--cream); font-style: italic; font-size: 20px; color: var(--navy);
}
.post-content img { margin: 36px 0; border-top: 2px solid var(--gold); }

/* Compartir artículo */
.post-share {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid rgba(15,45,107,0.08);
}
.post-share-label {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(15,45,107,0.4); font-family: var(--font-sans); font-weight: 500;
  flex-shrink: 0;
}
.post-share-links { display: flex; align-items: center; gap: 10px; }
.post-share-btn {
  position: relative;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(15,45,107,0.15);
  color: var(--navy); transition: all 0.2s;
}
.post-share-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(196,154,60,0.06); }
.post-share-btn svg { width: 17px; height: 17px; fill: currentColor; }
.post-share-copy svg { fill: none; }
.post-share-toast {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.5px; white-space: nowrap;
  background: var(--navy3); color: var(--white); padding: 6px 12px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.post-share-copy.copied .post-share-toast { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Author box */
.author-box { border-top: 1px solid rgba(15,45,107,0.1); padding-top: 48px; margin-top: 48px; display: flex; gap: 28px; align-items: flex-start; }
.author-img { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--gold); }
.author-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.author-name { font-family: var(--font-serif); font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.author-title { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.author-bio { font-family: var(--font-serif); font-size: 16px; font-style: italic; color: var(--carbon); line-height: 1.7; }

/* Post CTA */
.post-cta { background: var(--navy2); padding: 80px 0; position: relative; overflow: hidden; }
.post-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(196,154,60,0.09) 0%, transparent 55%); }
.post-cta-inner { max-width: 700px; margin: 0 auto; padding: 0 24px; text-align: center; position: relative; z-index: 1; }
.post-cta-eyebrow { margin-bottom: 16px; display: block; }
.post-cta-rule { width: 40px; height: 1px; background: rgba(196,154,60,0.4); margin: 0 auto 24px; }
.post-cta-h { font-family: var(--font-serif); font-size: clamp(30px, 4vw, 48px); font-weight: 300; font-style: italic; color: rgba(255,255,255,0.88); line-height: 1.25; margin-bottom: 12px; }
.post-cta-h strong { font-weight: 600; font-style: normal; color: var(--white); }
.post-cta-sub { font-family: var(--font-serif); font-size: 17px; font-style: italic; color: rgba(255,255,255,0.4); margin-bottom: 36px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; background: var(--gold); color: var(--navy3);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; transition: all 0.25s;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-primary svg { width: 18px; height: 18px; fill: currentColor; }

/* ══════════════════════════
   FOOTER
══════════════════════════ */
.footer { background: var(--navy3); padding: 60px 0 32px; }
.footer-top {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px 48px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-logo-img { height: 54px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer-vl { width: 1px; height: 34px; background: rgba(196,154,60,0.25); }
.footer-brand-name { font-family: var(--font-serif); font-size: 18px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.75); display: block; }
.footer-brand-sub { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.25); }
.footer-tagline { font-family: var(--font-serif); font-size: 14px; font-style: italic; color: rgba(255,255,255,0.3); line-height: 1.6; max-width: 240px; }
.footer-col-title { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-contact-item { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.footer-contact-label { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.22); }
.footer-contact-val { font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 11px; transition: all 0.2s; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding: 24px 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.2); }

/* ══════════════════════════
   WHATSAPP FLOAT
══════════════════════════ */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35); transition: transform 0.25s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* ══════════════════════════
   RESPONSIVE
══════════════════════════ */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .feat-card { grid-template-columns: 1fr; }
  .feat-content { padding: 36px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .author-box { flex-direction: column; }
  .post-featured-img img { height: 240px; }
}
@media (max-width: 480px) {
  .btn-primary { width: 100%; justify-content: center; }
}
