:root {
  --ivory: #fbf6ee;
  --ivory-soft: #f3eadf;
  --paper: #fffdf8;
  --burgundy: #7e0f21;
  --burgundy-deep: #660b19;
  --gold: #b98232;
  --gold-soft: #eadcc9;
  --graphite: #24211f;
  --muted: #5d5751;
  --line: rgba(126, 15, 33, 0.16);
  --shadow: 0 18px 45px rgba(67, 41, 28, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#inicio,
#areas,
#sobre-mi,
#consulta,
#ubicacion {
  scroll-margin-top: 128px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 9% 16%, rgba(185, 130, 50, 0.12), transparent 26%),
    linear-gradient(180deg, #fffaf4 0%, var(--ivory) 58%, #f8efe4 100%);
  color: var(--graphite);
  font-family: "Lato", Arial, sans-serif;
  line-height: 1.55;
}

img,
svg {
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  min-height: 94px;
  padding: 16px clamp(28px, 3.6vw, 56px);
  border-bottom: 1px solid rgba(185, 130, 50, 0.22);
  background: rgba(255, 251, 246, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: max-content;
  flex-direction: column;
  align-items: flex-start;
}

.brand span {
  color: var(--burgundy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.9;
}

.brand small {
  display: grid;
  grid-template-columns: 76px auto 76px;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.brand small span {
  width: 100%;
  height: 1px;
  background: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(36px, 5vw, 70px);
  color: #222;
  font-size: 1rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 22px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--burgundy);
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition: 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--burgundy);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--burgundy);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 16px 32px rgba(126, 15, 33, 0.18);
}

.header-cta svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(430px, 44%) minmax(0, 56%);
  min-height: 610px;
  border-bottom: 1px solid rgba(185, 130, 50, 0.22);
  overflow: visible;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(34px, 4vw, 50px) clamp(8px, 1vw, 14px) 46px clamp(42px, 5.5vw, 84px);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 22px;
  color: var(--gold);
}

.hero-kicker svg {
  width: 56px;
  height: 44px;
}

.hero-kicker path,
.title-flourish path,
.button svg path,
.button svg rect,
.icon-badge path,
.icon-badge circle,
.icon-badge rect {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-kicker path,
.title-flourish path {
  stroke-width: 1.7;
}

.hero-kicker span {
  width: 138px;
  height: 1px;
  background: var(--gold);
}

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

h1,
h2,
h3 {
  color: var(--burgundy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 610px;
  margin-bottom: 20px;
  font-size: clamp(2.9rem, 3.45vw, 3.62rem);
  line-height: 1.03;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.title-flourish {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 3px 0 22px;
  color: var(--gold);
}

.title-flourish span {
  width: 64px;
  height: 1px;
  background: var(--gold);
}

.title-flourish svg {
  width: 20px;
  height: 20px;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 14px;
  color: #242424;
  font-size: clamp(1.2rem, 1.65vw, 1.42rem);
  line-height: 1.42;
}

.professional-data {
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 26px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
}

.button svg {
  width: 24px;
  height: 24px;
}

.button svg path {
  stroke-width: 2;
}

.button.primary {
  background: var(--burgundy);
  color: #fff;
  box-shadow: 0 16px 34px rgba(126, 15, 33, 0.18);
}

.button.secondary {
  border: 2px solid var(--burgundy);
  color: var(--burgundy);
  background: rgba(255, 253, 248, 0.62);
}

.hero-portrait {
  position: relative;
  min-height: 610px;
  margin: 0;
  overflow: hidden;
  background: #e9ded2;
}

.hero-portrait::before {
  display: none;
}

.hero-portrait::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(33, 22, 18, 0.16), transparent 36%),
    linear-gradient(180deg, transparent 68%, rgba(65, 34, 22, 0.08));
  content: "";
  pointer-events: none;
}

.hero-portrait img {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.02);
}

.practice {
  padding: 16px clamp(32px, 3.4vw, 52px) 52px;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr);
  align-items: center;
  gap: 18px;
  max-width: 520px;
  margin: 0 auto 12px;
}

.section-title span {
  height: 1px;
  background: var(--gold);
}

.section-title h2 {
  margin: 0;
  color: var(--burgundy);
  font-size: clamp(1.7rem, 2.2vw, 2.35rem);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px 18px;
  max-width: 1368px;
  margin: 0 auto;
}

.practice-card {
  display: grid;
  grid-column: span 2;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 146px;
  padding: 18px;
  border: 1px solid rgba(126, 15, 33, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
}

.practice-card.lower {
  grid-column: span 2;
}

.practice-card.lower:first-of-type {
  grid-column-start: 2;
}

.icon-badge {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f1e7dc, #e7d8c9);
  color: var(--burgundy);
}

.icon-badge svg {
  width: 58px;
  height: 58px;
}

.icon-badge path,
.icon-badge circle,
.icon-badge rect {
  stroke-width: 2;
}

.practice-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 1.8vw, 2rem);
  line-height: 1.05;
}

.practice-card h3::after {
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 10px;
  background: var(--gold);
  content: "";
}

.practice-card p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-showcase {
  display: grid;
  grid-template-columns: minmax(420px, 49%) minmax(0, 51%);
  min-height: 520px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid rgba(185, 130, 50, 0.28);
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 6vw, 82px) clamp(44px, 6vw, 84px);
}

