:root {
  --sp-primary: #602797;
  --sp-accent: #7e17b7;
  --sp-deep: #43146d;
  --sp-lavender: #f4eaff;
  --sp-text: #2b2b32;
  --sp-muted: #68687a;
  --sp-surface: #ffffff;
  --sp-bg: #f4f5f7;
  --sp-border: #dfddea;
  --sp-success-bg: #e8f7ef;
  --sp-success: #217a4a;
  --shadow-sm: 0 8px 26px rgba(48, 26, 72, 0.08);
  --shadow-md: 0 20px 52px rgba(48, 26, 72, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --header-height: 78px;
  --container: 1240px;
  --ease: 180ms ease;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--sp-text);
  background: var(--sp-surface);
  font-family: "Manrope", Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

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

:focus-visible {
  outline: 3px solid var(--sp-accent);
  outline-offset: 3px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--sp-deep);
  transform: translateY(-160%);
  transition: transform var(--ease);
}

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

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

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.icon-large {
  width: 24px;
  height: 24px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: color var(--ease), background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

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

.button-primary {
  color: #fff;
  background: var(--sp-primary);
  box-shadow: 0 8px 18px rgba(96, 39, 151, 0.16);
}

.button-primary:hover {
  background: var(--sp-deep);
  box-shadow: 0 12px 24px rgba(67, 20, 109, 0.22);
}

.button-secondary {
  color: var(--sp-primary);
  border-color: var(--sp-primary);
  background: #fff;
}

.button-secondary:hover {
  background: var(--sp-lavender);
}

.button-white {
  color: var(--sp-primary);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.button-white:hover {
  color: var(--sp-deep);
  background: var(--sp-lavender);
}

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

.eyebrow {
  margin: 0 0 10px;
  color: #606078;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.72);
}

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

h1,
h2,
h3 {
  color: var(--sp-deep);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 800;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid rgba(223, 221, 234, 0.7);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 174px;
}

.brand img,
.footer-brand img {
  width: 100%;
  max-width: 218px;
  height: 50px;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.32) saturate(1.08);
  mix-blend-mode: multiply;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.nav-link {
  position: relative;
  padding: 28px 0 24px;
  color: #424252;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--sp-primary);
  content: "";
  transform: scaleX(0);
  transition: transform var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--sp-primary);
}

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

.header-actions {
  display: flex;
  gap: 10px;
}

.header-actions .button {
  padding-inline: 14px;
  white-space: nowrap;
}

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

/* Hero */
.hero {
  min-height: 570px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  background-color: #f6f2f1;
  background-image:
    linear-gradient(90deg, #fff 1%, rgba(255, 255, 255, 0.98) 20%, rgba(255, 255, 255, 0.82) 38%, rgba(255, 255, 255, 0.2) 62%, rgba(255, 255, 255, 0.02) 100%),
    url("assets/images/hero-santiago.webp");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 100px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.54), transparent);
  content: "";
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(270px, 310px);
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  padding-block: 64px 100px;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0 0 22px;
  font-size: clamp(46px, 5.15vw, 72px);
  font-weight: 800;
  line-height: 0.98;
}

.hero-copy h1 span {
  color: var(--sp-accent);
}

.hero-lead {
  max-width: 570px;
  margin-bottom: 28px;
  color: #343444;
  font-size: 17px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-side {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding-top: 12px;
}

.advice-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.advice-chip strong,
.advice-chip small {
  display: block;
}

.advice-chip strong {
  font-size: 13px;
}

.advice-chip small {
  margin-top: 2px;
  color: var(--sp-muted);
  font-size: 11px;
  line-height: 1.35;
}

.icon-bubble {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--sp-primary);
  background: var(--sp-lavender);
}

.hero-project {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.hero-card-image {
  position: relative;
  min-height: 150px;
  background-color: var(--sp-bg);
  background-repeat: no-repeat;
}

.hero-card-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 10, 41, 0.12), transparent 42%);
  content: "";
}

.hero-card-image span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--sp-accent);
  font-size: 10px;
  font-weight: 700;
}

.hero-card-body {
  padding: 13px 12px 4px;
}

.hero-card-body h2 {
  margin-bottom: 8px;
  color: var(--sp-text);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.hero-card-body p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 5px 0;
  color: #5f5f70;
  font-size: 11px;
}

.hero-card-body p .icon {
  width: 14px;
  height: 14px;
  color: var(--sp-primary);
}

