:root {
  --blue: #25518e;
  --blue-dark: #173b6c;
  --blue-deep: #0d2749;
  --blue-soft: #eaf1f8;
  --wine: #a50755;
  --wine-dark: #7f0340;
  --magenta: #cf1671;
  --green: #25d366;
  --white: #ffffff;
  --surface: #f5f8fc;
  --surface-blue: #eef4fa;
  --text: #17243a;
  --text-soft: #5b687a;
  --border: #dce4ee;
  --shadow-sm: 0 14px 35px rgba(13, 39, 73, 0.08);
  --shadow-lg: 0 30px 70px rgba(13, 39, 73, 0.16);
  --container: 1180px;
  --header-height: 82px;
}

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

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

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

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

h1,
h2,
h3 {
  line-height: 1.13;
  text-transform: uppercase;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: 110px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  color: var(--white);
  background: var(--blue-deep);
  border-radius: 7px;
  font-weight: 700;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 8px 28px rgba(6, 19, 38, 0.07);
}

.header-content {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  width: 228px;
  height: 72px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo {
  width: 228px;
  height: 72px;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 27px;
}

.nav-link {
  position: relative;
  padding-block: 27px;
  color: #34435a;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  background: var(--wine);
  border-radius: 10px;
  content: "";
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--wine);
}

.nav-link.active::after,
.nav-link:not(.nav-contact):hover::after {
  transform: scaleX(1);
}

.nav-contact {
  padding: 11px 18px;
  color: var(--white);
  background: var(--blue-dark);
  border-radius: 9px 3px 9px 3px;
  box-shadow: 0 8px 22px rgba(23, 59, 108, 0.18);
}

.nav-contact:hover {
  color: var(--white);
  background: var(--wine);
}

.menu-button {
  display: none;
  width: 45px;
  height: 45px;
  padding: 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue-dark);
  border-radius: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  color: var(--wine);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 28px;
  height: 3px;
  background: currentColor;
  border-radius: 20px;
}

.eyebrow-light {
  color: #f08aba;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(165, 7, 85, 0.055), transparent 32%),
    linear-gradient(112deg, #fbfcfe 0%, #eff4f9 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 81, 142, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 81, 142, 0.03) 1px, transparent 1px);
  background-size: 58px 58px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 720px;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 64px;
  padding-block: 74px;
}

.hero-copy {
  max-width: 690px;
  margin-inline: auto;
  text-align: center;
}

.hero-copy .eyebrow {
  justify-content: flex-start;
  text-align: left;
}

.hero h1 {
  max-width: 690px;
  margin: 0 auto 25px;
  color: var(--blue-deep);
  font-size: clamp(2.65rem, 4.6vw, 4.05rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.hero h1 span {
  color: var(--wine);
}

.hero-description {
  max-width: 610px;
  margin: 0 auto 31px;
  color: var(--text-soft);
  font-size: clamp(1.04rem, 1.7vw, 1.2rem);
  text-align: center;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 10px 3px 10px 3px;
  font-size: 0.91rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

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

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--wine), var(--magenta));
  box-shadow: 0 13px 28px rgba(165, 7, 85, 0.22);
}

.button-primary:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
  box-shadow: 0 16px 32px rgba(165, 7, 85, 0.28);
}

.button-secondary {
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(37, 81, 142, 0.22);
}

.button-secondary:hover {
  background: var(--white);
  border-color: var(--blue);
}

.button-white {
  color: var(--blue-deep);
  background: var(--white);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.16);
}

.button-white:hover {
  color: var(--wine);
  background: #fff8fc;
}

.hero-visual {
  position: relative;
  display: flex;
  min-height: 500px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 17px;
  padding: 31px;
  background: #e8eff6;
  border: 1px solid #d3deea;
  border-radius: 24px 7px 24px 7px;
  box-shadow: 0 26px 60px rgba(13, 39, 73, 0.13);
}

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

.case-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  padding: 31px;
  color: var(--white);
  background: var(--blue-deep);
  border: 1px solid #31577f;
  border-radius: 16px 4px 16px 4px;
  box-shadow: 0 18px 38px rgba(13, 39, 73, 0.2);
}

.case-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.88rem;
  font-weight: 800;
}

.case-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--wine);
  border-radius: 8px;
}

.case-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.case-label {
  margin: 21px 0 17px;
  color: #b7c7db;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

.case-step {
  display: grid;
  align-items: center;
  grid-template-columns: 31px 1fr;
  gap: 12px;
  padding-block: 10px;
  text-align: left;
}

.case-step > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--white);
  background: var(--wine);
  border: 1px solid var(--wine);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.case-step:hover > span {
  color: var(--wine);
  background: var(--white);
  border-color: var(--white);
}

