/* =========================================================
   SERVICIOS JURÍDICOS — Diseño estático para Cloudflare
   ========================================================= */

:root {
  --ink: #071629;
  --ink-2: #0b2039;
  --ink-3: #153454;
  --paper: #f6f3ec;
  --paper-2: #fffdf8;
  --white: #ffffff;
  --gold: #c7a35a;
  --gold-light: #ead7aa;
  --line: rgba(7, 22, 41, 0.14);
  --muted: #697584;
  --green: #138a62;
  --shadow: 0 22px 70px rgba(4, 16, 29, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --container: 1180px;
  --header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 20%, rgba(199, 163, 90, 0.08), transparent 26rem),
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img,
svg {
  max-width: 100%;
}

::selection {
  background: var(--ink);
  color: var(--white);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.section {
  padding: 120px 0;
  position: relative;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

.orb-one {
  width: 360px;
  height: 360px;
  background: rgba(199, 163, 90, 0.10);
  right: -160px;
  top: 20vh;
}

.orb-two {
  width: 300px;
  height: 300px;
  background: rgba(21, 52, 84, 0.08);
  left: -150px;
  top: 58vh;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-header.scrolled {
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: rgba(7, 22, 41, 0.08);
  box-shadow: 0 8px 30px rgba(7, 22, 41, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(199, 163, 90, 0.72);
  border-radius: 50%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  padding: 10px;
  background: rgba(255,255,255,.5);
}

.brand-mark span {
  height: 17px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
}

.brand-mark span:nth-child(2) {
  height: 22px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  letter-spacing: .12em;
  font-size: .8rem;
}

.brand-text small {
  color: var(--muted);
  font-size: .73rem;
  margin-top: 4px;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.main-nav a {
  font-size: .86rem;
  color: #344355;
  position: relative;
  transition: color .2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.55);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 4px auto;
  transition: transform .2s ease, opacity .2s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(7, 22, 41, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 18px 42px rgba(7, 22, 41, 0.25);
}

.btn-secondary {
  border: 1px solid rgba(7, 22, 41, .15);
  background: rgba(255,255,255,.48);
}

.btn-secondary:hover {
  border-color: rgba(7,22,41,.30);
}

.btn-whatsapp {
  background: var(--ink);
  color: white;
}

.wa-icon {
  color: var(--gold-light);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 70px);
  padding-bottom: 90px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7,22,41,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,22,41,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 75%, transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(54px, 7vw, 100px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #526173;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  margin-bottom: 24px;
}

.eyebrow-line {
  width: 42px;
  height: 1px;
  background: var(--gold);
}

.hero h1,
.section-heading h2,
.education-copy h2,
.contact h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.03;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.25rem, 6.2vw, 6.8rem);
}

.hero h1 span {
  display: block;
  font-style: italic;
  color: var(--gold);
}

.hero-intro {
  max-width: 670px;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  color: #4f5d6d;
  margin: 30px 0 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 34px;
}

.hero-tags span {
  border: 1px solid rgba(7,22,41,.12);
  background: rgba(255,255,255,.4);
  padding: 9px 13px;
  border-radius: 999px;
  font-size: .78rem;
  color: #536172;
}

/* Visual */
.hero-visual {
  position: relative;
}

.visual-frame {
  position: relative;
  min-height: 570px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 35%, rgba(199,163,90,.18), transparent 30%),
    linear-gradient(145deg, #0c2036, #061322 70%);
  box-shadow: 0 42px 90px rgba(7,22,41,.22);
  overflow: hidden;
  padding: 36px;
}

.visual-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(234,215,170,.18);
  border-radius: 26px;
}

.visual-frame::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(234,215,170,.10);
  border-radius: 50%;
  top: -180px;
  right: -130px;
}

.visual-topline {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: rgba(255,255,255,.55);
}

.visual-topline span {
  height: 1px;
  background: rgba(255,255,255,.16);
}

.visual-topline small {
  letter-spacing: .2em;
  font-size: .62rem;
}

.justice-symbol {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 250px;
  height: 250px;
  transform: translate(-50%, -50%);
}

.pillar {
  position: absolute;
  bottom: 62px;
  width: 40px;
  background: linear-gradient(90deg, #ad8b48, #ead7aa 42%, #8e7039);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.pillar::before,
.pillar::after {
  content: "";
  position: absolute;
  left: -7px;
  width: 54px;
  height: 11px;
  background: linear-gradient(90deg, #9f7f43, #d9bd82, #8b6b35);
  border-radius: 2px;
}

.pillar::before { top: -10px; }
.pillar::after { bottom: -10px; }

.pillar-left { left: 28px; height: 112px; }
.pillar-center { left: 105px; height: 145px; }
.pillar-right { right: 28px; height: 112px; }

.beam {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 197px;
  height: 14px;
  background: linear-gradient(90deg, #9e7c3e, #ead7aa, #8a692f);
  clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
}

.base {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #96763e, #e4cb96, #88682f);
  border-radius: 2px;
}

.base-one {
  bottom: 40px;
  width: 225px;
  height: 15px;
}

.base-two {
  bottom: 22px;
  width: 270px;
  height: 12px;
}

.visual-panel {
  position: absolute;
  z-index: 3;
  left: 36px;
  right: 36px;
  bottom: 34px;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(6,19,34,.70);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  color: white;
}

.visual-panel .panel-label {
  color: var(--gold-light);
  font-size: .62rem;
  letter-spacing: .18em;
}

.visual-panel strong {
  display: block;
  margin-top: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 400;
}

.panel-rule {
  height: 1px;
  background: rgba(255,255,255,.13);
  margin: 14px 0;
}

.visual-panel p {
  color: rgba(255,255,255,.62);
  font-size: .76rem;
}

.corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: rgba(234,215,170,.6);
}

.corner-tl { top: 24px; left: 24px; border-top: 1px solid; border-left: 1px solid; }
.corner-tr { top: 24px; right: 24px; border-top: 1px solid; border-right: 1px solid; }
.corner-bl { bottom: 24px; left: 24px; border-bottom: 1px solid; border-left: 1px solid; }
.corner-br { bottom: 24px; right: 24px; border-bottom: 1px solid; border-right: 1px solid; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #7e8995;
}

.hero-scroll span {
  width: 1px;
  height: 30px;
  background: linear-gradient(var(--gold), transparent);
}

.hero-scroll small {
  font-size: .55rem;
  letter-spacing: .2em;
}

/* Strip */
.profile-strip {
  background: var(--ink);
  color: white;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 35px 28px;
  border-right: 1px solid rgba(255,255,255,.10);
}

.strip-item:last-child {
  border-right: 0;
}

.strip-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  color: var(--gold);
}

.strip-item small {
  display: block;
  color: rgba(255,255,255,.46);
  letter-spacing: .18em;
  font-size: .62rem;
}

.strip-item strong {
  display: block;
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 400;
}

/* Common headings */
.section-heading {
  max-width: 610px;
}

.section-heading.centered {
  text-align: center;
  margin: 0 auto 58px;
}

.section-kicker {
  display: inline-block;
  color: #7f6b42;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .2em;
  margin-bottom: 16px;
}

.section-heading h2,
.education-copy h2,
.contact h2 {
  font-size: clamp(2.5rem, 4.8vw, 4.7rem);
}

.section-heading p {
  color: var(--muted);
  margin-top: 18px;
}

/* Profile */
.profile-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(55px, 8vw, 120px);
  align-items: start;
}

.profile-content {
  padding-top: 9px;
}

.profile-content .lead {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.35;
  color: #172b42;
}

.profile-content > p:not(.lead) {
  color: var(--muted);
  margin-top: 22px;
  max-width: 670px;
}

.profile-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.profile-points > div {
  padding: 24px 18px 10px 0;
  min-height: 120px;
}

.profile-points span {
  color: var(--gold);
  font-size: .7rem;
}

.profile-points p {
  color: #556274;
  font-size: .85rem;
  margin-top: 10px;
}

.profile-points strong {
  color: var(--ink);
}

/* Specialties */
.specialties {
  background: #f0ece3;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.specialty-card {
  grid-column: span 4;
  min-height: 330px;
  padding: 28px;
  position: relative;
  border: 1px solid rgba(7,22,41,.09);
  background: rgba(255,255,255,.62);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.specialty-card:nth-child(4),
.specialty-card:nth-child(5) {
  grid-column: span 6;
}

.specialty-card:hover {
  transform: translateY(-7px);
  border-color: rgba(199,163,90,.46);
  box-shadow: var(--shadow);
}

.specialty-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(199,163,90,.18);
  border-radius: 50%;
  right: -70px;
  top: -70px;
}

.specialty-card-featured {
  background:
    radial-gradient(circle at 100% 0%, rgba(199,163,90,.14), transparent 35%),
    var(--ink);
  color: white;
}

.card-index {
  color: #8994a0;
  font-size: .66rem;
  letter-spacing: .16em;
}

.specialty-card-featured .card-index {
  color: rgba(255,255,255,.42);
}

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 54px 0 24px;
  border: 1px solid rgba(199,163,90,.38);
  color: var(--gold);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1.3rem;
}

.specialty-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 400;
}

.specialty-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: .9rem;
}

