.guia {
  --guia-duration: 760ms;
  --guia-ease: cubic-bezier(.22,.68,0,1);
  width: min(calc(100% - 24px), 1420px);
  margin-inline: auto;
  border-radius: clamp(36px, 3.8vw, 56px);
  background: #fff;
  box-shadow: inset 0 0 0 1px #d5d5d5;
  color: var(--ink);
  font-family: var(--display);
  padding: clamp(64px,7vw,112px) 0 clamp(28px,4vw,64px);
  scroll-margin-top: var(--masthead-height);
}
.guia[hidden], .guia [hidden] { display: none; }
.guia:not([hidden]) + .closing .closing-mint::before { content: none; }
.guia-interior { width: min(calc(100% - 28px), 1380px); margin: 0 auto; }
.guia h2, .guia h3, .guia p { margin: 0; }
.guia h2 {
  padding-bottom: clamp(32px,3.8vw,58px);
  text-align: center;
  font: 800 clamp(42px,5.4vw,78px)/1.06 var(--display);
  letter-spacing: -.06em;
  word-spacing: .055em;
}
.guia h2 span { color: var(--blue); }
.guia-viewport { container-type: inline-size; border-radius: 28px; }
.guia-track { display: grid; gap: 16px; }
.guia-slide { position: relative; overflow: hidden; min-width: 0; height: clamp(410px,35cqw,530px); border-radius: 28px; }
.guia[data-enhanced] .guia-viewport { overflow: hidden; contain: layout; touch-action: pan-y pinch-zoom; }
.guia[data-enhanced] .guia-track {
  display: flex;
  gap: var(--guia-gap);
  width: max-content;
  transform: translateX(var(--guia-shift));
  transition: transform var(--guia-duration) var(--guia-ease);
}
.guia[data-enhanced] .guia-slide {
  flex: none;
  width: var(--guia-compact);
  transition: width var(--guia-duration) var(--guia-ease);
}
.guia[data-enhanced] .guia-slide[data-active="true"] { width: var(--guia-expanded); }
.guia-select {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.guia-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(2px,2.5vw,36px) 0;
}
.guia-counter { color: var(--secondary); font: 600 .92rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.guia-dots, .guia-arrows { display: flex; align-items: center; }
.guia-controls button { display: grid; place-items: center; border: 0; cursor: pointer; padding: 0; }
.guia-dots button { width: 36px; height: 44px; background: transparent; border-radius: 22px; }
.guia-dots button::after { content: ''; width: 12px; height: 12px; background: #898989; border-radius: 100%; }
.guia-dots button[aria-current="true"]::after { background: var(--blue); }
.guia-arrows { justify-self: end; gap: 12px; }
.guia-arrows button { width: 48px; height: 48px; border-radius: 50%; color: var(--ink); background: #f2f2f2; }
.guia-arrows button:disabled { color: #a8b3c5; cursor: default; }
.guia-arrows svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
@media (hover:hover) {
  .guia-arrows button:hover:enabled { background: #e2e2e2; }
}
.guia button:focus-visible, .guia-viewport:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.guia-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 767px) {
  .guia { width: calc(100% - 12px); padding-block: 48px 20px; border-radius: 32px; }
  .guia-interior { width: calc(100% - 20px); }
  .guia h2 { font-size: clamp(35px,8.8vw,54px); padding-bottom: 32px; }
  .guia-viewport, .guia-slide { border-radius: 24px; }
  .guia-slide { height: clamp(445px,115cqw,510px); }
  .guia-controls { grid-template-columns: 1fr auto; gap: 0; padding: 12px 2px 0; }
  .guia-counter { font-size: .82rem; }
  .guia-dots { grid-row: 2; grid-column: 1/-1; justify-content: center; }
  .guia-arrows { grid-area: 1/2; gap: 10px; }
  .guia-arrows button { width: 44px; height: 44px; }
}
.guia-slide {
  --guia-paper: #c7d7ff;
  --guia-ink: #202955;
  --guia-tint: #405cba;
  --guia-line: #90acf4;
  --guia-active-wash: radial-gradient(ellipse at 50% 4%, #fff 10%, #f5f7ff 49%, #d7e4ff 100%);
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid var(--guia-line);
  border-radius: 30px;
  background: var(--guia-paper);
  color: var(--guia-ink);
  font-family: var(--display, "Plus Jakarta Sans", sans-serif);
}

.guia-slide[data-topic="compraventa"] {
  --guia-paper: #ffe8a9;
  --guia-ink: #302b24;
  --guia-tint: #7f590d;
  --guia-line: #eaca83;
  --guia-active-wash: linear-gradient(113deg, #ffdf88 0%, #fff1c8 47%, #fff8e8 100%);
}

.guia-slide[data-topic="privacidad"] {
  --guia-paper: #aee9d8;
  --guia-ink: #163d37;
  --guia-tint: #276b60;
  --guia-line: #8acdbb;
  --guia-active-wash: linear-gradient(111deg, #edfcf4 0%, #d8f7e9 52%, #a7e4d1 100%);
}

.guia-slide::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: var(--guia-active-wash);
  opacity: 0;
  transition: opacity var(--guia-duration, 760ms) var(--guia-ease, ease);
}

.guia-slide[data-active="true"]::before { opacity: 1; }

.guia-slide .guia-name,
.guia-slide .guia-story,
.guia-slide .guia-illustration {
  position: absolute;
  margin: 0;
  transition-property: left, top, width, height, transform;
  transition-duration: var(--guia-duration, 760ms);
  transition-timing-function: var(--guia-ease, ease);
}

.guia-slide .guia-name,
.guia-slide .guia-story { z-index: 2; }

.guia-slide .guia-name {
  top: 10%;
  left: 5.5%;
  display: flex;
  align-items: center;
  gap: .42em;
  color: var(--guia-tint);
  font-size: clamp(17px, 2.15cqw, 27px);
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1.15;
  white-space: nowrap;
}

.guia-slide[data-topic="compraventa"] .guia-name::before,
.guia-slide[data-topic="privacidad"] .guia-name::before {
  flex: 0 0 1.02em;
  width: 1.02em;
  height: 1.02em;
  content: "";
  background: currentColor;
  mask: var(--guia-name-icon) center / contain no-repeat;
}

.guia-slide[data-topic="compraventa"] .guia-name {
  --guia-name-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Ccircle cx='12' cy='14' r='8'/%3E%3Cpath d='M10 2h4m-2 0v4m5.7 1.8 1.8-1.8M12 9v5l3 1'/%3E%3C/svg%3E");
}

.guia-slide[data-topic="privacidad"] .guia-name {
  --guia-name-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Crect x='4.5' y='10' width='15' height='11' rx='2.5'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3m-4 5v2'/%3E%3C/svg%3E");
}

.guia-slide .guia-story {
  top: 27%;
  left: 5.5%;
  width: 42%;
}

.guia-slide .guia-story h3 {
  margin: 0;
  color: var(--guia-ink);
  font-size: clamp(42px, 6.15cqw, 72px);
  font-weight: 780;
  letter-spacing: -.06em;
  word-spacing: .06em;
  line-height: .99;
  text-wrap: balance;
}

.guia-slide .guia-story h3 span { color: var(--guia-tint); }

.guia-slide .guia-story p {
  margin: clamp(14px, 1.9cqw, 24px) 0 0;
  color: var(--guia-ink);
  font-size: clamp(16px, 2.04cqw, 23px);
  font-weight: 530;
  line-height: 1.4;
  letter-spacing: -.033em;
  text-wrap: pretty;
  opacity: .88;
  transition: opacity 280ms ease 210ms;
}

.guia-slide .guia-illustration {
  top: 0;
  left: 42%;
  width: 64%;
  height: 105%;
  z-index: 1;
  pointer-events: none;
}

.guia-slide .guia-illustration > :is(img, svg) {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.guia-slide[data-topic="acreditacion"] .guia-name {
  left: 50%;
  top: 7%;
  color: #4463cf;
  transform: translateX(-50%);
}

.guia-slide[data-topic="acreditacion"] .guia-story {
  top: 18%;
  left: 6%;
  width: 88%;
  text-align: center;
}

.guia-slide[data-topic="acreditacion"] .guia-story h3 { font-size: clamp(38px, 5.45cqw, 65px); }

.guia-slide[data-topic="acreditacion"] .guia-story p {
  max-width: 40ch;
  margin: clamp(10px, 1.4cqw, 18px) auto 0;
  color: #465674;
}

.guia-slide[data-topic="acreditacion"] .guia-illustration {
  left: 14%;
  top: 44%;
  width: 72%;
  height: 72%;
}

.guia-slide[data-topic="compraventa"] .guia-name,
.guia-slide[data-topic="compraventa"] .guia-story { left: 54%; }

.guia-slide[data-topic="compraventa"] .guia-illustration {
  top: -2%;
  left: -6%;
  width: 63%;
  height: 106%;
}

.guia-slide[data-active="false"] .guia-name {
  left: 9%;
  top: 8%;
  font-size: clamp(15px, 7cqw, 23px);
  transform: none;
}

.guia-slide[data-active="false"] .guia-story {
  left: 9%;
  top: 18.5%;
  width: 84%;
  text-align: left;
}

.guia-slide[data-active="false"] .guia-story h3 {
  font-size: clamp(22px, 12.5cqw, 44px);
  line-height: 1.025;
  text-wrap: balance;
}

.guia-slide[data-active="false"] .guia-story p {
  visibility: hidden;
  opacity: 0;
  transition-delay: 0s;
}

.guia-slide[data-active="false"] .guia-illustration {
  left: -25%;
  top: 42%;
  width: 150%;
  height: 68%;
}

@media (max-width: 767px) {
  .guia-slide { border-radius: 24px; }
  .guia-slide .guia-name {
    top: 6%;
    left: 7.5%;
    font-size: clamp(14px, 5.4cqw, 20px);
  }
  .guia-slide .guia-story {
    top: 17%;
    left: 7.5%;
    width: 86%;
  }
  .guia-slide .guia-story h3,
  .guia-slide[data-topic="acreditacion"] .guia-story h3 {
    font-size: clamp(29px, 11cqw, 44px);
    line-height: 1.03;
  }
  .guia-slide .guia-story p {
    margin: 12px 0 0;
    font-size: clamp(14px, 4.8cqw, 17px);
    line-height: 1.41;
  }
  .guia-slide[data-topic="acreditacion"] .guia-name { top: 6%; }
  .guia-slide[data-topic="acreditacion"] .guia-story {
    top: 16%;
    left: 5%;
    width: 90%;
  }
  .guia-slide[data-topic="acreditacion"] .guia-story p {
    max-width: 30ch;
    margin-top: 12px;
  }
  .guia-slide[data-topic="compraventa"] .guia-name,
  .guia-slide[data-topic="compraventa"] .guia-story { left: 7.5%; }

  .guia-slide[data-topic] .guia-illustration {
    left: -9%;
    top: 46%;
    width: 118%;
    height: 59%;
  }
  .guia-slide[data-active="false"] .guia-name {
    top: 6%;
    left: 8%;
    font-size: clamp(14px, 6.8cqw, 20px);
  }
  .guia-slide[data-active="false"] .guia-story {
    left: 8%;
    width: 85%;
    top: 17%;
  }
  .guia-slide[data-active="false"] .guia-story h3 {
    font-size: clamp(26px, 12.6cqw, 39px);
  }
  .guia-slide[data-active="false"] .guia-illustration {
    left: -27%;
    top: 44%;
    width: 154%;
    height: 64%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guia *, .guia ::before, .guia ::after { transition: none !important; }
}