.case-step strong,
.case-step small {
  display: block;
}

.case-step strong {
  font-size: 0.84rem;
}

.case-step small {
  margin-top: 1px;
  color: #b7c7db;
  font-size: 0.72rem;
}

.hero-trust {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  max-width: 420px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trust-metric {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 15px;
  background: var(--white);
  border: 1px solid #d3deea;
  border-radius: 9px 3px 9px 3px;
  box-shadow: 0 10px 24px rgba(13, 39, 73, 0.08);
  text-align: center;
}

.trust-metric strong {
  color: var(--wine);
  font-size: 1.45rem;
  line-height: 1;
}

.trust-metric span {
  max-width: 105px;
  color: #536378;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.28;
}

.section-heading {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.54fr);
  gap: 70px;
  margin-bottom: 51px;
}

.section-heading h2,
.about-heading h2,
.faq-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--blue-deep);
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -0.035em;
}

.section-heading > p,
.faq-heading > p {
  margin-bottom: 3px;
  color: var(--text-soft);
}

.services {
  background: var(--white);
}

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

.service-card {
  position: relative;
  display: flex;
  min-height: 350px;
  align-items: flex-start;
  flex-direction: column;
  padding: 34px;
  overflow: hidden;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px 6px 22px 6px;
  box-shadow: 0 10px 28px rgba(13, 39, 73, 0.035);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover,
.service-card:focus-visible {
  color: var(--white);
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 22px 48px rgba(13, 39, 73, 0.2);
  transform: translateY(-5px);
}

.service-number {
  position: absolute;
  top: 22px;
  right: 27px;
  color: #e4eaf1;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  transition: color 0.25s ease;
}

.service-icon {
  display: grid;
  width: 57px;
  height: 57px;
  margin-bottom: 28px;
  place-items: center;
  color: var(--wine);
  background: #faedf4;
  border-radius: 17px 5px 17px 5px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.service-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.service-card h3 {
  max-width: 420px;
  margin-bottom: 14px;
  color: var(--blue-deep);
  font-size: 1.43rem;
  transition: color 0.25s ease;
}

.service-card p {
  max-width: 490px;
  margin-bottom: 27px;
  color: var(--text-soft);
  transition: color 0.25s ease;
}

.service-card-cta,
.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--wine);
  font-size: 0.87rem;
  font-weight: 800;
}

.service-card-cta span,
.text-cta span {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.service-card:hover .service-card-cta span,
.service-card:focus-visible .service-card-cta span,
.text-cta:hover span {
  transform: translateX(4px);
}

.service-card:hover .service-icon,
.service-card:focus-visible .service-icon {
  color: var(--white);
  background: var(--wine);
}

.service-card:hover .service-number,
.service-card:focus-visible .service-number {
  color: rgba(255, 255, 255, 0.12);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-card-cta,
.service-card:focus-visible h3,
.service-card:focus-visible p,
.service-card:focus-visible .service-card-cta {
  color: var(--white);
}

.services-cta {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: 44px;
  margin-top: 28px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px 4px 15px 4px;
}

.services-cta-copy strong,
.services-cta-copy > span {
  display: block;
}

.services-cta-copy strong {
  margin-bottom: 8px;
  color: var(--blue-deep);
  font-size: 1.2rem;
  line-height: 1.3;
}

.services-cta-copy > span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.case-form {
  min-width: 0;
}

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

.case-form-field {
  display: grid;
  gap: 7px;
}

.case-form-field-full {
  grid-column: 1 / -1;
}

.case-form-field > span {
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.case-form-field input,
.case-form-field textarea {
  width: 100%;
  color: var(--text);
  background: var(--white);
  border: 1px solid #cbd7e4;
  border-radius: 10px 3px 10px 3px;
  outline: none;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.case-form-field input {
  min-height: 49px;
  padding: 11px 14px;
}

.case-form-field textarea {
  min-height: 135px;
  padding: 12px 14px;
  resize: vertical;
}

.case-form-field input::placeholder,
.case-form-field textarea::placeholder {
  color: #8995a5;
}

.case-form-field input:focus,
.case-form-field textarea:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(165, 7, 85, 0.11);
}

.case-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 20px;
}

.case-form-actions p {
  max-width: 330px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.case-form .button {
  flex: 0 0 auto;
  cursor: pointer;
}

.process-section {
  position: relative;
  padding-block: 91px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--blue-deep), #183f72);
}

.process-section::after {
  position: absolute;
  top: -140px;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 65px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  content: "";
}

.process-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: 80px;
}

.process-content h2 {
  max-width: 420px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

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

.process-list li {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 22px;
  padding: 23px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.process-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.process-list li > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #ffc1df;
  background: rgba(207, 22, 113, 0.14);
  border: 1px solid rgba(240, 138, 186, 0.25);
  border-radius: 14px 4px 14px 4px;
  font-size: 0.73rem;
  font-weight: 900;
}

.process-list h3 {
  margin-bottom: 5px;
  font-size: 1.08rem;
}

.process-list p {
  margin: 0;
  color: #b9c8dc;
  font-size: 0.89rem;
}

.about {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(238, 244, 250, 0.72), transparent 45%),
    var(--white);
}

.about-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 54px;
}

