:root {
  --violet: #5b3cc4;
  --violet-dark: #41248f;
  --lavender: #e9e3f3;
  --lavender-soft: #f4f0fb;
  --paper: #f4f2ed;
  --paper-light: #fbfaf7;
  --warm-gray: #d8d5cf;
  --graphite: #4a4a4a;
  --ink: #292929;
  --muted: #74706d;
  --line: rgba(74, 74, 74, 0.18);
  --shadow: 0 24px 70px rgba(43, 35, 53, 0.08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(233, 227, 243, 0.72), transparent 28rem),
    linear-gradient(180deg, var(--paper-light), var(--paper));
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

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

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(251, 250, 247, 0.82);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  left: 0;
  min-height: 70px;
  padding: 0.72rem clamp(1rem, 4vw, 3rem);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
}

.brand img {
  height: auto;
  object-fit: contain;
  width: clamp(138px, 12vw, 178px);
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.2rem;
  justify-content: flex-end;
}

.nav a {
  color: var(--graphite);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0;
}

.nav a:hover,
.nav a.is-active {
  color: var(--violet);
}

.hero {
  min-height: auto;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 4.5vw, 3.8rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(2.4rem, 5.5vh, 4.2rem) clamp(1.25rem, 5vw, 4rem) clamp(2.6rem, 5.5vh, 4rem);
  position: relative;
  z-index: 1;
}

.hero-copy-block {
  max-width: 650px;
}

.hero-mark {
  bottom: -12rem;
  opacity: 0.34;
  position: absolute;
  right: -18rem;
  width: min(700px, 72vw);
}

.hero-logo {
  margin: 1rem auto 0;
  max-width: 315px;
  position: relative;
  width: 84%;
  z-index: 2;
}

.hero-main-logo {
  margin: 0 0 -2.05rem;
  max-width: min(560px, 100%);
  mix-blend-mode: multiply;
  opacity: 0.92;
}

