:root {
  --purple: #70005f;
  --purple-700: #57004c;
  --purple-900: #36002f;
  --plum: #8d2a79;
  --lavender: #f4ecf5;
  --lavender-2: #eee1f0;
  --ink: #1d1a22;
  --muted: #66606a;
  --line: #e7e0e7;
  --soft: #faf8fa;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(65, 8, 56, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family:
    "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--white);
  color: var(--purple);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.topbar {
  min-height: 38px;
  display: grid;
  align-items: center;
  color: white;
  background:
    radial-gradient(circle at 75% -50%, #a43c8f 0, transparent 40%),
    var(--purple-700);
  font-size: 13px;
}

.topbar-inner,
.topbar-links,
.topbar a {
  display: flex;
  align-items: center;
}

.topbar-inner {
  justify-content: space-between;
  gap: 24px;
}

.topbar-links {
  gap: 24px;
}

.topbar a {
  gap: 7px;
  opacity: 0.95;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(112, 0, 95, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  width: 245px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: 76px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  color: #28232a;
  font-size: 14px;
  font-weight: 650;
}

.main-nav > a:not(.nav-action) {
  position: relative;
  padding-block: 14px;
}

.main-nav > a:not(.nav-action)::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

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

.nav-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: white;
  border-radius: 10px;
  background: var(--purple);
  box-shadow: 0 8px 24px rgba(112, 0, 95, 0.2);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--purple);
  background: white;
}

.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: #f4eff4;
}

.hero-image,
.hero-wash {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-slide-0 {
  background-image: url("../images/medifast/hero-human-service.png");
}

.hero-slide-1 {
  background-image: url("../images/medifast/hero-cuidado-heridas.png");
}

.hero-slide-2 {
  background-image: url("../images/medifast/hero-capacitacion-medica.png");
}

.hero-image-active {
  animation: hero-image-reveal 1.45s cubic-bezier(0.22, 0.7, 0.25, 1) both;
}

.hero-image-previous {
  z-index: 0;
  pointer-events: none;
  animation: hero-image-depart 1.45s cubic-bezier(0.22, 0.7, 0.25, 1) both;
  will-change: opacity, transform;
}

.hero-wash {
  background:
    linear-gradient(
      90deg,
      rgba(252, 250, 252, 0.99) 0%,
      rgba(249, 245, 249, 0.96) 31%,
      rgba(249, 245, 249, 0.73) 47%,
      rgba(249, 245, 249, 0) 66%
    ),
    linear-gradient(0deg, rgba(54, 0, 47, 0.07), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 700px;
  display: flex;
  align-items: center;
  padding-block: 70px 90px;
}

.hero-copy {
  width: min(610px, 56%);
}

.hero-copy-enter {
  animation: hero-copy-enter 0.72s 0.28s ease both;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--purple-900);
  font-size: clamp(50px, 5.5vw, 79px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 span {
  display: block;
  color: var(--purple);
}

.hero h1 .hero-title {
  display: inline;
  color: var(--purple-900);
}

.hero-lead {
  max-width: 570px;
  margin: 27px 0 0;
  color: #3f3941;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 750;
  line-height: 1.1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

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

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--purple-700));
  box-shadow: 0 14px 30px rgba(112, 0, 95, 0.23);
}

.button-primary:hover {
  box-shadow: 0 18px 36px rgba(112, 0, 95, 0.3);
}

.button-secondary {
  color: var(--purple);
  border-color: rgba(112, 0, 95, 0.72);
  background: rgba(255, 255, 255, 0.78);
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 34px;
}

.hero-trust > div {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(112, 0, 95, 0.07);
  border-radius: 13px;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 12px 30px rgba(40, 14, 37, 0.08);
}

.hero-trust span {
  color: #2c2730;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
}

.hero-pagination {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 23px;
}

.hero-pagination button {
  position: relative;
  width: 48px;
  height: 30px;
  padding: 0;
  color: #817682;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-pagination button::before {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: rgba(112, 0, 95, 0.16);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-pagination button:hover::before,
.hero-pagination button:focus-visible::before,
.hero-pagination button.is-active::before {
  background: var(--purple);
  transform: scaleY(1.5);
}

.hero-pagination button span {
  display: block;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@keyframes hero-image-reveal {
  from {
    opacity: 0;
    transform: translate3d(1.5%, 0, 0) scale(1.045);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-image-depart {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(-1.2%, 0, 0) scale(1.025);
  }
}

@keyframes hero-copy-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding-block: 110px;
}

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

.section-heading h2,
.about-copy h2,
.institutional h2,
.support-grid h2,
.careers-intro h2,
.contact-copy h2 {
  margin: 0;
  color: var(--purple-900);
  font-size: clamp(36px, 4.1vw, 56px);
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.split-heading {
  display: grid;
  grid-template-columns: 1.05fr 0.72fr;
  align-items: end;
  gap: 90px;
}

.split-heading > p,
.section-heading.centered > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.specialties {
  background:
    radial-gradient(circle at 8% 5%, rgba(190, 148, 190, 0.15), transparent 24%),
    var(--white);
}

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

.specialty-card {
  position: relative;
  min-height: 330px;
  padding: 30px 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.specialty-card:hover {
  transform: translateY(-6px);
  border-color: rgba(112, 0, 95, 0.25);
  box-shadow: var(--shadow);
}

.card-number {
  position: absolute;
  top: 25px;
  right: 25px;
  color: #d9c8da;
  font-size: 14px;
  font-weight: 800;
}

.icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--purple);
  border-radius: 14px;
  background: var(--lavender);
}

.specialty-card h3 {
  min-height: 58px;
  margin: 25px 0 12px;
  color: var(--purple-900);
  font-size: 22px;
  line-height: 1.25;
}

.specialty-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.specialty-card a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 800;
}

.about-section {
  background: var(--soft);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(55px, 7vw, 105px);
}

.about-visual {
  position: relative;
}

.about-visual::before {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 55%;
  height: 55%;
  content: "";
  border-radius: 24px;
  background: var(--lavender-2);
}

.about-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 610px;
  object-fit: cover;
  object-position: center 23%;
  border-radius: 26px 72px 26px 26px;
  box-shadow: var(--shadow);
}

.experience-card {
  position: absolute;
  z-index: 2;
  right: -36px;
  bottom: 34px;
  width: 190px;
  padding: 24px;
  color: white;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--purple), var(--purple-900));
  box-shadow: 0 20px 50px rgba(57, 0, 49, 0.28);
}