.hero-card-body a {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  border-radius: 9px;
  color: var(--sp-primary);
  background: var(--sp-lavender);
  font-size: 12px;
  font-weight: 700;
}

.hero-card-body a:hover {
  color: #fff;
  background: var(--sp-primary);
}

/* Search */
.search-wrap {
  position: relative;
  z-index: 5;
  margin-top: -54px;
}

.search-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(210px, 1.2fr);
  align-items: stretch;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(223, 221, 234, 0.84);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.filter-field {
  min-width: 0;
  min-height: 58px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--sp-border);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.filter-field:focus-within {
  border-color: var(--sp-accent);
  box-shadow: 0 0 0 3px rgba(126, 23, 183, 0.1);
}

.filter-icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--sp-primary);
  background: var(--sp-lavender);
}

.filter-icon .icon {
  width: 18px;
  height: 18px;
}

.filter-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.filter-copy > span {
  color: #767685;
  font-size: 10px;
  line-height: 1.2;
}

.filter-copy select {
  width: 100%;
  min-width: 0;
  padding: 2px 21px 1px 0;
  border: 0;
  outline: 0;
  color: var(--sp-text);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  appearance: none;
  cursor: pointer;
}

.filter-chevron {
  position: absolute;
  right: 9px;
  bottom: 12px;
  width: 14px;
  height: 14px;
  color: #77778a;
  pointer-events: none;
}

.search-button {
  min-height: 58px;
  padding-inline: 16px;
}

.search-status {
  grid-column: 1 / -1;
  min-height: 0;
  margin: -2px 2px -4px;
  color: var(--sp-primary);
  font-size: 12px;
  font-weight: 700;
}

.search-status:empty {
  display: none;
}

/* Benefit strip */
.trust-strip {
  padding: 30px 0 38px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.trust-icon {
  width: 54px;
  height: 54px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--sp-primary);
  background: var(--sp-lavender);
  line-height: 0;
}

.trust-icon .icon {
  width: 24px;
  height: 24px;
  position: absolute;
  inset: 0;
  display: block;
  margin: auto;
}

.trust-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item span {
  margin-top: 2px;
  color: var(--sp-muted);
}

/* Projects */
.projects-section {
  overflow: hidden;
  padding: 70px 0 78px;
  background:
    radial-gradient(circle at 10% 8%, rgba(244, 234, 255, 0.95), transparent 30%),
    linear-gradient(180deg, #faf9fc, #fff 75%);
}

.section-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  margin-bottom: 22px;
}

.section-topline > div:first-child {
  max-width: 720px;
}

.section-topline h2 {
  margin-bottom: 10px;
}

.section-topline p:not(.eyebrow) {
  max-width: 630px;
  margin: 0;
  color: var(--sp-muted);
}

.rail-actions {
  display: flex;
  gap: 10px;
}

.round-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sp-border);
  border-radius: 50%;
  color: var(--sp-primary);
  background: #fff;
  cursor: pointer;
  transition: color var(--ease), background var(--ease), transform var(--ease);
}

.round-button:hover {
  color: #fff;
  background: var(--sp-primary);
  transform: translateY(-2px);
}

.demo-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid #d8c5eb;
  border-radius: var(--radius-md);
  color: var(--sp-deep);
  background: var(--sp-lavender);
  font-size: 12px;
}

.demo-notice .icon {
  flex: 0 0 auto;
}

.project-rail {
  display: grid;
  grid-auto-columns: minmax(260px, 1fr);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #cbb6df transparent;
  scrollbar-width: thin;
}

.project-rail::-webkit-scrollbar {
  height: 7px;
}

.project-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbb6df;
}

.project-rail::-webkit-scrollbar-track {
  background: transparent;
}

.project-card {
  min-height: 430px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.project-card:hover {
  border-color: #cdb9e0;
  box-shadow: 0 18px 42px rgba(63, 30, 89, 0.14);
  transform: translateY(-4px);
}

.project-image {
  min-height: 190px;
  position: relative;
  background-color: var(--sp-bg);
  background-repeat: no-repeat;
}

.project-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 13, 42, 0.18), transparent 40%);
  content: "";
  pointer-events: none;
}

