/* ================================================================
   PersonalityTester.net - Nordic Clinical Minimalism
   Complete CSS: variables, utilities, animations, UX
   ================================================================ */

/* --- CSS Variables --- */
:root {
  --primary: #5B8A8A;
  --primary-foreground: #FDFBF9;
  --background: #F5F3EF;
  --foreground: #2D3748;
  --card: #FDFBF9;
  --secondary: #E8EDE8;
  --secondary-foreground: #4A5568;
  --muted: #F0EEEB;
  --muted-foreground: #7A8FA8;
  --destructive: #E74C3C;
  --border: #E5E0DB;
  --input: #EBE8E3;
  --ring: #5B8A8A;
  --radius: 0.75rem;
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* --- Topbar escasez geográfica: estilo alerta sistema (monospace, no banner marketing) --- */
.topbar-scarcity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 1rem;
  background: #1a1a1a;
  color: #fff;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Monaco, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-align: center;
}
.topbar-scarcity-icon {
  color: #facc15;
  flex-shrink: 0;
}
.topbar-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4rem 1rem;
  background: #fef9c3;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}
.line-through { text-decoration: line-through; }

/* ================================================================
   LAYOUT UTILITIES
   ================================================================ */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.self-center { align-self: center; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* --- Positioning --- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.inset-1 { inset: 0.25rem; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* --- Sizing --- */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-1 { width: 0.25rem; }
.w-1\.5 { width: 0.375rem; }
.w-2 { width: 0.5rem; }
.w-2\.5 { width: 0.625rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-28 { width: 7rem; }
.w-48 { width: 12rem; }
.w-1\/3 { width: 33.333333%; }
.h-1 { height: 0.25rem; }
.h-1\.5 { height: 0.375rem; }
.h-2 { height: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-28 { height: 7rem; }
.h-full { height: 100%; }
.h-\[300px\] { height: 300px; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

/* --- Spacing --- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-auto { margin-top: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-20 { padding-top: 5rem; }
.pb-8 { padding-bottom: 2rem; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* --- Typography --- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-serif { font-family: var(--font-serif); }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.select-none { user-select: none; -webkit-user-select: none; }
.italic { font-style: italic; }
.not-italic { font-style: normal; }
.underline { text-decoration: underline; }
.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-none { list-style: none; }
.pointer-events-none { pointer-events: none; }

/* --- Colors --- */
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-muted { background-color: var(--muted); }
.bg-primary-foreground { background-color: var(--primary-foreground); }
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-secondary-foreground { color: var(--secondary-foreground); }
.text-destructive { color: var(--destructive); }

/* --- Borders --- */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid; }
.border-border { border-color: var(--border); }
.border-primary { border-color: var(--primary); }
.border-muted { border-color: var(--muted); }
.border-muted-foreground { border-color: var(--muted-foreground); }
.border-transparent { border-color: transparent; }
.border-t-primary { border-top-color: var(--primary); }
.border-r-primary { border-right-color: var(--primary); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* --- Effects --- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.opacity-5 { opacity: 0.05; }
.opacity-30 { opacity: 0.3; }
.opacity-80 { opacity: 0.8; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.cursor-pointer { cursor: pointer; }

/* --- Transitions --- */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-width-3s { transition: width 3s ease-out; }

/* --- Hover States --- */
.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.hover\:border-primary:hover { border-color: var(--primary); }
.hover\:text-foreground:hover { color: var(--foreground); }
.hover\:bg-primary\/90:hover { background-color: color-mix(in srgb, var(--primary) 90%, black); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:inline { display: inline; }
  .sm\:text-2xl { font-size: 1.5rem; }
  .sm\:text-3xl { font-size: 1.875rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:text-base { font-size: 1rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .sm\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:p-12 { padding: 3rem; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:gap-8 { gap: 2rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .lg\:text-5xl { font-size: 3rem; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:p-8 { padding: 2rem; }
}

/* ================================================================
   KEYFRAME ANIMATIONS
   ================================================================ */

/* Spinners */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }
.animate-spin-slow { animation: spin-slow 2.5s linear infinite; }

/* Pulse */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.animate-pulse { animation: pulse 1.5s ease-in-out infinite; }

/* Shimmer bar */
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.animate-shimmer { animation: shimmer 2s ease-in-out infinite; }

/* Breathe */
@keyframes breathe { 0%, 100% { opacity: 0.5; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1); } }
.animate-breathe { animation: breathe 2s ease-in-out infinite; }

/* Progress fill */
@keyframes progress-fill { 0% { width: 0%; } 100% { width: 100%; } }
.animate-progress-fill { animation: progress-fill 2.5s ease-out forwards; }

/* Quiz: question transition */
@keyframes quiz-fade-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes quiz-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.quiz-fade-out { animation: quiz-fade-out 0.2s ease-out forwards; }
.quiz-fade-in { animation: quiz-fade-in 0.3s ease-out forwards; }

/* Quiz: option stagger entrance */
@keyframes quiz-stagger-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.quiz-option-stagger { animation: quiz-stagger-in 0.3s ease-out forwards; opacity: 0; }

/* Section reveal (for landing scroll) */
@keyframes reveal-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal-section { animation: reveal-up 0.6s ease-out both; }

/* Gradient border glow (analyzing card) */
@keyframes border-glow {
  0%, 100% { border-color: var(--border); box-shadow: 0 0 0 0 transparent; }
  50% { border-color: var(--primary); box-shadow: 0 0 20px -4px color-mix(in srgb, var(--primary) 25%, transparent); }
}
.animate-border-glow { animation: border-glow 3s ease-in-out infinite; }

/* Results bar fill */
@keyframes bar-fill-in { from { width: 0%; } }
.animate-bar-fill { animation: bar-fill-in 1s ease-out forwards; }

/* ================================================================
   COMPONENT STYLES
   ================================================================ */

/* --- Quiz --- */
.quiz-progress-fill {
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #a7d3d3));
}
.quiz-option-btn {
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.quiz-option-btn:focus {
  outline: none;
}
.quiz-option-btn:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 15%, transparent);
  transform: translateY(-1px);
}
.quiz-option-btn:active { transform: scale(0.98); }

/* --- Analyzing --- */
.analyzing-progress-bar {
  transition: width 0.08s linear;
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #a7d3d3));
}
.analyzing-stage-fade { transition: opacity 0.25s ease, transform 0.25s ease; }

/* Stage indicator dots */
.stage-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--muted);
  transition: background-color 0.4s ease, width 0.4s ease;
}
.stage-dot.active {
  background: var(--primary);
  width: 1.5rem;
}

/* --- CTA Button (primary action) --- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px color-mix(in srgb, var(--primary) 40%, transparent);
}
.btn-cta:active { transform: translateY(0); }

/* CTA con pulso sutil (scale 1.03): llama al dedo de forma subconsciente, no distrae */
@keyframes cta-pulse-subtle {
  0%, 100% { transform: scale(1.03); }
  50% { transform: scale(1.02); }
}
.btn-cta--pulse {
  animation: cta-pulse-subtle 2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .btn-cta--pulse { animation: none; }
}

/* --- Lead form --- */
.lead-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.lead-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}
.lead-input::placeholder { color: var(--muted-foreground); opacity: 0.6; }

/* --- FAQ details animation --- */
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: transform 0.3s ease;
  margin-left: auto;
  flex-shrink: 0;
}
details[open] summary::after {
  content: '-';
  transform: rotate(180deg);
}
details summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
details .faq-content {
  overflow: hidden;
  animation: faq-open 0.3s ease-out;
}
@keyframes faq-open { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 200px; } }

/* Logos trust en escala de grises */
.trust-logos-grayscale {
  filter: grayscale(1);
  opacity: 0.85;
}
.trust-logo-wordmark {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--background);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  letter-spacing: 0.02em;
  filter: grayscale(1);
  opacity: 0.9;
}
.trust-logos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  align-items: center;
}
@media (max-width: 640px) {
  .trust-logos-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
.trust-wordmark {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  text-align: center;
  opacity: 0.9;
}
@media (min-width: 640px) {
  .trust-wordmark { font-size: 1.1rem; letter-spacing: 0.2em; }
}

/* --- Trust badge --- */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--card);
}