.sr-only {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.hero-visual {
  justify-self: end;
  margin-top: 0.15rem;
  max-width: 300px;
  position: relative;
}

.hero-visual::before {
  background: var(--lavender-soft);
  border-radius: 999px;
  content: "";
  height: 58%;
  left: -16%;
  opacity: 0.72;
  position: absolute;
  top: 14%;
  width: 78%;
  z-index: -1;
}

.hero-portrait {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.eyebrow,
.kicker {
  color: var(--violet);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--graphite);
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(4rem, 7.4vw, 7.8rem);
  line-height: 0.92;
  margin-bottom: 1.35rem;
  max-width: 760px;
}

h2 {
  color: var(--graphite);
  font-size: clamp(2.35rem, 4vw, 4.8rem);
  line-height: 1.02;
  margin-bottom: 1.4rem;
}

h3 {
  color: var(--graphite);
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.hero-subtitle {
  color: var(--graphite);
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-copy {
  color: var(--muted);
  font-size: 1.22rem;
  margin-bottom: 0;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.05rem;
}

.button {
  align-items: center;
  border: 1px solid var(--violet);
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.1rem;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button.primary {
  background: var(--violet);
  color: white;
}

.hero-actions .button.primary {
  background: rgba(251, 250, 247, 0.42);
  border-color: rgba(91, 60, 196, 0.62);
  color: var(--violet);
  font-weight: 650;
  min-height: 44px;
  padding-inline: 1rem;
}

.hero-actions .button.primary:hover {
  background: rgba(244, 240, 251, 0.82);
  border-color: rgba(91, 60, 196, 0.82);
}

.button.secondary {
  background: transparent;
  color: var(--violet);
}

.section {
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem);
}

.section-grid,
.section-heading,
.contact,
.footer {
  margin: 0 auto;
  max-width: 1180px;
}

.section-grid {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
}

.section-copy p,
.contact p {
  color: var(--muted);
  max-width: 680px;
}

.portrait-wrap {
  justify-self: end;
  margin: 0;
  max-width: 340px;
  width: 100%;
}

.portrait-wrap img {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center;
}

.portrait-wrap figcaption {
  border-left: 2px solid var(--violet);
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  padding-left: 1rem;
}

.soft-band {
  background: rgba(255, 255, 255, 0.46);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 2.5rem;
}

.soft-band .section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  max-width: 860px;
}

.service-grid {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.service-card {
  align-items: center;
  background: rgba(251, 250, 247, 0.48);
  border: 1px solid rgba(91, 60, 196, 0.11);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(43, 35, 53, 0.035);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 240px;
  padding: 1.65rem 1.45rem 1.55rem;
  text-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(91, 60, 196, 0.24);
  box-shadow: 0 24px 58px rgba(43, 35, 53, 0.06);
  transform: translateY(-3px);
}

.service-card:focus-visible {
  outline: 2px solid rgba(91, 60, 196, 0.36);
  outline-offset: 4px;
}

.experience-list article {
  background: rgba(251, 250, 247, 0.72);
  border: 1px solid rgba(91, 60, 196, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(43, 35, 53, 0.035);
  padding: 1.35rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.experience-list article:hover {
  border-color: rgba(91, 60, 196, 0.24);
  box-shadow: 0 24px 58px rgba(43, 35, 53, 0.065);
  transform: translateY(-3px);
}

.service-card p,
.experience-list p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.service-card p {
  max-width: 16rem;
}

.service-icon {
  color: rgba(91, 60, 196, 0.78);
  display: block;
  height: 46px;
  margin-bottom: 1.35rem;
  width: 46px;
}

.service-icon svg {
  display: block;
  height: 100%;
  overflow: visible;
  width: 100%;
}

.service-icon circle,
.service-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.territories {
  display: grid;
  gap: clamp(3.5rem, 8vw, 6.5rem);
  margin: 0 auto;
  max-width: 1180px;
  overflow: clip;
}

.territory {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 0.98fr) minmax(260px, 0.64fr);
  scroll-margin-top: 96px;
}

.territory.is-reverse {
  grid-template-columns: minmax(260px, 0.64fr) minmax(0, 0.98fr);
}

.territory.is-reverse .territory-copy {
  order: 2;
}

.territory.is-reverse .territory-visual {
  order: 1;
}

.territory-copy h2 {
  font-size: clamp(2rem, 3.25vw, 3.6rem);
  max-width: 760px;
}

.territory-copy p {
  color: var(--muted);
  max-width: 640px;
}

.return-link {
  color: rgba(91, 60, 196, 0.82);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 650;
  margin-top: 0.45rem;
  transition: color 160ms ease, transform 160ms ease;
}

.return-link:hover,
.return-link:focus-visible {
  color: var(--violet-dark);
  transform: translateX(-2px);
}

.return-link:focus-visible {
  outline: 2px solid rgba(91, 60, 196, 0.28);
  outline-offset: 4px;
}

.territory-visual {
  margin: 0;
  position: relative;
}

.territory-visual::before {
  background: var(--lavender-soft);
  border-radius: 999px;
  content: "";
  height: 62%;
  opacity: 0.62;
  position: absolute;
  right: -10%;
  top: 18%;
  width: 72%;
  z-index: -1;
}

.territory-visual img {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.experiences {
  background:
    linear-gradient(90deg, rgba(244, 242, 237, 0.92), rgba(244, 240, 251, 0.7)),
    url("assets/marca-agua.png") right -14rem center / 560px auto no-repeat;
}

.experience-list {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.number {
  color: var(--violet);
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.contact {
  align-items: end;
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.1rem);
  grid-template-columns: minmax(0, 1fr) minmax(210px, max-content);
}

.contact h2 {
  max-width: 760px;
}

.contact-content p {
  max-width: 560px;
}

.contact-actions {
  align-items: end;
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
  justify-self: end;
  margin-right: clamp(1rem, 5vw, 4rem);
}

.contact .button.primary {
  background: rgba(251, 250, 247, 0.42);
  border-color: rgba(91, 60, 196, 0.62);
  color: var(--violet);
  font-weight: 650;
  min-height: 44px;
  padding-inline: 1rem;
}

.contact .button.primary:hover {
  background: rgba(244, 240, 251, 0.82);
  border-color: rgba(91, 60, 196, 0.82);
}

.contact-socials {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  transform: translateY(-0.12rem);
}

.contact-socials a {
  align-items: center;
  border: 1px solid rgba(91, 60, 196, 0.18);
  border-radius: 8px;
  color: rgba(91, 60, 196, 0.82);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  width: 42px;
}

.contact-socials a:hover {
  background: rgba(244, 240, 251, 0.82);
  border-color: rgba(91, 60, 196, 0.32);
  transform: translateY(-2px);
}

.contact-socials svg {
  height: 20px;
  width: 20px;
}

.contact-socials path,
.contact-socials rect,
.contact-socials circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.footer {
  border-top: 1px solid var(--line);
  color: rgba(74, 74, 74, 0.72);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.65rem 2rem;
  letter-spacing: 0;
  justify-content: space-between;
  padding: 1.65rem clamp(1.25rem, 5vw, 4rem);
}

.footer p {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  html {
    scroll-padding-top: 1rem;
  }

  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
    position: static;
  }

  .nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: auto;
  }

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

  .hero-visual {
    justify-self: start;
    max-width: 330px;
  }

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

  .territory,
  .territory.is-reverse {
    grid-template-columns: 1fr;
    scroll-margin-top: 1rem;
  }

  .territory.is-reverse .territory-copy {
    order: 1;
  }

  .territory.is-reverse .territory-visual {
    order: 2;
  }

  .territory-visual {
    max-width: min(100%, 360px);
  }

  .territory-visual::before {
    right: 0;
  }

  .portrait-wrap {
    justify-self: start;
    max-width: 320px;
  }

  .service-grid,
  .experience-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    align-items: start;
    justify-self: start;
    margin-right: 0;
  }

  .contact-socials {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: auto;
    padding: 0.85rem 1rem 0.75rem;
  }

  .brand img {
    width: 138px;
  }

  .nav {
    gap: 0.9rem;
    margin-inline: -1rem;
    padding-inline: 1rem;
  }

  .nav a {
    font-size: 0.82rem;
    min-height: 40px;
  }

  .hero-inner {
    gap: 1.6rem;
    padding-bottom: 3.2rem;
    padding-top: 2.15rem;
  }

  .hero-mark {
    bottom: -4rem;
    right: -12rem;
    width: 420px;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-logo {
    max-width: 275px;
    width: 84%;
  }

  .hero-main-logo {
    margin-bottom: -1rem;
    max-width: 330px;
  }

  .hero-copy {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .hero-visual {
    margin-top: 0;
    max-width: min(100%, 330px);
  }

  .service-card {
    min-height: auto;
    padding: 1.55rem 1.25rem 1.45rem;
  }

  .service-icon {
    margin-bottom: 1.1rem;
  }

  .territory {
    gap: 1.55rem;
  }

  .service-grid,
  .experience-list {
    grid-template-columns: 1fr;
  }

  .territories {
    gap: 4rem;
  }

  .button {
    min-height: 54px;
    width: 100%;
  }
}
