/* ============================================================
   Andreatta & Asociados — Estudio Jurídico
   Design tokens + components
   ============================================================ */

:root {
  /* Palette */
  --navy:        #14213d;
  --navy-700:    #1d2f54;
  --navy-600:    #2a3f6c;
  --ink:         #15181d;
  --slate:       #4a5160;
  --muted:       #6b7280;
  --line:        #e6e8ec;
  --bg:          #ffffff;
  --bg-alt:      #f7f8fa;
  --bg-navy:     #14213d;
  --gold:        #c19a4b;
  --gold-700:    #a37f35;
  --whatsapp:    #25d366;

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(20,33,61,.06), 0 2px 8px rgba(20,33,61,.05);
  --shadow-md: 0 6px 24px rgba(20,33,61,.10);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--navy); margin: 0; }
p { margin: 0 0 1rem; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-700);
  margin: 0 0 .9rem;
}
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section__head p { color: var(--slate); font-size: 1.08rem; margin-top: .75rem; }
.lead { font-size: 1.15rem; color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .25s var(--ease); white-space: nowrap;
}
.btn--primary { background: var(--gold); color: #fff; }
.btn--primary:hover { background: var(--gold-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--gold); color: #fff; transform: translateY(-1px); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: baseline; gap: .55rem; }
.brand__name { font-family: var(--serif); font-size: 1.32rem; font-weight: 700; color: var(--navy); letter-spacing: .01em; }
.brand__amp { color: var(--gold); }
.brand__sub { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--slate); transition: color .2s; }
.nav__links a:hover { color: var(--navy); }
.nav__cta { display: flex; align-items: center; gap: .75rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background-color: var(--navy);
  background-image:
    linear-gradient(100deg, rgba(13,21,40,.96) 0%, rgba(15,24,45,.80) 42%, rgba(20,33,61,.20) 100%),
    url(../img/hero-edificio.jpg);
  background-size: cover, cover;
  background-position: center, right center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(193,154,75,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193,154,75,.05) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35; pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; padding: 110px 0 120px; max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.01em; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { color: rgba(255,255,255,.82); font-size: 1.2rem; margin: 1.4rem 0 2.2rem; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(193,154,75,.35); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 1.6rem;
}

/* ---------- Practice cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--practices { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleY(1); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(193,154,75,.12); color: var(--gold-700); margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.card__tag { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); display: block; margin-bottom: .4rem; }
.card p { color: var(--slate); font-size: .98rem; margin: 0; }

/* ---------- About / Lawyers ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about__stats { display: flex; gap: 40px; margin-top: 28px; flex-wrap: wrap; }
.stat__num { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat__label { font-size: .9rem; color: var(--muted); margin-top: 4px; }

.lawyers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.lawyer {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.lawyer:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.lawyer__photo {
  aspect-ratio: 4/3; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  display: grid; place-items: center; color: var(--gold);
}
.lawyer__photo span { font-family: var(--serif); font-size: 3.2rem; font-weight: 700; }
.lawyer__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.lawyer__body { padding: 24px 26px 28px; }
.lawyer__role { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); }
.lawyer__name { font-size: 1.45rem; margin: .35rem 0 .6rem; }
.lawyer__bio { color: var(--slate); font-size: .96rem; margin-bottom: 1.2rem; }
.lawyer__link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; color: var(--navy); }
.lawyer__link svg { width: 18px; height: 18px; }
.lawyer__link:hover { color: var(--gold-700); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.contact__info { color: var(--slate); }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact__list svg { width: 20px; height: 20px; color: var(--gold-700); flex: none; margin-top: 3px; }
.contact__list strong { color: var(--navy); display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.contact__list a, .contact__list span { color: var(--slate); }
.contact__list a:hover { color: var(--gold-700); }

.form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(193,154,75,.15);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__note { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-navy); color: rgba(255,255,255,.72); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,.72); font-size: .95rem; transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { color: rgba(255,255,255,.6); font-size: .95rem; max-width: 320px; margin-top: 14px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(37,211,102,.45);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float::after {
  content: "Escribinos por WhatsApp"; position: absolute; right: 70px; white-space: nowrap;
  background: var(--navy); color: #fff; font-size: .82rem; font-weight: 500; padding: 8px 14px;
  border-radius: 8px; opacity: 0; transform: translateX(8px); pointer-events: none; transition: all .25s var(--ease);
}
.wa-float:hover::after { opacity: 1; transform: translateX(0); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0; box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__links li { width: 100%; }
  .nav.is-open .nav__links a { display: block; padding: 14px 24px; }
  .grid--practices { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .lawyers { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 72px 0; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .form { padding: 26px 20px; }
  .wa-float::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Blog — listado y artículos
   ============================================================ */
.pagehead {
  background:
    linear-gradient(180deg, rgba(15,24,45,.92) 0%, rgba(15,24,45,.96) 100%),
    radial-gradient(120% 120% at 80% 0%, #20335c 0%, var(--navy) 55%);
  color: #fff; padding: 72px 0 64px;
}
.pagehead .eyebrow { color: var(--gold); }
.pagehead h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.1rem); }
.pagehead p { color: rgba(255,255,255,.82); font-size: 1.12rem; max-width: 620px; margin-top: .8rem; }

.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--gold-700); }
.crumbs a:hover { text-decoration: underline; }

/* Listado */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.post-card {
  display: flex; flex-direction: column; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.post-card__meta { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700); margin-bottom: .7rem; }
.post-card h3 { font-size: 1.4rem; line-height: 1.25; margin-bottom: .7rem; }
.post-card h3 a:hover { color: var(--gold-700); }
.post-card p { color: var(--slate); font-size: .98rem; margin-bottom: 1.4rem; }
.post-card__more { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--navy); display: inline-flex; align-items: center; gap: .4rem; }
.post-card:hover .post-card__more { color: var(--gold-700); gap: .65rem; }

/* Artículo */
.article { padding: 72px 0 96px; }
.article__wrap { max-width: 760px; margin: 0 auto; }
.article__meta { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 1rem; }
.article__body { color: var(--slate); font-size: 1.08rem; line-height: 1.8; }
.article__body p { margin: 0 0 1.25rem; }
.article__body strong { color: var(--navy); }
.article__body ul, .article__body ol { margin: 0 0 1.25rem; padding-left: 1.3rem; }
.article__body li { margin-bottom: .5rem; }
.article__body h2, .article__body h3 { margin: 2rem 0 1rem; }
.article__body a { color: var(--gold-700); text-decoration: underline; }
.article__cta {
  margin-top: 48px; padding: 32px; background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); text-align: center;
}
.article__cta h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.article__cta p { color: var(--slate); margin-bottom: 1.3rem; }

@media (max-width: 880px) {
  .posts { grid-template-columns: 1fr; }
}