.experience-card strong {
  display: block;
  font-size: 45px;
  line-height: 1;
}

.experience-card span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.about-copy .lead,
.careers-intro .lead {
  margin: 27px 0 16px;
  color: #37313a;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.65;
}

.about-copy > p:not(.eyebrow):not(.lead),
.careers-intro > p:not(.eyebrow):not(.lead),
.contact-copy > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.commitment-list {
  display: grid;
  gap: 13px;
  margin-top: 27px;
}

.commitment-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.commitment-list svg {
  min-width: 29px;
  height: 29px;
  padding: 5px;
  color: white;
  border-radius: 50%;
  background: var(--purple);
}

.institutional {
  padding-block: 82px;
  color: white;
  background:
    radial-gradient(circle at 85% -20%, rgba(197, 120, 187, 0.28), transparent 45%),
    linear-gradient(135deg, var(--purple-900), var(--purple));
}

.institutional-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 80px;
}

.institutional h2,
.support-grid h2 {
  color: white;
  font-size: clamp(34px, 3.7vw, 49px);
}

.eyebrow-light {
  color: #e7c9e4;
}

.institutional-points {
  display: grid;
  gap: 14px;
}

.institutional-points > div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 15px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.institutional-points svg {
  color: #e8c6e2;
}

.institutional-points span {
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.9;
}

.institutional-points strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.brands-section {
  background: white;
}

.centered {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.centered .eyebrow {
  justify-content: center;
}

.centered > p:last-child {
  max-width: 650px;
  margin: 21px auto 0;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.brand-card {
  position: relative;
  min-height: 250px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(40, 12, 37, 0.1);
}

.brand-image {
  grid-column: 1 / -1;
  height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #fbfafb;
}

.brand-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-image img.brand-contain {
  padding: 14px;
  object-fit: contain;
}

.brand-meta span,
.brand-meta strong {
  display: block;
}

.brand-meta span {
  margin-bottom: 4px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-meta span.brand-emphasis {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(101, 176, 65, 0.14);
  color: #3f7f24;
  letter-spacing: 0.045em;
}

.brand-meta strong {
  font-size: 16px;
  line-height: 1.25;
}

.brand-card > svg {
  color: var(--purple);
}

.support-strip {
  padding-block: 55px;
  color: white;
  background:
    linear-gradient(rgba(73, 0, 62, 0.94), rgba(73, 0, 62, 0.94)),
    url("../images/medifast/about-team.jpg") center 36% / cover;
}

.support-grid {
  display: grid;
  grid-template-columns: 68px 1.05fr 0.75fr auto;
  align-items: center;
  gap: 30px;
}

.support-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--purple);
  border-radius: 18px;
  background: white;
}

.support-grid h2 {
  font-size: clamp(29px, 3vw, 40px);
}

.support-grid p:not(.eyebrow) {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.82;
}

.button-light {
  color: var(--purple);
  background: white;
}

.careers-section {
  background:
    radial-gradient(circle at 6% 16%, rgba(158, 70, 143, 0.1), transparent 28%),
    var(--soft);
}

.careers-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 70px;
}