.about-kicker {
  margin-bottom: 18px;
}

.about-showcase h2 {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--graphite);
  font-size: clamp(2.6rem, 3.35vw, 4.15rem);
  line-height: 1.08;
}

.about-showcase .eyebrow {
  margin-bottom: 8px;
  color: var(--burgundy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.92;
  text-transform: none;
}

.about-copy > p:last-child {
  max-width: 600px;
  margin: 0;
  color: var(--graphite);
  font-size: clamp(1.1rem, 1.45vw, 1.35rem);
  line-height: 1.55;
}

.about-photo {
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  background: #eadfd2;
}

.about-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.consultas {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
  padding: clamp(46px, 5.2vw, 72px) clamp(42px, 5.4vw, 82px);
  border-bottom: 1px solid rgba(185, 130, 50, 0.18);
}

.consultas-main {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.consultas-icon,
.trust-list span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #fbf4ec, #eadcc9);
  color: var(--burgundy);
}

.consultas-icon {
  width: 86px;
  height: 86px;
  border: 2px solid rgba(185, 130, 50, 0.62);
}

.consultas-icon svg {
  width: 48px;
  height: 48px;
}

.consultas-icon path,
.trust-list path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.consultas h2 {
  margin-bottom: 10px;
  font-size: clamp(3rem, 4vw, 4.7rem);
  line-height: 0.9;
}

.consultas-main p {
  max-width: 420px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.05rem;
}

.consultas-button {
  min-width: min(310px, 100%);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-left: clamp(24px, 4vw, 70px);
  border-left: 1px solid rgba(185, 130, 50, 0.72);
}

.trust-list article {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.trust-list span {
  width: 56px;
  height: 56px;
}

.trust-list svg {
  width: 34px;
  height: 34px;
}

.trust-list h3 {
  margin-bottom: 8px;
  color: var(--graphite);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  line-height: 1;
}

.trust-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.location-section {
  padding: clamp(42px, 5vw, 68px) clamp(32px, 4.6vw, 72px);
  border-top: 1px solid rgba(185, 130, 50, 0.18);
  border-bottom: 1px solid rgba(185, 130, 50, 0.24);
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 4vw, 62px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.location-copy h2 {
  max-width: 520px;
  margin-bottom: 16px;
  color: var(--burgundy);
  font-size: clamp(2.4rem, 3.2vw, 3.7rem);
  line-height: 1;
}

.location-copy p:not(.eyebrow) {
  max-width: 470px;
  margin: 0;
  color: var(--graphite);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.55;
}

.map-frame {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(126, 15, 33, 0.12);
  border-radius: 8px;
  background: var(--ivory-soft);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 42px;
  align-items: center;
  justify-content: center;
  padding: 22px 28px;
  background: var(--burgundy);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.site-footer a {
  font-weight: 900;
  color: #fff;
}

@media (min-width: 1120px) {
  .practice-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .practice-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

@media (max-width: 1160px) {
  .site-header {
    grid-template-columns: 1fr auto;
    row-gap: 12px;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }

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

  h1 {
    font-size: clamp(3.45rem, 6vw, 5rem);
  }

  .practice-card {
    grid-column: span 3;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 18px 20px;
  }

  .brand {
    align-items: center;
    justify-self: center;
  }

  .brand small {
    grid-template-columns: 64px auto 64px;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    justify-self: stretch;
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .hero-copy {
    order: 2;
    padding: 34px 24px 48px;
  }

  .hero-portrait {
    order: 1;
    height: auto;
    min-height: auto;
  }

  .hero-portrait img {
    position: relative;
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 1.05;
    object-position: 58% 42%;
  }

  .hero-portrait::before {
    display: none;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 10vw, 3.45rem);
  }

  h1 span {
    white-space: normal;
  }

  .practice {
    padding: 22px 18px 44px;
  }

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

  .practice-card,
  .practice-card.lower,
  .practice-card:nth-child(4),
  .practice-card:nth-child(5) {
    grid-column: auto;
  }

  .about-showcase,
  .consultas,
  .location-layout {
    grid-template-columns: 1fr;
  }

  .about-copy {
    padding: 48px 28px;
  }

  .about-photo {
    min-height: auto;
    order: 2;
  }

  .about-photo img {
    min-height: 0;
    aspect-ratio: 1.1;
  }

  .consultas {
    padding: 42px 28px;
  }

  .trust-list {
    grid-template-columns: 1fr;
    padding-left: 0;
    border-left: 0;
  }

  .location-section {
    padding: 40px 24px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 340px;
  }
}

@media (max-width: 560px) {
  .brand span {
    font-size: 2rem;
  }

  .brand small {
    grid-template-columns: 54px auto 54px;
    gap: 10px;
    letter-spacing: 0.36em;
  }

  .hero-kicker span {
    width: 112px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .practice-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .icon-badge {
    width: 82px;
    height: 82px;
  }

  .section-title {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-title span {
    width: 100px;
    margin: 0 auto;
  }

  .about-showcase .eyebrow,
  .consultas h2 {
    font-size: 3rem;
  }

  .about-showcase h2 {
    font-size: 2.35rem;
  }

  .consultas-main {
    grid-template-columns: 1fr;
  }

  .consultas-icon {
    width: 76px;
    height: 76px;
  }
}
