/* Hallmark · macrostructure: Guided diagnostic · tone: quiet luxury technology */

html,
body.roi-page {
  overflow-x: clip;
}

.roi-page {
  --roi-dark: #090b0f;
  --roi-panel: rgba(19, 22, 28, 0.86);
  --roi-panel-strong: rgba(16, 18, 23, 0.96);
  --roi-gold: #c8a96a;
  --roi-gold-soft: #e7d2a3;
  --roi-ivory: #f5f1e8;
  --roi-paper: #f4efe4;
  --roi-ink: #181713;
  --roi-muted: #a6adb7;
  --roi-green: #6eba8a;
  --roi-blue: #8aa7c8;
  --roi-line: rgba(231, 210, 163, 0.17);
  --roi-line-strong: rgba(231, 210, 163, 0.34);
  --roi-error: #d48181;
  --roi-ease: cubic-bezier(0.16, 1, 0.3, 1);
  background:
    linear-gradient(180deg, #07080b 0%, var(--roi-dark) 48%, #0d1015 100%);
  color: var(--roi-ivory);
}

.roi-page [hidden] {
  display: none !important;
}

.roi-page a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.roi-page a:focus-visible,
.roi-page button:focus-visible,
.roi-page input:focus-visible {
  outline: 2px solid var(--roi-gold-soft);
  outline-offset: 3px;
}

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

.roi-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 54px;
  overflow: hidden;
  border-bottom: 1px solid var(--roi-line);
  background:
    linear-gradient(90deg, rgba(7, 8, 11, 0.98) 0%, rgba(7, 8, 11, 0.88) 48%, rgba(7, 8, 11, 0.58) 100%),
    linear-gradient(180deg, rgba(7, 8, 11, 0.18), rgba(7, 8, 11, 0.9)),
    url("/assets/blog/img/roi-recorridos-virtuales-1.jpg") center right / cover no-repeat;
}

.roi-hero::before {
  content: "";
  position: absolute;
  inset: 78px 0 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(231, 210, 163, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(231, 210, 163, 0.06) 0 1px, transparent 1px 100%);
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.72) 48%, transparent 100%);
  opacity: 0.7;
}

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

.roi-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(245, 241, 232, 0.64);
  font-size: 12px;
}

.roi-breadcrumb a:hover {
  color: var(--roi-gold-soft);
}

.roi-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--roi-ivory);
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: clamp(40px, 6.2vw, 82px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}

.roi-hero__sub {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--roi-gold-soft);
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: clamp(23px, 3.4vw, 40px);
  line-height: 1.08;
}

.roi-lead {
  max-width: 670px;
  margin: 18px 0 0;
  color: rgba(245, 241, 232, 0.75);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.75;
}

.roi-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.roi-badge {
  border: 1px solid rgba(231, 210, 163, 0.3);
  color: var(--roi-gold-soft);
  background: rgba(8, 10, 14, 0.62);
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roi-main {
  position: relative;
  z-index: 2;
  padding: 42px 0 110px;
}

.roi-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.roi-shell,
.roi-side-card {
  border: 1px solid var(--roi-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.036), rgba(255, 255, 255, 0.012)),
    var(--roi-panel);
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.roi-shell {
  min-height: 570px;
  padding: clamp(20px, 3vw, 34px);
}

.roi-progress {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.roi-progress__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(245, 241, 232, 0.7);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roi-progress__track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.roi-progress__bar {
  display: block;
  width: 3%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--roi-gold), var(--roi-green));
  transition: width 420ms var(--roi-ease);
}

.roi-question {
  min-height: 365px;
  display: grid;
  align-content: start;
}

