/* ============================================================
   components.css — Hero, Quiz, Results, Modal, Loading
   ============================================================ */

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
#hero::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(232,255,71,0.07) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.hero-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  border: 1px solid rgba(232,255,71,0.3);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}
h1.logo {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(5rem, 18vw, 14rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  animation: fadeUp 0.6s ease 0.1s both;
}
h1.logo span { color: var(--accent); }
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--muted);
  max-width: 480px;
  line-height: 1.6;
  margin-top: 1.5rem;
  font-weight: 300;
  animation: fadeUp 0.6s ease 0.2s both;
}
.btn-start {
  margin-top: 3rem;
  padding: 1.1rem 3rem;
  background: var(--accent);
  color: #0a0a0a;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  animation: fadeUp 0.6s ease 0.35s both;
}
.btn-start:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(232,255,71,0.35); }
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  animation: fadeUp 0.6s ease 0.45s both;
}
.hero-stat-num  { font-family: 'Black Han Sans', sans-serif; font-size: 2rem; color: var(--accent); }
.hero-stat-label{ font-size: 0.75rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.2rem; }

/* ── Quiz ── */
#quiz-wrapper { display: none; min-height: 100vh; padding: 2rem 1rem; overflow-x: hidden; position: relative; }.quiz-container { max-width: 720px; margin: 0 auto; }

.progress-bar-wrap {
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  padding: 1.2rem 0 1rem;
  z-index: 100;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.progress-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.7rem; }
.progress-label { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; }
.progress-count { font-family: 'Space Mono', monospace; font-size: 0.8rem; color: var(--accent); }
.progress-track { height: 3px; background: var(--border); border-radius: 100px; overflow: hidden; }
.progress-fill  { height: 100%; background: var(--accent); border-radius: 100px; transition: width 0.5s cubic-bezier(0.34,1.56,0.64,1); box-shadow: 0 0 12px rgba(232,255,71,0.6); }

.question-block        { display: none; }
.question-block.active { display: block; }


.q-number { font-family: 'Space Mono', monospace; font-size: 0.65rem; color: var(--accent); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 0.8rem; }
.q-text   { font-family: 'Black Han Sans', sans-serif; font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.1; margin-bottom: 0.7rem; }
.q-desc   { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.5rem; font-weight: 300; line-height: 1.6; }

.options-grid           { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 2.5rem; }
.options-grid.single-col{ grid-template-columns: 1fr; }
.options-grid.three-col { grid-template-columns: 1fr 1fr 1fr; }

