/* Súper Residente — quiz tipo Typeform + página de resultados */

.quiz-body { background: var(--sr-yellow); min-height: 100vh; min-height: 100dvh; }
.quiz-body.is-result { background: var(--sr-cream); }

/* Barra superior */
.quiz-top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--sr-yellow);
}
.is-result .quiz-top { position: static; }
.quiz-top__inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.quiz-top .logo__mark { width: 34px; height: 34px; font-size: 14px; }
.quiz-top__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px;
  background: transparent; border: 0; border-radius: var(--radius-pill); color: var(--sr-black);
  font: 600 14px/1 var(--font-sans); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: rgba(10,10,10,.08); }
.icon-btn[hidden] { display: none; }

.progress { height: 5px; background: rgba(10,10,10,.12); }
.progress__bar { height: 100%; width: 0; background: var(--sr-black); transition: width .45s cubic-bezier(.2,.8,.2,1); }

/* Escenario */
.stage {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  padding: calc(84px + env(safe-area-inset-top, 0px)) 0 calc(28px + env(safe-area-inset-bottom, 0px));
}
.screen { width: 100%; max-width: 680px; margin-inline: auto; padding-inline: var(--gutter); }
.screen.enter { animation: screenIn .42s cubic-bezier(.2,.8,.2,1) both; }
.screen.leave { animation: screenOut .26s ease-in both; }
.screen.leave-back { animation: screenOutBack .26s ease-in both; }
.screen.enter-back { animation: screenInBack .42s cubic-bezier(.2,.8,.2,1) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes screenOut { to { opacity: 0; transform: translateY(-36px); } }
@keyframes screenInBack { from { opacity: 0; transform: translateY(-36px); } to { opacity: 1; transform: none; } }
@keyframes screenOutBack { to { opacity: 0; transform: translateY(36px); } }
@media (prefers-reduced-motion: reduce) {
  .screen.enter, .screen.leave, .screen.leave-back, .screen.enter-back { animation-duration: .01s; }
}

.q-count { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; letter-spacing: .06em; margin-bottom: 14px; }
.q-count__arrow { font-size: 16px; }
.q-title {
  font-family: var(--font-display); font-weight: 900; letter-spacing: -0.025em;
  font-size: clamp(25px, 5.4vw, 40px); line-height: 1.1; margin: 0 0 24px;
}
.q-hint { font-size: 13px; font-weight: 600; margin: 14px 0 0; opacity: .7; }
@media (hover: none) { .q-hint--keys { display: none; } }

/* Opciones */
.options { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.option {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 52px; padding: 10px 14px 10px 10px;
  background: rgba(255,255,255,.55); color: var(--sr-black);
  border: 2px solid rgba(10,10,10,.85); border-radius: var(--radius-md);
  font: 600 16px/1.3 var(--font-sans); cursor: pointer;
  transition: background-color .12s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) { .option { font-size: 17px; min-height: 56px; } }
.option:hover { background: rgba(255,255,255,.9); }
.option:active { transform: scale(.99); }
.option__key {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 30px; height: 30px;
  border: 1.5px solid var(--sr-black); border-radius: 7px; font-size: 13px; font-weight: 800; background: var(--sr-white);
}
.option.is-picked { background: var(--sr-black); color: var(--sr-white); animation: pick .32s steps(2) 1; }
.option.is-picked .option__key { background: var(--sr-yellow); border-color: var(--sr-yellow); color: var(--sr-black); }
.option.is-previous { background: var(--sr-white); box-shadow: inset 0 0 0 1px var(--sr-black); }
@keyframes pick { 50% { background: rgba(255,255,255,.9); color: var(--sr-black); } }
@media (prefers-reduced-motion: reduce) { .option.is-picked { animation: none; } }

.option--care { border-style: dashed; background: rgba(255,255,255,.35); }

/* Pantallas intro / mitad */
.intro h1 { font-size: clamp(38px, 8vw, 66px); margin-bottom: 18px; }
.intro p { font-size: clamp(18px, 2.4vw, 21px); max-width: 34ch; margin-bottom: 28px; }
.intro__meta { margin-top: 16px; font-size: 14px; font-weight: 600; }
.halfway { text-align: center; }
.halfway__big { font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 7vw, 58px); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 26px; }

/* Email */
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.form-field label span { font-weight: 500; opacity: .7; }
.input {
  width: 100%; min-height: 56px; padding: 12px 16px;
  background: var(--sr-white); color: var(--sr-black);
  border: 2px solid var(--sr-black); border-radius: var(--radius-sm);
  font: 500 18px/1.3 var(--font-sans);
}
.input:focus { outline: none; box-shadow: 0 0 0 4px rgba(10,10,10,.18); }
.input[aria-invalid="true"] { border-color: #B3261E; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 20px; font-size: 14px; line-height: 1.45; }
.check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--sr-black); }
.form-error { color: #8C1D18; font-weight: 700; font-size: 14px; margin: -6px 0 12px; }
.form-note { font-size: 13px; line-height: 1.45; margin: 14px 0 0; opacity: .8; }
/* Trampa antibots: fuera de la pantalla, nunca visible ni enfocable */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Resultado ---------- */
.stage.stage--result { display: block; min-height: 0; padding: 0; }
.result { padding-bottom: 80px; }
.result-hero { background: var(--sr-yellow); padding-block: 28px 64px; }
.result-hero__kicker { font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.result-hero__emoji { font-size: clamp(56px, 11vw, 88px); line-height: 1; margin-bottom: 12px; }
.result-hero h1 { font-size: clamp(42px, 9vw, 86px); margin-bottom: 20px; }
.result-hero__phrase { font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 3.4vw, 32px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 6px; }
.result-hero__tag { font-size: 18px; font-style: italic; margin: 0; }

.r-wrap { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
.r-block { padding-top: 56px; }
.r-block > h2 { font-size: clamp(28px, 4.2vw, 42px); margin-bottom: 20px; }
.r-block p { font-size: 18px; line-height: 1.62; }
.r-diagnosis {
  margin-top: 28px; padding: 22px 24px; border-left: 6px solid var(--sr-black);
  background: var(--sr-white); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 18px;
}
.r-diagnosis p { margin: 0; }

.duo { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } }
.trait { border-radius: var(--radius-lg); padding: 28px 26px; }
.trait--power { background: var(--sr-yellow); }
.trait--kryp { background: var(--sr-black); color: var(--sr-cream); }
.trait__label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.trait h3 { margin-bottom: 12px; }
.trait p { font-size: 16.5px; margin: 0; }

.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: t; }
.tip { counter-increment: t; position: relative; background: var(--sr-white); border: 1px solid rgba(10,10,10,.12); border-radius: var(--radius-md); padding: 22px 22px 22px 70px; }
.tip::before {
  content: counter(t); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px;
  display: grid; place-items: center; background: var(--sr-black); color: var(--sr-yellow); border-radius: 50%;
  font-family: var(--font-display); font-weight: 900;
}
.tip strong { display: block; font-size: 17.5px; line-height: 1.3; margin-bottom: 4px; }
.tip p { font-size: 16.5px; margin: 0; }
.tip--extra { background: var(--sr-offwhite); border: 2px dashed var(--sr-black); }
.tip--extra::before { content: "+"; background: var(--sr-yellow); color: var(--sr-black); }
.tip__kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }

