@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --marfil: #f7f4ee;
  --pizarra: #3f514b;
  --eucalipto: #879d95;
  --piedra: #d8d2c5;
  --arena: #c8b79b;
  --blanco: #fff;
  --error: #8a2d2d;
  --shadow: 0 5px 14px rgb(29 44 39 / 22%);
  --header-height: 115px;
  --gutter: clamp(24px, 5.55vw, 80px);
  --content-max: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--pizarra);
  background: var(--marfil);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--arena);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--marfil);
  background: var(--pizarra);
  transform: translateY(-150%);
}

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

.site-header {
  position: relative;
  z-index: 20;
  min-height: var(--header-height);
  color: var(--marfil);
  background: var(--eucalipto);
}

.site-header__inner {
  width: min(100%, var(--content-max));
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  flex: 0 1 399px;
}

.brand img {
  width: 399px;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4.2vw, 68px);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 20px;
  white-space: nowrap;
}

.desktop-nav > a:not(.button) {
  text-decoration: none;
}

.desktop-nav > a:not(.button):hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.button {
  display: inline-flex;
  min-height: 57px;
  padding: 12px 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pizarra);
  border-radius: 999px;
  color: var(--marfil);
  background: var(--pizarra);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover {
  background: #31413c;
}

.button--outline {
  border-color: var(--marfil);
  background: transparent;
}

.button--outline:hover {
  color: var(--pizarra);
  background: var(--marfil);
}

.button--small {
  min-height: 48px;
  padding-inline: 24px;
  font-size: 16px;
}

.button--square {
  border-radius: 8px;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.hero {
  max-width: var(--content-max);
  min-height: 899px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 58.68% 41.32%;
}

.hero__copy {
  padding: 145px 48px 96px var(--gutter);
  align-self: stretch;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--marfil);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.16;
}

h1 {
  max-width: 650px;
  margin-bottom: 46px;
  font-size: 48px;
  font-weight: 600;
}

h2 {
  font-size: clamp(38px, 3.35vw, 48px);
  font-weight: 600;
}

h3 {
  font-size: 24px;
  font-weight: 600;
}

.hero__lead {
  max-width: 620px;
  margin: 0 0 54px;
  font-size: 24px;
  line-height: 1.53;
}

.hero__media {
  min-width: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% center;
}

@media (min-width: 1441px) {
  .hero {
    max-width: none;
    grid-template-columns: calc((100vw - 1440px) / 2 + 845px) 1fr;
  }

  .hero__copy {
    padding-left: calc((100vw - 1440px) / 2 + 80px);
  }
}

.trust-strip {
  color: var(--pizarra);
  background: var(--piedra);
}

.trust-strip__inner {
  width: 100%;
  max-width: var(--content-max);
  min-height: 112px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
}

.trust-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.trust-item__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--arena);
}

.trust-item__icon img {
  width: 24px;
  height: 24px;
}

.trust-item p {
  margin: 0;
  text-align: left;
  line-height: 1.25;
}

.trust-item strong,
.trust-item span:not(.trust-item__icon) {
  display: block;
}

.trust-item strong {
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
}

.trust-item p > span {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 400;
}

.trust-strip__divider {
  width: 1px;
  height: 52px;
  background: rgb(63 81 75 / 22%);
}

.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 80px var(--gutter);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 62px;
}

.section-heading h2 {
  margin-bottom: 28px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.53;
}

.specialties {
  min-height: 970px;
}

.card-scroller {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.practice-card {
  min-height: 329px;
  padding: 28px 24px;
  border-radius: 10px;
  background: var(--piedra);
}

.practice-card h3 {
  margin-bottom: 20px;
}

.practice-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.about {
  color: var(--marfil);
  background: var(--eucalipto);
}

.about__inner {
  max-width: var(--content-max);
  min-height: 721px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 847px) minmax(0, 593px);
  align-items: stretch;
}

.about__copy {
  align-self: center;
  padding: 80px var(--gutter);
}

.about__copy h2 {
  max-width: 620px;
  margin-bottom: 42px;
}

.about__copy p:not(.eyebrow) {
  max-width: 700px;
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.53;
}

.about__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact {
  min-height: 1019px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 538px);
  gap: clamp(64px, 8vw, 130px);
}

.contact__intro h2 {
  max-width: 570px;
  margin-bottom: 34px;
}

.contact__intro > p:not(.eyebrow, .contact__phone-label, .contact__note) {
  max-width: 560px;
  font-size: 24px;
  line-height: 1.53;
}