.about-heading {
  max-width: 100%;
  margin: 0 0 52px;
  text-align: left;
}

.about-eyebrow {
  justify-content: flex-start;
  margin-bottom: 18px;
  text-align: left;
}

.about-heading h2 {
  margin-bottom: 20px;
}

.about-heading .about-lead {
  max-width: 760px;
  margin: 0;
  color: #4a5a70;
  font-size: 1.08rem;
  font-weight: 650;
}

.about-visual {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 17px;
  background: var(--surface-blue);
  border: 1px solid #d7e2ed;
  border-radius: 28px 7px 28px 7px;
}

.about-photo {
  position: relative;
  height: 442px;
  margin: 0;
  overflow: hidden;
  background: var(--blue-deep);
  border-radius: 19px 5px 19px 5px;
  box-shadow: 0 20px 45px rgba(13, 39, 73, 0.14);
}

.about-photo::after {
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(transparent, rgba(8, 26, 51, 0.84));
  content: "";
}

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

.about-photo figcaption {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 24px;
  left: 26px;
  color: var(--white);
}

.about-photo figcaption strong,
.about-photo figcaption span {
  display: block;
}

.about-photo figcaption strong {
  font-size: 1.05rem;
}

.about-photo figcaption span {
  color: #d3dfec;
  font-size: 0.79rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.experience-card,
.people-card {
  min-height: 100px;
  background: var(--white);
  border: 1px solid #d8e2ed;
  border-radius: 14px 4px 14px 4px;
  box-shadow: 0 9px 24px rgba(13, 39, 73, 0.06);
}

.experience-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
}

.experience-number {
  color: var(--wine);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.experience-card > span:last-child {
  color: #526175;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.28;
}

.people-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
}

.people-card strong {
  display: flex;
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-size: 2rem;
  line-height: 1;
}

.people-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

.about-copy {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  justify-content: center;
}

.about-story {
  display: grid;
  gap: 13px;
}

.about-story article {
  padding: 21px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px 4px 16px 4px;
  box-shadow: 0 9px 25px rgba(13, 39, 73, 0.04);
}

.about-story article > span,
.about-values-title {
  display: block;
  color: var(--wine);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.about-story article > span {
  margin-bottom: 9px;
}

.about-story p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.about-values-title {
  margin: 24px 0 11px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 9px;
  margin: 0 0 23px;
}

.about-values > div {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 14px;
  color: #34465d;
  background: var(--surface);
  border: 1px solid #e3e9f0;
  border-radius: 10px 3px 10px 3px;
  font-size: 0.83rem;
  font-weight: 750;
}

.about-values strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-deep);
  font-size: 0.78rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.about-values p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.48;
}

.about-values svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 4px;
  color: var(--wine);
  background: #faedf4;
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.team {
  background: var(--surface);
}

.team-heading {
  margin-bottom: 42px;
}

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

.team-card {
  display: grid;
  align-items: center;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 19px 5px 19px 5px;
  box-shadow: 0 10px 30px rgba(13, 39, 73, 0.045);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.team-card:hover,
.team-card:focus-visible {
  border-color: rgba(165, 7, 85, 0.3);
  box-shadow: 0 18px 40px rgba(13, 39, 73, 0.1);
  transform: translateY(-4px);
}

.team-avatar {
  display: grid;
  width: 96px;
  height: 106px;
  place-items: center;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(207, 22, 113, 0.8), rgba(165, 7, 85, 0.97)),
    var(--wine);
  overflow: hidden;
  border-radius: 22px 6px 22px 6px;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.team-photo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 16%;
}

.team-photo-fredy {
  object-position: center 17%;
}

.team-photo-luis {
  object-position: center 14%;
}

.team-card > div:last-child > span:first-child {
  display: block;
  margin-bottom: 5px;
  color: var(--wine);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.team-card h3 {
  margin-bottom: 8px;
  color: var(--blue-deep);
  font-size: 1.32rem;
}

.team-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.team-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  color: var(--wine);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: none;
}

.team-card-cta span {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.team-card:hover .team-card-cta span,
.team-card:focus-visible .team-card-cta span {
  transform: translateX(4px);
}

.faq {
  background: var(--white);
}

.faq-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 90px;
}