.project-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  max-width: calc(100% - 64px);
  padding: 6px 10px;
  overflow: hidden;
  border-radius: 999px;
  color: var(--sp-deep);
  background: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-button {
  width: 38px;
  height: 38px;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  color: #fff;
  background: rgba(67, 20, 109, 0.34);
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.favorite-button[aria-pressed="true"] {
  color: #fff;
  background: var(--sp-accent);
}

.favorite-button[aria-pressed="true"] .icon {
  fill: currentColor;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 15px 10px;
}

.demo-kicker {
  margin-bottom: 4px;
  color: var(--sp-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-body h3 {
  margin-bottom: 8px;
  color: var(--sp-text);
  font-size: 18px;
  letter-spacing: -0.025em;
}

.project-meta {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 4px 0;
  color: #666676;
  font-size: 11px;
  line-height: 1.35;
}

.project-meta .icon {
  width: 14px;
  height: 14px;
  color: var(--sp-primary);
}

.project-data-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: auto;
  padding-top: 12px;
  color: #6e6e7c;
  font-size: 10px;
}

.project-data-row strong {
  color: var(--sp-deep);
  font-size: 11px;
}

.project-developer {
  margin: 7px 0 0;
  color: #8a8996;
  font-size: 10px;
}

.project-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--sp-primary);
  background: var(--sp-lavender);
  font-size: 12px;
  font-weight: 800;
  transition: color var(--ease), background var(--ease);
}

.project-link:hover {
  color: #fff;
  background: var(--sp-primary);
}

.project-link .icon {
  width: 16px;
  height: 16px;
}

.commercial-note {
  margin: 8px 0 0;
  color: #777786;
  font-size: 11px;
}

.empty-state {
  padding: 42px;
  border: 1px dashed #cbb6df;
  border-radius: var(--radius-lg);
  text-align: center;
  background: #fff;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state span {
  margin: 6px 0 18px;
  color: var(--sp-muted);
}

/* Process */
.process-section {
  padding: 18px 0 80px;
  background: #fff;
}

.process-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 2.2fr);
  gap: 42px;
  padding: 42px;
  border: 1px solid #e5d9ef;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, #fff 0%, #faf5ff 52%, #fff 100%);
  box-shadow: 0 16px 54px rgba(67, 20, 109, 0.07);
}

.process-intro h2 {
  margin-bottom: 12px;
  color: var(--sp-primary);
  font-size: clamp(30px, 2.6vw, 40px);
}

.process-intro p:last-child {
  margin: 0;
  color: var(--sp-muted);
}

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

.process-step {
  min-width: 0;
}

.step-top {
  min-height: 54px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--sp-primary);
  background: var(--sp-lavender);
  font-size: 13px;
  font-weight: 800;
}

.step-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--sp-primary);
  background: linear-gradient(145deg, #fff, #e7cffb);
  box-shadow: 0 8px 20px rgba(96, 39, 151, 0.1);
}

.step-icon .icon {
  width: 24px;
  height: 24px;
}

.step-connector {
  position: absolute;
  right: -12px;
  color: #aa86cc;
}

.step-connector .icon {
  width: 16px;
  height: 16px;
}

.process-step h3 {
  margin: 13px 0 8px;
  color: var(--sp-text);
  font-size: 13px;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.process-step p {
  margin: 0;
  color: var(--sp-muted);
  font-size: 11px;
  line-height: 1.48;
}

/* Alliance */
.alliance-section {
  width: min(100%, 1440px);
  min-height: 500px;
  display: grid;
  grid-template-columns: 42% 58%;
  margin-inline: auto;
  overflow: hidden;
  background: var(--sp-deep);
}

.alliance-photo {
  min-height: 500px;
  position: relative;
  background-image: linear-gradient(180deg, transparent 55%, rgba(29, 12, 44, 0.55)), url("assets/images/pareja-asesoria.webp");
  background-position: center;
  background-size: cover;
}

.alliance-photo p {
  max-width: 250px;
  position: absolute;
  left: clamp(28px, 5vw, 76px);
  bottom: 42px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 700;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.26);
  transform: rotate(-4deg);
}

.alliance-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
  align-items: center;
  gap: 34px;
  padding: 58px clamp(32px, 5vw, 76px) 58px clamp(32px, 4.2vw, 64px);
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(126, 23, 183, 0.56), transparent 36%),
    linear-gradient(135deg, var(--sp-deep), #2f0b50 70%);
}

.alliance-copy h2 {
  color: #fff;
  font-size: clamp(36px, 4vw, 56px);
}

.alliance-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.82);
}

.alliance-features {
  display: grid;
  gap: 12px;
}

.alliance-features article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: var(--radius-md);
  color: var(--sp-text);
  background: rgba(255, 255, 255, 0.96);
}

.alliance-features article > span {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--sp-primary);
  background: var(--sp-lavender);
}