.contact__phone-label {
  margin: 54px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 600;
}

.contact__phone {
  font-size: 48px;
  font-weight: 600;
  text-decoration: none;
}

.contact__note {
  max-width: 520px;
  margin-top: 28px;
  font-size: 20px;
}

.contact-form {
  margin-top: 32px;
  padding: 24px 20px 20px;
  align-self: start;
  border: 1px solid var(--pizarra);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form__heading {
  margin-bottom: 18px;
}

.contact-form__heading h3 {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 500;
}

.contact-form__heading p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 12px;
}

.field label,
.contact-preference legend {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--pizarra);
  border-radius: 8px;
  padding: 12px;
  color: var(--pizarra);
  background: #fff;
}

.field input {
  min-height: 48px;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field__error {
  display: block;
  min-height: 0;
  margin-top: 3px;
  color: var(--error);
  font-size: 13px;
}

.contact-preference {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.contact-preference label {
  display: inline-flex;
  margin-right: 24px;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.contact-preference input,
.privacy-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--pizarra);
}

.privacy-check {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.privacy-check input {
  flex: 0 0 18px;
  margin-top: 2px;
}

.privacy-check a {
  font-weight: 600;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 14px;
}

.form-status:empty {
  display: none;
}
.form-status[data-state="success"] {
  color: #315c45;
}

.form-status[data-state="error"] {
  color: #8a2f2f;
}

.contact-form button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-footer {
  min-height: 420px;
  padding: 78px var(--gutter) 26px;
  color: var(--marfil);
  background: var(--pizarra);
}

.site-footer__inner,
.site-footer__legal {
  max-width: calc(var(--content-max) - (2 * var(--gutter)));
  margin-inline: auto;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: 64px;
}

.site-footer__brand img {
  width: min(260px, 100%);
  height: auto;
  margin-bottom: 18px;
}

.site-footer__brand p {
  max-width: 450px;
  margin: 0 0 12px;
  font-size: 14px;
}

.site-footer nav,
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__heading {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer a {
  text-underline-offset: 4px;
}

.site-footer__legal {
  margin-top: 66px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid rgb(247 244 238 / 35%);
  font-size: 13px;
}

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cookie-notice {
  position: fixed;
  z-index: 50;
  right: 28px;
  bottom: 28px;
  width: min(480px, calc(100vw - 48px));
  padding: 28px 30px 30px;
  border: 1px solid var(--pizarra);
  border-radius: 8px;
  color: var(--pizarra);
  background: var(--marfil);
  box-shadow: var(--shadow);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice__header {
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px 1fr 44px;
  align-items: center;
  gap: 10px;
}

.cookie-notice__icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--marfil);
  background: var(--pizarra);
  font-weight: 600;
}

.cookie-notice h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

.cookie-notice__close {
  width: 44px;
  height: 44px;
  border: 0;
  color: var(--pizarra);
  background: transparent;
  font-size: 33px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.cookie-notice > p {
  margin: 22px 0;
  font-size: 16px;
}

.cookie-notice__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-notice__actions > a {
  text-underline-offset: 5px;
  white-space: nowrap;
}

.cookie-notice__actions .button {
  min-width: 146px;
  min-height: 52px;
  padding: 10px 22px;
}

@media (max-width: 1199px) {
  :root {
    --header-height: 104px;
    --gutter: 48px;
  }

  .desktop-nav {
    display: none;
  }

  .site-header__inner {
    padding-inline: var(--gutter);
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    border: 0;
    color: var(--marfil);
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    height: 1.5px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .mobile-nav {
    position: absolute;
    z-index: 21;
    top: 100%;
    right: 0;
    width: min(390px, 100vw);
    min-height: 256px;
    padding: 28px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    color: var(--marfil);
    background: var(--pizarra);
    box-shadow: var(--shadow);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto 536px;
  }

  .hero__copy {
    grid-row: 1;
    padding: 72px var(--gutter) 40px;
  }

  .hero__copy h1 {
    margin-bottom: 36px;
  }

  .hero__lead {
    margin-bottom: 36px;
  }

  .hero__media {
    width: 100%;
    height: 536px;
    margin: 0;
    grid-row: 2;
  }

  .hero__media img {
    object-position: center;
  }

  .trust-strip {
    min-height: 128px;
  }

  .trust-strip__inner {
    min-height: 128px;
    padding-inline: 32px;
  }

  .trust-item {
    gap: 10px;
  }

  .trust-item__icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .trust-item__icon img {
    width: 22px;
    height: 22px;
  }

  .trust-item strong {
    font-size: 14px;
  }

  .trust-item p > span {
    font-size: 12px;
  }

  .section {
    padding-block: 72px;
  }

  .card-scroller {
    grid-template-columns: repeat(2, 286px);
    overflow-x: auto;
    padding-bottom: 18px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--pizarra) transparent;
  }

  .practice-card {
    scroll-snap-align: start;
  }

  .about__inner {
    min-height: 708px;
    padding: 96px var(--gutter);
    display: block;
  }

  .about__copy {
    padding: 0;
  }

  .about__portrait {
    width: min(593px, 100%);
    height: auto;
    margin-top: 40px;
    border-radius: 8px;
  }

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

  .contact-form {
    width: min(538px, 100%);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .hero {
    grid-template-rows: max-content 536px;
  }

  .specialties {
    min-height: auto;
  }

  .about__inner {
    min-height: auto;
    padding-block: 72px;
  }

  .contact {
    min-height: auto;
    gap: 24px;
  }

  .contact__note {
    margin-bottom: 0;
  }

  .contact-form {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 60px;
    --gutter: 24px;
  }

  body {
    font-size: 16px;
  }

  .site-header__inner {
    gap: 16px;
  }

  .brand {
    flex-basis: 214px;
  }

  .brand img {
    width: 214px;
  }

  .hero {
    min-height: 802px;
    grid-template-rows: auto 303px;
  }

  .hero__copy {
    padding: 48px var(--gutter) 32px;
  }

  .eyebrow {
    margin-bottom: 13px;
    font-size: 10px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.13;
  }

  .hero__copy h1 {
    margin-bottom: 28px;
  }

  h2 {
    font-size: 38px;
  }

  .hero__lead {
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.52;
  }

  .button {
    min-height: 52px;
    padding-inline: 24px;
    font-size: 15px;
  }

  .hero__media {
    width: 100%;
    height: 303px;
  }

  .hero__media img {
    object-position: right center;
  }

  .trust-strip {
    min-height: 0;
  }

  .trust-strip__inner {
    min-height: 0;
    padding: 20px 24px;
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-item {
    min-height: 56px;
    justify-content: flex-start;
  }

  .trust-strip__divider {
    width: 100%;
    height: 1px;
  }

  .section {
    padding-block: 64px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading > p:last-child {
    font-size: 17px;
  }

  .card-scroller {
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
    grid-template-columns: repeat(4, 286px);
    gap: 16px;
  }

  .about__inner {
    min-height: auto;
    padding: 32px var(--gutter) 28px;
  }

  .about__copy h2 {
    margin-bottom: 20px;
    font-size: 28px;
    line-height: 1.15;
  }

  .about__copy p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.45;
  }

  .about__portrait {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    margin-top: 14px;
    object-fit: contain;
    object-position: center;
  }

  .contact {
    padding-bottom: 96px;
    gap: 50px;
  }

  .contact__note {
    margin-bottom: 0;
  }

  .contact__intro > p:not(.eyebrow, .contact__phone-label, .contact__note) {
    font-size: 17px;
  }

  .contact__phone {
    font-size: 26px;
  }

  .contact-form {
    margin-top: 0;
    padding: 28px 20px 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-footer {
    padding-top: 64px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .site-footer__brand img {
    width: 260px;
  }

  .site-footer__legal {
    margin-top: 52px;
    flex-direction: column;
    gap: 10px;
  }

  .cookie-notice {
    right: 50%;
    bottom: 18px;
    width: min(342px, calc(100vw - 32px));
    padding: 24px 24px 26px;
    transform: translateX(50%);
  }

  .cookie-notice__header {
    grid-template-columns: 28px minmax(0, 1fr) 44px;
    gap: 10px;
  }

  .cookie-notice h2 {
    font-size: 17px;
  }

  .cookie-notice > p {
    margin: 18px 0;
    font-size: 15px;
  }

  .cookie-notice__actions {
    gap: 16px;
  }

  .cookie-notice__actions > a {
    white-space: nowrap;
  }

  .cookie-notice__actions .button {
    min-width: 124px;
  }
}

@media (max-width: 374px) {
  .brand img {
    width: 194px;
  }

  .cookie-notice {
    padding-inline: 20px;
  }

  .cookie-notice__actions {
    align-items: stretch;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