.faq-heading {
  position: sticky;
  top: calc(var(--header-height) + 30px);
}

.faq-heading h2 {
  margin-bottom: 20px;
}

.faq-heading .text-cta {
  margin-top: 17px;
}

.faq-list {
  display: grid;
  gap: 13px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px 4px 14px 4px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-list details[open] {
  background: var(--white);
  border-color: rgba(165, 7, 85, 0.28);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  position: relative;
  padding: 21px 56px 21px 23px;
  color: var(--blue-deep);
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--wine);
  background: #faedf4;
  border-radius: 50%;
  content: "+";
  font-size: 1.15rem;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: -4px 23px 22px;
  padding-top: 17px;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  font-size: 0.89rem;
}

.contact {
  padding-top: 40px;
  background: var(--white);
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(380px, 1.04fr);
  gap: 60px 80px;
  padding: 65px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(130deg, var(--blue-deep), #1e5087);
  border-radius: 30px 8px 30px 8px;
  box-shadow: 0 35px 70px rgba(13, 39, 73, 0.2);
}

.contact-panel::after {
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 60px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  content: "";
}

.contact-copy,
.contact-details,
.social-block {
  position: relative;
  z-index: 2;
}

.contact-copy h2 {
  max-width: 520px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.035em;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 500px;
  margin-bottom: 28px;
  color: #c3d0df;
}

.contact-details {
  display: grid;
  align-content: center;
  gap: 14px;
  margin: 0;
  font-style: normal;
}

.contact-item {
  display: grid;
  align-items: center;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 15px;
  padding: 17px 19px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px 4px 14px 4px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(4px);
}

.contact-icon {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--magenta), var(--wine));
  border-radius: 14px 4px 14px 4px;
}

.contact-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.contact-item small,
.contact-item strong {
  display: block;
}