.alliance-features p,
.alliance-features small,
.alliance-features strong {
  display: block;
  margin: 0;
}

.alliance-features strong {
  font-size: 12px;
}

.alliance-features small {
  margin-top: 3px;
  color: var(--sp-muted);
  font-size: 10px;
  line-height: 1.35;
}

/* Partners */
.partners-section {
  padding: 34px 0;
  border-bottom: 1px solid #ecebf1;
  background: #fff;
}

.partners-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.partners-copy p {
  margin-bottom: 0;
}

.partners-copy p:last-child {
  color: var(--sp-muted);
  font-size: 12px;
}

.partner-rail {
  display: grid;
  align-items: center;
  grid-auto-columns: minmax(150px, 1fr);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px;
  scrollbar-width: thin;
}

.partner-logo {
  min-height: 58px;
  display: grid;
  place-items: center;
  justify-items: center;
  text-align: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: border-color var(--ease), background var(--ease);
}

.partner-logo:hover {
  border-color: var(--sp-border);
  background: var(--sp-bg);
}

.partner-logo img {
  width: 100%;
  height: 42px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.82;
}

/* Testimonials */
.stories-section {
  padding: 72px 0;
  background: linear-gradient(120deg, #fff, #f7f6f9);
}

.stories-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.8fr);
  align-items: center;
  gap: 56px;
}

.stories-copy h2 {
  margin-bottom: 12px;
  color: var(--sp-primary);
}

.stories-copy p:last-child {
  margin: 0;
  color: var(--sp-muted);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.testimonial-card {
  position: relative;
  padding: 28px;
  border: 1px solid #ebe9ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.demo-pill {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--sp-primary);
  background: var(--sp-lavender);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testimonial-card blockquote {
  min-height: 76px;
  margin: 0 0 20px;
  color: #555567;
  font-size: 15px;
  line-height: 1.52;
}

.testimonial-person {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--sp-primary), var(--sp-accent));
  font-size: 12px;
  font-weight: 800;
}

.testimonial-person p,
.testimonial-person strong,
.testimonial-person span {
  display: block;
  margin: 0;
}

.testimonial-person p span {
  color: var(--sp-muted);
  font-size: 11px;
}

.stars {
  color: #f29a17;
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* Broker CTA */
.broker-cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(96, 39, 151, 0.98) 0%, rgba(96, 39, 151, 0.96) 58%, rgba(67, 20, 109, 0.55) 78%, rgba(67, 20, 109, 0.12) 100%),
    url("assets/images/hero-santiago.webp");
  background-position: center, right 42%;
  background-size: cover;
}

.broker-inner {
  min-height: 140px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding-block: 28px;
}

.broker-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.broker-icon .icon {
  width: 34px;
  height: 34px;
}

.broker-inner h2 {
  margin-bottom: 5px;
  color: #fff;
  font-size: clamp(25px, 2.8vw, 38px);
}

.broker-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.broker-inner .button {
  min-width: 170px;
}

/* Footer */
.site-footer {
  padding: 56px 0 22px;
  color: #ded8e3;
  background: #251330;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: 48px;
}

.footer-brand img {
  max-width: 190px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 4px;
  background: #fff;
  mix-blend-mode: normal;
}

.footer-grid p,
.footer-grid a {
  color: #bcb4c1;
  font-size: 13px;
}

.footer-grid strong,
.footer-grid a {
  display: block;
}

.footer-grid strong {
  margin-bottom: 12px;
  color: #fff;
  font-size: 13px;
}