/* --- Checkmark animated (lead page) --- */
@keyframes check-draw { from { stroke-dashoffset: 50; } to { stroke-dashoffset: 0; } }
.check-animated path { stroke-dasharray: 50; animation: check-draw 0.6s ease-out 0.2s forwards; stroke-dashoffset: 50; }
@keyframes check-circle-fill {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
.check-circle-animated { animation: check-circle-fill 0.4s ease-out forwards; }

/* --- Logo responsive --- */
@media (max-width: 640px) {
  .header-logo { height: 50px !important; }
}

/* --- Checkout-specific (themeable via var(--primary), --card, --radius, etc.) --- */
.checkout-wrapper { max-width: 480px; margin: 0 auto; padding: 16px; }
@media (min-width: 900px) {
  .checkout-wrapper { max-width: 1100px; display: grid; grid-template-columns: 1fr 420px; gap: 32px; padding: 32px; }
}
@media (max-width: 900px) {
  .checkout-wrapper { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px) + 140px) !important; }
}
.checkout-card { background: var(--card); border-radius: var(--card-radius, 0.75rem); box-shadow: var(--card-shadow, 0 10px 25px -5px rgba(0,0,0,.1)); padding: 24px; }
.checkout-logo { height: 48px; max-height: 48px; width: auto; object-fit: contain; }
@media (max-width: 900px) { .checkout-logo { height: 36px; max-height: 36px; } }
.locked-wrap { position: relative; }
.locked { filter: blur(5px); user-select: none; pointer-events: none; }
/* Partial reveal: content visible, scores blurred, overlay subtle (Zeigarnik effect) */
.partial-reveal .locked { filter: none; pointer-events: none; user-select: none; }
.partial-reveal .trait-score-blur { filter: blur(4px); }
.partial-reveal .behavioral-warnings-box {
  display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px;
  border-radius: 8px; border: 1px solid #f59e0b; background: rgba(245, 158, 11, 0.12);
  font-size: 12px; font-weight: 600; color: #b45309;
}
.partial-reveal .behavioral-warnings-box .warn-icon { width: 20px; height: 20px; flex-shrink: 0; }
.partial-reveal-overlay {
  background: rgba(255,255,255,0.75); backdrop-filter: blur(2px);
}
.locked-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); gap: 10px; padding: 24px; text-align: center;
}
.locked-overlay svg { width: 44px; height: 44px; color: var(--muted-foreground); flex-shrink: 0; }
.locked-overlay .overlay-title { font-size: 14px; font-weight: 700; color: var(--foreground); line-height: 1.35; text-shadow: 0 1px 2px rgba(255,255,255,.8); }
.locked-overlay .overlay-sub { font-size: 11px; color: var(--muted-foreground); }
.soft-blur { filter: blur(2px); opacity: 0.6; user-select: none; }
.trait-row { margin-bottom: 14px; }
.trait-row .trait-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.trait-row .trait-name { font-size: 13px; font-weight: 600; color: var(--foreground); }
.trait-row .trait-score { font-size: 13px; font-weight: 700; color: var(--primary); }
.trait-bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.trait-bar-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 70%, white));
  transition: width 1.2s ease-out;
}
.trait-phrase { font-size: 12px; color: var(--muted-foreground); margin-top: 5px; line-height: 1.4; font-style: italic; }
.locked-section-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid var(--border); font-size: 13px; color: var(--foreground);
}
.locked-section-item:last-child { border-bottom: none; }
.lock-icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--muted-foreground); opacity: 0.6; }
.badge { display: inline-block; background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); font-size: 12px; padding: 6px 10px; border-radius: 999px; }
.badge-dossier { font-family: ui-monospace, monospace; letter-spacing: 0.08em; border: 1px solid var(--border); background: var(--card); color: var(--foreground); }
.ready-block {
  border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin: 16px 0 18px;
  background: linear-gradient(135deg, var(--card) 0%, color-mix(in srgb, var(--primary) 5%, var(--card)) 100%);
}
.ready-block h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--foreground); }
.ready-block .meta { font-size: 12px; color: var(--muted-foreground); margin: 0 0 10px; }
.ready-block .modules { display: flex; flex-wrap: wrap; gap: 6px; }
.ready-block .mod-tag {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--foreground);
}
.price-crossed { text-decoration: line-through; color: var(--destructive); font-size: 14px; font-weight: 600; }
.urgency-block {
  margin: 14px 0 8px; padding: 10px 14px; border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, #fde68a);
  background: color-mix(in srgb, var(--primary) 8%, #fffbeb);
  font-size: 12px; line-height: 1.45; color: var(--foreground);
}
#countdown-timer { font-variant-numeric: tabular-nums; color: var(--destructive); }
@media (prefers-reduced-motion: no-preference) { #countdown-timer { animation: countdown-vibrate 1.5s ease-in-out infinite; } }
@keyframes countdown-vibrate { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-1px)} 75%{transform:translateX(1px)} }
#pay { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  #pay { animation: cta-pulse-checkout 2s ease-in-out infinite; }
}
@keyframes cta-pulse-checkout {
  0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 40%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary) 0%, transparent); }
}
.regional-discount {
  margin: 6px 0 10px; padding: 8px 12px; border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 40%, #bbf7d0);
  background: color-mix(in srgb, var(--primary) 10%, #f0fdf4);
  font-size: 12px; line-height: 1.4; color: var(--primary);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   LANDING: Compacción móvil y buffer de scroll
   ================================================================ */
body.landing {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
body.landing main {
  padding-bottom: 24px;
}
@media (max-width: 640px) {
  body.landing main > section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  body.landing main > section.pt-section-hero {
    padding-bottom: 1rem;
  }
  body.landing main > section.pt-section-hero + section {
    margin-top: -0.5rem;
  }
}

/* Botón secundario trigger del preview dossier (estilo documento restringido) */
.dossier-preview-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--foreground);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  font-family: inherit;
}
.dossier-preview-trigger:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
  transform: translateY(-1px);
}
.dossier-preview-badge {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
  font-weight: 700;
}

/* Footer: soporte 24/7 (mailto vía JS, sin email en claro) — protagonismo venta */
a.pt-support-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: 9999px;
  background: #0f172a;
  border: 2px solid #fff;
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9375rem;
  line-height: 1.25;
  text-align: left;
  box-sizing: border-box;
  vertical-align: middle;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
a.pt-support-pill:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.pt-support-pill__lines {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.pt-support-pill__title {
  display: block;
  letter-spacing: 0.02em;
}
.pt-support-pill__sub {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  opacity: 1;
  letter-spacing: 0.04em;
}
.pt-support-pill svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
}