.option-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.option-card:hover       { border-color: rgba(232,255,71,0.5); transform: translateY(-1px); }
.option-card.selected    { border-color: var(--accent); background: rgba(232,255,71,0.08); }
.option-icon-img         { width: 56px; height: 56px; flex-shrink: 0; object-fit: contain; filter: brightness(0.9); }
.option-content          { flex: 1; }
.option-title            { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.15rem; }
.option-sub              { font-size: 0.75rem; color: var(--muted); font-weight: 300; }
.option-check {
  margin-left: auto;
  width: 22px; height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.option-card.selected .option-check       { background: var(--accent); border-color: var(--accent); }
.option-check::after                       { content: '✓'; font-size: 0.7rem; color: #0a0a0a; opacity: 0; transition: opacity 0.2s; }
.option-card.selected .option-check::after { opacity: 1; }

/* Day cards (Q3) */
.option-card--day  { justify-content: center; text-align: center; flex-direction: column; gap: 0.2rem; padding: 1.5rem 1rem; }
.option-day-num    { font-family: 'Black Han Sans', sans-serif; font-size: 2.5rem; color: var(--accent); line-height: 1; }
.option-day-label  { font-size: 0.75rem; color: var(--muted); }

/* Sliders */
.slider-wrap    { margin-bottom: 2.5rem; }
.slider-display { font-family: 'Black Han Sans', sans-serif; font-size: 4rem; color: var(--accent); text-align: center; margin-bottom: 0.5rem; line-height: 1; }
.slider-unit    { font-size: 1rem; color: var(--muted); font-family: 'DM Sans', sans-serif; font-weight: 300; display: block; text-align: center; margin-bottom: 1.5rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: var(--border); border-radius: 100px; outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--accent); cursor: pointer; transition: transform 0.2s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.slider-labels  { display: flex; justify-content: space-between; margin-top: 0.8rem; font-size: 0.75rem; color: var(--muted); font-family: 'Space Mono', monospace; }

/* Quiz nav buttons */
.quiz-nav  { display: flex; gap: 1rem; align-items: center; }
.btn-prev  { padding: 0.9rem 1.8rem; background: transparent; color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500; border: 1.5px solid var(--border); cursor: pointer; border-radius: 6px; transition: all 0.2s; display: flex; align-items: center; gap: 0.5rem; }
.btn-prev:hover { border-color: var(--muted); color: var(--text); }
.btn-next  { flex: 1; padding: 1rem 2rem; background: var(--accent); color: #0a0a0a; font-family: 'Black Han Sans', sans-serif; font-size: 1rem; letter-spacing: 0.08em; border: none; cursor: pointer; border-radius: 6px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.btn-next:hover    { background: #f5ff6e; box-shadow: 0 8px 30px rgba(232,255,71,0.3); }
.btn-next:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* ── Results ── */
#results-wrapper { display: none; min-height: 100vh; padding: 2rem 1rem 4rem; }
.results-container { max-width: 860px; margin: 0 auto; }
.results-header { text-align: center; padding: 3rem 0 2rem; }
.results-badge { display: inline-block; background: var(--accent); color: #0a0a0a; font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; padding: 0.4rem 1.2rem; border-radius: 100px; margin-bottom: 1.5rem; font-weight: 700; }
.results-title { font-family: 'Black Han Sans', sans-serif; font-size: clamp(2.5rem, 7vw, 5rem); line-height: 0.95; margin-bottom: 1rem; }
.results-title .highlight { color: var(--accent); }
.results-sub   { color: var(--muted); font-size: 1rem; font-weight: 300; max-width: 500px; margin: 0 auto; line-height: 1.6; }

.profile-grid  { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 2.5rem 0; }
.profile-card  { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.3rem; text-align: center; }
.profile-card-icon  { font-size: 1.5rem; margin-bottom: 0.5rem; }
.profile-card-label { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.15em; font-family: 'Space Mono', monospace; margin-bottom: 0.3rem; }
.profile-card-value { font-weight: 700; font-size: 0.95rem; color: var(--accent); }

.routine-section { margin-bottom: 3rem; }
.section-header  { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.section-day       { font-family: 'Black Han Sans', sans-serif; font-size: 2rem; line-height: 1; }
.section-day-label { font-size: 0.75rem; color: var(--muted); font-family: 'Space Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.2rem; }
.section-day-name  { color: var(--accent); font-size: 0.9rem; font-weight: 500; }
.section-rest { margin-left: auto; background: rgba(255,71,71,0.1); border: 1px solid rgba(255,71,71,0.3); color: var(--accent2); font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 100px; }
.section-tag  { margin-left: auto; background: rgba(232,255,71,0.1); border: 1px solid rgba(232,255,71,0.3); color: var(--accent); font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 100px; }
.exercise-list { display: flex; flex-direction: column; gap: 0.7rem; }

/* ── Exercise Card ── */
.exercise-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.exercise-card::after { content: 'Ver detalle'; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-family: 'Space Mono', monospace; font-size: 0.6rem; letter-spacing: 0.15em; color: var(--accent); opacity: 0; transition: opacity 0.2s; text-transform: uppercase; }
.exercise-card:hover           { border-color: rgba(232,255,71,0.35); background: rgba(232,255,71,0.04); }
.exercise-card:hover::after    { opacity: 1; }
.exercise-card:hover .exercise-badge { opacity: 0; }
.exercise-num  { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--muted); width: 22px; flex-shrink: 0; }
.ex-thumb      { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--border); display: flex; align-items: center; justify-content: center; }
.ex-thumb svg  { width: 100%; height: 100%; }
.exercise-info { flex: 1; }
.exercise-name   { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.15rem; }
.exercise-detail { font-size: 0.75rem; color: var(--muted); font-weight: 300; }
.exercise-badge  { font-family: 'Space Mono', monospace; font-size: 0.6rem; padding: 0.25rem 0.7rem; border-radius: 100px; letter-spacing: 0.1em; text-transform: uppercase; flex-shrink: 0; transition: opacity 0.2s; }
.badge-warm  { background: rgba(255,160,71,0.12); color: #ffa047; border: 1px solid rgba(255,160,71,0.25); }
.badge-work  { background: rgba(232,255,71,0.12); color: var(--accent); border: 1px solid rgba(232,255,71,0.2); }
.badge-cool  { background: rgba(71,200,255,0.12); color: var(--accent3); border: 1px solid rgba(71,200,255,0.2); }
.badge-cardio{ background: rgba(255,71,71,0.12); color: var(--accent2); border: 1px solid rgba(255,71,71,0.2); }

/* ── Acciones de la tarjeta (badge + reemplazar) ── */
.ex-actions { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }

/* ── Botón reemplazar ejercicio ── */
.ex-swap-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(232,255,71,0.08);
  border: 1px solid rgba(232,255,71,0.22);
  color: var(--accent);
  cursor: pointer;
  /* Visible pero discreto por defecto; se intensifica al pasar el ratón por la tarjeta */
  opacity: 0.4;
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ex-swap-btn svg { display: block; transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1); }
.exercise-card--swappable:hover .ex-swap-btn { opacity: 1; }
.ex-swap-btn:hover {
  background: rgba(232,255,71,0.18);
  border-color: rgba(232,255,71,0.5);
  box-shadow: 0 0 0 3px rgba(232,255,71,0.08);
}
.ex-swap-btn:hover svg { transform: rotate(-180deg); }
.ex-swap-btn:active { transform: scale(0.92); }
.ex-swap-btn:focus-visible { outline: none; opacity: 1; transform: translateX(0); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,255,71,0.18); }
/* Giro continuo mientras procesa el cambio */
.ex-swap-btn.is-loading { opacity: 1; transform: translateX(0); pointer-events: none; }
.ex-swap-btn.is-loading svg { animation: exSwapSpin 0.6s linear infinite; }

/* En tarjetas con botón de cambio, no mostrar el overlay "Ver detalle" para evitar solape */
.exercise-card--swappable:hover::after { opacity: 0; }

/* Dispositivos táctiles (sin hover): el botón siempre visible y algo más tenue */
@media (hover: none) {
  .ex-swap-btn { opacity: 0.75; transform: translateX(0); }
}

/* Entrada de la tarjeta recién reemplazada */
.ex-just-swapped { animation: exJustSwapped 0.5s ease; }

@keyframes exSwapSpin { to { transform: rotate(-360deg); } }
@keyframes exJustSwapped {
  0%   { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Destello sutil del borde al aparecer */
.ex-just-swapped::before {
  content: ''; position: absolute; inset: -1px; border-radius: 12px;
  border: 1px solid var(--accent); pointer-events: none;
  animation: exFlashFade 0.9s ease forwards;
}
@keyframes exFlashFade { 0% { opacity: 0.9; } 100% { opacity: 0; } }

/* Botón activo mientras su popover de alternativas está abierto */
.ex-swap-btn.is-active { opacity: 1; transform: translateX(0); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,255,71,0.18); }

/* Ocultar el botón en la exportación a PDF */
@media print { .ex-swap-btn { display: none !important; } }

/* ── Popover de alternativas (cambio de ejercicio) ── */
.ex-swap-popover {
  position: fixed; z-index: 1200; width: 300px; max-width: calc(100vw - 16px);
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 0.5rem; box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  animation: exSwapPopIn 0.16s ease;
}
.ex-swap-popover__title {
  font-family: 'Space Mono', monospace; font-size: 0.58rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); padding: 0.35rem 0.5rem 0.55rem;
}
.ex-swap-opt {
  display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  padding: 0.55rem 0.6rem; cursor: pointer; color: inherit; transition: background 0.15s, border-color 0.15s;
}
.ex-swap-opt:hover, .ex-swap-opt:focus-visible {
  outline: none; background: rgba(232,255,71,0.07); border-color: rgba(232,255,71,0.25);
}
.ex-swap-opt__pct {
  flex-shrink: 0; width: 3rem; text-align: center;
  font-family: 'Black Han Sans', sans-serif; font-size: 1.05rem; line-height: 1;
}
.ex-swap-opt__info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.ex-swap-opt__name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-swap-opt__group {
  font-family: 'Space Mono', monospace; font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
@keyframes exSwapPopIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media print { .ex-swap-popover { display: none !important; } }

/* ── Tips ── */
.tips-section  { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; margin-bottom: 2.5rem; }
.tips-label    { font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.tips-title    { font-family: 'Black Han Sans', sans-serif; font-size: 1.3rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.7rem; }
.tips-title::before { content: ''; width: 4px; height: 1.1em; background: var(--accent); border-radius: 2px; flex-shrink: 0; }
.tips-list     { display: flex; flex-direction: column; gap: 0.8rem; }
.tip-item      { display: flex; align-items: flex-start; gap: 0.8rem; font-size: 0.9rem; line-height: 1.5; font-weight: 300; }
.tip-dot       { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 0.55rem; }

/* ── Rest / Recovery day ── */
.rest-intro    { font-size: 0.9rem; color: var(--muted); font-weight: 300; line-height: 1.7; margin-bottom: 1.5rem; }
.rest-pillars  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rest-pillar   { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem; border-left: 3px solid var(--accent2); }
.rest-pillar-label { font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent2); margin-bottom: 0.6rem; }
.rest-pillar p { font-size: 0.85rem; color: var(--text); font-weight: 300; line-height: 1.5; }
@media (max-width: 640px) { .rest-pillars { grid-template-columns: 1fr; } }

.results-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
.btn-restart { padding: 1rem 2.5rem; background: transparent; color: var(--text); font-family: 'Black Han Sans', sans-serif; font-size: 0.95rem; letter-spacing: 0.08em; border: 1.5px solid var(--border); cursor: pointer; border-radius: 6px; transition: all 0.2s; }
.btn-restart:hover { border-color: var(--muted); }
.btn-print   { padding: 1rem 2.5rem; background: var(--accent); color: #0a0a0a; font-family: 'Black Han Sans', sans-serif; font-size: 0.95rem; letter-spacing: 0.08em; border: none; cursor: pointer; border-radius: 6px; transition: all 0.2s; }
.btn-print:hover    { background: #f5ff6e; }
.btn-print:disabled { opacity: 0.6; cursor: not-allowed; background: var(--accent); }
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); margin: 2rem 0; }

/* ── Loading ── */
#loading-screen { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 200; align-items: center; justify-content: center; flex-direction: column; gap: 2rem; }
.loading-logo      { font-family: 'Black Han Sans', sans-serif; font-size: 3rem; color: var(--accent); animation: pulse 1s ease infinite alternate; }
.loading-bar-track { width: 200px; height: 3px; background: var(--border); border-radius: 100px; overflow: hidden; }
.loading-bar-fill  { height: 100%; background: var(--accent); border-radius: 100px; animation: loadBar 2.2s ease forwards; box-shadow: 0 0 12px rgba(232,255,71,0.6); }
.loading-text      { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.25em; text-transform: uppercase; }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box   { background: #111; border: 1px solid var(--border); border-radius: 20px; max-width: 620px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both; }
.modal-close { position: absolute; top: 1.2rem; right: 1.2rem; background: var(--border); border: none; color: var(--text); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 10; font-family: 'DM Sans', sans-serif; }
.modal-close:hover { background: var(--accent2); color: white; }
.modal-gif-wrap    { width: 100%; aspect-ratio: 16/9; background: #fff; border-radius: 16px 16px 0 0; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; }
.modal-gif-wrap svg{ width: 100%; height: 100%; }
.modal-gif-img     { width: 100%; height: 100%; object-fit: contain; display: block; }
.modal-gif-label   { position: absolute; top: 0.8rem; left: 0.8rem; font-family: 'Space Mono', monospace; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(0,0,0,0.45); z-index: 2; }
.modal-body        { padding: 1.8rem 2rem 2rem; }
.modal-badge-row   { display: flex; gap: 0.6rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.modal-badge       { font-family: 'Space Mono', monospace; font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.3rem 0.8rem; border-radius: 100px; }
.mb-type  { background: rgba(232,255,71,0.1); color: var(--accent); border: 1px solid rgba(232,255,71,0.2); }
.mb-group { background: rgba(71,200,255,0.1); color: var(--accent3); border: 1px solid rgba(71,200,255,0.2); }
.mb-diff  { border: 1px solid var(--border); color: var(--muted); }
.modal-title       { font-family: 'Black Han Sans', sans-serif; font-size: 1.8rem; line-height: 1.05; margin-bottom: 0.8rem; }
.modal-desc        { font-size: 0.9rem; color: #bbb; line-height: 1.7; font-weight: 300; margin-bottom: 1.5rem; }
.modal-stats       { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.8rem; margin-bottom: 1.5rem; }
.modal-stat        { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; text-align: center; }
.modal-stat-label  { font-family: 'Space Mono', monospace; font-size: 0.6rem; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.4rem; }
.modal-stat-val    { font-family: 'Black Han Sans', sans-serif; font-size: 1.3rem; }
.modal-stat-val.green{ color: var(--accent); }
.modal-stat-val.blue { color: var(--accent3); }
.modal-stat-val.red  { color: var(--accent2); }
.bar-row   { margin-bottom: 0.6rem; }
.bar-label { display: flex; justify-content: space-between; font-size: 0.75rem; margin-bottom: 0.3rem; }
.bar-label span:first-child{ color: var(--muted); }
.bar-label span:last-child { font-weight: 600; }
.bar-track { height: 5px; background: var(--border); border-radius: 100px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 100px; transition: width 0.8s ease; }
.modal-muscles       { margin-top: 1.5rem; }
.modal-muscles-title { font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
.muscle-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.muscle-tag  { font-size: 0.78rem; padding: 0.25rem 0.75rem; border-radius: 100px; border: 1px solid var(--border); color: var(--muted); font-weight: 300; }
.muscle-tag.primary { border-color: rgba(232,255,71,0.4); color: var(--accent); background: rgba(232,255,71,0.06); }
.modal-tips-section { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.modal-tips-title   { font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
.modal-tip          { display: flex; gap: 0.6rem; font-size: 0.82rem; color: #bbb; font-weight: 300; line-height: 1.5; margin-bottom: 0.5rem; }
.modal-tip::before  { content: '—'; color: var(--accent); flex-shrink: 0; }

/* ── Modal Email ── */
.email-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(14px);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.email-modal-overlay.open { display: flex; }
.email-modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  position: relative;
}
.email-modal-icon  { font-size: 2.5rem; margin-bottom: 1rem; }
.email-modal-title {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1.8rem;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}
.email-modal-sub {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}
.email-input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 0.5rem;
}
.email-input::placeholder { color: var(--muted); }
.email-input:focus { border-color: var(--accent); }
.email-error {
  display: none;
  font-size: 0.75rem;
  color: var(--accent2);
  margin-bottom: 0.8rem;
  font-family: 'Space Mono', monospace;
}
.email-btn-save {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: #0a0a0a;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
  margin-bottom: 0.7rem;
}
.email-btn-save:hover { background: #f5ff6e; box-shadow: 0 8px 30px rgba(232,255,71,0.3); }
.email-btn-skip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  padding: 0.85rem 1rem;
  margin-top: 0.2rem;
  margin-bottom: 0.9rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.email-btn-skip::after {
  content: '→';
  font-size: 1rem;
  opacity: 0.6;
  transition: transform 0.2s, opacity 0.2s;
}
.email-btn-skip:hover {
  border-color: rgba(232,255,71,0.45);
  background: rgba(232,255,71,0.05);
  color: var(--accent);
}
.email-btn-skip:hover::after { transform: translateX(3px); opacity: 1; }
.email-btn-skip-note {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 1.1rem;
}
.email-privacy {
  font-size: 0.72rem;
  color: #333;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.05em;
}

/* ── Google button ── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.72rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  margin-bottom: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.btn-google:hover {
  border-color: var(--muted);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Auth tabs ── */
.auth-tabs {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.auth-tab {
  flex: 1;
  padding: 0.6rem 1rem;
  background: var(--card);
  border: none;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.auth-tab.active {
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 700;
}
.auth-tab:not(.active):hover { color: var(--text); background: #1c1c1c; }

/* ── Nav logout button ── */
.nav-link--logout {
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
.nav-link--logout:hover { color: var(--accent2); background: rgba(255,71,71,0.08); }


@media (max-width: 600px) {
  .options-grid            { grid-template-columns: 1fr; }
  .options-grid.three-col  { grid-template-columns: 1fr 1fr; }
  .profile-grid            { grid-template-columns: 1fr 1fr; }
  .hero-stats              { gap: 2rem; }
  h1.logo                  { font-size: 5rem; }
  .modal-stats             { grid-template-columns: 1fr 1fr; }
  .modal-body              { padding: 1.2rem; }
}

/* ── Welcome Back ── */
#welcome-back {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Animated glow blobs */
.wb-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.wb-bg-glow::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(232,255,71,0.05) 0%, transparent 65%);
  top: -10%; left: -15%;
  animation: wbFloat1 12s ease-in-out infinite;
}
.wb-bg-glow::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(71,200,255,0.06) 0%, transparent 65%);
  bottom: -10%; right: -10%;
  animation: wbFloat2 15s ease-in-out infinite;
}
@keyframes wbFloat1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, 30px); } }
@keyframes wbFloat2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px,-20px); } }

.wb-inner {
  text-align: center;
  max-width: 480px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.wb-top-row {
  margin-bottom: 1.5rem;
}
.wb-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  border: 1px solid rgba(232,255,71,0.25);
  background: rgba(232,255,71,0.05);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
}

.wb-title {
  font-family: 'Black Han Sans', sans-serif;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.wb-title-rutinix {
  display: block;
  font-size: clamp(3.5rem, 12vw, 7rem);
  color: var(--text);
  letter-spacing: -0.01em;
}
.wb-title-sub {
  display: block;
  font-size: clamp(1.1rem, 4vw, 2rem);
  color: var(--accent3);
  letter-spacing: 0.08em;
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  margin-top: 0.2rem;
}

.wb-sub {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ── Routine summary card ── */
.wb-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.8rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.wb-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent3), transparent);
}

.wb-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.wb-card-obj {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.wb-obj-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}
.wb-obj-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.wb-obj-value {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.03em;
}
.wb-nivel-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  border: 1.5px solid;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  flex-shrink: 0;
}

.wb-card-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.1rem;
}

.wb-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.wb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 0.7rem 0.4rem;
  text-align: center;
}
.wb-stat-icon { font-size: 1.2rem; line-height: 1; }
.wb-stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.wb-stat-value {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
}

/* ── Buttons ── */
.wb-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.wb-btn-primary {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--accent);
  color: #0a0a0a;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.wb-btn-primary:hover {
  background: #f5ff6e;
  box-shadow: 0 8px 32px rgba(232,255,71,0.35);
  transform: translateY(-1px);
}
.wb-btn-icon { font-size: 1rem; }
.wb-btn-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  opacity: 0.7;
  transition: transform 0.2s;
}
.wb-btn-primary:hover .wb-btn-arrow { transform: translateX(3px); opacity: 1; }

