@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/nunito-sans-latin.woff2") format("woff2");
}

:root {
  --navy: #2c3d56;
  --navy-dark: #20354e;
  --gray: #b2b2b2;
  --footer: #eae5e2;
  --warm: #faf8f6;
  --cool: #eef1f4;
  --white: #ffffff;
  --ink: #354052;
  --line: rgba(44, 61, 86, 0.18);
  --portrait-shift-left: 50px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.section { padding: 56px 0 64px; }

.section-heading { text-align: center; color: var(--navy); }
.section-heading h2 {
  margin: 0;
  font: 500 22px/1.3 "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.section-heading p { margin: 10px 0 0; }
.section-heading--left { text-align: left; }
.section-heading--light { color: var(--white); }
.accent-line {
  display: block;
  width: 46px;
  height: 2px;
  margin: 14px auto 24px;
  background: var(--gray);
}
.section-heading--left .accent-line { margin-left: 0; }

/* 1. Título */
.hero {
  position: relative;
  height: 550px;
  overflow: hidden;
  background: var(--footer) url("../assets/images/background.png") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  width: min(760px, 62vw);
  height: 285px;
  background: url("../assets/images/hero-curve.svg") right bottom / 100% 100% no-repeat;
}
.hero__inner { height: 100%; position: relative; padding-top: 34px; }
.brand { position: relative; z-index: 4; display: inline-block; }
.brand img { width: 390px; height: auto; }
.hero__copy { position: relative; z-index: 4; width: 54%; padding: 58px 0 0 20px; }
.hero h1 {
  margin: 0;
  color: var(--navy);
  font: 400 47px/1.14 "Montserrat", sans-serif;
  letter-spacing: -0.035em;
}
.hero__copy > .accent-line { margin: 25px 0 22px; background: var(--navy); opacity: 0.65; }
.hero__lead { margin: 0 0 28px; color: var(--navy); font-size: 19px; }
.hero__specialty { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.hero__specialty > img { width: 45px; height: 45px; }
.hero__specialty p { margin: 0; }
.hero__specialty span { color: #4b5665; }
.hero__portrait {
  position: absolute;
  z-index: 3;
  right: var(--portrait-shift-left);
  bottom: -50px;
  width: auto;
  height: 565px;
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
}

/* 2. Valores */
.values { color: var(--white); background: linear-gradient(110deg, #2e4662, var(--navy-dark)); }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 0; }
.values article {
  min-height: 130px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  position: relative;
  text-align: center;
}
.values article + article::before {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.48);
}
.values article > img { width: 61px; height: 61px; }
.values p { margin: 0; font-size: 17px; line-height: 1.45; }

/* 3. Áreas de ayuda */
.help { background: var(--warm); }
.help__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.help article { padding: 6px 5px 0; text-align: center; }
.icon-disc {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ddd9d6, #cbc8c6);
}
.icon-disc img { width: 57px; height: 57px; }
.help h3 { margin: 0 0 10px; color: var(--navy); font: 400 18px/1.35 "Montserrat", sans-serif; }
.help article p { margin: 0; font-size: 13px; line-height: 1.5; }

/* 4. Enfoque terapéutico */
.approach { padding: 34px 0 40px; background: var(--cool); }
.approach .accent-line { margin-bottom: 8px; }
.approach__grid { display: grid; grid-template-columns: 1fr 1fr; }
.approach ul { margin: 0; padding: 8px 46px; list-style: none; }
.approach ul + ul { border-left: 1px solid var(--line); }
.approach li { display: flex; align-items: center; gap: 13px; margin: 15px 0; color: var(--navy); font-size: 15px; }
.approach li img { width: 24px; height: 24px; }

/* 5. Sobre mí */
.about {
  min-height: 460px;
  background-image: linear-gradient(90deg, #f5f4f2 0%, #f5f4f2 24%, rgba(245,244,242,.92) 36%, rgba(245,244,242,0) 59%), url("../assets/images/consultorio.jpg");
  background-position: center, right center;
  background-size: cover, cover;
  background-repeat: no-repeat;
}
.about__inner { min-height: 460px; display: flex; align-items: center; }
.about__copy { width: 44%; padding: 42px 0; }
.about__copy .accent-line { margin-bottom: 20px; }
.about__copy p { margin: 0 0 24px; max-width: 500px; font-size: 15px; line-height: 1.6; }
.about__copy p:last-child { margin-bottom: 0; }

/* 6. Primera sesión y modalidades */
.session { padding: 35px 0 42px; background: #fff; }
.session__grid { display: grid; grid-template-columns: 1fr 1fr; }
.first-session { padding-right: 38px; }
.modalities { padding-left: 38px; border-left: 1px solid var(--line); }
.session .section-heading h2 { font-size: 18px; }
.session .accent-line { margin-bottom: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps article { position: relative; text-align: center; padding: 0 4px; }
.steps article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  right: -17px;
  width: 32px;
  border-top: 1px dashed rgba(44,61,86,.55);
}
.steps article > img { width: 48px; height: 48px; margin: 0 auto 8px; }
.step-number {
  position: absolute;
  top: 7px;
  left: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--footer);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
}
.steps h3, .modalities h3 { margin: 0 0 7px; color: var(--navy); font-size: 14px; line-height: 1.35; }
.steps p, .modalities p { margin: 0; font-size: 12px; line-height: 1.48; }
.modalities__grid { display: grid; grid-template-columns: 1fr 1fr; }
.modalities__grid > article { display: grid; grid-template-columns: 45px 1fr; gap: 10px; padding: 7px 23px; }
.modalities__grid > article + article { border-left: 1px solid var(--line); }
.modalities__grid > article > img { width: 41px; height: 41px; }
.modalities a { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--navy); font-size: 11px; }
.modalities a img { width: 16px; height: 16px; }

/* 7. CTA */
.cta { padding: 34px 0 40px; color: var(--white); background: linear-gradient(105deg, #2e4662, var(--navy-dark)); }
.cta .section-heading h2 { font-size: 24px; }
.cta .section-heading p { color: rgba(255,255,255,.84); font-size: 16px; }
.cta__actions { display: flex; justify-content: center; gap: 32px; margin-top: 20px; }
.button {
  width: 370px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 2px solid rgba(255,255,255,.65);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 17px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(13,27,43,.22); }
.button img { width: 34px; height: 34px; object-fit: contain; }
.button--light { border-color: var(--white); color: var(--navy); background: var(--white); }
.button--light img { filter: brightness(0) saturate(100%) invert(22%) sepia(24%) saturate(1074%) hue-rotate(176deg) brightness(91%) contrast(88%); }
.button--outline { background: transparent; }

/* 8. Footer */
.footer { color: var(--navy); background: var(--footer); }
.footer__inner { min-height: 130px; display: grid; grid-template-columns: 290px 1fr auto; align-items: center; gap: 42px; }
.footer__inner > img { width: 270px; }
.footer p { margin: 0; padding-left: 38px; border-left: 1px solid rgba(44,61,86,.3); font-size: 12px; line-height: 1.9; }
.footer p span { color: #657080; }
.footer__contact { text-align: right; }
.footer__legal {
  display: inline-block;
  margin-top: 3px;
  font-weight: 700;
  text-underline-offset: 3px;
}

@media (max-width: 1050px) {
  .container { width: min(100% - 44px, 930px); }
  .hero h1 { font-size: 40px; }
  .hero__portrait { right: var(--portrait-shift-left); height: 555px; }
  .help__grid { gap: 12px; }
  .about__copy { width: 48%; }
  .first-session { padding-right: 22px; }
  .modalities { padding-left: 22px; }
  .modalities__grid > article { padding-inline: 12px; }
}

@media (max-width: 800px) {
  .container { width: min(100% - 34px, 690px); }
  .section { padding: 48px 0 54px; }
  .hero { height: 900px; }
  .hero::after { width: 110%; height: 210px; right: -10%; bottom: 0; }
  .brand img { width: 320px; }
  .hero__copy { width: 100%; padding: 42px 0 0; text-align: center; }
  .hero h1 { font-size: 40px; }
  .hero__copy > .accent-line { margin-inline: auto; }
  .hero__specialty { justify-content: center; text-align: left; }
  .hero__portrait { height: 470px; right: calc(50% + var(--portrait-shift-left)); transform: translateX(50%); }
  .values__grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .values article:nth-child(3)::before { display: none; }
  .help__grid { grid-template-columns: repeat(2, 1fr); gap: 34px 18px; }
  .help article:last-child { grid-column: 1 / -1; width: 50%; justify-self: center; }
  .approach__grid { grid-template-columns: 1fr; }
  .approach ul { padding: 0; }
  .approach ul + ul { border: 0; }
  .approach li { margin: 14px 0; }
  .about { min-height: 750px; background-image: linear-gradient(to bottom, #f5f4f2 0%, #f5f4f2 44%, rgba(245,244,242,.88) 58%, rgba(245,244,242,0) 75%), url("../assets/images/consultorio.jpg"); background-position: center, right bottom; background-size: 100% 100%, auto 390px; }
  .about__inner { min-height: 750px; align-items: flex-start; }
  .about__copy { width: 100%; padding-top: 55px; }
  .session__grid { grid-template-columns: 1fr; gap: 48px; }
  .first-session { padding: 0; }
  .modalities { padding: 42px 0 0; border: 0; border-top: 1px solid var(--line); }
  .cta__actions { gap: 14px; }
  .button { width: 50%; font-size: 14px; }
  .footer__inner { grid-template-columns: 240px 1fr; gap: 28px; padding: 25px 0; }
  .footer__inner > img { width: 230px; }
  .footer__contact { grid-column: 2; text-align: left; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 28px); }
  .section-heading h2 { font-size: 19px; }
  .hero { height: 820px; background-position: 58% center; }
  .hero::after { height: 190px; }
  .hero__inner { padding-top: 22px; }
  .brand img { width: 270px; }
  .hero__copy { padding-top: 32px; }
  .hero h1 { font-size: 30px; letter-spacing: -0.02em; }
  .hero__lead { font-size: 16px; }
  .hero__specialty { font-size: 12px; }
  .hero__specialty > img { width: 39px; height: 39px; }
  .hero__portrait { height: 400px; }
  .values__grid { width: 100%; padding-inline: 8px; }
  .values article { min-height: 120px; }
  .values article > img { width: 51px; height: 51px; }
  .values p { font-size: 14px; }
  .help__grid { grid-template-columns: 1fr; }
  .help article:last-child { grid-column: auto; width: 100%; }
  .help article { max-width: 330px; justify-self: center; }
  .approach { padding: 40px 0; }
  .about { min-height: 780px; background-size: 100% 100%, auto 315px; }
  .about__inner { min-height: 780px; }
  .about__copy p { font-size: 14px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps article { max-width: 280px; justify-self: center; }
  .steps article:not(:last-child)::after { display: none; }
  .step-number { left: 20px; }
  .modalities__grid { grid-template-columns: 1fr; gap: 24px; }
  .modalities__grid > article { padding: 0; }
  .modalities__grid > article + article { padding-top: 24px; border: 0; border-top: 1px solid var(--line); }
  .cta .section-heading h2 { font-size: 20px; }
  .cta__actions { flex-direction: column; }
  .button { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; gap: 18px; }
  .footer__inner > img { width: 250px; }
  .footer p { padding: 0; border: 0; }
  .footer__contact { grid-column: auto; }
}

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