.careers-intro {
  position: sticky;
  top: 145px;
}

.career-note {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  padding: 19px;
  color: var(--purple-900);
  border: 1px solid #e4d2e3;
  border-radius: 16px;
  background: white;
}

.career-note svg {
  flex: 0 0 auto;
  color: var(--purple);
}

.career-note strong {
  display: block;
  margin-bottom: 5px;
}

.career-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.career-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.career-values span {
  padding: 8px 11px;
  color: var(--purple);
  border: 1px solid #dfcedf;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.career-form {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.form-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.form-heading span {
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-heading h3 {
  margin: 4px 0 0;
  color: var(--purple-900);
  font-size: 25px;
}

fieldset {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

legend {
  width: 100%;
  margin-bottom: 17px;
  color: var(--purple-900);
  font-size: 16px;
  font-weight: 800;
}

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

.form-grid-spaced {
  margin-top: 17px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span {
  color: #403942;
  font-size: 12px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  border: 1px solid #dad1db;
  border-radius: 10px;
  outline: none;
  background: white;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(112, 0, 95, 0.09);
}

.skill-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.skill-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fdfcfd;
  font-size: 12px;
  font-weight: 650;
}

.skill-options input,
.consent input {
  accent-color: var(--purple);
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.submit-button {
  width: 100%;
  margin-top: 22px;
  border: 0;
}

.success-message {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 13px 15px;
  color: #245f3a;
  border: 1px solid #b8dcc4;
  border-radius: 10px;
  background: #effaf2;
  font-size: 13px;
  font-weight: 700;
}

.form-message {
  display: none;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.form-message.is-visible {
  display: flex;
}

.form-message.is-success {
  color: #245f3a;
  border-color: #b8dcc4;
  background: #effaf2;
}

.form-message.is-error {
  color: #7b1e2c;
  border-color: #ebbdc5;
  background: #fff2f4;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-section {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 80px;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 550px;
  margin-top: 22px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--soft);
  box-shadow: var(--shadow);
  font-style: normal;
}

.contact-card > div {
  min-height: 175px;
  display: flex;
  gap: 14px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-card > div:nth-child(2n) {
  border-right: 0;
}

.contact-card > div:nth-child(n + 3) {
  border-bottom: 0;
}

.contact-card svg {
  flex: 0 0 auto;
  color: var(--purple);
}

.contact-card span {
  color: #4b454d;
  font-size: 13px;
  line-height: 1.65;
}

.contact-card small {
  display: block;
  margin-bottom: 7px;
  color: var(--purple-900);
  font-size: 13px;
  font-weight: 800;
}

.contact-card a {
  display: block;
  color: var(--purple);
  font-weight: 700;
}

footer {
  padding-top: 70px;
  color: #e9dfe8;
  background: #260021;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.9fr 1fr;
  gap: 55px;
  padding-bottom: 55px;
}

.footer-brand img {
  width: 245px;
  height: 88px;
  padding: 8px;
  object-fit: contain;
  border-radius: 10px;
  background: white;
}

.footer-brand p {
  max-width: 310px;
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.75;
}

.footer-main > div:not(.footer-brand) {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-main strong {
  margin-bottom: 7px;
  color: white;
  font-size: 14px;
}

.footer-main a {
  font-size: 13px;
  opacity: 0.74;
}

.footer-main a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  opacity: 0.68;
}

@media (max-width: 1060px) {
  .brand {
    width: 210px;
  }

  .main-nav {
    gap: 16px;
    font-size: 13px;
  }

  .nav-action {
    padding-inline: 12px;
  }

  .hero-copy {
    width: 61%;
  }

  .specialty-grid,
  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-grid {
    grid-template-columns: 64px 1fr auto;
  }

  .support-grid > p {
    grid-column: 2 / 3;
  }

  .support-grid .button {
    grid-row: 1 / 3;
    grid-column: 3;
  }
}

@media (max-width: 860px) {
  .topbar-inner > span {
    display: none;
  }

  .topbar-links {
    width: 100%;
    justify-content: center;
  }

  .nav-shell {
    min-height: 82px;
  }

  .brand {
    width: 205px;
  }

  .brand img {
    height: 62px;
  }

  .menu-button {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 82px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 16px 24px 22px;
    border-top: 1px solid var(--line);
    background: white;
    box-shadow: 0 20px 45px rgba(45, 10, 40, 0.12);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav > a:not(.nav-action) {
    padding: 11px 3px;
  }

  .nav-action {
    justify-content: center;
  }

  .hero,
  .hero-content {
    min-height: 790px;
  }

  .hero-image {
    background-position: 63% center;
  }

  .hero-wash {
    background:
      linear-gradient(
        90deg,
        rgba(252, 250, 252, 0.98) 0%,
        rgba(249, 245, 249, 0.93) 53%,
        rgba(249, 245, 249, 0.38) 100%
      ),
      linear-gradient(0deg, rgba(54, 0, 47, 0.12), transparent 40%);
  }

  .hero-copy {
    width: 75%;
  }

  .hero h1 {
    font-size: clamp(49px, 8vw, 68px);
  }

  .split-heading,
  .about-grid,
  .institutional-grid,
  .careers-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split-heading,
  .about-grid,
  .institutional-grid,
  .careers-grid,
  .contact-grid {
    gap: 45px;
  }

  .about-grid {
    width: min(680px, calc(100% - 48px));
  }

  .about-visual {
    width: calc(100% - 28px);
  }

  .careers-intro {
    position: static;
  }

  .contact-grid {
    width: min(720px, calc(100% - 48px));
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 30px, 1180px);
  }

  .topbar {
    min-height: 34px;
  }

  .topbar-links {
    gap: 11px;
    font-size: 11px;
  }

  .topbar-links a:nth-child(2) {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 775px;
  }

  .hero-content {
    align-items: flex-end;
    padding-block: 250px 45px;
  }

  .hero-image {
    background-position: 66% top;
    background-size: auto 52%;
  }

  .hero-wash {
    background:
      linear-gradient(
        0deg,
        rgba(251, 248, 251, 1) 0%,
        rgba(251, 248, 251, 1) 56%,
        rgba(251, 248, 251, 0.2) 85%
      ),
      linear-gradient(90deg, rgba(112, 0, 95, 0.08), transparent);
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-lead {
    margin-top: 19px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-trust {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 23px;
  }

  .hero-pagination {
    margin-top: 18px;
  }

  .hero-trust > div {
    min-height: 54px;
  }

  .section {
    padding-block: 78px;
  }

  .section-heading h2,
  .about-copy h2,
  .institutional h2,
  .careers-intro h2,
  .contact-copy h2 {
    font-size: 36px;
  }

  .specialty-grid,
  .brand-grid,
  .form-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .specialty-card {
    min-height: auto;
  }

  .about-grid,
  .contact-grid {
    width: min(100% - 30px, 720px);
  }

  .about-visual {
    width: 100%;
  }

  .about-visual::before {
    right: -10px;
  }

  .about-visual img {
    height: 480px;
  }

  .experience-card {
    right: -8px;
    bottom: 18px;
  }

  .institutional {
    padding-block: 70px;
  }

  /* Marcas: mayor presencia visual en teléfonos */
  .brand-card {
    min-height: 290px;
    padding: 14px;
  }

  .brand-image {
    width: 100%;
    height: 200px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .brand-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .brand-image img.brand-contain {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 5px;
    object-fit: contain;
  }

  .support-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .support-grid > p,
  .support-grid .button {
    grid-row: auto;
    grid-column: auto;
  }

  .support-grid .button {
    width: 100%;
  }

  .career-form {
    padding: 24px 18px;
  }

  .skill-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card > div,
  .contact-card > div:nth-child(2n),
  .contact-card > div:nth-child(n + 3) {
    min-height: 145px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-card > div:last-child {
    border-bottom: 0;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: grid;
  }
}

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

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