.wb-btn-secondary {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.wb-btn-secondary:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
}

.wb-btn-delete {
  background: none;
  border: none;
  color: #3a3a3a;
  font-size: 0.72rem;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.08em;
  transition: color 0.2s;
  padding: 0.3rem;
}
.wb-btn-delete:hover { color: var(--accent2); }

/* ── Responsive ── */
@media (max-width: 480px) {
  .wb-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .wb-card { padding: 1.1rem 1.1rem; }
}

/* ── Botón borrar datos en resultados ── */
.btn-clear-data {
  padding: 1rem 2rem;
  background: transparent;
  color: #444;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  border: 1.5px solid #222;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}
.btn-clear-data:hover { border-color: var(--accent2); color: var(--accent2); }

/* ── Toast notificación ── */
.rutinix-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.8rem 1.5rem;
  border-radius: 100px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
}
.rutinix-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#rutinix-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
#rutinix-nav.scrolled { background: rgba(10,10,10,0.97); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
}
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-link--coach {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent2);
  border: 1px solid rgba(255,71,71,0.25);
}
.nav-link--coach:hover { color: var(--accent2); background: rgba(255,71,71,0.08); border-color: rgba(255,71,71,0.5); }
.nav-coach-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  animation: gbPulse 2s infinite;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
}