.footer-grid a {
  width: fit-content;
  margin: 8px 0;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #958b9c;
  font-size: 11px;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Responsive */
@media (min-width: 1180px) {
  .project-rail {
    grid-auto-columns: calc((100% - 48px) / 4);
  }
}

@media (max-width: 1180px) {
  :root {
    --header-height: 72px;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: min(390px, 88vw);
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 22px;
    overflow-y: auto;
    border-left: 1px solid var(--sp-border);
    background: #fff;
    box-shadow: -18px 30px 45px rgba(26, 15, 36, 0.16);
    transform: none;
  }

  body.menu-open::before {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 90;
    background: rgba(25, 14, 32, 0.38);
    content: "";
    backdrop-filter: blur(2px);
  }

  body.menu-open .primary-nav {
    display: flex;
  }

  .nav-link {
    padding: 14px 4px;
    border-bottom: 1px solid #efedf2;
    font-size: 15px;
  }

  .nav-link::after {
    display: none;
  }

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

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    border: 1px solid var(--sp-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    order: 3;
  }

  .menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--sp-primary);
    transition: transform var(--ease), opacity var(--ease);
  }

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

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

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

  .search-panel {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .search-button {
    grid-column: span 1;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 26px;
  }

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

  .alliance-content {
    grid-template-columns: 1fr;
  }

  .alliance-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .header-actions .login-button {
    display: none;
  }

  .hero {
    min-height: auto;
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 62%, rgba(255, 255, 255, 0.28) 100%),
      url("assets/images/hero-santiago.webp");
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
    gap: 26px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 7vw, 62px);
  }

  .search-wrap {
    margin-top: -34px;
  }

  .search-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-button {
    grid-column: span 1;
  }

  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 28px;
  }

  .step-connector {
    display: none;
  }

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

  .alliance-photo {
    min-height: 390px;
    background-position: center 42%;
  }

  .alliance-content {
    padding-block: 48px;
  }

  .partners-layout,
  .stories-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .broker-inner .button {
    grid-column: 2;
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 66px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .header-inner {
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 160px;
    height: 42px;
  }

  .header-actions {
    display: none;
  }

  .mobile-nav-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
  }

  .hero {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 55%, rgba(255, 255, 255, 0.3) 100%),
      url("assets/images/hero-santiago.webp");
    background-position: 58% center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-block: 50px 92px;
  }

  .hero-copy h1 {
    max-width: 560px;
    font-size: clamp(41px, 13vw, 58px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
  }

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

  .hero-side {
    padding-top: 0;
  }

  .advice-chip {
    order: 2;
  }

  .hero-project {
    max-width: 420px;
  }

  .search-wrap {
    margin-top: -56px;
  }

  .search-panel {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .search-button {
    grid-column: auto;
  }

  .trust-strip {
    overflow: hidden;
  }

  .trust-grid {
    grid-template-columns: none;
    grid-auto-columns: 78vw;
    grid-auto-flow: column;
    gap: 16px;
    overflow-x: auto;
    padding-block: 4px 12px;
    scroll-snap-type: x mandatory;
  }

  .trust-item {
    padding: 14px;
    border: 1px solid var(--sp-border);
    border-radius: 14px;
    background: #fff;
    scroll-snap-align: start;
  }

  .projects-section {
    padding-block: 54px;
  }

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

  .rail-actions {
    display: none;
  }

  .demo-notice {
    align-items: flex-start;
  }

  .project-rail {
    width: calc(100vw - 16px);
    grid-auto-columns: minmax(270px, 82vw);
    margin-right: -16px;
  }

  .process-section {
    padding-bottom: 54px;
  }

  .process-card {
    width: calc(100% - 20px);
    gap: 30px;
    padding: 28px 22px;
  }

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

  .process-step {
    display: grid;
    grid-template-columns: 82px 1fr;
    column-gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9e1ef;
  }

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

  .step-top {
    grid-row: 1 / span 2;
    align-self: start;
  }

  .process-step h3 {
    margin: 7px 0 5px;
  }

  .alliance-photo {
    min-height: 340px;
  }

  .alliance-content {
    padding: 42px 24px;
  }

  .alliance-features {
    grid-template-columns: 1fr;
  }

  .partners-section {
    padding-block: 30px;
  }

  .partner-rail {
    width: calc(100vw - 16px);
    grid-auto-columns: 180px;
    margin-right: -16px;
  }

  .stories-section {
    padding-block: 54px;
  }

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

  .testimonial-person {
    grid-template-columns: auto 1fr;
  }

  .stars {
    grid-column: 2;
  }

  .broker-cta {
    background-image: linear-gradient(120deg, rgba(96, 39, 151, 0.98), rgba(67, 20, 109, 0.92)), url("assets/images/hero-santiago.webp");
  }

  .broker-inner {
    grid-template-columns: auto 1fr;
    padding-block: 34px;
  }

  .broker-icon {
    width: 54px;
    height: 54px;
  }

  .broker-inner .button {
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .brand img {
    width: 142px;
  }

  .hero-copy h1 {
    font-size: 39px;
  }

  .hero-inner {
    padding-top: 40px;
  }

  .project-rail {
    grid-auto-columns: 86vw;
  }

  .testimonial-card {
    padding: 22px;
  }
}

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

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

/* ================================================================
   Contacto parametrizable
   ================================================================ */
body.contact-modal-open {
  overflow: hidden;
}

.contact-modal[hidden],
.contact-step[hidden] {
  display: none !important;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 12, 44, 0.62);
  backdrop-filter: blur(7px);
}

.contact-dialog {
  width: min(760px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  position: relative;
  z-index: 1;
  overflow-y: auto;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(29, 12, 44, 0.34);
}

.contact-close {
  width: 42px;
  height: 42px;
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sp-border);
  border-radius: 50%;
  color: var(--sp-text);
  background: #fff;
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.contact-close:hover {
  color: var(--sp-primary);
  border-color: #cbb6df;
  background: var(--sp-lavender);
}

.contact-close .icon {
  width: 20px;
  height: 20px;
}

.contact-step > h2 {
  max-width: 610px;
  margin: 0 52px 10px 0;
  color: var(--sp-deep);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.contact-intro {
  max-width: 600px;
  margin: 0 0 26px;
  color: var(--sp-muted);
  font-size: 14px;
  line-height: 1.6;
}

.contact-channel-grid {
  display: grid;
  gap: 12px;
}

.contact-channel-card {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  color: var(--sp-text);
  text-align: left;
  background: #fff;
  cursor: pointer;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.contact-channel-card:hover,
.contact-channel-card:focus-visible {
  border-color: #c8a9df;
  background: #fdfbff;
  box-shadow: 0 10px 28px rgba(96, 39, 151, 0.1);
  transform: translateY(-1px);
}

.contact-channel-icon,
.contact-selected-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--sp-primary);
  background: var(--sp-lavender);
}

.contact-channel-icon .icon,
.contact-selected-icon .icon {
  width: 24px;
  height: 24px;
}

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

.contact-channel-copy strong {
  margin-bottom: 4px;
  color: var(--sp-deep);
  font-size: 15px;
}

.contact-channel-copy small {
  max-width: 500px;
  color: var(--sp-muted);
  font-size: 12px;
  line-height: 1.45;
}

.contact-channel-arrow {
  color: var(--sp-primary);
}

.contact-back {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: var(--sp-primary);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.contact-selected-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 48px 24px 0;
}

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

.contact-selected-channel small {
  margin-bottom: 2px;
  color: var(--sp-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-selected-channel strong {
  color: var(--sp-deep);
  font-size: 18px;
}

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

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

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

.contact-field > span {
  color: #535363;
  font-size: 11px;
  font-weight: 800;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  outline: 0;
  color: var(--sp-text);
  background: #fff;
  font: inherit;
  font-size: 13px;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--sp-accent);
  box-shadow: 0 0 0 3px rgba(126, 23, 183, 0.1);
}

/* El comentario es texto libre: necesita alto propio y poder crecer. */
.contact-field textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.5;
}

.contact-field > span em {
  color: #8b8b99;
  font-style: normal;
  font-weight: 500;
}

.contact-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px;
  margin: 18px 0 12px;
  color: var(--sp-muted);
  font-size: 11px;
  line-height: 1.5;
}

.contact-consent input {
  margin-top: 2px;
  accent-color: var(--sp-primary);
}

.contact-form-status {
  min-height: 18px;
  margin: 0 0 8px;
  color: #a2283e;
  font-size: 11px;
  font-weight: 700;
}

.contact-submit {
  width: 100%;
  min-height: 52px;
}

.contact-submit:disabled {
  opacity: 0.62;
  cursor: wait;
}

.contact-success {
  text-align: center;
  padding-block: 18px 8px;
}

.contact-success-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--sp-primary);
}

.contact-success-icon .icon {
  width: 30px;
  height: 30px;
}

.contact-success > h2 {
  margin: 0 auto 10px;
}

.contact-success > p {
  max-width: 540px;
  margin: 0 auto 18px;
  color: var(--sp-muted);
  line-height: 1.6;
}

.contact-success-detail {
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--sp-bg);
  font-size: 11px;
}

.contact-success .button {
  min-width: 180px;
}

@media (max-width: 700px) {
  .contact-modal {
    align-items: end;
    padding: 0;
  }

  .contact-dialog {
    width: 100%;
    max-height: 92vh;
    padding: 28px 18px 24px;
    border-radius: 24px 24px 0 0;
  }

  .contact-close {
    top: 14px;
    right: 14px;
  }

  .contact-step > h2 {
    margin-right: 48px;
    font-size: 30px;
  }

  .contact-channel-card {
    min-height: 88px;
    gap: 12px;
    padding: 14px;
  }

  .contact-channel-icon,
  .contact-selected-icon {
    width: 46px;
    height: 46px;
  }

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

  .contact-field-full {
    grid-column: auto;
  }
}
