/* ===== Estudio Jurídico A. Pérez — Editorial Premium ===== */
:root {
  --navy:       #16243f;
  --navy-deep:  #0f1a30;
  --navy-mid:   #1f3257;
  --gold:       #b8924f;
  --gold-soft:  #cBA86a;
  --gold-light: #d9bd84;
  --cream:      #f6f2ea;
  --cream-dark: #e3dccc;
  --paper:      #fbf9f4;
  --text:       #1c2230;
  --muted:      #6b6f78;
  --muted-light: rgba(246, 242, 234, 0.66);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.serif { font-family: 'Bodoni Moda', 'Times New Roman', serif; }

a { color: inherit; text-decoration: none; }

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 8px 24px rgba(184, 146, 79, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--gold-light); }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 242, 234, 0.45);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ===== Navbar ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(251, 249, 244, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  box-shadow: 0 4px 24px rgba(22, 36, 63, 0.08);
  border-color: var(--cream-dark);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.brand-emblem-img { height: 40px; width: auto; display: block; }
.brand-wm { display: flex; flex-direction: column; align-items: center; line-height: 1.02; }
.brand-wm-name {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}
.brand-wm-sub {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 0.5rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
  text-indent: 0.36em;
}
.footer-brand .brand-emblem-img { height: 54px; }
.footer-brand .brand-wm-name { color: var(--cream); font-size: 1.4rem; }
.footer-brand .brand-wm-sub { color: var(--gold-light); font-size: 0.62rem; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--gold); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy);
  transition: 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(184, 146, 79, 0.14), transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 45%, rgba(15, 26, 48, 0.30), transparent 75%),
    linear-gradient(165deg, rgba(22, 36, 63, 0.62) 0%, rgba(15, 26, 48, 0.72) 55%, rgba(15, 26, 48, 0.88) 100%),
    url('img/hero.jpg') center / cover no-repeat;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 620px; height: 620px;
  max-width: 120vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,146,79,0.12), transparent 70%);
  top: -180px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  animation: rise 0.9s ease both;
  text-shadow: 0 2px 28px rgba(8, 14, 28, 0.55);
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 26px;
  font-weight: 500;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--cream);
}
.hero-title em { font-style: italic; color: var(--gold-light); font-weight: 500; }
.hero-divider {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 34px auto; max-width: 320px;
}
.hero-divider::before, .hero-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(184, 146, 79, 0.5);
}
.hero-divider span { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.hero-services {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--cream);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero-services span { color: var(--gold); margin: 0 4px; }
.hero-subtitle {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 0.98rem;
  color: var(--muted-light);
  line-height: 1.7;
}
.hero-ctas {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin: 38px 0 30px;
}
.hero-pillars {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.5);
  font-weight: 400;
}
.hero-pillars span { color: var(--gold); margin: 0 6px; }

/* ===== Secciones genéricas ===== */
.section { padding: 96px 24px; max-width: 1180px; margin: 0 auto; }
.section-soft { background: var(--cream); max-width: none; }
.section-soft > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-dark {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  max-width: none;
}
.section-dark > * { max-width: 1180px; margin-left: auto; margin-right: auto; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--gold-light); }
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}
.section-title.light { color: var(--cream); }
.section-lead {
  margin-top: 18px;
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.75;
}
.section-lead.light { color: var(--muted-light); }

/* ===== Áreas ===== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--cream-dark);
  border-left: 1px solid var(--cream-dark);
}
.area-card {
  border-right: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  padding: 40px 34px;
  transition: background 0.3s ease;
}
.area-card:hover { background: rgba(184, 146, 79, 0.05); }
.area-num {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.area-name { font-size: 1.32rem; color: var(--navy); font-weight: 600; margin-bottom: 12px; }
.area-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.7; }
.area-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.area-tags li {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  background: rgba(184, 146, 79, 0.10);
  border: 1px solid rgba(184, 146, 79, 0.32);
  border-radius: 2px;
  padding: 4px 9px;
}
.area-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--navy);
  color: var(--cream);
  cursor: pointer;
}
.area-cta:hover { background: var(--navy-mid); }
.area-cta-text { font-size: 1.32rem; line-height: 1.3; font-weight: 500; }
.area-cta-arrow { font-size: 1.8rem; color: var(--gold-light); align-self: flex-end; transition: transform 0.3s ease; }
.area-cta:hover .area-cta-arrow { transform: translateX(6px); }

/* ===== Obras sociales ===== */
.obras-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}
.obra-chip {
  flex: 0 1 192px;
  height: 92px;
  background: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 16px 22px;
  box-shadow: 0 12px 30px rgba(8, 14, 28, 0.22);
  transition: transform 0.3s ease;
}
.obra-chip:hover { transform: translateY(-3px); }
.obra-chip img {
  max-height: 50px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.obra-name {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.obras-foot {
  text-align: center;
  margin-top: 40px;
  color: var(--muted-light);
  font-size: 0.95rem;
}
.obras-foot a { color: var(--gold-light); border-bottom: 1px solid rgba(184,146,79,0.4); cursor: pointer; padding-bottom: 1px; }
.obras-foot a:hover { color: var(--gold); }

/* ===== El estudio ===== */
.estudio-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.estudio-text .eyebrow { text-align: left; }
.estudio-text .section-title { text-align: left; margin-bottom: 22px; }
.estudio-text p { color: var(--muted); margin-bottom: 16px; font-size: 1rem; line-height: 1.8; }
.estudio-text strong { color: var(--navy); font-weight: 500; }
.estudio-photo { position: relative; line-height: 0; font-size: 0; }
.estudio-photo img {
  display: block;
  width: 100%; height: 100%;
  min-height: 460px; max-height: 560px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 4px;
  border: 1px solid var(--cream-dark);
  box-shadow: 0 24px 50px rgba(22, 36, 63, 0.18);
}
.estudio-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(184, 146, 79, 0.25);
  pointer-events: none;
}
.estudio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.estudio-pill {
  display: flex; align-items: center; gap: 18px;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-left: 3px solid var(--gold);
  padding: 22px 24px;
  border-radius: 2px;
}
.pill-num { font-size: 2.2rem; color: var(--gold); font-weight: 700; line-height: 1; }
.pill-icon { font-size: 1.4rem; color: var(--gold); }
.pill-label { font-size: 0.92rem; color: var(--navy); line-height: 1.5; }

/* ===== Valores ===== */
.valores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.valor {
  background: var(--paper);
  border: 1px solid var(--cream-dark);
  padding: 40px 32px;
  border-radius: 2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.valor:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22, 36, 63, 0.08); }