.contact-item small {
  margin-bottom: 2px;
  color: #b9c8dc;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-item strong {
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.social-block {
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 24px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.social-block > span {
  color: #b9c8dc;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px 3px 8px 3px;
  font-size: 0.76rem;
  font-weight: 750;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.social-links svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.social-links .social-icon-dot,
.social-links a:last-child svg path {
  fill: currentColor;
  stroke: none;
}

.social-links a:hover {
  background: var(--wine);
  border-color: var(--wine);
}

.site-footer {
  position: relative;
  margin-top: 110px;
  overflow: hidden;
  color: var(--white);
  background: #081b33;
  border-top: 5px solid var(--wine);
}

.footer-content {
  display: grid;
  align-items: stretch;
  grid-template-columns:
    minmax(270px, 1.08fr) minmax(170px, 0.62fr) minmax(275px, 1fr)
    minmax(180px, 0.68fr);
  gap: 28px;
  padding-block: 64px 55px;
}

.footer-brand {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 22px 45px 22px 0;
  border-right: 1px solid #24415f;
}

.brand-footer {
  width: 255px;
  height: 82px;
  justify-content: flex-start;
  background: transparent;
  border-radius: 0;
}

.brand-footer .brand-logo {
  width: 255px;
  height: 82px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 390px;
  margin: 20px 0 0;
  color: #bac7d6;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-menu,
.footer-contact,
.footer-social {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 27px;
  background: #102d4e;
  border: 1px solid #23486f;
  border-radius: 18px 5px 18px 5px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.footer-menu > span,
.footer-contact > span,
.footer-social > span {
  width: 100%;
  margin-bottom: 13px;
  padding-bottom: 13px;
  color: var(--white);
  border-bottom: 2px solid var(--wine);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-menu a {
  width: 100%;
  padding-block: 9px;
  color: #c2cedb;
  border-bottom: 1px solid #284766;
  font-size: 0.82rem;
  font-weight: 650;
  overflow-wrap: anywhere;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-menu a:last-child {
  border-bottom: 0;
}

.footer-contact {
  gap: 10px;
}

.footer-contact > span {
  margin-bottom: 4px;
}

.footer-contact a {
  width: 100%;
  padding: 12px 14px;
  color: #c7d3e0;
  background: #09223e;
  border: 1px solid #284c72;
  border-radius: 10px 3px 10px 3px;
  font-size: 0.8rem;
  font-weight: 650;
  overflow-wrap: anywhere;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.footer-menu a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-contact a:hover {
  color: var(--white);
  background: #15395e;
  border-color: #39658f;
  transform: translateY(-2px);
}

.footer-social-links {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
}

.footer-social-links a {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #c7d3e0;
  background: #09223e;
  border: 1px solid #284c72;
  border-radius: 10px 3px 10px 3px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.footer-social-links img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.footer-social-links a:hover {
  color: var(--white);
  background: var(--wine);
  border-color: var(--wine);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 23px;
  color: #879aae;
  border-top: 1px solid #24415f;
  font-size: 0.72rem;
}

.whatsapp-button {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 61px;
  height: 61px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(16, 44, 82, 0.25), 0 6px 18px rgba(37, 211, 102, 0.32);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-button::before {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(37, 211, 102, 0.6);
  border-radius: 50%;
  content: "";
  animation: whatsapp-pulse 2.4s infinite;
}

.whatsapp-button:hover {
  background: #1fbd5a;
  box-shadow: 0 14px 32px rgba(16, 44, 82, 0.28), 0 8px 22px rgba(37, 211, 102, 0.38);
  transform: translateY(-4px);
}

.whatsapp-button svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.whatsapp-button svg path:last-child {
  fill: currentColor;
  stroke: none;
}

/* Páginas internas de servicios */
.service-detail-main {
  background: var(--white);
}

.service-detail-hero {
  position: relative;
  padding-block: 92px 84px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(165, 7, 85, 0.055), transparent 31%),
    linear-gradient(115deg, #fbfcfe 0%, #edf3f8 100%);
}

.service-detail-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 81, 142, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 81, 142, 0.03) 1px, transparent 1px);
  background-size: 58px 58px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.service-detail-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  color: #6a788a;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

.breadcrumb a {
  color: var(--wine);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.service-detail-heading {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.detail-service-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  place-items: center;
  color: var(--white);
  background: var(--wine);
  border-radius: 18px 5px 18px 5px;
  box-shadow: 0 14px 30px rgba(165, 7, 85, 0.2);
}

.detail-service-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.service-detail-heading h1 {
  margin-bottom: 22px;
  color: var(--blue-deep);
  font-size: clamp(2.65rem, 5.7vw, 4.8rem);
  letter-spacing: -0.045em;
}

.service-detail-heading > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto 30px;
  color: var(--text-soft);
  font-size: clamp(1.03rem, 1.7vw, 1.18rem);
  text-align: center;
}

.service-detail-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 13px;
}

.service-assurance {
  display: grid;
  max-width: 900px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 58px auto 0;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px 4px 14px 4px;
  box-shadow: var(--shadow-sm);
}

.service-assurance div {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 21px;
  background: var(--white);
  text-align: center;
}

.service-assurance strong {
  color: var(--wine);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-assurance span {
  max-width: 220px;
  color: #42536a;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
}

.detail-section {
  padding-block: 96px;
}

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

.detail-heading {
  max-width: 780px;
  margin: 0 auto 45px;
  text-align: center;
}

.detail-heading h2 {
  margin-bottom: 17px;
  color: var(--blue-deep);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

.detail-heading p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-soft);
  text-align: center;
}

.detail-intro {
  display: grid;
  max-width: 980px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-inline: auto;
}

.detail-intro article,
.detail-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 17px 5px 17px 5px;
  box-shadow: 0 10px 28px rgba(13, 39, 73, 0.04);
}

.detail-intro h3,
.detail-card h3 {
  margin-bottom: 13px;
  color: var(--blue-deep);
  font-size: 1.33rem;
  text-align: center;
}

.detail-intro p,
.detail-card > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.91rem;
  text-align: center;
}

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

.detail-list {
  display: grid;
  gap: 13px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 25px;
  color: #4e5f73;
  font-size: 0.87rem;
  line-height: 1.5;
}

.detail-list li::before {
  position: absolute;
  top: 0.34em;
  left: 0;
  width: 15px;
  height: 8px;
  border-bottom: 2px solid var(--wine);
  border-left: 2px solid var(--wine);
  content: "";
  transform: rotate(-45deg);
}

.detail-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-process li {
  position: relative;
  min-height: 245px;
  padding: 34px 24px 27px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 15px 4px 15px 4px;
  text-align: center;
}

.detail-process li > span {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 19px;
  place-items: center;
  color: var(--white);
  background: var(--wine);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.detail-process h3 {
  margin-bottom: 9px;
  color: var(--blue-deep);
  font-size: 1.13rem;
}

.detail-process p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  text-align: center;
}

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

.boundary-card {
  padding: 38px 34px;
  border-radius: 18px 5px 18px 5px;
  text-align: center;
}

.boundary-card-positive {
  background: #eef5fa;
  border: 1px solid #d5e2ed;
}

.boundary-card-caution {
  background: #fff5f9;
  border: 1px solid #efd6e2;
}

.boundary-card h3 {
  margin-bottom: 10px;
  color: var(--blue-deep);
  font-size: 1.35rem;
}

.boundary-card > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  text-align: center;
}

.detail-faq {
  max-width: 900px;
  margin-inline: auto;
}

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

.related-service {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  padding: 25px;
  color: var(--blue-deep);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px 4px 14px 4px;
  font-weight: 800;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
}

.related-service span {
  color: var(--wine);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-service:hover {
  color: var(--white);
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-3px);
}

.related-service:hover span {
  color: #f3a7ca;
}

.detail-final-cta {
  padding-block: 35px 100px;
  background: var(--white);
}

.detail-final-panel {
  padding: 65px 45px;
  color: var(--white);
  background: linear-gradient(130deg, var(--blue-deep), #1e5087);
  border-radius: 26px 7px 26px 7px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.detail-final-panel h2 {
  max-width: 720px;
  margin: 0 auto 17px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.detail-final-panel p {
  max-width: 650px;
  margin: 0 auto 26px;
  color: #c6d4e2;
  text-align: center;
}

.service-page .site-footer {
  margin-top: 0;
}

/* Advisor detail pages */
.advisor-detail-main {
  overflow: hidden;
}

.advisor-hero {
  position: relative;
  padding-block: 76px 88px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(165, 7, 85, 0.06), transparent 32%),
    linear-gradient(120deg, #fbfcfe, #eef4f9);
}

.advisor-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 81, 142, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 81, 142, 0.03) 1px, transparent 1px);
  background-size: 58px 58px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.advisor-hero .container {
  position: relative;
  z-index: 1;
}

.advisor-hero .breadcrumb {
  justify-content: center;
}

.advisor-hero-copy {
  max-width: 830px;
  margin: 42px auto 0;
  text-align: center;
}

.advisor-monogram {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 24px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--magenta), var(--wine));
  border-radius: 22px 6px 22px 6px;
  box-shadow: 0 16px 34px rgba(165, 7, 85, 0.22);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.advisor-hero-copy .eyebrow {
  justify-content: center;
}

.advisor-hero-copy h1 {
  margin-bottom: 14px;
  color: var(--blue-deep);
  font-size: clamp(2.8rem, 6vw, 5.1rem);
  letter-spacing: -0.05em;
}

.advisor-role {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 7px 13px;
  color: var(--wine);
  background: #faedf4;
  border: 1px solid #f2cfdf;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.advisor-hero-copy > p:not(.eyebrow):not(.advisor-role) {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.advisor-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.advisor-profile-section,
.advisor-info-section {
  padding-block: 100px;
}

.advisor-section-heading {
  max-width: 810px;
  margin: 0 auto 45px;
  text-align: center;
}

.advisor-section-heading .eyebrow {
  justify-content: center;
}

.advisor-section-heading h2 {
  margin-bottom: 17px;
  color: var(--blue-deep);
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -0.035em;
}

.advisor-section-heading > p:not(.eyebrow) {
  margin: 0;
  color: var(--text-soft);
}

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

.advisor-media-card {
  margin: 0;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px 6px 24px 6px;
  box-shadow: 0 18px 48px rgba(13, 39, 73, 0.08);
}

.advisor-card-label {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 3px 3px 14px;
  color: var(--blue-deep);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.advisor-card-label span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--wine);
  background: #faedf4;
  border-radius: 10px 3px 10px 3px;
  font-size: 0.67rem;
  font-weight: 900;
}

.advisor-media-frame {
  height: 475px;
  overflow: hidden;
  background: var(--surface-blue);
  border: 1px solid #d8e3ee;
  border-radius: 17px 4px 17px 4px;
}

.advisor-photo-frame {
  background: var(--blue-deep);
}

.advisor-photo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.advisor-diploma-frame {
  position: relative;
  background: #f4f6f8;
}

.advisor-diploma-image {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.advisor-photo-fredy {
  object-position: center 8%;
}

.advisor-photo-luis {
  object-position: center 5%;
}

.advisor-diploma-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  color: var(--blue-dark);
  background:
    linear-gradient(rgba(37, 81, 142, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 81, 142, 0.035) 1px, transparent 1px),
    var(--surface-blue);
  background-size: 35px 35px;
  text-align: center;
}

.advisor-diploma-placeholder svg {
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
  padding: 16px;
  color: var(--wine);
  background: var(--white);
  border: 1px solid #d7e1ec;
  border-radius: 20px 5px 20px 5px;
  box-shadow: var(--shadow-sm);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.advisor-diploma-placeholder strong {
  margin-bottom: 8px;
  color: var(--blue-deep);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.advisor-diploma-placeholder p {
  max-width: 330px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.advisor-media-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 5px 3px;
}

.advisor-media-card figcaption strong,
.advisor-media-card figcaption span {
  display: block;
}

.advisor-media-card figcaption strong {
  color: var(--blue-deep);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.advisor-media-card figcaption span {
  color: var(--text-soft);
  font-size: 0.76rem;
  text-align: right;
}

.advisor-info-section {
  background: var(--surface);
}

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

.advisor-info-grid article {
  position: relative;
  min-height: 245px;
  padding: 34px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px 5px 20px 5px;
  box-shadow: 0 12px 35px rgba(13, 39, 73, 0.055);
}

.advisor-info-grid article > span {
  position: absolute;
  top: 21px;
  right: 25px;
  color: #e6ebf2;
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1;
}

.advisor-info-grid h3 {
  max-width: 350px;
  margin-bottom: 15px;
  color: var(--blue-deep);
  font-size: 1.32rem;
}

.advisor-info-grid p {
  max-width: 470px;
  margin: 0;
  color: var(--text-soft);
}

.advisor-related-section {
  background: var(--white);
}

.advisor-related-section .related-services {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.advisor-page .site-footer {
  margin-top: 0;
}

/* Marco curvo inspirado en la papelería de BM */
.hero::after,
.service-detail-hero::after,
.advisor-hero::after {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: clamp(300px, 25vw, 380px);
  aspect-ratio: 500 / 360;
  background: url("assets/corner-ribbon.svg") left top / contain no-repeat;
  content: "";
  pointer-events: none;
}

.service-detail-hero::after,
.advisor-hero::after {
  background-image: url("assets/corner-ribbon.svg");
}

.advisor-hero .container {
  z-index: 2;
}

.site-footer::after {
  position: absolute;
  z-index: 0;
  right: -54px;
  bottom: -48px;
  width: clamp(290px, 23vw, 350px);
  aspect-ratio: 500 / 360;
  background: url("assets/corner-ribbon.svg") left top / contain no-repeat;
  content: "";
  pointer-events: none;
  transform: rotate(180deg);
}

.footer-content,
.footer-bottom {
  position: relative;
  z-index: 1;
}

@keyframes whatsapp-pulse {
  0%,
  45% {
    opacity: 0.75;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(165, 7, 85, 0.34);
  outline-offset: 4px;
}

@media (max-width: 1060px) {
  .main-menu {
    gap: 18px;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.83fr);
    gap: 40px;
  }

  .about-layout {
    gap: 55px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
  }

  .section {
    padding-block: 82px;
  }

  .brand,
  .brand-logo {
    width: 210px;
    height: 68px;
  }

  .menu-button {
    display: block;
  }

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

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

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

  .main-menu {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: flex;
    visibility: hidden;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    max-height: calc(100svh - var(--header-height));
    padding: 16px 20px 24px;
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 35px rgba(6, 19, 38, 0.12);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .main-menu.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-link {
    padding: 12px 5px;
    font-size: 0.92rem;
  }

  .nav-link:not(.nav-contact)::after {
    display: none;
  }

  .nav-contact {
    margin-top: 8px;
    padding: 13px 16px;
    text-align: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 70px 85px;
  }

  .hero-copy {
    max-width: 740px;
  }

  .hero-visual {
    width: min(100%, 590px);
    margin-inline: auto;
  }

  .section-heading,
  .process-content,
  .about-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .process-content,
  .about-layout,
  .faq-layout {
    gap: 40px;
  }

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

  .section-heading > p {
    max-width: 680px;
  }

  .services-cta {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .services-cta-copy {
    max-width: 560px;
  }

  .about-visual {
    width: min(100%, 650px);
    margin-inline: auto;
  }

  .about-copy {
    width: min(100%, 650px);
    margin-inline: auto;
  }

  .faq-heading {
    position: static;
  }

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

  .contact-details {
    max-width: 620px;
  }

  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding: 0 0 34px;
    border-right: 0;
    border-bottom: 1px solid #24415f;
  }

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

  .footer-social-links {
    flex-direction: row;
  }

  .footer-social-links a {
    flex: 1 1 0;
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 30px), var(--container));
  }

  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .services-cta,
  .social-block {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .services-cta .button {
    width: 100%;
  }

  .case-form-grid {
    grid-template-columns: 1fr;
  }

  .case-form-field-full {
    grid-column: auto;
  }

  .team-card {
    grid-template-columns: 84px 1fr;
  }

  .team-avatar {
    width: 82px;
    height: 94px;
  }

  .contact-panel {
    gap: 45px;
    padding: 44px 28px;
    border-radius: 22px 6px 22px 6px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 48px 42px;
  }

  .footer-brand {
    grid-column: auto;
    padding-bottom: 30px;
  }

  .footer-menu,
  .footer-contact,
  .footer-social {
    padding: 24px;
  }

  .footer-social {
    grid-column: auto;
  }

  .footer-social-links {
    flex-direction: column;
  }

  .footer-social-links a {
    justify-content: flex-start;
  }

  .hero::after,
  .service-detail-hero::after,
  .advisor-hero::after {
    top: -22px;
    left: -24px;
    width: 170px;
  }

  .site-footer::after {
    right: -24px;
    bottom: -22px;
    width: 170px;
  }
}

@media (max-width: 520px) {
  .section {
    padding-block: 68px;
  }

  .brand,
  .brand-logo {
    width: 192px;
    height: 64px;
  }

  .hero-content {
    padding-block: 58px 72px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-copy .eyebrow > span {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 0;
    gap: 14px;
    padding: 22px 18px;
  }

  .case-card {
    width: 100%;
    padding: 22px;
  }

  .trust-metric {
    align-items: center;
    flex-direction: column;
    gap: 4px;
    padding-inline: 10px;
  }

  .section-heading,
  .process-content,
  .about-layout,
  .faq-layout {
    gap: 30px;
  }

  .service-card {
    min-height: 0;
    padding: 28px 25px;
  }

  .service-number {
    font-size: 2.55rem;
  }

  .services-cta {
    padding: 23px;
  }

  .process-section {
    padding-block: 68px;
  }

  .process-list li {
    grid-template-columns: 45px 1fr;
    gap: 14px;
  }

  .process-list li > span {
    width: 42px;
    height: 42px;
  }

  .about-visual {
    min-height: 0;
    padding: 11px;
    border-radius: 20px 5px 20px 5px;
  }

  .about-photo {
    height: 355px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 9px;
  }

  .experience-card {
    width: auto;
    min-height: 78px;
    padding: 13px 15px;
  }

  .experience-number {
    font-size: 1.8rem;
  }

  .people-card {
    width: auto;
    min-height: 78px;
    padding: 13px 15px;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .team-card {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .team-avatar {
    width: 70px;
    height: 70px;
  }

  .faq-list summary {
    padding: 18px 50px 18px 18px;
  }

  .faq-list summary::after {
    right: 16px;
  }

  .faq-list details p {
    margin-inline: 18px;
  }

  .contact {
    padding-top: 20px;
  }

  .contact-panel {
    width: 100%;
    padding: 43px 20px;
    border-radius: 0;
  }

  .contact-item {
    grid-template-columns: 43px minmax(0, 1fr);
    padding: 14px;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
  }

  .contact-item strong {
    font-size: 0.77rem;
  }

  .site-footer {
    margin-top: 70px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .whatsapp-button {
    right: 15px;
    bottom: 15px;
    width: 55px;
    height: 55px;
  }

  .whatsapp-button svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 900px) {
  .detail-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advisor-media-frame {
    height: 420px;
  }
}

@media (max-width: 680px) {
  .service-assurance,
  .detail-intro,
  .detail-grid,
  .boundaries-grid,
  .related-services {
    grid-template-columns: 1fr;
  }

  .service-assurance {
    gap: 0;
  }

  .service-assurance div + div {
    border-top: 1px solid var(--border);
  }

  .detail-final-panel {
    padding: 52px 27px;
  }

  .advisor-media-grid,
  .advisor-info-grid {
    grid-template-columns: 1fr;
  }

  .advisor-media-card {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .advisor-media-frame {
    height: 470px;
  }
}

@media (max-width: 520px) {
  .service-detail-hero {
    padding-block: 65px 62px;
  }

  .service-detail-heading h1 {
    font-size: 2.5rem;
  }

  .service-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .service-detail-actions .button {
    width: 100%;
  }

  .detail-section {
    padding-block: 68px;
  }

  .detail-intro article,
  .detail-card,
  .boundary-card {
    padding: 27px 22px;
  }

  .detail-process {
    grid-template-columns: 1fr;
  }

  .detail-process li {
    min-height: 0;
  }

  .detail-final-cta {
    padding-block: 15px 70px;
  }

  .detail-final-panel {
    width: 100%;
    padding: 48px 20px;
    border-radius: 0;
  }

  .advisor-hero {
    padding-block: 65px 68px;
  }

  .advisor-hero-copy {
    margin-top: 33px;
  }

  .advisor-hero-copy h1 {
    font-size: 2.65rem;
  }

  .advisor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .advisor-actions .button {
    width: 100%;
  }

  .advisor-profile-section,
  .advisor-info-section {
    padding-block: 68px;
  }

  .advisor-section-heading {
    margin-bottom: 32px;
  }

  .advisor-media-card {
    padding: 11px;
  }

  .advisor-media-frame {
    height: 385px;
  }

  .advisor-diploma-placeholder {
    padding: 25px;
  }

  .advisor-media-card figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .advisor-media-card figcaption span {
    text-align: left;
  }

  .advisor-info-grid article {
    min-height: 0;
    padding: 28px 23px;
  }
}

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

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