/* Nicole Ormazábal · Abogada penalista */
:root {
  --navy: #1b2c44;
  --navy-deep: #13203a;
  --navy-soft: #29486b;
  --gold: #d0b174;
  --gold-dark: #9c8150;
  --paper: #f0f4f6;
  --ink: #0d141f;
  --slate: #56617f;
  --header-h: 4.5rem;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, ::before, ::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  background: var(--paper);
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

.wrap {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

p { margin: 0; }

h1, h2, h3 {
  font-family: Cinzel, Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .95rem 1.5rem;
  border-radius: 2px;
  font: 600 .95rem/1 Montserrat, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:focus-visible, .areas__list a:focus-visible, .contact__illustration {
  margin-top: 2.5rem;
  width: min(360px, 100%);
  height: auto;
}
.phone:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: #ddc38f; }
.btn--ghost { border-color: rgba(240, 244, 246, .45); color: var(--paper); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--navy { background: var(--navy); color: var(--paper); }
.btn--navy:hover { background: var(--navy-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 78% 40%, var(--navy-soft) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: var(--paper);
  min-height: min(720px, calc(100dvh - var(--header-h)));
  display: flex;
  align-items: center;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 2rem;
  padding-block: 4.5rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.1rem);
  letter-spacing: .01em;
  max-width: 12ch;
}
.hero__role {
  margin-top: .8rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--gold);
}
.hero__lead {
  margin: 1.6rem 0 2.4rem;
  max-width: 46ch;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(240, 244, 246, .82);
}
.actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__urgent {
  margin-top: 1.6rem;
  font-size: .95rem;
  color: rgba(240, 244, 246, .75);
}
.hero__urgent a { color: var(--gold); font-weight: 600; }
.hero__urgent a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* La figura con la lupa: el elemento memorable */
.hero__figure {
  position: relative;
  justify-self: center;
  height: min(540px, 64vh);
  max-width: 100%;
  aspect-ratio: 520 / 863;
}
.hero__figure img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35));
}
.lens {
  position: absolute;
  top: -4%;
  left: -30%;
  width: 160%;
  aspect-ratio: 1;
  pointer-events: none;
}
.lens circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-dasharray: 630;
  stroke-dashoffset: 630;
  animation: draw 1.8s .3s cubic-bezier(.6, 0, .2, 1) forwards;
}
.lens circle + circle {
  stroke-width: .6;
  opacity: .5;
  animation-delay: .6s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Dos disciplinas ---------- */
.duo { background: var(--paper); padding-block: 6rem; }
.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--navy);
  max-width: 22ch;
}
.section-intro {
  margin-top: 1rem;
  max-width: 60ch;
  line-height: 1.7;
  color: var(--slate);
}
.duo__split {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
}
.duo__side { padding: 2.25rem 2.5rem; }
.duo__side h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: .9rem; }
.duo__side p { line-height: 1.7; color: var(--slate); max-width: 44ch; }
.duo__side { border: 1px solid rgba(27, 44, 68, .18); }
.duo__side--dark { background: var(--navy); border-color: var(--navy); }
.duo__side--dark h3 { color: var(--gold); }
.duo__side--dark p { color: rgba(240, 244, 246, .8); }
.duo__join {
  display: grid;
  place-items: center;
  width: 3.5rem;
  font-family: Cinzel, Georgia, serif;
  font-size: 2rem;
  color: var(--gold-dark);
}