.valor-num { display: block; font-size: 2rem; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.valor h3 { font-size: 1.3rem; color: var(--navy); font-weight: 600; margin-bottom: 10px; }
.valor p { font-size: 0.93rem; color: var(--muted); line-height: 1.7; }

/* ===== Contacto ===== */
.contacto-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: start;
}
.contacto-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.contacto-card {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(246, 242, 234, 0.14);
  border-radius: 3px;
  padding: 22px 24px;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
a.contacto-card { cursor: pointer; }
a.contacto-card:hover { border-color: var(--gold); transform: translateY(-2px); background: rgba(255,255,255,0.06); }
.cc-ico {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
}
.cc-ico svg { width: 22px; height: 22px; }
.cc-wa { background: rgba(37, 211, 102, 0.16); color: #25D366; }
.cc-mail { background: rgba(184, 146, 79, 0.16); color: var(--gold-light); }
.cc-pin { background: rgba(184, 146, 79, 0.16); color: var(--gold-light); }
.cc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-label {
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 500;
}
.cc-value { font-size: 1.02rem; color: var(--cream); font-weight: 400; overflow-wrap: anywhere; }
.cc-hint { font-size: 0.8rem; color: rgba(246, 242, 234, 0.5); }
.cc-zonas {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 5px 0 6px;
}
.cc-zonas li {
  font-size: 0.78rem;
  color: var(--cream);
  background: rgba(184, 146, 79, 0.14);
  border: 1px solid rgba(184, 146, 79, 0.45);
  border-radius: 2px;
  padding: 3px 9px;
}

.contacto-form {
  background: var(--paper);
  border-radius: 4px;
  padding: 38px 34px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.form-title { font-size: 1.5rem; color: var(--navy); font-weight: 600; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
  font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--cream-dark);
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 146, 79, 0.14);
}
.field textarea { resize: vertical; }
.form-foot { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 14px; }

/* ===== Footer ===== */
.footer { background: var(--navy-deep); padding: 56px 24px 40px; }
.footer-inner { max-width: 1180px; margin: 0 auto; text-align: center; }
.footer-brand { justify-content: center; margin-bottom: 22px; }
.footer-brand .brand-name { color: var(--cream); }
.footer-tag {
  color: var(--muted-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 26px;
}
.footer-meta {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  font-size: 0.8rem;
  color: rgba(246, 242, 234, 0.4);
  padding-top: 22px;
  border-top: 1px solid rgba(246, 242, 234, 0.1);
}
.footer-sep { color: var(--gold); }

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  z-index: 60;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: wa-pulse 2.4s infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ===== Fade-in ===== */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .estudio-grid { grid-template-columns: 1fr; gap: 32px; }
  .estudio-cards { grid-template-columns: 1fr; margin-top: 28px; }
  .estudio-photo img { min-height: 380px; max-height: 440px; }
  .contacto-layout { grid-template-columns: 1fr; gap: 28px; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .valores-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 768px) {
  .brand-emblem-img { height: 34px; }
  .brand-wm-name { font-size: 0.98rem; }
  .brand-wm-sub { font-size: 0.46rem; }
  .footer-brand .brand-emblem-img { height: 46px; }
  .nav-links {
    position: fixed;
    top: 96px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--cream-dark);
    padding: 8px 0 16px;
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    box-shadow: 0 14px 30px rgba(22, 36, 63, 0.1);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 24px; width: 100%; text-align: center; }
  .nav-links .btn { margin: 10px 24px 0; width: calc(100% - 48px); }
  .nav-toggle { display: flex; }

  .section { padding: 64px 20px; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 116px 20px 64px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }

  .areas-grid { grid-template-columns: 1fr; }
  .area-card { padding: 32px 26px; }
  .estudio-text .section-title, .estudio-text .eyebrow { text-align: center; }
  .estudio-text p { text-align: center; }

  .contacto-form { padding: 30px 22px; }
  .wa-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .wa-float svg { width: 26px; height: 26px; }

  .obras-grid { gap: 12px; }
  .obra-chip { flex: 0 1 132px; height: 78px; padding: 12px 14px; }
  .obra-chip img { max-height: 40px; }
  .obra-name { font-size: 0.95rem; }
}