.who { background: var(--sr-white); border-radius: var(--radius-lg); padding: 32px 28px; border: 1px solid rgba(10,10,10,.12); }
.who h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 16px; }
.who ul { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.who li { display: flex; gap: 10px; font-size: 16.5px; line-height: 1.45; }
.who blockquote { margin: 18px 0 0; padding: 0; font-style: italic; color: var(--sr-grey); font-size: 15.5px; }

.book { background: var(--sr-black); color: var(--sr-cream); border-radius: var(--radius-lg); padding: 36px 28px; }
@media (min-width: 760px) { .book { padding: 48px 44px; } }
.book__grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .book__grid { grid-template-columns: 170px 1fr; gap: 40px; align-items: start; } }
.book h2 { font-size: clamp(26px, 3.8vw, 38px); margin-bottom: 18px; color: var(--sr-white); }
.book p { font-size: 17px; }
.book blockquote { margin: 22px 0; padding: 18px 20px; border-left: 4px solid var(--sr-yellow); background: rgba(255,255,255,.06); font-style: italic; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.book__urgency { font-weight: 700; color: var(--sr-white); }
.book .btn { margin-top: 8px; }
.book-cover {
  width: 150px; aspect-ratio: 2 / 3; margin-inline: auto; border-radius: 4px 10px 10px 4px;
  background: var(--sr-yellow); color: var(--sr-black); padding: 16px 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: inset 7px 0 0 rgba(0,0,0,.14), 0 20px 40px rgba(0,0,0,.4);
  font-family: var(--font-display); font-weight: 900; letter-spacing: -0.02em; line-height: 1;
}
.book-cover__small { font-family: var(--font-sans); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.book-cover__title { font-size: 21px; }
.book-cover__author { font-family: var(--font-sans); font-size: 10px; font-weight: 700; }

.daily { background: var(--sr-yellow); border-radius: var(--radius-lg); padding: 36px 28px; }
.daily h2 { font-size: clamp(26px, 3.8vw, 38px); margin-bottom: 16px; }
.daily__sign { font-weight: 800; margin: 0; }

.share { text-align: center; }
.share-card-preview {
  width: min(100%, 300px); aspect-ratio: 9 / 16; margin: 0 auto 22px;
  background: var(--sr-yellow); border-radius: var(--radius-lg); padding: 28px 22px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px; text-align: left;
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
}
.share-card-preview__k { font-weight: 800; font-size: 14px; }
.share-card-preview__e { font-size: 54px; line-height: 1; }
.share-card-preview__n { font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: -0.03em; }
.share-card-preview__t { font-size: 13.5px; line-height: 1.35; margin: 0; }
.share-card-preview__q { font-family: var(--font-display); font-weight: 900; font-size: 16px; line-height: 1.15; margin: 4px 0 0; }
.share-card-preview__u { font-size: 12px; font-weight: 700; margin-top: auto; }
.share__actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.share__status { min-height: 1.5em; font-size: 14px; font-weight: 600; margin-top: 10px; }

.care { background: var(--sr-white); border: 2px solid var(--sr-black); border-radius: var(--radius-lg); padding: 36px 28px; }
.care h1 { font-size: clamp(32px, 5.6vw, 52px); margin-bottom: 18px; }
.care__key { font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 3.2vw, 28px); line-height: 1.15; letter-spacing: -0.02em; margin: 22px 0; }
.care ul { padding-left: 1.2em; margin: 14px 0 20px; }
.care li { margin-bottom: 8px; font-size: 17px; }
.care__urgent { background: var(--sr-cream); border-radius: var(--radius-md); padding: 18px 20px; font-size: 16px; }
.care__urgent a { font-weight: 800; }

.result-footer { text-align: center; padding-top: 56px; }