.nav-cta {
  padding: 0.5rem 1.2rem;
  background: var(--accent);
  color: #0a0a0a;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: #f5ff6e; box-shadow: 0 4px 20px rgba(232,255,71,0.3); }

/* hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.8rem 1.5rem 1.2rem;
  border-top: 1px solid var(--border);
  gap: 0.2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.15s;
}
.nav-mobile-link:hover { color: var(--text); }
.nav-cta--mobile {
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.85rem;
  font-size: 0.85rem;
}

/* Lang selector repositioned in navbar */
#lang-selector #lang-dropdown {
  top: calc(100% + 0.6rem);
  right: 0;
}

/* Body offset for fixed nav */
body { padding-top: 60px; }
#hero { min-height: calc(100vh - 60px); }
#welcome-back { min-height: calc(100vh - 60px); }

/* ============================================================
   HERO ADDITIONS
   ============================================================ */
.hero-bg-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}
.orb--1 { width: 600px; height: 600px; background: var(--accent);  top: -100px; left: -100px; }
.orb--2 { width: 400px; height: 400px; background: var(--accent2); bottom: 0;   right: -80px; }
.orb--3 { width: 300px; height: 300px; background: var(--accent3); top: 40%;    left: 50%; transform: translateX(-50%); opacity: 0.07; }