.specialty-card-featured p {
  color: rgba(255,255,255,.60);
}

.specialty-card a {
  position: absolute;
  left: 28px;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 800;
  color: #294056;
}

.specialty-card-featured a {
  color: var(--gold-light);
}

/* Education */
.education {
  overflow: hidden;
}

.education-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: clamp(60px, 8vw, 120px);
}

.education-visual {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.rings {
  width: min(430px, 86vw);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
}

.ring {
  position: absolute;
  border: 1px solid rgba(7,22,41,.12);
  border-radius: 50%;
}

.ring-one {
  inset: 0;
  animation: rotate 22s linear infinite;
}

.ring-one::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  top: 18%;
  right: 13%;
}

.ring-two {
  inset: 14%;
  border-style: dashed;
  border-color: rgba(199,163,90,.42);
  animation: rotateReverse 18s linear infinite;
}

.ring-three {
  inset: 28%;
  border-color: rgba(7,22,41,.20);
}

.ring-center {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--ink);
  color: white;
  box-shadow: 0 22px 70px rgba(7,22,41,.22);
}

.ring-center small {
  letter-spacing: .18em;
  color: var(--gold-light);
  font-size: .55rem;
}

.ring-center strong {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 1.35rem;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes rotateReverse {
  to { transform: rotate(-360deg); }
}

.education-copy > p {
  color: var(--muted);
  margin-top: 24px;
  max-width: 650px;
}

.education-list {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.education-list > div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.education-list span {
  color: var(--gold);
  font-family: Georgia, serif;
}

.education-list strong {
  font-weight: 600;
}

/* Marquee */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: white;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee span {
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  letter-spacing: .02em;
}

.marquee i {
  color: var(--gold);
  font-style: normal;
  font-size: .75rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Contact */
.contact {
  padding-top: 110px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 76px);
  background:
    radial-gradient(circle at 90% 10%, rgba(199,163,90,.20), transparent 30%),
    linear-gradient(145deg, #0b2039, #061322);
  color: white;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
  box-shadow: 0 35px 90px rgba(7,22,41,.20);
}

.contact-copy {
  position: relative;
  z-index: 2;
}

.contact .section-kicker {
  color: var(--gold-light);
}

.contact h2 {
  max-width: 650px;
}

.contact-copy p {
  color: rgba(255,255,255,.62);
  margin-top: 20px;
  max-width: 580px;
}

.contact-action {
  position: relative;
  z-index: 2;
  border-left: 1px solid rgba(255,255,255,.12);
  padding-left: clamp(26px, 5vw, 58px);
}

.contact-action small {
  display: block;
  color: var(--gold-light);
  letter-spacing: .2em;
  font-size: .62rem;
}

.phone-link {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  margin: 10px 0 24px;
}

.contact-decoration {
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  right: -120px;
  bottom: -160px;
}

.contact-decoration::before,
.contact-decoration::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
}

.contact-decoration::before { inset: 38px; }
.contact-decoration::after { inset: 76px; }

/* Footer */
.site-footer {
  padding: 42px 0 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 30px;
  align-items: center;
  font-size: .84rem;
}

.site-footer strong {
  letter-spacing: .12em;
  font-size: .78rem;
}

.site-footer p {
  color: var(--muted);
  margin-top: 3px;
}

.footer-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  justify-content: center;
}

.site-footer > .container > a {
  font-weight: 700;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 12px;
  background: var(--green);
  color: white;
  border-radius: 999px;
  box-shadow: 0 14px 38px rgba(19,138,98,.28);
  font-weight: 800;
  font-size: .82rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(19,138,98,.36);
}

.floating-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
}