.roi-kicker {
  margin: 0 0 12px;
  color: var(--roi-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.roi-question__title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.roi-question h2 {
  max-width: 820px;
  margin: 0;
  color: var(--roi-ivory);
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.roi-info {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 7px;
  border: 1px solid rgba(231, 210, 163, 0.38);
  border-radius: 50%;
  color: var(--roi-gold-soft);
  background: rgba(255, 255, 255, 0.04);
  font: 700 12px/1 var(--font-body, Inter, sans-serif);
  cursor: help;
}

.roi-info::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(260px, 72vw);
  padding: 10px 12px;
  border: 1px solid var(--roi-line-strong);
  border-radius: 8px;
  background: rgba(8, 10, 14, 0.98);
  color: var(--roi-ivory);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.roi-info:hover::after,
.roi-info:focus-visible::after,
.roi-info:active::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

.roi-option {
  min-height: 118px;
  display: grid;
  gap: 8px;
  align-content: start;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(231, 210, 163, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--roi-ivory);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.roi-option:hover {
  border-color: rgba(231, 210, 163, 0.38);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.roi-option.is-selected {
  border-color: rgba(231, 210, 163, 0.72);
  background:
    linear-gradient(135deg, rgba(200, 169, 106, 0.2), rgba(110, 186, 138, 0.08)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(231, 210, 163, 0.18);
}

.roi-option__title {
  color: #fff8e7;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.roi-option__detail,
.roi-option__meta {
  color: rgba(245, 241, 232, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.roi-option__meta {
  display: grid;
  gap: 5px;
  padding-top: 4px;
}

.roi-option--experience {
  min-height: 205px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(12, 15, 20, 0.86);
}

.roi-number-wrap {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.roi-number-input {
  display: flex;
  align-items: center;
  min-height: 64px;
  overflow: hidden;
  border: 1px solid rgba(231, 210, 163, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.roi-number-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--roi-ivory);
  padding: 0 18px;
  font-size: 22px;
  outline: none;
}

.roi-number-input span {
  padding: 0 18px;
  color: var(--roi-gold-soft);
  font-weight: 700;
}

.roi-number-wrap p {
  margin: 0;
  color: rgba(245, 241, 232, 0.65);
  font-size: 13px;
  line-height: 1.55;
}

.roi-option--skip {
  min-height: 94px;
}

.roi-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(231, 210, 163, 0.12);
}

.roi-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid rgba(231, 210, 163, 0.32);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.roi-btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--roi-gold), var(--roi-gold-soft));
  color: #17130a;
}

.roi-btn--secondary {
  background: rgba(255, 255, 255, 0.035);
  color: var(--roi-gold-soft);
}

.roi-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.roi-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--roi-muted);
  font-size: 13px;
}

.roi-message[data-type="error"] {
  color: var(--roi-error);
}

.roi-processing {
  min-height: 410px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
}

.roi-processing__orb {
  width: 132px;
  height: 132px;
  border: 1px solid rgba(231, 210, 163, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(110, 186, 138, 0.28) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(231, 210, 163, 0.22) 50%, transparent 51%);
  transform: rotate(45deg);
  animation: roi-scan 2200ms var(--roi-ease) infinite;
}

.roi-processing h2 {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: 0;
}

.roi-processing__bar {
  width: min(360px, 80vw);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.roi-processing__bar span {
  display: block;
  width: 52%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--roi-gold), var(--roi-green), var(--roi-blue));
  animation: roi-processing 1500ms ease-in-out infinite;
}

.roi-report {
  display: grid;
  gap: 16px;
  border-radius: 8px;
  background: var(--roi-paper);
  color: var(--roi-ink);
  padding: clamp(18px, 3vw, 30px);
}

.roi-report-cover,
.roi-result-card,
.roi-score-panel,
.roi-report-section,
.roi-final-cta {
  border: 1px solid rgba(24, 23, 19, 0.12);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.72);
  box-shadow: 0 10px 28px rgba(24, 23, 19, 0.06);
}

.roi-report-cover {
  padding: clamp(22px, 3vw, 32px);
}

.roi-report .roi-kicker {
  color: #766126;
}

.roi-report h2,
.roi-report h3 {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-weight: 500;
  letter-spacing: 0;
  color: #17130a;
}

.roi-report h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.roi-report h3 {
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.05;
}

.roi-report p {
  margin: 12px 0 0;
  color: rgba(24, 23, 19, 0.76);
  line-height: 1.65;
}

.roi-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.roi-result-card {
  min-height: 170px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 18px;
}

.roi-result-card__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(24, 23, 19, 0.64);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roi-report .roi-info {
  width: 23px;
  height: 23px;
  margin: 0;
  border-color: rgba(118, 97, 38, 0.36);
  color: #766126;
  background: rgba(118, 97, 38, 0.06);
}

.roi-report .roi-info::after {
  background: #17130a;
  color: var(--roi-ivory);
}

.roi-result-card strong {
  display: block;
  color: #17130a;
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 0.98;
}

.roi-result-card p {
  margin: 0;
  font-size: 13px;
}

.roi-score-panel {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
}

.roi-score-ring {
  --score: 50;
  width: clamp(108px, 12vw, 138px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--roi-paper) 58%, transparent 59%),
    conic-gradient(var(--roi-green) calc(var(--score) * 1%), rgba(24, 23, 19, 0.11) 0);
  color: #17130a;
}

.roi-score-ring span {
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 0.85;
}

.roi-score-ring small {
  margin-top: 44px;
  color: rgba(24, 23, 19, 0.6);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roi-report-section {
  padding: clamp(18px, 3vw, 26px);
}

.roi-recommendations {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.roi-recommendations p {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--roi-gold);
  border-radius: 6px;
  background: rgba(24, 23, 19, 0.045);
}

.roi-next-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.roi-next-steps span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(24, 23, 19, 0.045);
  color: rgba(24, 23, 19, 0.74);
  font-size: 13px;
  line-height: 1.35;
}

.roi-next-steps b {
  display: inline-grid;
  flex: 0 0 26px;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #17130a;
  color: var(--roi-gold-soft);
  font-size: 12px;
}

.roi-final-cta {
  margin-top: 16px;
  padding: clamp(20px, 3vw, 30px);
  color: var(--roi-ink);
}

.roi-final-cta h3 {
  max-width: 780px;
  margin: 0;
  color: #17130a;
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.roi-cta-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.roi-final-cta .roi-btn {
  min-height: 50px;
  padding: 0 12px;
  font-size: clamp(11px, 0.9vw, 13px);
}

.roi-final-cta .roi-btn--secondary {
  border-color: rgba(24, 23, 19, 0.16);
  background: rgba(24, 23, 19, 0.045);
  color: #2d281c;
}

.roi-final-cta p {
  margin: 16px 0 0;
  color: rgba(24, 23, 19, 0.66);
  font-size: 13px;
  line-height: 1.55;
}

.roi-email-form {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(24, 23, 19, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
}

.roi-email-form label {
  display: block;
  margin-bottom: 8px;
  color: rgba(24, 23, 19, 0.7);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roi-email-form div {
  display: flex;
  gap: 10px;
}

.roi-email-form input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(24, 23, 19, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  background: #fffaf1;
  color: var(--roi-ink);
  font: 500 14px/1 var(--font-body, Inter, sans-serif);
}

.roi-email-form p {
  min-height: 18px;
  margin: 10px 0 0;
  color: #356b46;
}

.roi-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.roi-side-card {
  padding: 20px;
}

.roi-side-card h2,
.roi-side-card h3 {
  margin: 0 0 10px;
  color: var(--roi-ivory);
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

.roi-side-card p {
  margin: 0;
  color: rgba(245, 241, 232, 0.66);
  font-size: 13px;
  line-height: 1.65;
}

.roi-side-card a {
  color: var(--roi-gold-soft);
}

.roi-side-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roi-side-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(245, 241, 232, 0.7);
  font-size: 13px;
  line-height: 1.4;
}

.roi-side-list li::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--roi-green);
}

.roi-privacy-note {
  margin-top: 18px;
  color: rgba(245, 241, 232, 0.5);
  font-size: 12px;
  line-height: 1.55;
}

@keyframes roi-processing {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(205%);
  }
}

@keyframes roi-scan {
  0%,
  100% {
    transform: rotate(45deg) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: rotate(45deg) scale(1.05);
    opacity: 1;
  }
}

@media (max-width: 1120px) {
  .roi-layout {
    grid-template-columns: 1fr;
  }

  .roi-aside {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 820px) {
  .roi-hero {
    min-height: 46vh;
    padding: 128px 0 42px;
    background-position: center;
  }

  .roi-hero::before {
    background-size: 72px 72px;
  }

  .roi-main {
    padding: 28px 0 82px;
  }

  .roi-options,
  .roi-metrics-grid,
  .roi-next-steps,
  .roi-aside {
    grid-template-columns: 1fr;
  }

  .roi-shell {
    min-height: auto;
  }

  .roi-score-panel {
    grid-template-columns: repeat(2, minmax(0, auto));
  }

  .roi-score-panel > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .roi-hero {
    padding: 112px 0 34px;
  }

  .roi-badges {
    gap: 8px;
  }

  .roi-badge {
    font-size: 10px;
    padding: 8px 10px;
  }

  .roi-shell,
  .roi-report {
    padding: 16px;
  }

  .roi-progress__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .roi-question__title {
    gap: 8px;
  }

  .roi-question h2 {
    font-size: clamp(30px, 10vw, 40px);
  }

  .roi-info::after {
    left: auto;
    right: -4px;
    transform: translateY(4px);
  }

  .roi-info:hover::after,
  .roi-info:focus-visible::after,
  .roi-info:active::after {
    transform: translateY(0);
  }

  .roi-option {
    min-height: 106px;
    padding: 15px;
  }

  .roi-option--experience {
    min-height: 170px;
  }

  .roi-controls,
  .roi-email-form div {
    flex-direction: column;
    align-items: stretch;
  }

  .roi-btn {
    width: 100%;
  }

  .roi-cta-actions {
    grid-template-columns: 1fr;
  }

  .roi-final-cta .roi-btn {
    font-size: clamp(11px, 3vw, 13px);
  }

  .roi-score-panel {
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .roi-progress__bar,
  .roi-option,
  .roi-btn,
  .roi-processing__bar span,
  .roi-processing__orb {
    animation: none !important;
    transition: none !important;
  }
}