/* ---------- Áreas ---------- */
.areas { background: var(--navy); color: var(--paper); padding-block: 6rem; }
.areas .section-title { color: var(--paper); }
.areas .section-intro { color: rgba(240, 244, 246, .72); }
.areas__list {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3rem;
  border-top: 1px solid rgba(208, 177, 116, .45);
}
.areas__list li { border-bottom: 1px solid rgba(240, 244, 246, .1); }
.areas__list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .95rem .25rem;
  color: var(--paper);
  text-decoration: none;
  font-size: 1.02rem;
  padding-block: 1.1rem;
}
.areas__list a i { color: rgba(240, 244, 246, .35); transition: color .2s; }
.areas__list a:hover { color: var(--gold); }
.areas__list a:hover i { color: #25d366; }

/* ---------- Proceso (secuencia real) ---------- */
.steps { background: var(--paper); padding-block: 6rem; }
.steps ol {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 3.4rem 1.5rem 0 0;
  border-top: 1px solid var(--gold);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: -1.3rem;
  left: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  color: var(--navy);
}
.steps h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: .6rem; }
.steps p { line-height: 1.65; color: var(--slate); font-size: .95rem; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--gold);
}
.site-header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: Cinzel, Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--gold-dark);
  text-decoration: none;
}
.brand span {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: .85rem;
  font-weight: 500;
  color: var(--navy);
  margin-left: .6rem;
  padding-left: .6rem;
  border-left: 1px solid var(--gold);
}
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  padding-block: .4rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--gold); }
.site-nav a:focus-visible, .brand:focus-visible, .menu-toggle:focus-visible, .hero__urgent a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(27, 44, 68, .25);
  border-radius: 2px;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--navy);
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Contacto ---------- */
.contact {
  background: linear-gradient(180deg, var(--navy-soft), var(--navy));
  color: var(--paper);
  padding-block: 6rem;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); max-width: 16ch; }
.contact__text p {
  margin: 1.1rem 0 2rem;
  max-width: 44ch;
  line-height: 1.7;
  color: rgba(240, 244, 246, .8);
}
.phone {
  display: block;
  margin-top: 1.6rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}
.contact__illustration {
  margin-top: 2.5rem;
  width: min(360px, 100%);
  height: auto;
}
.phone:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.contact__form {
  background: var(--paper);
  color: var(--ink);
  padding: 2.25rem;
  border-top: 3px solid var(--gold);
  display: grid;
  gap: 1.1rem;
}
.form__hint { font-size: .9rem; line-height: 1.6; color: var(--slate); }
.contact__form label {
  display: grid;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
}
.contact__form input, .contact__form select, .contact__form textarea {
  font: 400 1rem/1.4 Montserrat, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(27, 44, 68, .28);
  border-radius: 2px;
  padding: .75rem .85rem;
  width: 100%;
}
.contact__form textarea { resize: vertical; }
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: var(--gold);
}
.form__error { color: #a4262c; font-size: .9rem; font-weight: 600; min-height: 0; }
.form__error:empty { display: none; }
.contact__form .btn { justify-content: center; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-deep); color: rgba(240, 244, 246, .7); padding-block: 2rem; }
.site-footer { padding-block: 3rem 2rem; }
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__logo { width: min(340px, 100%); height: auto; }
.footer__meta { display: grid; gap: .4rem; text-align: right; }
.site-footer .brand { color: var(--gold); font-size: 1.1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: grid; place-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--gold);
    padding: .5rem 1.5rem 1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding-block: .85rem; border-bottom: 1px solid rgba(27, 44, 68, .1); }
  .contact__grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact__illustration { width: min(260px, 70%); }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { text-align: left; }
  .hero__grid { grid-template-columns: 1fr; padding-block: 3.5rem 0; }
  .hero__figure { height: 380px; }
  .duo__split { grid-template-columns: 1fr; }
  .duo__join { width: auto; height: 3rem; }
  .areas__list { grid-template-columns: 1fr; }
  .steps ol { grid-template-columns: 1fr 1fr; row-gap: 3.5rem; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 2.5rem); }
  .hero__grid { padding-block: 2.5rem 0; }
  .hero__figure { height: 320px; }
  .actions .btn, .contact__text .btn { flex: 1 1 100%; justify-content: center; width: 100%; }
  .duo, .areas, .steps, .contact { padding-block: 4rem; }
  .brand span { display: none; }
  .contact__form { padding: 1.5rem; }
  .duo__side { padding: 1.75rem 1.5rem; }
  .steps ol { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lens circle { animation: none; stroke-dashoffset: 0; }
  .btn, .areas__list a i { transition: none; }
}