/* Reveal — fallo seguro: el contenido nunca depende de JavaScript para verse */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.in-view {
  animation: revealUp .72s cubic-bezier(.2,.7,.2,1) both;
}

.reveal-delay.in-view {
  animation-delay: .10s;
}

@keyframes revealUp {
  from {
    opacity: .01;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1050px) {
  .header-inner {
    grid-template-columns: auto auto 1fr;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    background: rgba(255,253,248,.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(7,22,41,.07);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .header-cta {
    justify-self: end;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .hero-grid,
  .profile-grid,
  .education-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding-top: 30px;
  }

  .visual-frame {
    min-height: 530px;
  }

  .profile-grid,
  .education-grid {
    gap: 60px;
  }

  .profile-content {
    padding-top: 0;
  }

  .contact-action {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-specialties {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 82px 0;
  }

  .site-header {
    height: var(--header-height);
  }

  .header-inner {
    gap: 10px;
    grid-template-columns: 1fr auto;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: .7rem;
  }

  .brand-text small {
    font-size: .68rem;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 72px;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 15vw, 4.5rem);
  }

  .hero-intro {
    margin-top: 24px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-scroll {
    display: none;
  }

  .visual-frame {
    min-height: 470px;
    padding: 24px;
    border-radius: 28px;
  }

  .visual-frame::before {
    inset: 12px;
  }

  .visual-panel {
    left: 22px;
    right: 22px;
    bottom: 22px;
    padding: 18px;
  }

  .justice-symbol {
    transform: translate(-50%, -55%) scale(.82);
  }

  .strip-grid {
    grid-template-columns: 1fr;
  }

  .strip-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
    padding: 26px 8px;
  }

  .strip-item:last-child {
    border-bottom: 0;
  }

  .profile-points {
    grid-template-columns: 1fr;
  }

  .profile-points > div {
    border-bottom: 1px solid var(--line);
  }

  .specialty-grid {
    grid-template-columns: 1fr;
  }

  .specialty-card,
  .specialty-card:nth-child(4),
  .specialty-card:nth-child(5) {
    grid-column: auto;
    min-height: 310px;
  }

  .education-visual {
    min-height: 380px;
  }

  .contact {
    padding-top: 72px;
  }

  .contact-card {
    padding: 34px 24px;
    border-radius: 26px;
    gap: 36px;
  }

  .phone-link {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    padding: 10px;
  }

  .floating-text {
    display: none;
  }

  .floating-icon {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