.hero-grid-lines { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gl { position: absolute; background: rgba(255,255,255,0.03); }
.gl--v { width: 1px; top: 0; bottom: 0; }
.gl--h { height: 1px; left: 0; right: 0; }
.gl--v.gl--1 { left: 25%; }
.gl--v.gl--2 { left: 75%; }
.gl--h.gl--1 { top: 50%; }

.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 3rem 2rem 2rem; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  animation: fadeUp 0.6s ease 0.35s both;
}
.hero-scroll-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.hero-scroll-link:hover { color: var(--text); }

.hero-stat-sep {
  width: 1px;
  height: 30px;
  background: var(--border);
  flex-shrink: 0;
}

/* Social proof */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.5rem;
  animation: fadeUp 0.6s ease 0.55s both;
}
.proof-avatars { display: flex; }
.proof-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  margin-left: -8px;
}
.proof-av:first-child { margin-left: 0; }
.proof-text {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
}
.proof-text strong { color: var(--text); }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
  padding: 6rem 1.5rem;
  position: relative;
}
.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.section-title {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 3.5rem;
  color: var(--text);
}
.section-title span { color: var(--accent); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.feature-card {
  background: var(--card);
  padding: 2rem 1.8rem;
  transition: background 0.2s;
}
.feature-card:hover { background: #1a1a1a; }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.fi--yellow { background: rgba(232,255,71,0.1); }
.fi--red    { background: rgba(255,71,71,0.1); }
.fi--blue   { background: rgba(71,200,255,0.1); }
.fi--purple { background: rgba(168,85,247,0.1); }

.feature-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.feature-desc  { font-size: 0.85rem; color: var(--muted); line-height: 1.6; font-weight: 300; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.hiw-section {
  padding: 6rem 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hiw-inner { max-width: 900px; margin: 0 auto; }

.hiw-steps {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.hiw-step {
  flex: 1;
  display: flex;
  gap: 1.2rem;
}
.hiw-step-num {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 2.5rem;
  color: rgba(232,255,71,0.2);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.15rem;
}
.hiw-step-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.hiw-step-desc  { font-size: 0.85rem; color: var(--muted); line-height: 1.6; font-weight: 300; }

.hiw-arrow {
  font-size: 1.5rem;
  color: var(--border);
  padding-top: 0.4rem;
  flex-shrink: 0;
}

.hiw-cta-wrap { text-align: center; }
.hiw-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.05em;
}

/* ============================================================
   FOOTER
   ============================================================ */
#rutinix-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 1.5rem 2rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.footer-logo {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.footer-logo span { color: var(--accent); }
.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
  max-width: 260px;
  margin-bottom: 1.5rem;
}
.footer-socials { display: flex; gap: 0.6rem; }
.footer-social {
  width: 34px; height: 34px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}
.footer-social:hover { border-color: var(--accent); color: var(--accent); }

.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
  cursor: pointer;
}
.footer-link:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: #2a2a2a;
  letter-spacing: 0.05em;
}
.footer-disc {
  font-size: 0.72rem;
  color: #1e1e1e;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.03em;
  max-width: 500px;
  text-align: right;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .hiw-steps    { flex-direction: column; gap: 2rem; }
  .hiw-arrow    { display: none; }
  .footer-top   { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links  { display: none; }
  .nav-right  { gap: 0.5rem; }
  .nav-cta    { display: none; }
  .nav-hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-top    { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-disc   { text-align: left; }
  .hero-actions  { flex-direction: column; gap: 0.8rem; }
  .hero-stats    { flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
  .hero-stat-sep { display: none; }
}

@media print {
  #rutinix-nav, #rutinix-footer, #hero, #quiz-wrapper, #loading-screen,
  .modal-overlay, .results-actions, #features-section, #how-it-works { display: none !important; }
  #results-wrapper { display: block !important; padding: 0; }
  body { background: white; color: black; padding-top: 0; }
}
