/*
Theme Name: Abogado Penalista BA
Description: Tema formal para abogado penalista en Buenos Aires
Version: 2.3
Author: Custom
*/

:root {
  --bg:        #F7F4EF;
  --white:     #FFFFFF;
  --navy:      #1A2540;
  --navy-lt:   #2C4070;
  --gold:      #9B7A2E;
  --text:      #2D3040;
  --muted:     #6E7280;
  --border:    #DDD8CF;
  --border-dk: #B8B2A8;
  --green-wa:  #25D366;
  --serif:     'Playfair Display', Georgia, serif;
  --body:      'Lora', Georgia, serif;
  --ui:        'Inter', system-ui, sans-serif;
  --ease:      cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--navy); line-height: 1.15; }

/* ── SCROLL ANIMATION ─────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: .1s; }
.fade-in.delay-2 { transition-delay: .2s; }
.fade-in.delay-3 { transition-delay: .3s; }

/* ── NAV ──────────────────────────────────── */
.site-nav { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 200; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-logo { display: flex; align-items: center; gap: 14px; transition: opacity .2s; }
.site-logo:hover { opacity: .8; }
.logo-icon { width: 36px; height: 36px; color: var(--navy); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: var(--serif); font-size: 14px; font-weight: 700; letter-spacing: 1.5px; color: var(--navy); line-height: 1.2; }
.logo-sub  { font-family: var(--ui); font-size: 8px; letter-spacing: 3.5px; color: var(--gold); text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--ui); font-size: 13px; font-weight: 500; color: var(--muted);
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1.5px;
  background: var(--navy); transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.btn-wa-nav {
  font-family: var(--ui); background: var(--green-wa); color: #003300;
  padding: 9px 18px; border-radius: 6px; font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: opacity .2s, transform .2s;
}
.btn-wa-nav:hover { opacity: .9; color: #003300; transform: translateY(-1px); }
.hamburger {
  display: none; background: none; border: 1px solid var(--border); border-radius: 6px;
  width: 40px; height: 40px; cursor: pointer; align-items: center; justify-content: center;
  color: var(--navy); font-size: 20px; transition: border-color .2s;
}
.hamburger:hover { border-color: var(--navy); }
.mobile-nav { display: none; flex-direction: column; background: var(--white); border-top: 1px solid var(--border); }
.mobile-nav a { font-family: var(--ui); font-size: 15px; font-weight: 500; color: var(--navy); padding: 14px 24px; border-bottom: 1px solid var(--border); display: block; transition: background .15s; }
.mobile-nav a:hover { background: var(--bg); }
.mobile-nav .btn-wa-mobile { background: var(--green-wa); color: #003300; margin: 12px 20px 16px; border-radius: 6px; text-align: center; font-weight: 600; border-bottom: none; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mobile-nav.open { display: flex; }

/* ── BUTTONS ──────────────────────────────── */
.btn-wa {
  font-family: var(--ui); background: var(--green-wa); color: #003300;
  padding: 13px 28px; border-radius: 6px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(37,211,102,.2);
}
.btn-wa:hover { opacity: .93; color: #003300; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.35); }
.btn-outline {
  font-family: var(--ui); background: transparent; color: var(--navy);
  padding: 12px 22px; border-radius: 6px; border: 1.5px solid var(--navy);
  font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px;
  transition: all .2s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }

/* ── HERO ─────────────────────────────────── */
.hero { background: var(--bg); border-bottom: 1px solid var(--border); }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 80px 40px; display: grid; grid-template-columns: 1fr 280px; gap: 72px; align-items: center; }
.hero-rule { width: 48px; height: 2px; background: var(--gold); margin-bottom: 18px; }
.hero-eyebrow { font-family: var(--ui); font-size: 10px; font-weight: 600; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: 52px; line-height: 1.1; margin-bottom: 24px; font-style: italic; }
.hero h1 strong { font-style: normal; display: block; }
.hero-desc { font-size: 16px; line-height: 1.85; color: var(--muted); margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-aside { display: flex; flex-direction: column; gap: 16px; }
.hero-badge { background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 4px; padding: 20px 22px; transition: box-shadow .2s; }
.hero-badge:hover { box-shadow: 0 4px 16px rgba(26,37,64,.08); }
.badge-num { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.1; display: block; }
.badge-label { font-family: var(--ui); font-size: 11px; color: var(--muted); margin-top: 4px; display: block; }

/* Hero con imagen */
.hero--img { background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; border-bottom: none; }
.hero--img::before { content: ''; position: absolute; inset: 0; background: rgba(12,18,38,.74); pointer-events: none; }
.hero--img .hero-inner { position: relative; z-index: 1; }
.hero--img .hero-eyebrow { color: rgba(255,255,255,.55); }
.hero--img .hero-rule { background: rgba(255,255,255,.35); }
.hero--img h1 { color: #FFF; }
.hero--img .hero-desc { color: rgba(255,255,255,.7); }
.hero--img .hero-badge { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); border-left-color: rgba(255,255,255,.4); }
.hero--img .badge-num { color: #FFF; }
.hero--img .badge-label { color: rgba(255,255,255,.6); }
.hero--img .btn-outline { color: #FFF; border-color: rgba(255,255,255,.55); }
.hero--img .btn-outline:hover { background: rgba(255,255,255,.12); color: #FFF; }

/* ── SECTIONS ─────────────────────────────── */
.section { padding: 72px 40px; max-width: 1200px; margin: 0 auto; }
.section-full { padding: 72px 40px; }
.section-eyebrow { font-family: var(--ui); font-size: 10px; font-weight: 600; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: 36px; margin-bottom: 44px; }
.section-head-rule { width: 40px; height: 2px; background: var(--gold); margin-bottom: 16px; }
.gold-rule { border: none; height: 1px; background: var(--border); margin: 0; }

/* ── FILOSOFÍA ────────────────────────────── */
.filosofia-section { background: var(--white); padding: 72px 40px; border-bottom: 1px solid var(--border); }
.filosofia-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 3fr; gap: 72px; align-items: center; }
.filosofia-left .section-head-rule { margin-bottom: 16px; }
.filosofia-title { font-size: 38px; line-height: 1.15; }
.filosofia-text { font-size: 16px; line-height: 1.9; color: var(--muted); }

/* ── SERVICE CARDS ────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--navy);
  border-radius: 4px; padding: 28px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.service-card:hover { box-shadow: 0 8px 28px rgba(26,37,64,.1); transform: translateY(-4px); }
.card-icon { font-size: 22px; color: var(--gold); margin-bottom: 14px; transition: transform .2s; }
.service-card:hover .card-icon { transform: scale(1.15); }
.service-card h3 { font-size: 17px; margin-bottom: 10px; }
.service-card p { font-size: 13.5px; line-height: 1.7; color: var(--muted); margin-bottom: 20px; }
.card-cta { font-family: var(--ui); font-size: 12px; color: var(--navy-lt); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-underline-offset: 3px; transition: gap .2s; }
.card-cta:hover { gap: 8px; color: var(--navy); }

/* ── 3 PASOS ──────────────────────────────── */
.pasos-section { background: var(--navy); padding: 72px 40px; }
.pasos-inner { max-width: 1200px; margin: 0 auto; }
.pasos-section .section-eyebrow { color: rgba(255,255,255,.45); }
.pasos-section .section-title { color: #F7F4EF; margin-bottom: 12px; }
.pasos-subtitle { font-family: var(--ui); font-size: 15px; color: rgba(247,244,239,.55); margin-bottom: 48px; }
.pasos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.pasos-grid::before {
  content: ''; position: absolute; top: 30px; left: calc(100% / 6); right: calc(100% / 6);
  height: 1px; background: rgba(255,255,255,.12);
}
.paso { text-align: center; padding: 0 24px; }
.paso-num {
  width: 60px; height: 60px; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--ui); font-size: 18px; font-weight: 600; color: #F7F4EF;
  margin: 0 auto 24px; position: relative; z-index: 1;
  transition: background .25s, border-color .25s, transform .25s;
}
.paso:hover .paso-num { background: rgba(155,122,46,.25); border-color: var(--gold); transform: scale(1.08); }
.paso h3 { font-size: 18px; color: #F7F4EF; margin-bottom: 12px; }
.paso p { font-family: var(--ui); font-size: 13.5px; line-height: 1.7; color: rgba(247,244,239,.55); }

/* ── CTA BANNER ───────────────────────────── */
.cta-banner { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 40px; text-align: center; }
.cta-banner h2 { font-size: 38px; color: var(--navy); margin-bottom: 14px; }
.cta-banner p { color: var(--muted); font-size: 16px; margin-bottom: 32px; font-family: var(--ui); }

/* ── FORMULARIO DE CONTACTO ───────────────── */
.cf-section { padding: 72px 40px; max-width: 1200px; margin: 0 auto; }
.cf-section-head { margin-bottom: 44px; }
.cf-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.cf-channels-title { font-size: 24px; margin-bottom: 28px; }
.cf-channel { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.cf-ch-ico {
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; flex-shrink: 0;
  background: var(--navy); color: var(--white);
  transition: transform .2s;
}
.cf-ch-ico--email { background: var(--navy); }
.cf-channel:hover .cf-ch-ico { transform: scale(1.06); }
.cf-ch-body strong { font-family: var(--ui); font-size: 14px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.cf-badge { font-size: 10px; font-weight: 600; font-family: var(--ui); background: rgba(155,122,46,.12); color: var(--gold); padding: 2px 7px; border-radius: 20px; letter-spacing: .5px; text-transform: uppercase; }
.cf-ch-body p { font-family: var(--ui); font-size: 13px; color: var(--muted); margin: 3px 0 6px; }
.cf-ch-link { font-family: var(--ui); font-size: 13px; font-weight: 600; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.cf-ch-link:hover { color: var(--navy); }
.cf-form-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 36px; box-shadow: 0 2px 20px rgba(26,37,64,.06); }
.cf-form-title { font-size: 22px; margin-bottom: 24px; }
.cf-field { margin-bottom: 18px; }
.cf-field label { font-family: var(--ui); font-size: 13px; font-weight: 600; color: var(--navy); display: block; margin-bottom: 6px; }
.cf-field input, .cf-field select, .cf-field textarea {
  width: 100%; font-family: var(--ui); font-size: 14px; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 6px;
  padding: 11px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(155,122,46,.12);
}
.cf-field select { cursor: pointer; }
.cf-field textarea { resize: vertical; min-height: 100px; }
.cf-submit {
  width: 100%; background: var(--green-wa); color: #003300; border: none; cursor: pointer;
  font-family: var(--ui); font-size: 15px; font-weight: 600;
  padding: 14px; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(37,211,102,.2);
}
.cf-submit:hover { opacity: .93; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.35); }
.cf-submit i { font-size: 20px; }
.cf-disclaimer { font-family: var(--ui); font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.5; }

/* ── PAGE HERO ────────────────────────────── */
.page-hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 56px 40px 44px; }
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero h1 { font-size: 44px; }
.page-hero-subtitle { font-size: 16px; color: var(--muted); margin-top: 14px; max-width: 640px; line-height: 1.75; }

/* ── TRAYECTORIA ──────────────────────────── */
.tray-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.tray-intro h2 { font-size: 30px; margin-bottom: 18px; }
.tray-intro p { font-size: 15px; line-height: 1.85; color: var(--muted); margin-bottom: 16px; }
.tray-items { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.tray-item { background: var(--white); padding: 20px 24px; border-bottom: 1px solid var(--border); transition: background .2s; }
.tray-item:last-child { border-bottom: none; }
.tray-item:hover { background: var(--bg); }
.tray-item h3 { font-family: var(--ui); font-size: 14px; font-weight: 600; margin-bottom: 5px; color: var(--navy); }
.tray-item p { font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ── PUBLICACIONES ────────────────────────── */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--navy); border-radius: 4px; overflow: hidden; transition: box-shadow .25s, transform .25s; display: flex; flex-direction: column; }
.post-card:hover { box-shadow: 0 8px 28px rgba(26,37,64,.1); transform: translateY(-4px); }
.post-thumbnail { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--bg); }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-thumbnail img { transform: scale(1.03); }
.post-thumbnail-placeholder { width: 100%; aspect-ratio: 16/9; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--border-dk); font-size: 36px; }
.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-date { font-family: var(--ui); font-size: 11px; color: var(--gold); font-weight: 600; letter-spacing: 1px; margin-bottom: 10px; }
.post-card h2 { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
.post-card h2 a { color: var(--navy); transition: color .2s; }
.post-card h2 a:hover { color: var(--navy-lt); }
.post-card p { font-size: 13.5px; line-height: 1.7; color: var(--muted); margin-bottom: 18px; flex: 1; }
.read-more { font-family: var(--ui); font-size: 12px; color: var(--navy-lt); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-underline-offset: 3px; margin-top: auto; transition: gap .2s; }
.read-more:hover { gap: 8px; }

/* Paginación */
.pagination-wrap { margin-top: 48px; display: flex; gap: 4px; }
.pagination-wrap .page-numbers { font-family: var(--ui); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); transition: all .2s; }
.pagination-wrap .page-numbers:hover { border-color: var(--navy); color: var(--navy); }
.pagination-wrap .page-numbers.current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── SINGLE POST ──────────────────────────── */
.post-content { max-width: 720px; margin: 0 auto; }
.post-back { font-family: var(--ui); font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; margin-bottom: 24px; transition: color .2s; }
.post-back:hover { color: var(--navy); }
.post-content h1 { font-size: 40px; margin-bottom: 16px; }
.post-content .post-date { margin-bottom: 32px; }
.post-content .the-content { font-size: 15px; line-height: 1.9; color: var(--text); }
.post-content .the-content p { margin-bottom: 20px; }
.post-content .the-content h2 { font-size: 26px; margin: 36px 0 14px; }
.post-content .the-content h3 { font-size: 20px; margin: 24px 0 10px; font-family: var(--ui); }
.post-content .the-content ul, .post-content .the-content ol { padding-left: 24px; margin-bottom: 20px; }
.post-content .the-content li { margin-bottom: 8px; }
.mid-article-cta { background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 4px; padding: 28px 32px; margin: 36px 0; display: flex; flex-direction: column; gap: 10px; }
.mid-cta-title { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); }
.mid-cta-desc { font-family: var(--body); font-size: 14px; color: var(--muted); line-height: 1.6; }
.post-cta-block { margin-top: 56px; padding: 32px; background: var(--bg); border-radius: 4px; border: 1px solid var(--border); text-align: center; }
.post-cta-block p { color: var(--muted); margin-bottom: 18px; font-size: 15px; }

/* ── CONTACTO ─────────────────────────────── */
.contact-wrap { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-wrap h1 { font-size: 42px; margin-bottom: 14px; }
.contact-wrap > p { font-size: 16px; color: var(--muted); margin-bottom: 40px; line-height: 1.8; }
.contact-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; text-align: left; }
.contact-card { background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 4px; padding: 20px 24px; display: flex; align-items: center; gap: 16px; transition: box-shadow .2s; }
.contact-card:hover { box-shadow: 0 4px 16px rgba(26,37,64,.08); }
.contact-card-ico { font-size: 24px; color: var(--gold); flex-shrink: 0; }
.contact-card h3 { font-family: var(--ui); font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.contact-card p { font-family: var(--ui); font-size: 13px; color: var(--muted); }
.contact-divider { border: none; height: 1px; background: var(--border); margin: 48px 0; }

/* ── FOOTER ───────────────────────────────── */
.site-footer { background: var(--navy); padding: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-family: var(--serif); font-size: 13px; color: rgba(247,244,239,.5); letter-spacing: 1.5px; }
.footer-copy { font-family: var(--ui); font-size: 11px; color: rgba(247,244,239,.35); }

/* ── FLOATING WA ──────────────────────────── */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 9999; }
.wa-float a {
  background: var(--green-wa); border-radius: 50%; width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center; font-size: 30px; color: #003300;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: transform .2s, box-shadow .2s;
}
.wa-float a:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,.5); }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 24px; }
  .hero-aside { flex-direction: row; }
  .hero-badge { flex: 1; }
  .hero h1 { font-size: 38px; }
  .filosofia-inner { grid-template-columns: 1fr; gap: 24px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .pasos-grid::before { display: none; }
  .pasos-grid { gap: 32px; }
  .tray-grid { grid-template-columns: 1fr; gap: 36px; }
  .cf-wrap { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 56px 24px; }
  .section-full { padding: 56px 24px; }
  .filosofia-section, .pasos-section, .cta-banner { padding: 56px 24px; }
  .cf-section { padding: 56px 24px; }
  .page-hero { padding: 44px 24px 36px; }
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
  .site-footer { padding: 28px 24px; }
}
@media (max-width: 700px) {
  .nav-links, .btn-wa-nav { display: none; }
  .hamburger { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .pasos-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .hero-aside { flex-direction: column; }
  .hero h1 { font-size: 30px; }
  .nav-inner { height: 62px; padding: 0 20px; }
  .mid-article-cta { padding: 22px 20px; }
  .cf-form-card { padding: 24px; }
}
