:root {
  --paper: #f7f5ef;
  --ink: #04203f;
  --muted: #626b76;
  --line: #dedbd4;
  --gold: #cd9d68;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

a,
button,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}

.wrap {
  max-width: 1200px;
  width: calc(100% - 112px);
  margin: auto;
}

.demo {
  background: var(--ink);
  color: #eee8db;
  text-align: center;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 8px 15px;
}

.demo span {
  margin: 0 9px;
}

header {
  padding: 25px 0;
  max-width: 1200px;
  width: calc(100% - 112px);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 30px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 400;
}

.monogram {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
}

nav a:hover,
.text-link:hover {
  color: var(--gold);
}

.nav-contact {
  border-bottom: 1px solid var(--ink);
  padding: 8px 0;
}

.nav-contact span {
  margin-left: 18px;
}

.menu {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  padding-top: 64px;
  padding-bottom: 60px;
  align-items: center;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2.1px;
  font-weight: 600;
  margin: 0 0 25px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow > span {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(48px, 5.3vw, 76px);
  line-height: 1.06;
  letter-spacing: -2.5px;
  margin-bottom: 26px;
}

em {
  font-weight: 400;
  color: var(--gold);
}

.intro {
  color: var(--muted);
  max-width: 385px;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.button {
  display: inline-flex;
  gap: 36px;
  justify-content: space-between;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 17px 23px;
  font-size: 12px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.button:hover {
  background: #123858;
  transform: translateY(-2px);
}

.button span {
  font-size: 20px;
  line-height: 1;
}

.text-link {
  display: block;
  font-size: 11px;
  margin-top: 21px;
}

.text-link span {
  margin-left: 12px;
}

.hero-art {
  height: 514px;
  background: #e8dfd3;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image: linear-gradient(125deg, #e9e6d8, #b8bba9);
}

.art-top {
  position: absolute;
  top: 24px;
  left: 27px;
  font-size: 8px;
  letter-spacing: 2px;
}

.arch {
  position: absolute;
  right: -30px;
  top: 77px;
  width: 345px;
  height: 440px;
  border-radius: 190px 190px 0 0;
  background: linear-gradient(120deg, #9da38d, #e4e1cf 70%);
  box-shadow:
    -18px -7px 30px #f6f2e080,
    inset 30px 6px 45px #59665340;
  overflow: hidden;
  transform: rotate(-12deg);
}

.pillar {
  position: absolute;
  bottom: -40px;
  width: 48px;
  height: 330px;
  background: linear-gradient(90deg, #c0c2ad, #eae8d8 45%, #adb39b);
  box-shadow: 20px 10px 25px #465b4933;
  transform: rotate(12deg);
}

.p1 {
  left: 45px;
}

.p2 {
  left: 125px;
}

.p3 {
  left: 205px;
}

.p4 {
  left: 285px;
}

.hero-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #1c342bec, transparent 62%);
  z-index: 1;
}

.art-bottom {
  position: absolute;
  bottom: 51px;
  left: 30px;
  right: 25px;
  color: #f8f4e8;
  display: flex;
  gap: 27px;
  align-items: center;
  z-index: 2;
}

.art-bottom > span {
  font:
    40px Georgia,
    serif;
  opacity: 0.65;
}

.art-bottom p {
  font:
    24px/1.35 Georgia,
    serif;
  margin: 0;
}

.art-index {
  position: absolute;
  bottom: 20px;
  left: 30px;
  z-index: 2;
  color: #e7ead5;
  font-size: 8px;
  letter-spacing: 2px;
}

.principles {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--gold);
}

.principles b {
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.4px;
  margin-left: 16px;
}

.section {
  padding-top: 95px;
  padding-bottom: 95px;
}

h2 {
  font-size: clamp(34px, 3.5vw, 48px);
  line-height: 1.16;
  letter-spacing: -1px;
  margin-bottom: 25px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 35px;
}

.section-heading > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 30px;
}

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

.areas article {
  padding: 30px 28px 8px 0;
}

.areas article + article {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.number {
  font-size: 11px;
  color: var(--gold);
}

h3 {
  font-size: 24px;
  line-height: 1.3;
}

.areas h3 {
  margin: 28px 0 15px;
}

.areas p {
  font-size: 13px;
  color: var(--muted);
  min-height: 86px;
}

.areas a {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.areas a:hover {
  color: var(--gold);
}

.about {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0;
}

.about-grid,
.faq-grid,
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 95px;
}

.about .eyebrow {
  color: #c5cfda;
}

.about em {
  color: #cd9d68;
}

.signature {
  font:
    italic 37px Georgia,
    serif;
  margin-top: 47px;
  color: #cd9d68;
}

.signature-caption {
  font-size: 8px;
  letter-spacing: 1.8px;
  margin-top: 9px;
}

.about-copy {
  padding-top: 35px;
  color: #d0d8e2;
  font-size: 13px;
}

.about-copy .large {
  font:
    26px/1.4 Georgia,
    serif;
  color: var(--paper);
}

.location {
  border-top: 1px solid #42607e;
  margin-top: 30px;
  padding-top: 22px;
  color: var(--paper);
}

.location > span {
  margin-right: 10px;
}

.location small {
  display: block;
  margin-left: 24px;
  color: #c5cfda;
}

.process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 95px;
}

.process ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.process li {
  display: flex;
  gap: 24px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.process li:first-child {
  padding-top: 0;
}

.process li > span {
  font-size: 12px;
  color: var(--gold);
  padding-top: 5px;
}

.process h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.process p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.faq-section {
  padding: 72px 0;
  background: #efeee9;
}

details {
  border-bottom: 1px solid #d7d8db;
}

summary {
  padding: 22px 30px 22px 0;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary:after {
  content: "+";
  position: absolute;
  right: 4px;
  font-size: 20px;
  top: 16px;
  color: var(--gold);
}

details[open] summary:after {
  content: "−";
}

details p {
  font-size: 13px;
  color: #626b76;
  padding-right: 25px;
}

.contact > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
}

.contact-note {
  display: block;
  max-width: 310px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 35px;
}

.contact form {
  padding-top: 5px;
}

label {
  display: block;
  font-size: 11px;
  margin-bottom: 7px;
}

label span {
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  display: block;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #b8bfc8;
  border-radius: 0;
  padding: 9px 0 12px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 13px;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #737c88;
}

.contact .button {
  width: 100%;
}

#form-status {
  font-size: 13px;
  margin-top: 15px;
}

footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

footer p {
  font-size: 9px;
  color: var(--muted);
  margin: 0;
}

footer > a:last-child {
  font-size: 11px;
}

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 10px;
  background: var(--ink);
  color: white;
  z-index: 100;
}

.skip:focus {
  top: 10px;
}

@media (min-width: 1500px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

@media (max-width: 1000px) {
  .wrap,
  header {
    width: calc(100% - 64px);
  }

  nav {
    gap: 15px;
    font-size: 11px;
  }

  .hero {
    gap: 30px;
  }

  .hero-art {
    height: 460px;
  }

  .about-grid,
  .faq-grid,
  .contact,
  .process {
    gap: 45px;
  }

  .areas h3 {
    font-size: 22px;
  }

  .areas p {
    min-height: 110px;
  }
}

@media (max-width: 760px) {
  .wrap,
  header {
    width: calc(100% - 40px);
  }

  .demo {
    font-size: 8px;
    letter-spacing: 0.3px;
  }

  header {
    padding: 19px 0;
    position: relative;
  }

  .brand {
    font-size: clamp(10px, 2.8vw, 12px);
    gap: 8px;
    letter-spacing: 1px;
    white-space: normal;
  }

  .monogram {
    width: 40px;
    height: 40px;
  }

  .menu {
    flex-shrink: 0;
  }

  .brand small {
    font-size: 7px;
  }

  .menu {
    display: flex;
    gap: 16px;
    align-items: center;
    background: none;
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 8px 12px;
    font-size: 12px;
  }

  .menu span {
    font-size: 17px;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 20px;
    border: 1px solid var(--line);
    z-index: 20;
    box-shadow: 0 15px 20px #04203f10;
  }

  nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 43px;
    gap: 35px;
    padding-bottom: 35px;
  }

  h1 {
    font-size: 57px;
  }

  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }

  .intro {
    max-width: 450px;
  }

  .hero-art {
    height: 340px;
  }

  .arch {
    top: 20px;
    width: 320px;
  }

  .art-bottom {
    bottom: 50px;
  }

  .principles {
    gap: 15px;
    font-size: 9px;
    align-items: center;
  }

  .principles span {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .principles b {
    margin: 0;
    font-size: 10px;
  }

  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .section-heading {
    display: block;
    margin-bottom: 22px;
  }

  .section-heading > p {
    margin-top: 22px;
  }

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

  .areas article,
  .areas article + article {
    padding: 25px 0 10px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .areas h3 {
    margin-top: 14px;
    font-size: 27px;
  }

  .areas p {
    min-height: 0;
    max-width: 480px;
  }

  .areas a {
    border: 0;
    padding-top: 8px;
  }

  .about {
    padding: 58px 0;
  }

  .about-grid,
  .faq-grid,
  .contact,
  .process {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .signature {
    margin-top: 28px;
  }

  .about-copy {
    padding: 0;
  }

  .faq-section {
    padding: 58px 0;
  }

  .faq-grid {
    gap: 8px;
  }

  .process {
    gap: 20px;
  }

  h2 {
    font-size: 38px;
  }

  .contact {
    gap: 32px;
  }

  .contact-note {
    margin-top: 20px;
  }

  footer {
    flex-wrap: wrap;
    padding-bottom: 30px;
  }

  footer p {
    order: 3;
    width: 100%;
    padding-top: 8px;
  }

  .eyebrow {
    font-size: 9px;
  }

  summary {
    font-size: 13px;
  }
}

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

  * {
    transition: none !important;
  }
}

/* Retrato y canales de contacto */
.portrait {
  position: relative;
  margin: 0;
  height: 514px;
  overflow: hidden;
  background: #e8dfd3;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.portrait:after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, #04203fd9);
  pointer-events: none;
}

.portrait figcaption {
  position: absolute;
  bottom: 25px;
  left: 28px;
  color: var(--paper);
  z-index: 1;
}

.portrait figcaption span {
  display: block;
  font:
    28px/1.4 Georgia,
    serif;
}

.portrait figcaption small {
  font-size: 8px;
  letter-spacing: 2px;
}

.contact-links {
  align-self: center;
  min-width: 0;
}

.contact-links > a {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}

.contact-links > a:first-child {
  border-top: 1px solid var(--line);
}

.contact-links > a:hover {
  color: var(--gold);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font:
    24px Georgia,
    serif;
  flex-shrink: 0;
}

.social-in {
  font:
    bold 21px Arial,
    sans-serif;
}

.contact-links > a > span:nth-child(2) {
  min-width: 0;
}

.contact-links small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  margin-bottom: 5px;
  color: var(--muted);
}

.contact-links strong {
  display: block;
  font-weight: 400;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.contact-links > a > span:last-child {
  margin-left: auto;
  font-size: 21px;
}

.contact-note {
  max-width: 360px;
}

@media (max-width: 1000px) {
  .portrait {
    height: 460px;
  }

  .contact-links strong {
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .portrait {
    height: auto;
    aspect-ratio: 4/4.5;
    max-height: 530px;
  }

  .portrait img {
    object-position: center 30%;
  }

  .contact-links > a {
    gap: 14px;
  }

  .contact-links strong {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .contact-links strong {
    font-size: 13px;
  }
}

a[aria-disabled="true"] {
  cursor: default;
}

/* Redes secundarias: una fila sencilla debajo del contacto principal. */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 16px;
  font-size: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.social-links a:hover {
  color: var(--gold);
  text-decoration-color: currentColor;
}

/* Jerarquía editorial y grilla compartida */
:root {
  --gold: #956b3e;
}

header {
  gap: 20px;
}

nav {
  gap: 16px;
  font-size: 11px;
}

.hero {
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
}

h1 {
  font-size: clamp(52px, 6vw, 82px);
  margin-bottom: 18px;
}

.hero-statement {
  font:
    30px/1.3 Georgia,
    serif;
  margin-bottom: 22px;
}

.intro {
  max-width: 480px;
  margin-bottom: 24px;
}

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

.button {
  gap: 16px;
  min-height: 48px;
  padding: 14px 18px;
}

.outline {
  background: transparent;
  color: var(--ink);
}

.outline:hover {
  background: #e9e5dc;
}

.coverage {
  font-size: 12px;
  color: var(--muted);
  max-width: 480px;
  margin: 24px 0 0;
}

.identity-panel {
  min-height: 440px;
  background: #eee9df;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  border: 1px solid var(--line);
}

.identity-panel img {
  width: 160px;
  height: 160px;
  margin-bottom: 32px;
}

.identity-panel p {
  font:
    26px/1.5 Georgia,
    serif;
}

.identity-panel span {
  font-size: 9px;
  letter-spacing: 2px;
}

.urgent {
  margin-top: 48px;
  background: var(--ink);
  color: var(--paper);
  padding: 38px 0;
}

.urgent-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.urgent h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.urgent .eyebrow {
  color: #d6bd9e;
  margin-bottom: 12px;
}

.urgent p:last-child {
  max-width: 690px;
  margin-bottom: 0;
  color: #d0d8e2;
  font-size: 14px;
}

.urgent em {
  color: #e0b989;
}

.urgent .button {
  border-color: #d6bd9e;
  color: var(--paper);
}

.urgent .button:hover {
  background: #123858;
}

.urgent-grid > div > p:not(.eyebrow) {
  max-width: 690px;
  color: #d0d8e2;
  font-size: 15px;
  margin-bottom: 14px;
}

.urgent-grid > div > .urgent-lead {
  font-size: 20px;
  color: var(--paper);
}

.urgent-grid > div > p:last-child {
  margin-bottom: 0;
}

.google-profiles {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.google-profiles h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.google-profiles p {
  margin-bottom: 16px;
}

.google-profiles .text-link {
  display: block;
  padding: 10px 0;
}

.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.section-heading {
  gap: 32px;
}

.penal {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  padding: 36px;
  border: 1px solid var(--line);
  background: #eeebe3;
}

.penal h3 {
  font-size: 38px;
  margin-bottom: 16px;
}

.penal p {
  font-size: 14px;
}

.stages {
  padding-left: 18px;
  margin-bottom: 24px;
  font-size: 13px;
  columns: 2;
  column-gap: 24px;
}

.stages li {
  break-inside: avoid;
  margin-bottom: 7px;
}

.penal-highlights > div {
  background: var(--paper);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  margin-bottom: 16px;
}

h4 {
  font:
    23px/1.3 Georgia,
    serif;
  margin: 0 0 10px;
}

.penal-highlights p {
  margin: 0;
}

.family-note {
  color: var(--muted);
}

.family-note strong {
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin: 32px 0;
}

.practice-card {
  padding: 28px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.practice-card h3 {
  font-size: 28px;
}

.practice-card p {
  font-size: 14px;
  color: var(--muted);
}

.practice-card .text-link {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.family-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.family-block h3 {
  font-size: 32px;
}

.family-block p {
  color: var(--muted);
  font-size: 14px;
}

.small-note {
  margin-top: 20px;
  font-size: 12px !important;
}

.associated {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: 20px;
}

.associated > p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: 14px;
}

.associated-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0;
}

.associated-grid article {
  border-top: 2px solid var(--gold);
  padding-top: 24px;
}

.associated-grid h3 {
  font-size: 25px;
}

.associated-grid p,
.associated-grid li {
  font-size: 13px;
  color: var(--muted);
}

.associated-grid ul {
  padding-left: 18px;
}

.associated-grid summary {
  font-size: 13px;
}

.signature-caption {
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #d0d8e2;
}

.attention {
  background: #eee9df;
  padding: 56px 0;
}

.attention-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 95px;
}

.attention p {
  font-size: 14px;
  max-width: 480px;
}

.locations {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.locations li {
  font:
    26px Georgia,
    serif;
  padding: 16px 0;
  border-bottom: 1px solid #cec7bc;
}

.contact .button {
  width: auto;
}

@media (max-width: 1100px) {
  header {
    flex-wrap: wrap;
  }

  nav {
    flex-wrap: wrap;
  }

  .urgent-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .urgent .button {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  header {
    flex-wrap: nowrap;
  }

  nav {
    flex-wrap: nowrap;
  }

  .hero,
  .penal,
  .practice-grid,
  .family-block,
  .associated-grid,
  .attention-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  h1 {
    font-size: clamp(48px, 12vw, 68px);
  }

  .hero-statement {
    font-size: 27px;
  }

  .identity-panel {
    min-height: 260px;
    padding: 24px;
  }

  .identity-panel img {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
  }

  .identity-panel p {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .urgent {
    margin-top: 32px;
  }

  .urgent h2 {
    font-size: 30px;
  }

  .penal {
    padding: 24px;
  }

  .stages {
    columns: 1;
  }

  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .practice-card {
    padding: 24px;
  }

  .family-block {
    padding-top: 28px;
  }

  .attention {
    padding: 48px 0;
  }

  .principles {
    align-items: flex-start;
  }

  .actions .button {
    flex: 1 1 210px;
  }
}

/* Retrato principal: encuadre natural y espacio reservado durante la carga. */
.hero-portrait {
  height: auto;
  aspect-ratio: 3 / 4;
  max-height: 620px;
}

.hero-portrait picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-portrait img {
  object-position: center top;
}

.hero-portrait figcaption {
  left: 24px;
  right: 20px;
  bottom: 24px;
}

.hero-portrait figcaption span {
  font-size: clamp(23px, 2vw, 28px);
}

.hero-portrait figcaption small {
  font-size: 9px;
  letter-spacing: 1.2px;
}

@media (max-width: 760px) {
  .hero-portrait {
    width: 100%;
    max-width: 480px;
    max-height: none;
    justify-self: center;
  }

  .hero-portrait figcaption {
    left: 20px;
    bottom: 20px;
  }

  .hero-portrait figcaption small {
    font-size: 8px;
  }
}

/* Contacto persistente en celular, con espacio propio al final de la página. */
.mobile-contact-bar {
  display: none;
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  html {
    scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-contact-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    gap: 10px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px #04203f0d;
  }

  .mobile-urgent {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 12px;
    background: var(--ink);
    color: var(--paper);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
  }

  .mobile-urgent > span:first-child {
    font-size: 23px;
  }

  .mobile-urgent small {
    display: block;
    font-size: 10px;
    font-weight: 400;
  }

  .mobile-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    min-height: 56px;
    border: 1px solid var(--ink);
    border-radius: 7px;
  }

  .mobile-urgent:hover {
    background: #123858;
  }

  .mobile-whatsapp:hover {
    background: #eee9df;
  }
}

/* Ajuste de proporción del retrato y lectura del acceso urgente. */
.hero-portrait {
  width: 100%;
  max-width: 410px;
  max-height: 548px;
  justify-self: end;
}

@media (max-width: 760px) {
  .hero-portrait {
    max-width: 360px;
    max-height: none;
    justify-self: center;
  }

  .mobile-urgent {
    justify-content: flex-start;
    text-align: left;
    padding-left: 16px;
  }

  .mobile-urgent > span:first-child {
    flex-shrink: 0;
  }
}

/* Navegación siempre disponible sin alterar el espacio de la portada. */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
}

@media (max-width: 760px) {
  header {
    position: sticky;
    clip-path: none;
    box-shadow:
      20px 0 var(--paper),
      -20px 0 var(--paper);
  }
}

.hero-accent {
  color: var(--gold);
}

/* En celular, los accesos de la portada están en la barra fija. */
@media (max-width: 760px) {
  .hero .actions {
    display: none;
  }
}

/* Portada móvil: frases principales y retrato antes de la información secundaria. */
@media (max-width: 760px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 22px;
    padding-bottom: 28px;
  }

  .hero > div {
    display: contents;
  }

  .hero .eyebrow {
    order: 0;
    margin-bottom: 12px;
  }

  .hero h1 {
    order: 1;
    font-size: clamp(40px, 10.5vw, 52px);
    line-height: 1.04;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
  }

  .hero-statement {
    order: 2;
    font-size: 23px;
    line-height: 1.25;
    margin-bottom: 20px;
  }

  .hero-portrait {
    display: block;
    order: 3;
    width: 100%;
    max-width: none;
    height: clamp(230px, 35svh, 320px);
    max-height: none;
    aspect-ratio: auto;
    margin-bottom: 24px;
  }

  .hero-portrait img {
    object-position: center top;
  }

  .hero-portrait figcaption {
    bottom: 16px;
    left: 18px;
  }

  .hero-portrait figcaption span {
    font-size: 23px;
  }

  .hero .intro {
    order: 4;
    margin-bottom: 16px;
  }

  .hero .coverage {
    order: 5;
    margin-top: 0;
  }

  .hero .actions {
    display: none;
  }
}

/* Menú de escritorio con lectura más clara y llamada urgente diferenciada. */
@media (min-width: 761px) {
  header {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  nav {
    gap: 22px;
    font-size: 13px;
  }

  nav > a {
    padding: 10px 0;
  }

  nav .nav-contact {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    border: 1px solid var(--gold);
    border-radius: 5px;
    color: var(--ink);
    background: #eee9df;
    font-size: 12px;
  }

  nav .nav-contact:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
  }
}

@media (min-width: 761px) and (max-width: 1150px) {
  nav {
    gap: 16px;
    font-size: 12px;
  }
}

/* Menú sencillo, con llamada destacada en escritorio. */
@media (min-width: 761px) {
  nav .nav-contact {
    background: transparent;
    color: var(--ink);
    border-color: #b9c2cb;
  }

  nav .nav-contact:hover {
    background: #eeece6;
    border-color: var(--ink);
    color: var(--ink);
  }
}

@media (max-width: 760px) {
  .menu {
    border-radius: 4px;
    padding: 9px 12px;
  }

  .menu[aria-expanded="true"] span {
    transform: rotate(45deg);
  }

  nav {
    padding: 12px 20px 20px;
    border-radius: 0 0 6px 6px;
  }

  nav.open {
    gap: 0;
  }

  nav > a {
    padding: 13px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
  }

  nav .nav-contact {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    text-align: center;
  }
}

/* Reseña destacada, integrada a la estética del estudio. */
.reviews {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 64px;
  padding-top: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.reviews h2 {
  font-size: clamp(30px, 3vw, 40px);
  margin-bottom: 24px;
}

.reviews-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.reviews-link:hover {
  color: var(--gold);
}

.reviews-caption {
  font-size: 12px;
  color: var(--muted);
  margin-top: -10px;
  margin-bottom: 24px;
}

.reviews-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.reviews-rating strong {
  font: 32px Georgia, serif;
  margin-right: 10px;
}

.reviews-rating > span {
  color: var(--gold);
  letter-spacing: 3px;
}

.reviews-rating small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
  font-size: 12px;
}

.reviews-testimonials {
  display: grid;
  gap: 20px;
}

.review-card[hidden],
.review-controls[hidden] {
  display: none;
}

.is-carousel .review-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: review-appear 350ms ease-out;
}

.is-carousel .review-card[hidden] {
  display: none;
}

.review-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.review-position {
  margin-right: auto;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
}

.review-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.review-controls button:hover {
  background: var(--ink);
  color: var(--paper);
}

@keyframes review-appear {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .is-carousel .review-card { animation: none; }
}

.review-card {
  margin: 0;
  padding: 28px 36px 32px;
  background: #eee9df;
  border-left: 3px solid var(--gold);
}

.review-quote {
  display: block;
  height: 44px;
  color: var(--gold);
  font: 72px/1 Georgia, serif;
}

.review-card blockquote {
  margin: 12px 0 24px;
  font: 22px/1.55 Georgia, serif;
}

.review-card blockquote p {
  margin: 0;
}

.review-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
}

.review-card strong,
.review-card small {
  display: block;
}

.review-card strong {
  font-size: 13px;
}

.review-card small {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 760px) {
  .reviews {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .review-card {
    padding: 24px;
  }

  .review-card blockquote {
    font-size: 20px;
  }
}

/* Botón de llamada del menú. */
nav .nav-contact {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

nav .nav-contact:hover {
  background: #123858;
  color: var(--paper);
  border-color: #123858;
}
