:root {
  color-scheme: dark;
  --chat--color--main: #2c4085e6;
  --chat--color--main-shade-50: #24356fe6;
  --chat--color--primary: #e74266;
  --chat--color--primary-shade-50: #db4061;
  --chat--color--primary--shade-100: #cf3c5c;
  --chat--color--secondary: #20b69e;
  --chat--color-secondary-shade-50: #1ca08a;


  --bg-1: #1c2550;
  --bg-2: #2c4085e6;
  --bg-3: #18203f;
  --ink: #eef1ff;
  --ink-soft: #c4cbed;
  --card-paper: #ffffff;
  --accent: var(--chat--color--primary);
  --accent-soft: #f06a86;
  --shadow: rgba(5, 8, 18, 0.45);
  --ok: var(--chat--color--secondary);

  --oraculo-yellow: rgb(249 177 13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(231, 66, 102, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 85% 90%, rgba(32, 182, 158, 0.1) 0%, transparent 46%),
    linear-gradient(150deg, #090d1c 0%, #101833 52%, #060b18 100%);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-x: hidden;
  position: relative;
  --parallax-x: 0;
  --parallax-y: 0;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.star-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 12%, rgba(154, 214, 255, 0.1), transparent 32%),
    radial-gradient(circle at 18% 88%, rgba(253, 179, 216, 0.12), transparent 38%);
  filter: blur(2px);
  mix-blend-mode: screen;
  opacity: 0.6;
  transform:
    translate3d(calc(var(--parallax-x) * -8px),
      calc(var(--parallax-y) * -12px),
      0);
}

.app {
  width: min(960px, 100%);
  min-height: 100vh;
  display: grid;
  gap: 14px;
  align-items: start;
  align-content: center;
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .star {
    animation: none;
  }

  .svg-draw-path {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* --- INTRO SCREEN --- */
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  min-height: 100vh;
  padding: 120px 20px 60px;
  /* Space for top nav and bottom */
  text-align: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  z-index: 10;
}

.intro-content {
  width: 100%;
  display: flex;
  justify-content: center;
}

.intro-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 100px;
  max-width: 500px;
  z-index: 2;
}

/* Decor Stars Container */
.decor-stars-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Decor Stars */
.decor-star {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: fade-in-scale 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fade-in-scale {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-30deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.ds-1 {
  top: 12%;
  left: 8%;
  width: 45px;
  animation-delay: 1.5s;
}

.ds-2 {
  top: 10%;
  right: 12%;
  width: 65px;
  animation-delay: 1.7s;
}

.ds-3 {
  top: 48%;
  left: -3%;
  width: 140px;
  animation-delay: 1.9s;
}

.ds-4 {
  bottom: 25%;
  right: -2%;
  width: 100px;
  animation-delay: 2.1s;
}

.ds-5 {
  bottom: 8%;
  left: 10%;
  width: 50px;
  animation-delay: 2.3s;
}

@keyframes intro-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.oraculo-nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  padding: 0 20px;
}


.logo-feria img {
  max-width: 120px;
  height: auto;
}

.logo-oraculo {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

body.quiz-active .logo-oraculo {
  opacity: 1;
  pointer-events: auto;
}

.logo-oraculo img {
  max-width: 240px;
  height: auto;
}

.hero-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 40px;
  /* Padding creates space for the frames */
}

.frame-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.frame-right {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 65%;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.js-inline-svg {
  overflow: visible;
}

.svg-line-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: svg-line-draw-anim 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: var(--draw-delay, 0s);
  will-change: stroke-dashoffset;
}

@keyframes svg-line-draw-anim {
  0% {
    stroke-dashoffset: 1;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

.svg-sparkle {
  opacity: 0;
  transform: scale(0.5);
  transform-origin: 603px 509px;
  animation: sparkle-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: var(--draw-delay, 0s);
}

@keyframes sparkle-pop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.logo-center {
  position: relative;
  z-index: 2;
  width: 85%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.intro-quote {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
  font-style: italic;
  margin: 0;
  opacity: 0.9;
}

.btn-start {
  font-size: 1.2rem;
  padding: 14px 42px;
  background: transparent;
  /* Matching the theme */
  color: var(--card-paper);
  /* dark text for contrast on yellow */
  font-weight: bold;
  border: 2px solid var(--card-paper);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
  margin-top: 10px;
  letter-spacing: 0.1em;
  border-radius: 999px;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.45);
  background: var(--card-paper);
  color: #000;
}

/* Main Quiz Panel */
.panel {
  /* background: rgba(18, 24, 40, 0.74); */
  border: 1px solid var(--oraculo-yellow);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px var(--shadow);
  overflow: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.coming-soon-active .app {
  align-content: center;
}

.coming-soon {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 18px;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 48px 28px;
  text-align: center;
  border: 1px solid rgba(249, 177, 13, 0.45);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(249, 177, 13, 0.12), transparent 45%),
    rgba(8, 12, 26, 0.72);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.coming-soon-badge {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(249, 177, 13, 0.4);
  color: var(--oraculo-yellow);
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.coming-soon-title {
  margin: 0;
  font-family: "Cinzel", serif;
  max-width: 100%;
  font-size: clamp(2rem, 9vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--card-paper);
  text-shadow: 0 0 24px rgba(249, 177, 13, 0.16);
  overflow-wrap: anywhere;
}

.coming-soon-copy {
  max-width: 520px;
  margin: 0;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
  text-wrap: balance;
}

.coming-soon-copy-soft {
  color: var(--ink-soft);
}

.panel-head {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.title {
  margin: 0;
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  text-transform: uppercase;
  color: var(--ink);
}

.progress {
  min-width: 110px;
  text-align: right;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 18px;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--oraculo-yellow), #83530e);
  transition: width 0.35s ease;
}

.stage {
  min-height: 440px;
  padding: 16px;
  position: relative;
}

.slide {
  opacity: 0;
  transform: translateX(40px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
  /* position: absolute; */
  inset: 16px;
  display: grid;
  gap: 16px;
  align-content: start;
  pointer-events: none;

}

.slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  margin: 30px 20px;
}

.question {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
  text-align: center;
}

.name-step {
  max-width: 560px;
  margin: 30px auto !important;
  justify-items: center;
  text-align: center;
}

.name-help {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.name-form {
  width: min(420px, 100%);
  display: grid;
  gap: 10px;
}

.name-input {
  width: 100%;
  border: 1px solid rgba(249, 177, 13, 0.45);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--ink);
  padding: 14px 16px;
  font-size: 1.1rem;
  text-align: center;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.name-input:focus {
  border-color: var(--oraculo-yellow);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(249, 177, 13, 0.2);
}

.name-error {
  min-height: 1.2em;
  margin: 0;
  color: #ffb9b9;
  font-size: 0.9rem;
}

.btn-name-next {
  background: var(--oraculo-yellow);
  border: 1px solid var(--oraculo-yellow);
  color: #1a2238;
  padding: 12px 28px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.btn-name-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(249, 177, 13, 0.35);
}

.btn-name-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

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

.option {
  position: relative;
  border: 1px solid rgba(249, 177, 13, 0.35);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  color: var(--ink);
  padding: 30px 14px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out, background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.option span {
  position: relative;
  z-index: 5;
  pointer-events: none;
}

.option:hover {
  background: rgba(249, 177, 13, 0.08);
  color: var(--oraculo-yellow);
  box-shadow: 0 0 25px rgba(249, 177, 13, 0.25);
  border-color: var(--oraculo-yellow);
  transform: translateY(-4px);
}

.option.selected {
  border-color: var(--oraculo-yellow);
  background: var(--oraculo-yellow);
  color: #1a2238;
  /* Fuerte contraste para que el texto resalte mucho al seleccionarse */
  font-weight: 700;
  animation: magic-pulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes magic-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(249, 177, 13, 0.8);
  }

  50% {
    transform: scale(0.95);
    box-shadow: 0 0 25px 15px rgba(249, 177, 13, 0);
  }

  100% {
    transform: scale(0.98);
    box-shadow: 0 0 10px 0 rgba(249, 177, 13, 0);
  }
}

/* Star Hover Effect */
.btn-star {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  z-index: 2;
  filter: drop-shadow(0 0 4px var(--oraculo-yellow));
  pointer-events: none;
}

.btn-star-1 {
  width: 25px;
  transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);
}

.btn-star-2 {
  width: 15px;
  transition: all 1s cubic-bezier(0, 0.4, 0, 1.01);
}

.btn-star-3 {
  width: 5px;
  transition: all 1s cubic-bezier(0, 0.4, 0, 1.01);
}

.btn-star-4 {
  width: 8px;
  transition: all 0.8s cubic-bezier(0, 0.4, 0, 1.01);
}

.btn-star-5 {
  width: 15px;
  transition: all 0.6s cubic-bezier(0, 0.4, 0, 1.01);
}

.btn-star-6 {
  width: 5px;
  transition: all 0.8s ease;
}

.option:hover .btn-star {
  opacity: 1;
  filter: drop-shadow(0 0 8px var(--oraculo-yellow));
}

.option:hover .btn-star-1 {
  transform: translate(-140%, -150%) scale(1);
  left: 0%;
  top: 0%;
}

.option:hover .btn-star-2 {
  transform: translate(-50%, -180%) scale(1);
  left: 20%;
  top: 0%;
}

.option:hover .btn-star-3 {
  transform: translate(50%, 150%) scale(1);
  left: 30%;
  top: 100%;
}

.option:hover .btn-star-4 {
  transform: translate(100%, -100%) scale(1);
  left: 80%;
  top: 10%;
}

.option:hover .btn-star-5 {
  transform: translate(150%, 50%) scale(1);
  left: 90%;
  top: 20%;
}

.option:hover .btn-star-6 {
  transform: translate(50%, 150%) scale(1);
  left: 70%;
  top: 90%;
}

.fil0 {
  fill: var(--oraculo-yellow);
}

.result {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  gap: 18px;
}

.result.active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

/* Results View Overrides */
.results-view .panel-head,
.results-view .progress-bar {
  display: none;
}

.results-view .panel {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.card-main {
  background: transparent;
  color: var(--ink);
  padding: 0;
  border: none;
  box-shadow: none;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.card-tag {
  display: none;
  /* Removed as requested */
}

.card-animation {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  filter: drop-shadow(0 0 30px rgba(249, 177, 13, 0.15));
}

.card-video {
  width: 100%;
  /* height: 100%; */
  object-fit: contain;
}

.result-title {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  color: var(--oraculo-yellow);
  text-shadow: 0 0 15px rgba(249, 177, 13, 0.4);
  letter-spacing: 0.05em;
}

.prediction {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
  text-align: center;
  font-size: 1.15rem;
  max-width: 500px;
  text-wrap: balance;
}

.sign {
  margin: 0;
  color: var(--oraculo-yellow);
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

/* Secondary Results */
.secondary {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(249, 177, 13, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.secondary-title {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

.secondary-list {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.secondary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  cursor: help;
}

.secondary-name {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.secondary-pct {
  color: var(--oraculo-yellow);
  font-weight: 700;
  font-size: 1.1rem;
}

.secondary-tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(18, 24, 40, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(249, 177, 13, 0.4);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 12px;
  width: 240px;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  text-wrap: balance;
}

.secondary-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: rgba(249, 177, 13, 0.4) transparent transparent transparent;
}

.secondary-item:hover .secondary-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.btn-share {
  margin-top: 30px;
  background: var(--oraculo-yellow);
  border: 1px solid var(--oraculo-yellow);
  color: #1a2238; /* Contraste fuerte */
  padding: 14px 32px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 8px 20px rgba(249, 177, 13, 0.3);
}

.btn-share svg {
  transition: transform 0.3s ease;
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(249, 177, 13, 0.45);
  background: transparent;
  color: var(--oraculo-yellow);
}

.btn-share:hover svg {
  transform: scale(1.1);
}

.btn-share:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.btn-restart {
  background: transparent;
  border: 1px solid rgba(249, 177, 13, 0.3);
  color: var(--oraculo-yellow);
  padding: 12px 28px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 320px;
}

.btn-restart:hover {
  background: rgba(249, 177, 13, 0.1);
  border-color: var(--oraculo-yellow);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(249, 177, 13, 0.2);
}

.tiny {
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.9;
}

@media (max-width: 720px) {
  .coming-soon {
    min-height: calc(100vh - 120px);
    padding: 36px 20px;
    border-radius: 22px;
  }

  .stage {
    min-height: 360px;
  }

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

  .option {
    padding: 18px 14px;
  }

  .slide {
    inset: 12px;
  }

  .card-main {
    transform: rotate(-1deg);
  }

  .intro {
    padding: 80px 20px 40px;
    gap: 28px;
  }

  .intro-bottom {
    margin-top: 40px;
    gap: 20px;
  }
}

/* ── Pantallas cortas: altura ≤ 800px (laptops, ventanas reducidas) ── */
@media (max-height: 800px) {
  .intro {
    padding: 70px 20px 30px;
    gap: 24px;
    min-height: 100dvh;
  }

  .intro-bottom {
    margin-top: 30px;
    gap: 18px;
  }

  /* Escalar el bloque completo logo+frames de forma uniforme */
  .hero-logo {
    transform: scale(0.88);
    transform-origin: center top;
    margin-bottom: -40px; /* compensar espacio visual del scale */
  }

  .intro-quote {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  }

  .btn-start {
    font-size: 1rem;
    padding: 10px 36px;
    margin-top: 4px;
  }

  .stage {
    min-height: 380px;
  }

  .option {
    padding: 20px 14px;
  }
}

/* ── Pantallas muy cortas: altura ≤ 650px ── */
@media (max-height: 650px) {
  .coming-soon {
    min-height: calc(100vh - 96px);
    padding: 28px 18px;
    gap: 14px;
  }

  .intro {
    padding: 55px 20px 16px;
    gap: 14px;
  }

  .intro-bottom {
    margin-top: 14px;
    gap: 10px;
    max-width: 420px;
  }

  /* Escalar todo el bloque logo+frames proporcionalmente */
  .hero-logo {
    transform: scale(0.72);
    transform-origin: center top;
    margin-bottom: -100px; /* compensar espacio visual del scale */
  }

  .intro-quote {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.35;
  }

  .btn-start {
    font-size: 0.95rem;
    padding: 9px 30px;
    margin-top: 0;
  }

  /* Decor stars pequeñas para no tapar contenido */
  .ds-1 { width: 32px; }
  .ds-2 { width: 46px; }
  .ds-3 { width: 90px; }
  .ds-4 { width: 70px; }
  .ds-5 { width: 36px; }

  .stage {
    min-height: 300px;
    padding: 10px;
  }

  .option {
    padding: 14px 12px;
    font-size: 1rem;
  }

  .panel-head {
    padding: 10px 14px;
  }

  .question {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  }

  /* Resultados */
  .card-animation {
    max-width: 260px;
  }

  .result-title {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
  }

  .prediction {
    font-size: 1rem;
  }
}

/* ── Combinado: ancho Y altura reducidos (laptops medianos) ── */
@media (max-width: 1024px) and (max-height: 768px) {
  .intro {
    padding: 65px 20px 24px;
    gap: 20px;
  }

  .intro-bottom {
    margin-top: 20px;
    gap: 14px;
  }

  /* Escalar logo+frames juntos uniformemente */
  .hero-logo {
    transform: scale(0.82);
    transform-origin: center top;
    margin-bottom: -60px;
  }

  .stage {
    min-height: 340px;
  }

  .option {
    padding: 18px 12px;
    font-size: 1rem;
  }
}
