/* General layout */
.hidden {
  display: none !important;
}

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  background: transparent;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Global variables */
:root {
  --brand-1: #a78bfa;
  --brand-2: #34d399;
  --bg: #0b0b0f;
  --card-bg: rgba(15, 17, 21, 0.96);
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #E9E9F2;
  --muted: #A0A3B1;

  --surface: #ff8a00;
  --bezel: #d7dde5;
  --ring: #e6edf6;
  --tick: #c0c0c0;
  --needle: #ff244a;
}

/* Safe top margin (phones with notch) */
.safe-top {
  padding-top: max(env(safe-area-inset-top, 16px), 16px);
}

/* Title gradients (se mantienen como acento) */
.brand-gradient {
  background: linear-gradient(90deg, #cbd5e1 0%, #a3e635 30%, #34d399 60%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  display: inline-block;
}

/* Glass panel más limpio */
.glass-panel {
  background: rgba(7, 8, 12, 0.88);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
  padding: 1.5rem 1.75rem;
}

/* Progress */
.progress-wrap {
  height: 8px;
  border-radius: 9999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 1.25rem;
}

.progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #8b5cf6, #34d399, #8b5cf6);
  background-size: 200% 200%;
  animation: gradient 10s ease-in-out infinite;
  transition: width 0.35s ease;
}

@keyframes gradient {
  0% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
  100% { background-position: 0% 50% }
}

/* Inputs oscuros minimalistas */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  background: #0f1115;
  color: #eaeef5;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  outline: none;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.06s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(234, 238, 245, 0.55);
}

input:focus,
textarea:focus,
select:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.55);
}

/* Age input */
#ageInput {
  width: 100%;
  max-width: 260px;
  margin: 0.5rem 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  background: #0f1115;
  color: #eaeef5;
}

/* Cards minimalistas */
.card {
  position: relative;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--card-bg);
  cursor: pointer;
  text-align: left;
  font-weight: 500;
  font-size: 0.95rem;
  color: #e9edf7;
  transition:
    transform 0.10s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.card:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 92, 246, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.card.selected {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.07);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.8);
}

.card.selected::after {
  content: "✓";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.95;
}

/* Grids */
.grid {
  display: grid;
}

.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* GRID PARA FOTOS DE FÍSICO */
.physique-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.physique-card {
  flex: 1 1 calc(33.333% - 1.25rem);
  max-width: calc(33.333% - 1.25rem);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.16s ease;
}

.physique-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.physique-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .physique-card {
    flex: 1 1 calc(50% - 1.25rem);
    max-width: calc(50% - 1.25rem);
  }
}

@media (max-width: 640px) {
  .physique-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Layout helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.items-start { align-items: flex-start; }
.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:items-start { align-items: flex-start; }
  .md\:justify-between { justify-content: space-between; }
  .md\:justify-end { justify-content: flex-end; }
  .md\:w-5\/12 { width: 41.666667%; }
  .md\:w-7\/12 { width: 58.333333%; }
}

/* Scale container */
.scale-wrap {
  max-width: 360px;
  width: 100%;
}

/* Steps / animations más suaves */
.step {
  display: none;
  animation: fadeInUp 0.4s ease;
  padding: 8px 2px;
}

.step.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Botones */
#nextBtn,
#backBtn {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  transition: transform 0.08s ease, box-shadow 0.16s ease, background 0.16s ease;
}

#nextBtn {
  background: linear-gradient(90deg, #8b5cf6, #34d399);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

#nextBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
}

#backBtn {
  background: #181b23;
}

/* Toast minimal */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #ef4444;
  color: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  display: none;
  border: none;
  z-index: 50;
}

/* Checkbox */
.chk {
  accent-color: #34d399;
  width: 18px;
  height: 18px;
}

.policy-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile spacing */
@media (max-width: 640px) {
  .mobile-top-gap {
    margin-top: 12px;
  }
}

/* Background video */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.45);
}

#video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: -1;
}

/* Age slider */
.neon-slider {
  width: 100%;
  height: 6px;
  appearance: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: background 0.3s ease;
}

.neon-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(90deg, #a78bfa, #34d399);
  box-shadow: 0 0 12px #34d399aa;
  cursor: pointer;
  margin-top: -1px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.neon-slider::-webkit-slider-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px #a78bfa88;
}

.neon-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(90deg, #a78bfa, #34d399);
  box-shadow: 0 0 12px #34d399aa;
  cursor: pointer;
}

.neon-slider::-moz-range-track {
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
}

/* Scale */
.scale {
  width: 310px;
  height: 270px;
  position: relative;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0b0b0b 80%);
  border: none;
  box-shadow:
    0 0 18px rgba(0, 0, 0, 0.75),
    inset 0 6px 18px rgba(255, 255, 255, 0.04),
    inset 0 -4px 10px rgba(0, 0, 0, 0.55);
}

.window-svg {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  width: 260px;
  height: 130px;
  display: block;
}

.ring {
  fill: none;
  stroke: var(--ring);
  stroke-width: 34;
}

.tick {
  stroke: var(--tick);
  stroke-linecap: round;
}

.tick.major {
  stroke-width: 4;
}

.tick.minor {
  stroke-width: 2;
  opacity: 0.9;
}

.label {
  fill: #0f1115;
  font-weight: 800;
  font-size: 12px;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #ffffffa6;
  stroke-width: 2px;
  dominant-baseline: central;
}

.needle line {
  stroke: var(--needle);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
}

.pivot {
  fill: #0f1115;
  stroke: #cbd5e1;
  stroke-width: 2;
}

.readout {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 16px;
  backdrop-filter: blur(2px);
}

.unit {
  opacity: 0.85;
  font-weight: 700;
  margin-left: 6px;
}

/* Genetic test block */
.genetic-packages {
  background: rgba(7, 8, 12, 0.9);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Package cards */
.package-card {
  text-align: left;
  position: relative;
  padding-top: 1.1rem;
  padding-bottom: 1.2rem;
}

.package-card .badge-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: #e5e7eb;
  margin-bottom: 0.4rem;
}

.package-card .badge-hot {
  background: linear-gradient(90deg, #fb7185, #f97316);
  color: #fff;
}

.pkg-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.1rem;
}

.pkg-subtitle {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 0.6rem;
}

.pkg-price {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.pkg-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.9;
}

.pkg-list li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.pkg-list li::before {
  content: "•";
  font-size: 1rem;
  color: var(--brand-2);
}

/* Calendly wrapper */
.calendly-block {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

@media (max-width: 1024px) {
  .genetic-packages {
    padding: 1.25rem;
  }
}
