/* Estilos exclusivos de la página de gracias (gracias.html). */
.thanks { padding: 36px 0 72px; text-align: center; }
.thanks .wordmark { align-items: flex-start; text-align: left; font-size: 1.15rem; }
.thanks h1 { margin-top: 36px; font-size: clamp(2rem, 8vw, 3.4rem); font-weight: 800; }
.thanks h1 em { font-style: normal; display: inline-block; background: linear-gradient(var(--orange), var(--orange)) 0 96% / 100% 3px no-repeat; padding-bottom: .08em; }

/* Barra de progreso */
.progress { position: relative; height: 40px; margin: 32px auto 0; max-width: 620px; border: 1px solid rgba(255, 138, 91, .5); border-radius: 999px; background: #0f2a3d; overflow: hidden; }
.progress { --p: 80%; } /* el quiz la mueve de 40 % a 80 % */
.progress i { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 999px; background: linear-gradient(90deg, #ffa27d, #ff8a5b); animation: fill 1.3s var(--ease) both; transition: width .4s var(--ease); }
.progress span { position: absolute; top: 0; bottom: 0; right: calc(100% - var(--p) + 16px); display: grid; place-items: center; font: 700 .8rem var(--f-body); letter-spacing: .08em; color: var(--ink); transition: right .4s var(--ease); }
@keyframes fill { from { width: 0; } }

/* Paso 2: preguntas. Con la clase "quiz" en <html> se ve la tarjeta y se oculta el paso final. */
.quizbox { display: none; max-width: 640px; margin: 30px auto 0; padding: 26px 18px 22px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, rgba(15, 42, 61, .92), rgba(10, 28, 41, .92)); box-shadow: 0 30px 60px -30px #000; }
.quiz .quizbox { display: block; }
.quiz #despues { display: none; }
.quizbox .lead { margin: 0 0 22px; font-size: 1.05rem; }
.bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 8px; }
.bar i { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); transition: background .3s; }
.bar i.on { background: var(--orange); }
.count { font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.q { animation: in .3s var(--ease); }
.q h2 { margin-top: 18px; font-size: clamp(1.3rem, 5vw, 1.75rem); font-weight: 800; outline: 0; }
.opts { display: grid; gap: 10px; margin-top: 22px; }
.opt { min-height: 58px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; color: var(--text); background: rgba(255, 255, 255, .04); font: 600 1.05rem/1.3 var(--f-body); transition: background .2s, border-color .2s, color .2s, transform .15s; }
.opt:hover { border-color: var(--orange); background: rgba(255, 138, 91, .12); }
.opt:active { transform: scale(.985); }
.opt[aria-pressed="true"] { color: var(--ink); background: var(--orange); border-color: var(--orange); }
.back { margin-top: 14px; min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--muted); font: 500 .95rem var(--f-body); cursor: pointer; }
.back:hover { color: var(--text); }
.back[hidden] { display: none; }
@keyframes in { from { opacity: 0; transform: translateX(16px); } }

.thanks .lead { margin: 30px auto 0; max-width: 34em; font-size: 1.15rem; color: #dbe7ef; }
.label { display: inline-flex; align-items: center; gap: .5em; margin: 34px 0 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; }
.label .i { animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

.btn--wa { width: 100%; max-width: 560px; min-height: 68px; font-size: 1.15rem; color: #05210f; background: linear-gradient(180deg, #3ee57d, var(--wa)); box-shadow: 0 14px 40px -8px rgba(37, 211, 102, .55), inset 0 1px 0 rgba(255, 255, 255, .45); animation: glow 2.4s ease-in-out infinite; }
.btn--wa:hover { box-shadow: 0 18px 48px -8px rgba(37, 211, 102, .75), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--wa .i { width: 1.5em; height: 1.5em; }
@keyframes glow { 50% { box-shadow: 0 14px 56px -4px rgba(37, 211, 102, .85), inset 0 1px 0 rgba(255, 255, 255, .45); } }

/* Sección calendario */
.divider { display: flex; align-items: center; gap: 16px; margin: 56px auto 28px; max-width: 560px; color: var(--muted); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cal { max-width: 560px; margin-inline: auto; padding: 28px 22px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, rgba(15, 42, 61, .9), rgba(10, 28, 41, .9)); box-shadow: 0 30px 60px -30px #000; }
.cal h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); font-weight: 800; }
.cal__when { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 8px; }
.cal__when .pill { background: rgba(255, 255, 255, .04); border-color: var(--line); font-size: .9rem; }
.cal p.sub { color: var(--muted); font-size: .98rem; margin-top: 12px; }
.cal__btns { display: grid; gap: 12px; margin-top: 22px; }
.btn--ghost { color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 138, 91, .14); border-color: var(--orange); box-shadow: none; }
.btn--ghost .i:first-child { color: var(--orange-hi); }
.btn--ghost:hover .i { transform: none; }
.tz { margin-top: 14px; font-size: .9rem; color: var(--orange-hi); }

@media (min-width: 640px) {
  .quizbox { padding: 34px 34px 26px; }
  .cal { padding: 36px; }
  .cal__btns { grid-template-columns: 1fr 1fr; }
}

/* Valen recortada e integrada al fondo: abajo en celular, fija a la derecha en escritorio */
.thanks { position: relative; z-index: 1; padding-bottom: 24px; }
.thanks .logo { display: inline-block; }
.valen-bg { display: block; position: relative; z-index: 0; width: min(330px, 78%); margin: -8px auto 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 78%, transparent 100%); mask-image: linear-gradient(#000 78%, transparent 100%); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
.valen-glow { position: relative; z-index: 0; }
.valen-glow::before { content: ''; position: absolute; inset: 6% 6% 10%; z-index: -1; background: radial-gradient(closest-side, rgba(139, 108, 246, .5), rgba(139, 108, 246, .12) 62%, transparent 74%); }
.thanks h1 { line-height: 1.12; }
@media (min-width: 1100px) {
  .thanks { padding-right: min(30vw, 430px); }
  .valen-glow { position: absolute; right: 1vw; bottom: 0; z-index: 0; width: min(30vw, 430px); pointer-events: none; }
  .valen-bg { width: 100%; margin: 0; }
}

