/* =========================================================
   Vytal — Design System & Global Styles
   Inspired by Future.co: Layered Physical Scenes & Dark Luxury
   ========================================================= */

/* ─── 1. VARIABLES & TOKENS ──────────────────────────────── */
:root {
  /* ── Vytal · identidad visual v1.0 ─────────────────────
     Papel cálido, tinta casi negra, cuatro roles de color.
     El color clasifica, no decora. Sin degradados de marca.
     ───────────────────────────────────────────────────────── */

  /* Superficies */
  --papel:        #F2EFE8;   /* fondo por defecto */
  --papel-alt:    #F7F5F0;   /* superficie elevada */
  --hueso:        #E8E4DA;   /* superficie neutra, tablas, cabeceras */
  --tinta:        #1B1A17;   /* texto y filetes */

  /* Texto */
  --texto:        #1B1A17;
  --texto-cuerpo: #3E3A34;
  --texto-suave:  #6B665C;
  --texto-tenue:  #8A857A;

  /* Rol · Savia — nutrición, acción, logro */
  --savia-100: #EAF1EC; --savia-300: #B9CFC0; --savia-500: #3A6B4F; --savia-700: #27503A; --savia-900: #16301F;
  --savia-rgb: 58, 107, 79;
  /* Rol · Malva — descanso, sueño, recuperación */
  --malva-100: #F0EDF7; --malva-300: #C6BEDD; --malva-500: #5A5183; --malva-700: #433C64; --malva-900: #28233C;
  /* Rol · Arcilla — entrenamiento, esfuerzo */
  --arcilla-100: #F7EAE6; --arcilla-300: #E4BCB0; --arcilla-500: #A8523F; --arcilla-700: #813A2B; --arcilla-900: #4E231A;
  /* Rol · Ámbar — aviso, límite, pendiente */
  --ambar-100: #FBF2E2; --ambar-300: #EBD3A6; --ambar-500: #C98B3C; --ambar-700: #96631F; --ambar-900: #5B3D12;
  /* Neutros */
  --neutro-100: #F7F5F0; --neutro-300: #DCD7CB; --neutro-500: #A79F91; --neutro-700: #6B665C; --neutro-900: #332F29;

  /* Filetes */
  --filete:       #1B1A17;                    /* 2px, estructural */
  --filete-suave: #DCD7CB;                    /* 1px, interno */

  /* Tipografía */
  --font:       'Archivo', system-ui, -apple-system, sans-serif;
  --font-sans:  'Archivo', system-ui, -apple-system, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;  /* solo titulares ≥22px */
  --font-brand: 'Tahoe Display', 'Archivo', sans-serif;
  --font-mono:  ui-monospace, Menlo, monospace;

  /* Geometría — esquinas rectas, sin excepción */
  --radius-sm: 0; --radius: 0; --radius-lg: 0; --radius-card-layer: 0;

  /* Sin sombras de marca: la estructura la dibujan los filetes */
  --shadow-subtle: none; --shadow-layer: none; --shadow-gold: none;

  --transition-fast: 0.15s ease;
  --transition:      0.2s ease;
  --transition-slow: 0.3s ease;

  /* ── Alias heredados ──────────────────────────────────────
     Nombres del tema anterior, reasignados al sistema nuevo
     para no tocar las 5.900 líneas que los consumen.
     "gold" = Savia (verde), el acento primario.               */
  --bg:              var(--papel);
  --bg-subtle:       var(--papel-alt);
  --bg-card:         var(--papel-alt);
  --bg-card-hover:   var(--hueso);
  --bg-darker:       var(--hueso);
  --bg-cream:        var(--papel);
  --bg-cream-card:   var(--papel-alt);
  --bg-cream-card-hover: var(--hueso);
  --text-cream-heading: var(--texto);
  --text-cream-body: var(--texto-cuerpo);
  --text-cream-muted: var(--texto-suave);
  --border-cream:    var(--filete-suave);
  --gold:            var(--savia-500);
  --gold-light:      var(--savia-300);
  --gold-dark:       var(--savia-700);
  --gold-glow:       transparent;
  --text:            var(--texto);
  --text-muted:      var(--texto-suave);
  --text-dim:        var(--texto-tenue);
  --border:          var(--filete-suave);
  --border-gold:     var(--savia-500);
}

/* ─── 2. RESET & BASE ────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

ul {
  list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 0;
}

/* ─── 3. UTILITIES & TYPOGRAPHY ──────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold {
  color: var(--gold);
}

.gold-gradient {
  /* Mismo degradado dorado que los acentos de títulos del resto de la página */
  background: #EAF1EC;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nv-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(58, 107, 79, 0.08);
  border: 1px solid var(--border-gold);
  padding: 6px 14px;
  border-radius: 0;
  margin-bottom: 16px;
}

/* ─── 4. BUTTONS ─────────────────────────────────────────── */
.btn-gold {
  background: var(--gold-dark);
  color: #F2EFE8;
  padding: 10px 22px;
  border-radius: 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: none;
  color: #F2EFE8;
}

.btn-gold-large {
  background: #27503A;
  color: #F2EFE8;
  padding: 16px 36px;
  border-radius: 0;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.btn-gold-large:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: none;
  color: #F2EFE8;
}

.btn-ghost {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 0;
  transition: var(--transition-fast);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(27, 26, 23, 0.05);
}

.btn-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 14px 24px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: rgba(27, 26, 23, 0.02);
  backdrop-filter: none;
  transition: var(--transition);
}

.btn-secondary-link:hover {
  color: var(--gold);
  border-color: var(--border-gold);
  background: rgba(58, 107, 79, 0.05);
  transform: translateY(-2px);
}

.arrow-down {
  transition: transform var(--transition-fast);
}
.btn-secondary-link:hover .arrow-down {
  transform: translateY(3px);
}

/* ─── 5. HEADER & NAVBAR ─────────────────────────────────── */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.site-header.nav--hidden {
  transform: translateY(-130%);
  opacity: 0;
}

.navbar {
  pointer-events: auto;
  width: min(92%, 1020px);
  margin: 0 auto;
  padding: 10px 24px;
  border-radius: 0;
  background: rgba(27, 26, 23, 0.52);
  backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid rgba(27, 26, 23, 0.1);
  box-shadow: none;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.navbar--scrolled {
  background: rgba(27, 26, 23, 0.82);
  border-color: rgba(58, 107, 79, 0.25);
  box-shadow: none;
}

.nav-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 2px;
  color: var(--text);
}

.nav-logo-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: invert(1) brightness(1.2);
}

.logo-dot {
  color: var(--gold);
  font-size: 24px;
  line-height: 0;
  margin-left: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 0;
  transition: var(--transition);
}

/* ─── 6. HERO SECTION ────────────────────────────────────── */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 195px 24px 30px;
  background: #F2EFE8;
  overflow: visible;
}

/* ─── FONDOS DE ESTILO DE VIDA CON MÁSCARAS DE GRADIENTE SUAVE ─── */
.nv-lifestyle-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.nv-lifestyle-fullimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.nv-lifestyle-gradient-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nv-lifestyle-bg--hero .nv-lifestyle-fullimg {
  filter: contrast(1.02) brightness(0.62);
}

/* Gradiente suave: la imagen se mantiene visible más abajo
   para que la transición al mockup sea natural sin hueco negro */
.nv-lifestyle-bg--hero .nv-lifestyle-gradient-mask {
  background: linear-gradient(180deg,
    rgba(27, 26, 23, 0.0)  0%,
    rgba(27, 26, 23, 0.10) 20%,
    rgba(27, 26, 23, 0.30) 45%,
    rgba(27, 26, 23, 0.62) 65%,
    rgba(27, 26, 23, 0.86) 82%,
    #F2EFE8 95%
  );
}

/* ─── Propósito: más claro (brightness 0.72, menos overlay) ─── */
.nv-lifestyle-bg--purpose .nv-lifestyle-fullimg {
  filter: contrast(1.0) brightness(0.72) saturate(0.9);
}

.nv-lifestyle-bg--purpose .nv-lifestyle-gradient-mask {
  background: radial-gradient(ellipse at 35% 50%, rgba(27, 26, 23, 0.22) 0%, rgba(27, 26, 23, 0.58) 80%),
              rgba(27, 26, 23, 0.72);
}

/* ─── Apple Watch: más claro (brightness subida para reducir oscuridad) ─── */
.nv-lifestyle-bg--watch .nv-lifestyle-fullimg {
  filter: contrast(1.02) brightness(0.85) saturate(0.9);
}

.nv-lifestyle-bg--watch .nv-lifestyle-gradient-mask {
  background: radial-gradient(ellipse at 68% 50%, rgba(27, 26, 23, 0.05) 0%, rgba(27, 26, 23, 0.25) 80%),
              rgba(27, 26, 23, 0.45);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.particle {
  position: absolute;
  background: var(--gold);
  border-radius: 0;
  pointer-events: none;
  animation: particleFloat linear infinite;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
  margin-bottom: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(58, 107, 79, 0.08);
  border: 1px solid var(--border-gold);
  padding: 8px 18px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 0;
  box-shadow: none;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(38px, 5.8vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-title--refined {
  font-size: clamp(40px, 5.8vw, 74px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-serif-accent {
  font-family: var(--font-serif) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 1.04em;
  background: #EAF1EC;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sans-accent {
  font-family: var(--font-sans) !important;
  font-style: normal !important;
  font-weight: 900 !important;
  background: #EAF1EC;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 21px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 30px;
}

.hero-sub-accent {
  font-family: var(--font-serif) !important;
  font-style: italic !important;
  font-weight: 600 !important;
  font-size: 1.18em !important;
  background: #EAF1EC;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 28px;
  background: rgba(27, 26, 23, 0.02);
  border: 1px solid var(--border);
  border-radius: 0;
  backdrop-filter: none;
}

.proof-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.proof-divider {
  width: 4px;
  height: 4px;
  background: var(--border-gold);
  border-radius: 0;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--gold);
  animation: float 2.2s infinite ease-in-out;
}

.hero-scroll-indicator span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ─── 7. FUTURE.CO LAYERED NARRATIVE ENGINE ──────────────── */
.nv-narrative-container {
  position: relative;
  width: 100%;
}

/* Pinned Dark Sections */
.nv-pinned-section {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.nv-pinned-section.nv-phone-scene {
  padding: 0px 24px 80px;
  margin-top: -225px;
  background: transparent;
}

/* El overlap de -225px asume mucho hueco oscuro tras el CTA. En portátiles
   (viewport poco alto) el mockup del teléfono subiría y taparía el botón
   "Comenzar". Aquí recortamos ese overlap cuando no hay sitio. */
@media (min-width: 901px) and (max-height: 880px) {
  .nv-pinned-section.nv-phone-scene {
    margin-top: -70px;
  }
}


/* ESCENA 1: iPhone Reveal Stage */
.nv-phone-stage {
  position: relative;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
}

.nv-device-wrapper {
  position: relative;
  width: clamp(280px, 25vw, 340px);
  aspect-ratio: 1300 / 2642;
  margin: 0 auto;
  z-index: 2;
  filter: drop-shadow(0 25px 50px rgba(27, 26, 23, 0.8)) drop-shadow(0 0 35px rgba(58, 107, 79, 0.1));
}

/* ─── CONTENEDORES 3D (THREE.JS / WEBGL) ─── */
.nv-device-wrapper--3d {
  width: clamp(290px, 25vw, 360px);
  aspect-ratio: 1300 / 2642;
  position: relative;
  margin: 0 auto;
  z-index: 2;
}

.nv-watch-wrapper--3d {
  width: clamp(280px, 28vw, 380px);
  aspect-ratio: 458 / 796;
  position: relative;
  z-index: 2;
}

.nv-3d-canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nv-3d-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  filter: drop-shadow(0 25px 50px rgba(27, 26, 23, 0.75)) drop-shadow(0 0 40px rgba(58, 107, 79, 0.09));
}

/* ─── FOTOS DE STOCK / CONTEXTO HUMANO ESTILO FUTURE.CO ─── */
.nv-lifestyle-card {
  position: absolute;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(27, 26, 23, 0.08);
  box-shadow: none;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.nv-lifestyle-card--phone {
  width: clamp(260px, 26vw, 380px);
  height: clamp(340px, 34vw, 500px);
  left: 3%;
  top: 50%;
  transform: translateY(-50%) rotate(-3deg);
  opacity: 0.38;
}

.nv-lifestyle-card--watch {
  width: clamp(260px, 26vw, 390px);
  height: clamp(330px, 32vw, 470px);
  left: -24px;
  top: 50%;
  transform: translateY(-50%) rotate(-2deg);
  opacity: 0.35;
  z-index: 0;
}

.nv-lifestyle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) contrast(1.15) brightness(0.6);
  display: block;
}

.nv-lifestyle-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 26, 23, 0.85),
              rgba(27, 26, 23, 0.2);
  pointer-events: none;
}

/* Background lifestyle en El Propósito */
.nv-lifestyle-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.nv-lifestyle-fullimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(45%) contrast(1.15) brightness(0.35);
  opacity: 0.32;
}

/* ─── Watch: anula el oscurecimiento genérico — viene después para ganar la cascada ─── */
.nv-lifestyle-bg--watch .nv-lifestyle-fullimg {
  filter: contrast(1.02) brightness(0.50) saturate(0.85);
  opacity: 0.55;
}

.nv-lifestyle-gradient-mask {
  position: absolute;
  inset: 0;
  background: rgba(27, 26, 23, 0.95),
              #F2EFE8;
}

/* ─── Watch: anula el gradient mask genérico ─── */
.nv-lifestyle-bg--watch .nv-lifestyle-gradient-mask {
  background: radial-gradient(ellipse at 68% 50%, rgba(27, 26, 23, 0.05) 0%, rgba(27, 26, 23, 0.25) 80%),
              rgba(27, 26, 23, 0.45);
}

.nv-3d-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(27, 26, 23, 0.8);
  border-radius: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 10;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.nv-3d-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nv-3d-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(58, 107, 79, 0.2);
  border-top-color: var(--gold);
  border-radius: 0;
  animation: spin3d 0.8s linear infinite;
}

@keyframes spin3d {
  to {
    transform: rotate(360deg);
  }
}

.nv-device-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.nv-device-front,
.nv-device-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.nv-device-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.nv-device-back {
  transform: rotateY(180deg);
  background: #E8E4DA;
  border-radius: 0;
  border: 1px solid #332F29;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--gold);
}

.nv-device-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Pantalla iPhone con recorte exacto */
.nv-screen--iphone {
  position: absolute;
  left: 4.8%;
  top: 2.1%;
  width: 90.4%;
  height: 95.8%;
  background: #F2EFE8;
  border-radius: 0;
  overflow: hidden;
  z-index: 4;
}

.nv-screen--iphone::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: #F2EFE8;
  border-radius: 0;
  z-index: 10;
  box-shadow: none;
}

.nv-app-view {
  position: absolute;
  inset: 0;
  padding: 44px 16px 20px;
  display: flex;
  flex-direction: column;
  background: #F2EFE8;
  overflow-y: auto;
}

/* Vista Splash / Bienvenida con Logo de Vytal */
.nv-app-view--splash {
  align-items: center;
  justify-content: center;
  background: #E8E4DA;
  padding: 40px 18px 24px;
  z-index: 5;
}

.nv-app-view--dashboard {
  z-index: 1;
}

.splash-welcome-box {
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.splash-logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: invert(1) brightness(1.3) drop-shadow(0 0 16px rgba(58, 107, 79, 0.45));
  margin-bottom: 14px;
  animation: floatSubtle 4s ease-in-out infinite;
}

.splash-brand-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #1B1A17;
  margin-bottom: 12px;
}

.splash-pulse {
  width: 32px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
  animation: pulse 1.8s infinite;
}

.splash-glow-aura {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 0;
  background: rgba(58, 107, 79, 0.25);
  pointer-events: none;
  z-index: 1;
}

/* Vista Dashboard dentro del iPhone */
.nv-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.nv-dash-greeting {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}

.nv-dash-username {
  font-size: 15px;
  font-weight: 800;
  color: #1B1A17;
}

.nv-dash-avatar {
  width: 30px;
  height: 30px;
  background: var(--gold-dark);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #F2EFE8;
}

.nv-dash-plan-badge {
  background: rgba(58, 107, 79, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 0;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.plan-label {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
}

.plan-name {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #1B1A17;
}

.plan-meta {
  font-size: 9px;
  color: var(--text-muted);
}

.nv-dash-macros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.macro-cell {
  background: rgba(27, 26, 23, 0.03);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 6px;
  text-align: center;
}

.macro-cell strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.macro-cell small {
  font-size: 8px;
  color: var(--text-dim);
}

.macro-cell span {
  display: block;
  font-size: 8px;
  color: var(--text-muted);
  margin-top: 2px;
}

.nv-dash-section-title {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.nv-dash-section-title b {
  color: var(--gold);
}

.nv-dash-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(27, 26, 23, 0.025);
  border: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 6px;
}

.nv-dash-item-icon {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(58, 107, 79, 0.12);
  width: 20px;
  height: 20px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nv-dash-item-info {
  flex: 1;
}

.nv-dash-item-info strong {
  display: block;
  font-size: 11px;
  color: #1B1A17;
  line-height: 1.2;
}

.nv-dash-item-info small {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
}

.nv-dash-item-val {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
}

.nv-dash-tip {
  font-size: 9px;
  color: var(--text-muted);
  background: rgba(58, 107, 79, 0.06);
  border-left: 2px solid var(--gold);
  padding: 6px 8px;
  border-radius: 0;
  margin-top: 6px;
}

.nv-dash-days-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 12px;
}

.day-chip {
  flex: 1;
  text-align: center;
  padding: 5px 0;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(27, 26, 23, 0.02);
  border-radius: 0;
}

.day-chip.active {
  background: var(--gold);
  color: #F2EFE8;
}

/* Tarjeta Narrativa 01 */
.nv-card {
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 0;
  padding: clamp(32px, 4vw, 48px);
  box-shadow: none;
  backdrop-filter: none;
}

.nv-card--intro {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 4;
}

.nv-card-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 16px;
}

.nv-card-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  color: #F2EFE8;
  margin-bottom: 16px;
}

.nv-card-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.nv-card-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nv-card-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.check-icon {
  color: var(--gold);
  font-weight: 800;
}

/* ─── 8. PHYSICAL CARD LAYER: WARM CREAM (#F2EFE8) ───────── */
.nv-layer-card {
  position: relative;
  z-index: 10;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  will-change: transform;
}

.nv-layer-cream {
  background-color: var(--bg-cream);
  color: var(--text-cream-heading);
}

.nv-cream-content {
  padding-top: clamp(80px, 9vw, 130px);
  padding-bottom: clamp(80px, 9vw, 130px);
}

.nv-header-block {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 64px;
}

.nv-editorial-title {
  font-family: var(--font-serif) !important;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-cream-heading);
  margin-bottom: 20px;
}

.nv-title-accent {
  background: #27503A;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nv-editorial-sub {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--text-cream-body);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
}

.nv-serif-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 30px);
  color: #27503A;
  margin-top: 24px;
}

/* Proceso en 3 Pasos */
.nv-process-wrapper {
  margin: 70px auto;
  text-align: center;
}

.nv-process-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--text-cream-heading);
  margin-bottom: 36px;
}

.nv-steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.nv-step-box {
  flex: 1;
  background: var(--bg-cream-card);
  border: 1px solid var(--border-cream);
  border-radius: 0;
  padding: 32px 24px;
  text-align: left;
  transition: var(--transition);
}

.nv-step-box:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.step-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.nv-step-box h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-cream-heading);
  margin-bottom: 8px;
}

.nv-step-box p {
  font-size: 14px;
  color: var(--text-cream-body);
  line-height: 1.5;
}

.step-arrow-divider {
  font-size: 24px;
  color: var(--gold-dark);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── BENTO GRID REDISEÑADO ─────────────────────────────── */
.nv-bento-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-auto-rows: minmax(210px, auto);
  gap: 20px;
  margin-top: 56px;
}

.bento-card {
  position: relative;
  background: var(--bg-cream-card);
  border: 1px solid var(--border-cream);
  border-radius: 0;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: rgba(58, 107, 79, 0.55);
  opacity: 0;
  transition: opacity var(--transition);
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(39, 80, 58, 0.4);
  box-shadow: none;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card--featured {
  grid-row: span 2;
  background: #F7F5F0;
}

.bento-card--full {
  grid-column: 1 / -1;
  padding: 24px 28px;
}

/* Número de serie (01…06) */
.bento-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(39, 80, 58, 0.55);
  border: 1px solid rgba(39, 80, 58, 0.25);
  border-radius: 0;
  padding: 3px 9px;
  background: rgba(27, 26, 23, 0.35);
}

.bento-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.bento-card h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-cream-heading);
  line-height: 1.18;
  margin-bottom: 8px;
}

.bento-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-cream-heading);
  margin-bottom: 6px;
}

.bento-card p {
  font-size: 13px;
  color: var(--text-cream-body);
  line-height: 1.5;
}

/* Chip de icono dorado */
.bento-icon {
  width: 42px;
  height: 42px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  background: rgba(58, 107, 79, 0.18);
  border: 1px solid rgba(39, 80, 58, 0.25);
  margin-bottom: 14px;
}

.bento-icon svg {
  width: 20px;
  height: 20px;
}

/* ── Visual: anillo de calorías (tarjeta destacada) ── */
.bento-ring-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: auto;
  padding-top: 20px;
}

.bento-ring {
  position: relative;
  width: 128px;
  height: 128px;
  flex-shrink: 0;
}

.bento-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.bento-ring circle {
  fill: none;
  stroke-width: 11;
  stroke-linecap: round;
}

.ring-track {
  stroke: rgba(39, 80, 58, 0.18);
}

.ring-fg {
  stroke: url(#bentoRingGrad);
  stroke-dasharray: 246 301.6;
  filter: drop-shadow(0 0 6px rgba(58, 107, 79, 0.35));
}

.bento-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bento-ring-center .bento-ring-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-cream-heading);
  line-height: 1;
}

.bento-ring-center .bento-ring-unit {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-cream-muted);
  margin-top: 4px;
}

.bento-ring-macros {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  color: var(--text-cream-body);
}

.bento-ring-macros .m-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.bento-ring-macros .m-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  flex-shrink: 0;
}

.bento-ring-macros .m-val {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-cream-heading);
}

/* ── Visual: plato de macros (tarjeta alimentación) ── */
.bento-plate {
  position: relative;
  width: 74px;
  height: 74px;
  margin: 6px auto 0;
}

.bento-plate svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.bento-plate circle {
  fill: none;
  stroke-width: 9;
}

.plate-carbs {
  stroke: #16301F;
  stroke-dasharray: 69.1 138.2;
}

.plate-protein {
  stroke: #3A6B4F;
  stroke-dasharray: 48.4 138.2;
  stroke-dashoffset: -69.1;
}

.plate-fat {
  stroke: #B9CFC0;
  stroke-dasharray: 20.7 138.2;
  stroke-dashoffset: -117.5;
}

.bento-plate-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-cream-heading);
}

/* ── Visual: gauge metabólico (tarjeta ciencia) ── */
.bento-gauge {
  position: relative;
  width: 120px;
  height: 66px;
  margin: 8px auto 0;
}

.bento-gauge svg {
  width: 100%;
  height: 100%;
}

.bento-gauge circle {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
}

.gauge-track {
  stroke: rgba(39, 80, 58, 0.18);
  stroke-dasharray: 188.5 251.3;
  stroke-dashoffset: 62.8;
}

.gauge-fg {
  stroke: url(#bentoGaugeGrad);
  stroke-dasharray: 158 251.3;
  stroke-dashoffset: 62.8;
  filter: drop-shadow(0 0 5px rgba(58, 107, 79, 0.3));
}

.bento-gauge-txt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
}

.bento-gauge-txt .g-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-cream-heading);
  line-height: 1;
}

.bento-gauge-txt .g-unit {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-cream-muted);
}

/* ── Visual: sparkline de progreso (tarjeta seguimiento) ── */
.bento-spark {
  margin-top: auto;
  padding-top: 16px;
}

.bento-spark svg {
  width: 100%;
  height: 46px;
  display: block;
}

.spark-area {
  fill: url(#bentoSparkGrad);
}

.spark-line {
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spark-dot {
  fill: var(--gold-dark);
}

.bento-trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-dark);
  background: rgba(58, 107, 79, 0.12);
  border: 1px solid rgba(39, 80, 58, 0.25);
  border-radius: 0;
  padding: 4px 10px;
}

.bento-trend svg {
  width: 12px;
  height: 12px;
}

/* ── Visual: barras semanales (tarjeta entrenamiento) ── */
.bento-week {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 46px;
  margin-top: auto;
  padding-top: 16px;
}

.bento-week .w-bar {
  flex: 1;
  border-radius: 0;
  background: rgba(39, 80, 58, 0.15);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.bento-week .w-bar.on {
  background: var(--gold-light);
  box-shadow: none;
}

.bento-card:hover .bento-week .w-bar.on {
  transform: scaleY(1.04);
  transform-origin: bottom;
}

/* ── Fila de chips del ecosistema (tarjeta full) ── */
.bento-eco {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.bento-eco-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-cream-heading);
  background: rgba(27, 26, 23, 0.45);
  border: 1px solid rgba(39, 80, 58, 0.22);
  border-radius: 0;
  padding: 8px 14px;
}

.bento-eco-chip svg {
  width: 15px;
  height: 15px;
  color: var(--gold-dark);
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.b-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  background: rgba(27, 26, 23, 0.4);
  border: 1px solid rgba(39, 80, 58, 0.22);
  border-radius: 0;
  color: var(--text-cream-heading);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.bento-card:hover .b-tag {
  background: rgba(58, 107, 79, 0.1);
  border-color: rgba(39, 80, 58, 0.35);
}

/* Bento Card con Imagen de Estilo de Vida */
.bento-card--image {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 0 !important;
  display: flex;
  align-items: flex-end;
  border-radius: 0;
}

.bento-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.85);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card--image:hover .bento-bg-img {
  transform: scale(1.05);
}

.bento-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 26, 23, 0.15);
  pointer-events: none;
}

.bento-img-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  color: #1B1A17;
}

.bento-img-content .bento-label {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  display: block;
}

.bento-img-content h4 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: #1B1A17;
}

/* ─── 9. SCENE 2: PURPOSE (DARK PINNED) ──────────────────── */
.nv-purpose-scene {
  background: var(--bg);
}

.nv-purpose-stage {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(40px, 6vw, 100px);
}

.nv-purpose-card {
  max-width: 540px;
}

.nv-purpose-title {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 900;
  line-height: 1.12;
  color: #1B1A17;
  margin: 16px 0 20px;
}

.nv-purpose-desc {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 30px;
}

.nv-purpose-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-feat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(27, 26, 23, 0.03);
  border: 1px solid var(--border);
  border-radius: 0;
  min-height: 72px;
}

.p-feat-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.p-feat strong {
  display: block;
  font-size: 14px;
  color: #1B1A17;
}

.p-feat small {
  font-size: 12px;
  color: var(--text-muted);
}

.nv-purpose-device {
  width: clamp(280px, 24vw, 340px);
  flex-shrink: 0;
}

/* ─── 10. SCENE 3: APPLE WATCH HERO (STANDALONE) ─────────── */
.nv-watch-hero-section {
  position: relative;
  min-height: 100vh;
  background: rgba(58, 107, 79, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
  overflow: hidden;
}

.nv-watch-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 7vw, 110px);
}

.nv-watch-device-col {
  flex-shrink: 0;
}

.nv-watch-wrapper {
  position: relative;
  width: clamp(280px, 28vw, 380px);
  aspect-ratio: 458 / 796;
}

.nv-watch-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Pantalla interna Apple Watch */
.nv-watch-wrapper {
  position: relative;
  width: clamp(260px, 25vw, 340px);
  aspect-ratio: 458 / 796;
  margin: 0 auto;
  z-index: 2;
  filter: drop-shadow(0 25px 50px rgba(27, 26, 23, 0.8)) drop-shadow(0 0 35px rgba(58, 107, 79, 0.1));
}

.nv-watch-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.nv-screen--watch {
  position: absolute;
  left: 10.8%;
  top: 22.8%;
  width: 74.5%;
  height: 54.5%;
  border-radius: 0;
  overflow: hidden;
  background: #F2EFE8;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.watch-ui-container {
  width: 100%;
  height: 100%;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-sizing: border-box;
}

.watch-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #8A857A;
}

.watch-ring-wrapper {
  position: relative;
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(27, 26, 23, 0.08);
  stroke-width: 8;
}

.ring-fg {
  fill: none;
  stroke: #3A6B4F;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 65;
  filter: drop-shadow(0 0 6px rgba(58, 107, 79, 0.5));
}

.watch-ring-center {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.watch-calories-num {
  font-size: 17px;
  font-weight: 900;
  color: #1B1A17;
  line-height: 1;
}

.watch-calories-unit {
  font-size: 9px;
  font-weight: 700;
  color: var(--gold);
}

.watch-macros-pills {
  display: flex;
  gap: 5px;
}

.w-pill {
  background: rgba(27, 26, 23, 0.06);
  border: 1px solid rgba(27, 26, 23, 0.12);
  border-radius: 0;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 800;
  color: #1B1A17;
  display: flex;
  align-items: center;
  gap: 3px;
}

.p-p { color: #5A5183; }
.p-c { color: #C98B3C; }
.p-g { color: #3A6B4F; }

/* ─── Apple Watch Text Column Styles ─────────────────────── */
.nv-watch-text-col {
  max-width: 520px;
  position: relative;
  z-index: 3;
}

.nv-watch-title {
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 900;
  line-height: 1.12;
  color: #1B1A17;
  margin: 16px 0 20px;
  text-shadow: none;
}

.nv-watch-desc {
  font-size: 16.5px;
  color: #DCD7CB;
  line-height: 1.65;
  margin-bottom: 28px;
  text-shadow: none;
}

.nv-watch-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.w-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #1B1A17;
  background: rgba(27, 26, 23, 0.05);
  border: 1px solid rgba(27, 26, 23, 0.12);
  padding: 12px 20px;
  border-radius: 0;
  backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.w-icon {
  font-size: 18px;
}

/* ─── MINI CARRUSEL HORIZONTAL CONTINUO ESTILO FUTURE.CO ─── */
.nv-marquee-section {
  position: relative;
  background: #F2EFE8;
  padding: 70px 0 90px;
  overflow: hidden;
  z-index: 10;
}

.nv-marquee-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 36px;
}

.nv-marquee-title {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  color: #1B1A17;
  line-height: 1.2;
  margin-top: 12px;
}

.nv-marquee-track-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.nv-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marqueeInfinite 40s linear infinite;
}

.nv-marquee-track:hover {
  animation-play-state: paused;
}

.nv-marquee-card {
  position: relative;
  height: 380px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(27, 26, 23, 0.08);
  box-shadow: none;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.nv-marquee-card--wide {
  width: clamp(380px, 32vw, 450px);
}

.nv-marquee-card--standard {
  width: clamp(290px, 24vw, 340px);
}

.nv-marquee-card--narrow {
  width: clamp(230px, 19vw, 270px);
}

.nv-marquee-card--medium {
  width: clamp(330px, 27vw, 380px);
}

.nv-marquee-card:hover {
  transform: translateY(-6px);
  border-color: rgba(58, 107, 79, 0.35);
}

.marquee-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(1.1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.nv-marquee-card:hover .marquee-card-img {
  transform: scale(1.06);
}

.marquee-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 26, 23, 0.1);
  z-index: 1;
  pointer-events: none;
}

.marquee-card-content {
  position: relative;
  z-index: 2;
  color: #1B1A17;
}

.marquee-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold);
  background: rgba(58, 107, 79, 0.12);
  border: 1px solid rgba(58, 107, 79, 0.25);
  border-radius: 0;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.marquee-card-content h4 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: #1B1A17;
  margin-bottom: 6px;
}

.marquee-card-content p {
  font-size: 13px;
  color: rgba(27, 26, 23, 0.7);
  line-height: 1.45;
  margin: 0;
}

@keyframes marqueeInfinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.nv-watch-text-col {
  max-width: 480px;
}

.nv-watch-title {
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  color: #1B1A17;
  margin-bottom: 20px;
}

.nv-watch-desc {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 30px;
}

.nv-watch-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.w-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.w-icon {
  color: var(--gold);
}

/* ─── 11. FEATURES, PRICING, TESTIMONIALS & FAQ ─────────── */
.section-header-centered {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 54px;
}

/* Features Grid */
.features-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 100px;
}

.feat-card {
  background: var(--bg-cream-card);
  border: 1px solid var(--border-cream);
  border-radius: 0;
  padding: 32px 26px;
  transition: var(--transition);
  position: relative;
}

.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.feat-card--highlight {
  border-color: var(--gold);
  background: #DCD7CB;
}

.feat-badge-top {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gold);
  color: #F2EFE8;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 0;
  letter-spacing: 0.5px;
}

.feat-icon-box {
  font-size: 32px;
  margin-bottom: 16px;
}

.feat-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-cream-heading);
  margin-bottom: 10px;
}

.feat-card p {
  font-size: 14px;
  color: var(--text-cream-body);
  line-height: 1.55;
}

/* Pricing Card Luxury */
.pricing-section-container {
  margin-bottom: 100px;
}

.pricing-card-luxury {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 0;
  padding: clamp(32px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  color: var(--text);
}

.pricing-card-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(58, 107, 79, 0.15);
  pointer-events: none;
}

.pricing-trial-side {
  flex: 1;
}

.trial-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 12px;
}

.trial-heading {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
  color: #1B1A17;
  line-height: 1.1;
  margin-bottom: 12px;
}

.trial-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.trial-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(58, 107, 79, 0.08);
  border: 1px solid var(--border-gold);
  padding: 8px 16px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
}

.pricing-divider-vertical {
  width: 1px;
  height: 180px;
  background: var(--border);
}

.pricing-action-side {
  flex: 1;
}

.price-context {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-big {
  display: flex;
  align-items: baseline;
  margin: 6px 0 18px;
}

.price-num {
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.price-currency {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  margin-left: 4px;
}

.price-period {
  font-size: 16px;
  color: var(--text-muted);
  margin-left: 6px;
}

.price-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.price-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.check-g {
  color: var(--gold);
  font-weight: 800;
}

/* Testimonials */
.testimonials-section-container {
  margin-bottom: 100px;
}

.testimonials-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testi-card {
  background: var(--bg-cream-card);
  border: 1px solid var(--border-cream);
  border-radius: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: var(--transition);
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.testi-card--highlight {
  border-color: var(--gold-dark);
}

.testi-stars {
  color: var(--gold-dark);
  font-size: 16px;
  letter-spacing: 2px;
}

.testi-quote {
  font-size: 14.5px;
  color: var(--text-cream-body);
  line-height: 1.6;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  background: var(--gold-dark);
  color: #1B1A17;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.testi-author strong {
  display: block;
  font-size: 14px;
  color: var(--text-cream-heading);
}

.testi-author span {
  font-size: 12px;
  color: var(--text-cream-muted);
}

/* FAQ Accordion */
.faq-section-container {
  margin-bottom: 100px;
}

.faq-accordion-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-cream-card);
  border: 1px solid var(--border-cream);
  border-radius: 0;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-cream-heading);
}

.faq-icon {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-dark);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 14.5px;
  color: var(--text-cream-body);
  line-height: 1.6;
}

/* Final CTA Card */
.final-cta-container {
  margin-top: 40px;
}

.final-cta-card {
  background: #F7F5F0;
  border: 1px solid var(--border-gold);
  border-radius: 0;
  padding: clamp(48px, 6vw, 80px) 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.cta-glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: rgba(58, 107, 79, 0.12);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  color: #1B1A17;
  margin: 16px 0 18px;
}

.cta-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
}

.cta-btn-wrapper {
  margin-bottom: 14px;
}

.cta-subnote {
  font-size: 12px;
  color: var(--text-dim);
}

/* ─── 12. FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer-inner {
  position: relative;
  z-index: 2;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-motto {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 340px;
  margin-top: 14px;
  line-height: 1.6;
}

.footer-links-col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links-col a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 10px;
  transition: var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--gold);
}

.footer-bottom-row {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-big-watermark {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(80px, 16vw, 200px);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(27, 26, 23, 0.015);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ─── 13. QUESTIONNAIRE & LOGIN SYSTEM ───────────────────── */
.page-wrapper {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
}

.quiz-container, .auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: clamp(28px, 4vw, 48px);
  width: 100%;
  max-width: 580px;
  box-shadow: none;
  position: relative;
}

.quiz-header {
  text-align: center;
  margin-bottom: 28px;
}

.quiz-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: var(--bg);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  height: 100%;
  background: var(--gold-dark);
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 12px;
  color: var(--text-muted);
}

.quiz-card h2, .auth-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.subtitle, .auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--gold);
}

.form-input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.option-grid {
  display: grid;
  gap: 10px;
}

.option-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.option-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: var(--transition-fast);
  color: var(--text);
}

.option-btn:hover {
  border-color: var(--border-gold);
  background: rgba(27, 26, 23, 0.02);
}

.option-btn.selected {
  border-color: var(--gold);
  background: rgba(58, 107, 79, 0.08);
}

.option-icon {
  font-size: 20px;
}

.option-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.option-desc {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.range-slider {
  width: 100%;
  accent-color: var(--gold);
  margin: 10px 0;
}

.range-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.checkbox-item.checked {
  border-color: var(--gold);
  background: rgba(58, 107, 79, 0.08);
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-item.checked .checkbox-custom {
  background: var(--gold);
  border-color: var(--gold);
}

.checkbox-item.checked .checkbox-custom::after {
  content: '✓';
  color: #F2EFE8;
  font-size: 12px;
  font-weight: 800;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}

.btn-prev {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 0;
}

.btn-prev:hover {
  color: var(--text);
}

.btn-next {
  background: var(--gold);
  color: #F2EFE8;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 0;
  transition: var(--transition);
}

.btn-next:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.alert {
  padding: 12px 16px;
  border-radius: 0;
  font-size: 13px;
  margin-top: 14px;
}

.alert-error {
  background: rgba(168, 82, 63, 0.1);
  border: 1px solid rgba(168, 82, 63, 0.3);
  color: #A8523F;
}

.stripe-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 14px 16px;
  min-height: 46px;
}

.stripe-card.StripeElement--focus {
  border-color: var(--gold);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 26, 23, 0.85);
  backdrop-filter: none;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ─── Check-in semanal (¿Cómo va ese progreso?) ─────────── */
.checkin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 26, 23, 0.82);
  backdrop-filter: none;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.checkin-modal {
  background: #E8E4DA;
  border: 1px solid var(--border-gold);
  border-radius: 0;
  max-width: 420px;
  width: 100%;
  padding: 36px 32px;
  text-align: center;
  box-shadow: none;
  animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.checkin-emoji {
  font-size: 46px;
  margin-bottom: 14px;
}

.checkin-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
}

.checkin-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 26px;
}

.checkin-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkin-actions .btn-gold,
.checkin-actions .btn-cancel {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 14px;
}

/* ─── Modal: Actualizar a Pro ───────────────────────────────── */
.upgrade-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 26, 23, 0.82);
  backdrop-filter: none;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.upgrade-modal {
  background: #E8E4DA;
  border: 1px solid var(--border-gold);
  border-radius: 0;
  max-width: 440px;
  width: 100%;
  padding: 34px 30px;
  position: relative;
  box-shadow: none;
  animation: fadeUp 0.35s ease;
}

.upgrade-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.upgrade-close:hover {
  color: var(--text);
}

.upgrade-head {
  text-align: center;
  padding-right: 24px;
}

.upgrade-head .nv-icon {
  color: var(--gold);
  margin-bottom: 8px;
}

.upgrade-head h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
}

.upgrade-head p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.upgrade-perks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.upgrade-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}

.upgrade-perks .nv-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.upgrade-card-element {
  margin-top: 24px;
}

.upgrade-card-element .StripeElement {
  background: rgba(27, 26, 23, 0.04);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 13px 14px;
  transition: border-color var(--transition-fast);
}

.upgrade-card-element .StripeElement--focus {
  border-color: var(--border-gold);
}

.upgrade-card-error {
  color: #A8523F;
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.5;
}

#upgradeSubmitBtn {
  width: 100%;
  margin-top: 18px;
  justify-content: center;
}

#upgradeSubmitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.upgrade-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 16px 0 0;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 0;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  font-size: 15px;
  color: var(--text);
}

/* ─── 14. DASHBOARD STYLES ───────────────────────────────── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: var(--papel);
}

.sidebar {
  width: 260px;
  background: var(--papel-alt);
  border-right: 2px solid var(--tinta);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-header {
  padding: 22px 24px;
  border-bottom: 2px solid var(--tinta);
}

.sidebar-logo-full {
  width: 140px;
  height: auto;
  display: block;
}

.sidebar-nav {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-bottom: 2px solid var(--tinta);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 22px;
  border-radius: 0;
  border-bottom: 1px solid var(--filete-suave);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--texto-cuerpo);
  transition: var(--transition-fast);
}

.sidebar-link:hover {
  color: var(--tinta);
  background: var(--hueso);
}

.sidebar-link.active {
  color: #F7F5F0;
  background: var(--savia-500);
  border: none;
  border-bottom: 1px solid var(--filete-suave);
}

.sidebar-footer {
  padding: 18px 20px;
  border-top: 2px solid var(--tinta);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  background: var(--tinta);
  color: #F2EFE8;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12.5px;
}

.user-name {
  font-size: 14px;
  font-weight: 700;
}

.user-email {
  font-size: 11px;
  color: var(--text-dim);
}

.dashboard-main {
  margin-left: 260px;
  flex: 1;
  min-width: 0;
  padding: 0;
  max-width: none;
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px 32px;
  border-bottom: 2px solid var(--tinta);
  margin-bottom: 0;
}

.dashboard-topbar h1 {
  font-family: var(--font-serif);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.dashboard-topbar p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.status-banner {
  padding: 18px 32px;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid var(--tinta);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-banner.trial {
  background: var(--ambar-100);
  border: none;
  border-bottom: 2px solid var(--tinta);
}

.status-banner.active {
  background: var(--savia-100);
  border: none;
  border-bottom: 2px solid var(--tinta);
}

.status-banner.free {
  background: var(--ambar-100);
  border: none;
  border-bottom: 2px solid var(--tinta);
}

.status-banner.warning {
  background: var(--ambar-100);
  border: none;
  border-bottom: 2px solid var(--tinta);
}

.banner-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold);
}

.banner-title {
  font-size: 15px;
  font-weight: 800;
  margin: 2px 0;
}

.banner-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-cancel {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 0;
  transition: var(--transition-fast);
}

.btn-cancel:hover {
  color: #A8523F;
  border-color: #A8523F;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-card {
  background: var(--bg-card);
  border: none;
  border-radius: 0;
  padding: 26px 28px;
}

.dash-card-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-bottom: 10px;
}

.dash-card-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--texto);
}

.dash-card-unit {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 4px;
}

.dash-card-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.macro-bar-item {
  margin-bottom: 14px;
}

.macro-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}

.macro-bar-bg {
  height: 8px;
  background: var(--bg);
  border-radius: 0;
  overflow: hidden;
}

.macro-bar-fill {
  height: 100%;
  border-radius: 0;
}

.macro-bar-fill.protein { background: #5A5183; }
.macro-bar-fill.carbs { background: var(--gold); }
.macro-bar-fill.fat { background: #5A5183; }

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.tab-btn.active {
  background: var(--gold);
  color: #F2EFE8;
  border-color: var(--gold);
}

.training-grid, .supp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--filete-suave);
  border-top: 2px solid var(--tinta);
}

.training-session, .supp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 20px;
}

.exercise-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.exercise-tag {
  background: rgba(27, 26, 23, 0.04);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text);
}

.train-week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 18px;
  width: 100%;
}

.train-day-col {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.train-day-abbr {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.train-day-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.train-day-col.active .train-day-label { color: var(--text); }
.train-day-col.today { border-color: var(--arcilla-500); background: var(--arcilla-100); }
.train-day-col.today .train-day-abbr { color: var(--arcilla-700); }

@media (max-width: 720px) {
  .train-week-strip { grid-template-columns: repeat(4, 1fr); }
}

/* ─── 15. ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes particleFloat {
  0% { transform: translateY(100vh); opacity: 0; }
  20% { opacity: 0.4; }
  80% { opacity: 0.4; }
  100% { transform: translateY(-100px); opacity: 0; }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* ─── 16. RESPONSIVE BREAKPOINTS ─────────────────────────── */
@media (max-width: 1080px) {
  .features-grid-modern,
  .testimonials-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-card-luxury {
    flex-direction: column;
    gap: 32px;
  }
  
  .pricing-divider-vertical {
    width: 100%;
    height: 1px;
  }
}

/* ─── MOBILE DRAWER & BOCADILLO BUTTON ─────────────────── */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 0;
  background: rgba(27, 26, 23, 0.08);
  border: 1px solid rgba(27, 26, 23, 0.15);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  z-index: 1001;
}

.nav-mobile-toggle:hover {
  background: rgba(58, 107, 79, 0.15);
  border-color: var(--gold);
}

.toggle-bar {
  width: 17px;
  height: 2px;
  background: var(--text);
  border-radius: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-mobile-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-mobile-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile Drawer Backdrop */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 26, 23, 0.55);
  backdrop-filter: none;
  backdrop-filter: none;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Drawer — Sombra suave lateral derecha, sin bordes ni opacidad sólida */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(75vw, 280px);
  background: rgba(27, 26, 23, 0.95);
  z-index: 999;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s ease;
  display: flex;
  flex-direction: column;
  border: none;
  box-shadow: none;
  pointer-events: none;
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-inner {
  padding: 92px 24px 36px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.mobile-drawer-link {
  font-size: 20px;
  font-weight: 700;
  color: #DCD7CB;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--transition);
  padding: 6px 0;
  text-align: right;
  display: inline-block;
}

.mobile-drawer-link:hover,
.mobile-drawer-link:active {
  color: #1B1A17;
}

.mobile-drawer-link--gold {
  color: var(--gold);
  font-weight: 800;
  background: #EAF1EC;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 900px) {
  /* Navbar 100% Centrado */
  .site-header {
    top: 14px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
  }

  .navbar {
    width: calc(100% - 32px);
    max-width: 460px;
    margin: 0 auto;
    padding: 8px 16px;
  }

  .nav-actions {
    display: none !important;
  }
  
  .nav-mobile-toggle {
    display: flex;
  }

  /* Hero en mobile */
  .hero {
    min-height: auto;
    padding: 110px 18px 24px;
  }

  .hero-title,
  .hero-title--refined {
    font-size: clamp(30px, 7.5vw, 42px);
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  /* Escena 1: Mockup iPhone en mobile */
  .nv-pinned-section.nv-phone-scene {
    min-height: auto;
    padding: 10px 16px 60px;
    margin-top: 0px !important;
  }

  .nv-phone-stage {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .nv-device-wrapper {
    width: min(76vw, 290px);
    margin: 0 auto;
    transform: none !important;
  }

  .nv-card--intro {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 24px 20px;
  }

  .nv-card-title {
    font-size: 24px;
  }

  .nv-card-desc {
    font-size: 14px;
  }

  /* Purpose & Watch en mobile */
  .nv-pinned-section.nv-purpose-scene {
    min-height: auto;
    padding: 70px 20px;
    position: relative;
    overflow: visible;
  }

  .nv-purpose-stage {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    width: 100%;
    position: relative;
  }

  .nv-purpose-card {
    max-width: 100%;
    width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: relative;
    z-index: 2;
  }

  .nv-purpose-device {
    width: min(76vw, 290px);
    margin: 0 auto;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: relative;
    z-index: 1;
  }

  .nv-watch-hero-section {
    min-height: auto;
    padding: 70px 20px;
  }

  .nv-watch-container {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 36px;
    width: 100%;
  }

  .nv-watch-wrapper {
    width: min(72vw, 270px);
    margin: 0 auto;
  }

  .nv-watch-text-col {
    max-width: 100%;
    text-align: center;
    width: 100%;
  }

  /* Features del watch en mobile: mismo ancho que las del iPhone */
  .nv-watch-features {
    align-items: stretch;
    width: 100%;
  }

  .nv-watch-features .p-feat {
    width: 100%;
    text-align: left;
    min-height: 72px;
  }

  .w-item {
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  /* Bento Grid */
  .nv-bento-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bento-card--featured,
  .bento-card--full {
    grid-column: auto;
    grid-row: auto;
    min-height: auto;
  }

  .nv-steps-row {
    flex-direction: column;
    gap: 12px;
  }

  .step-arrow-divider {
    transform: rotate(90deg);
  }

  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .dashboard-main {
    margin-left: 0;
    padding: 24px 16px;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition);
  }

  .sidebar.open {
    transform: translateX(0);
  }
}

@media (max-width: 600px) {
  .hero-proof {
    flex-direction: column;
    gap: 10px;
    border-radius: 0;
  }
  
  .proof-divider {
    display: none;
  }

  .features-grid-modern,
  .testimonials-grid-modern,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .form-input-group,
  .option-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════
   16. SISTEMA DE ICONOS SVG (sustituye a los emojis)
   ════════════════════════════════════════════════════════════ */
.nv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.nv-icon svg {
  display: block;
}

/* Icono en sidebar */
.sidebar-icon {
  width: 20px;
  height: 20px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  background: transparent;
  border: none;
  transition: color var(--transition-fast);
}

.sidebar-icon svg {
  width: 16px;
  height: 16px;
}

.sidebar-link:hover .sidebar-icon {
  color: var(--tinta);
  background: transparent;
  border-color: transparent;
}

.sidebar-link.active .sidebar-icon {
  color: #F2EFE8;
  background: transparent;
  border-color: transparent;
}

/* Icono en opciones del cuestionario */
.option-icon {
  width: 38px;
  height: 38px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  background: rgba(58, 107, 79, 0.08);
  border: 1px solid rgba(58, 107, 79, 0.18);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.option-icon svg {
  width: 18px;
  height: 18px;
}

.option-btn:hover .option-icon,
.option-btn.selected .option-icon {
  background: rgba(58, 107, 79, 0.16);
  border-color: var(--border-gold);
}

/* Icono en features de la landing (p-feat) */
.p-feat-icon {
  width: 38px;
  height: 38px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  background: rgba(58, 107, 79, 0.1);
  border: 1px solid rgba(58, 107, 79, 0.22);
}

.p-feat-icon svg {
  width: 18px;
  height: 18px;
}

/* Icono de tarjetas de suplementos */
.supp-icon {
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  background: rgba(58, 107, 79, 0.1);
  border: 1px solid rgba(58, 107, 79, 0.22);
}

.supp-icon svg {
  width: 19px;
  height: 19px;
}

/* Icono de comprobación en listas */
.check-icon {
  color: var(--gold);
  display: inline-flex;
  align-items: center;
}

.check-icon svg {
  width: 14px;
  height: 14px;
}

/* Iconos en el mockup de la app (landing) */
.nv-dash-item-icon svg {
  width: 11px;
  height: 11px;
}

/* Iconos en nombres de macros del dashboard */
.macro-name .nv-icon {
  vertical-align: -3px;
  margin-right: 2px;
  color: var(--text-muted);
}

.macro-name .nv-icon svg {
  width: 13px;
  height: 13px;
}

/* Etiquetas con icono en el perfil (dashboard) */
.profile-row-icon {
  color: var(--gold);
  vertical-align: -3px;
  margin-right: 6px;
}

.profile-row-icon svg {
  width: 14px;
  height: 14px;
}

/* Iconos en los emails / estados de pago */
.status-icon {
  vertical-align: -3px;
  margin-right: 6px;
}

.status-icon svg {
  width: 14px;
  height: 14px;
}

.status-icon.ok { color: #3A6B4F; }
.status-icon.err { color: #A8523F; }
.status-icon.warn { color: #3A6B4F; }
.status-icon.neutral { color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════
   17. BOTÓN DE TEMA (claro / oscuro)
   ════════════════════════════════════════════════════════════ */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 26, 23, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle:hover {
  background: rgba(58, 107, 79, 0.12);
  border-color: var(--border-gold);
  color: var(--gold);
  transform: rotate(12deg);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* Botón flotante para páginas centradas (login / questionnaire) */
.theme-toggle--float {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1200;
  background: var(--bg-card);
  box-shadow: none;
}/* ════════════════════════════════════════════════════════════
   18. MODO CLARO
   ════════════════════════════════════════════════════════════ *//* Navbar glass en claro *//* Hero: mantener la foto, fondo de soporte claro *//* Escenas con variable de fondo ya adaptadas por tokens *//* Textos blancos sobre fondos que pasan a claro */
/* La sección Watch conserva su foto de fondo oscura en ambos temas, así que
   su titular se mantiene blanco opaco al 100 % (no debe heredar la tinta
a). *//* Hovers y chips con blanco semi-transparente → tinta suave *//* Scrollbar en claro *//* Capa crema: en modo claro se funde con el fondo */

/* ── Ajustes finos de iconos en contexto ─────────────────── */
.status-icon {
  display: inline-flex;
  vertical-align: -3px;
  margin-right: 6px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 0;
  margin-right: 7px;
  vertical-align: middle;
}

.dash-card-label .nv-icon {
  vertical-align: -2px;
  margin-right: 7px;
}

.checkin-emoji .nv-icon {
  color: var(--gold);
}

.checkin-emoji .nv-icon svg {
  width: 40px;
  height: 40px;
}

.success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--gold);
}

.success-icon svg {
  width: 46px;
  height: 46px;
}

.checkbox-label .nv-icon {
  vertical-align: -3px;
  margin-right: 7px;
}

.checkbox-label .check-icon {
  vertical-align: -2px;
  margin-right: 7px;
}

.form-hint .nv-icon,
.pricing-trial .nv-icon {
  vertical-align: -2px;
  margin-right: 6px;
}

.nv-dash-tip .nv-icon {
  vertical-align: -2px;
  margin-right: 5px;
  color: var(--gold-light);
}

/* ════════════════════════════════════════════════════════════
   19. DASHBOARD BENTO (pestaña Resumen)
   ════════════════════════════════════════════════════════════ */
.dash-bento {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.db-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.db-card:hover {
  border-color: var(--border-gold);
  box-shadow: none;
  transform: translateY(-2px);
}

.db-feat {
  grid-column: span 2;
  grid-row: span 2;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  background: rgba(58, 107, 79, 0.12);
}

.db-feat-txt {
  flex: 1;
  min-width: 0;
}

.db-wide {
  grid-column: span 2;
}

.db-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-transform: uppercase;
}

.db-label .nv-icon {
  color: var(--gold);
}

.db-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  color: var(--text);
  margin: 10px 0 8px;
  line-height: 1.15;
}

.db-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.db-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.db-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: rgba(58, 107, 79, 0.08);
  border: 1px solid rgba(58, 107, 79, 0.22);
  border-radius: 0;
  padding: 6px 12px;
}

.db-chip .nv-icon {
  color: var(--gold);
}

.db-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.db-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-dim);
}

.db-mini .nv-icon {
  color: var(--gold);
}

/* Move ring de calorías */
.db-ring-box {
  position: relative;
  width: 188px;
  height: 188px;
  flex-shrink: 0;
  margin: auto;
}

.db-ring {
  width: 100%;
  height: 100%;
}

.db-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.db-ring-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.db-ring-unit {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Consejo de hoy */
.db-sparkle {
  background: rgba(58, 107, 79, 0.14);
  justify-content: flex-start;
}

.db-sparkle-icon {
  color: var(--gold);
  margin-bottom: 4px;
}

.db-quote {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

/* Gráfica de calorías */
.db-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.db-bignum {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-top: 10px;
}

.db-unit {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 6px;
  font-family: var(--font);
}

.db-days {
  display: flex;
  gap: 4px;
}

.db-day {
  width: 22px;
  height: 22px;
  border: 0;
  padding: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-muted);
  background: rgba(27, 26, 23, 0.04);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.db-day:hover {
  background: rgba(58, 107, 79, 0.22);
  color: var(--gold-light);
}

.db-day.active {
  color: #F2EFE8;
  background: var(--gold);
}

.db-day.active:hover {
  color: #F2EFE8;
  background: var(--gold);
  transform: scale(1.08);
}

.db-chart {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 14px;
}

.db-chart svg {
  width: 100%;
  height: 118px;
  display: block;
}

/* Barras de entreno */
.db-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 116px;
  margin-top: 8px;
}

.db-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
}

.db-bar {
  width: 100%;
  max-width: 26px;
  border-radius: 0;
  background: rgba(27, 26, 23, 0.06);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.db-bar.on {
  background: var(--gold-light);
  box-shadow: none;
}

.db-bar-day {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
}

.db-foot {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.db-foot .nv-icon {
  color: var(--gold);
}

/* Donut de macros */
.db-donut {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 6px auto 10px;
}

.db-donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.db-donut circle {
  fill: none;
  stroke-width: 10;
}

.db-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.db-donut-center span {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 2px;
}

/* Progreso del día (sustituye al aro en la card "Tu perfil") */
.db-progress-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 160px;
}

.db-progress-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.db-progress-unit {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.db-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(27, 26, 23, 0.08);
  border-radius: 0;
  margin-top: 4px;
  overflow: hidden;
}

.db-progress-fill {
  height: 100%;
  background: var(--savia-500);
}

.db-progress-pct {
  font-size: 11px;
  color: var(--text-muted);
}

/* Pie del gráfico de calorías de la semana */
.db-chart-foot {
  display: flex;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}

/* Barra segmentada de distribución de macros */
.db-dist-bar {
  display: flex;
  width: 100%;
  height: 10px;
  border: 1px solid var(--border);
  margin: 6px 0 14px;
  overflow: hidden;
}

.db-dist-seg { height: 100%; }

.db-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.db-legend-row b {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
}

.db-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  flex-shrink: 0;
}

/* Suplementación */
.db-sups-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.db-sup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 72px;
}

.db-sup-circle {
  width: 46px;
  height: 46px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(58, 107, 79, 0.1);
  border: 1px solid rgba(58, 107, 79, 0.35);
  box-shadow: none;
}

.db-sup-circle .nv-icon svg {
  width: 18px;
  height: 18px;
}

.db-sup-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

/* Paywalls / bloqueos Pro */
.db-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 0;
  padding: 18px;
  min-height: 100px;
}

.db-lock .nv-icon {
  color: var(--gold);
}

.db-lock-link {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(58, 107, 79, 0.4);
}

.db-lock-link:hover {
  border-bottom-color: var(--gold);
}

.db-upgrade-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  grid-column: 1 / -1;
  background: rgba(58, 107, 79, 0.14);
  border: 1px solid var(--border-gold);
  border-radius: 0;
  padding: 16px 20px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.db-upgrade-card:hover {
  background: rgba(58, 107, 79, 0.22);
  transform: translateY(-1px);
}

.db-upgrade-card .nv-icon {
  color: var(--gold);
}

.subscription-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.subscription-title {
  margin: 8px 0 6px;
  font-size: 26px;
  line-height: 1.1;
}

.subscription-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.plan-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.plan-option {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg);
}

.plan-option--current { border-color: var(--border-gold); }
.plan-option--pro { background: rgba(58, 107, 79,.14); }
.plan-option-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.plan-name { font-size: 17px; font-weight: 800; }
.plan-current { color: var(--gold); font: 700 10px var(--font-mono); letter-spacing: 1px; }
.plan-price { margin-top: 14px; color: var(--gold); font-size: 26px; font-weight: 900; }
.plan-price span { color: var(--text-muted); font-size: 12px; font-weight: 400; }
.plan-features { display:flex; flex-direction:column; gap:9px; margin:18px 0 0; padding:0; list-style:none; color:var(--text); font-size:13px; }
.plan-features li { display:flex; align-items:center; gap:8px; }
.plan-features li::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}
.plan-features li.muted { color:var(--text-dim); }
.plan-features li.muted::before {
  background: var(--text-dim);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center/contain no-repeat;
}
.plan-option .btn-gold { margin-top: 20px; width: 100%; }
.subscription-details { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.subscription-details-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 24px; margin-top:14px; }
.subscription-detail-row { display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); font-size:12px; }
.subscription-detail-row span { color:var(--text-muted); }
.subscription-detail-row strong { text-align:right; }

.payment-table { width:100%; border-collapse:collapse; margin-top:12px; }
.payment-table th {
  text-align:left; padding:10px 12px; font:600 11px var(--font-mono);
  letter-spacing:0.1em; text-transform:uppercase; color:var(--text-muted);
  border-bottom:1px solid var(--border);
}
.payment-table td { padding:14px 12px; border-bottom:1px solid var(--border); font-size:13px; vertical-align:top; }
.payment-table tbody tr:last-child td { border-bottom:none; }
.payment-invoice { display:block; margin-top:2px; font-size:12px; color:var(--text-dim); }
.payment-amount { font-family:var(--font-mono); font-variant-numeric:tabular-nums; font-weight:700; }
.payment-status { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; }

/* Responsive del bento del dashboard */
@media (max-width: 1100px) {
  .dash-bento {
    grid-template-columns: 1fr 1fr;
  }
  .db-feat,
  .db-wide {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .subscription-head { flex-direction: column; }
  .plan-comparison { grid-template-columns: 1fr; }
  .subscription-details-grid { grid-template-columns: 1fr; }
  .dash-bento {
    grid-template-columns: 1fr;
  }
  .db-feat,
  .db-wide {
    grid-column: span 1;
    grid-row: auto;
  }
  .db-feat {
    flex-direction: column;
    align-items: flex-start;
  }
  .db-ring-box {
    width: 160px;
    height: 160px;
  }
}/* Modo claro del bento del dashboard */

html[data-theme='light'] .db-ring-box circle[stroke="rgba(27, 26, 23,0.06)"] {
  stroke: rgba(27, 26, 23, 0.08);
}

/* ════════════════════════════════════════════════════════════
   20. CALENDARIO DE NUTRICIÓN
   ════════════════════════════════════════════════════════════ */
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin-bottom: 0;
  background: var(--filete-suave);
  border-bottom: 2px solid var(--tinta);
}

.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 13px 16px;
  background: var(--papel-alt);
  border: none;
  border-right: 1px solid var(--filete-suave);
  border-radius: 0;
  color: var(--texto);
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: background var(--transition-fast);
}

.cal-day:hover {
  background: var(--hueso);
}

.cal-day.active {
  background: var(--savia-500);
}

.cal-day-letter {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--texto-suave);
}

.cal-day-name {
  font-size: 13px;
  font-weight: 800;
}

.cal-day-kcal {
  font-size: 10.5px;
  color: var(--texto-suave);
  font-family: var(--font-mono);
}

.cal-day.active .cal-day-letter,
.cal-day.active .cal-day-name,
.cal-day.active .cal-day-kcal {
  color: #F2EFE8;
}

.cal-swap-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: var(--gold);
  box-shadow: none;
}

.cal-detail {
  background: var(--papel-alt);
  border: none;
  border-bottom: 2px solid var(--tinta);
  border-radius: 0;
  padding: 26px 32px 30px;
}

.cal-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 0;
  margin-left: -32px;   /* la línea bajo las kcal llega borde a borde */
  margin-right: -32px;
  padding: 0 32px 20px;
  border-bottom: 2px solid var(--tinta);
  flex-wrap: wrap;
}

.cal-detail-day {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cal-modified-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--savia-700);
  background: var(--savia-100);
  border: 1px solid var(--savia-300);
  border-radius: 0;
  padding: 4px 9px;
}

.cal-detail-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--savia-700);
  margin-bottom: 12px;
}

.cal-detail-kcal-big {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  color: var(--texto);
  letter-spacing: -0.02em;
}

.cal-detail-goal {
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--savia-700);
  letter-spacing: 0;
  margin-left: 8px;
}

.cal-meal-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: 150px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--texto-cuerpo);
}

.cal-meal-label .cal-meal-icon { width: 22px; height: 22px; }

.cal-total {
  background: var(--hueso);
}

.cal-total-row {
  display: flex;
  align-items: center;
  padding: 18px 32px;
  gap: 16px;
}

.cal-total-label {
  width: 150px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--texto);
}

.cal-total-macros {
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--texto-suave);
}

.cal-total-kcal {
  margin-left: auto;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--texto);
}

.cal-diff {
  font-weight: 700;
}

.cal-diff.up {
  color: #3A6B4F;
}

.cal-diff.down {
  color: #3A6B4F;
}

.cal-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 10px;
}

.cal-hint .nv-icon {
  color: var(--gold);
}

.cal-restore {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 0;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cal-restore:hover {
  color: var(--gold);
  border-color: var(--border-gold);
  background: rgba(58, 107, 79, 0.08);
}

.cal-restore .nv-icon {
  color: var(--gold);
}

.cal-meals {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cal-meal {
  border: none;
  border-bottom: 1px solid var(--filete-suave);
  border-radius: 0;
  overflow: hidden;
  transition: background var(--transition-fast);
}

.cal-meal.changed {
  background: var(--savia-100);
}

.cal-meal.open {
  background: var(--savia-100);
}

.cal-meal-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  background: transparent;
}

.cal-meal-icon {
  width: 30px;
  height: 30px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--savia-700);
  background: transparent;
  border: none;
}

.cal-meal-icon svg {
  width: 17px;
  height: 17px;
}

.cal-meal-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
}

.cal-meal-info .cal-meal-name { width: 100%; }

.cal-meal-info .cal-meal-ing { margin-top: 1px; }

.cal-meal-info .cal-meal-macros { display: none; }

.cal-meal-name {
  font-size: 14.5px;
  font-weight: 800;
}

.cal-meal-kcal {
  font-size: 15px;
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  color: var(--texto);
  font-weight: 800;
  margin-left: auto;
}

.cal-meal-ing {
  font-size: 11.5px;
  color: var(--texto-suave);
  width: 100%;
}

.cal-meal-macros {
  font-size: 11px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.cal-swap-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--savia-700);
  border-radius: 0;
  padding: 4px 2px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.cal-swap-btn:hover {
  background: transparent;
  color: var(--savia-900);
}

.cal-swap-btn .nv-icon {
  color: var(--gold);
}

.cal-options {
  border-top: 1px solid var(--filete-suave);
  padding: 16px 32px 22px;
  background: var(--papel);
}

.cal-options-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cal-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.cal-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 12px;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition-fast);
}

.cal-opt:hover {
  border-color: var(--gold);
  background: rgba(58, 107, 79, 0.08);
  transform: translateY(-1px);
}

.cal-opt-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cal-opt-name .nv-icon {
  color: var(--gold);
}

.cal-opt-meta {
  font-size: 10.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.cal-opt--original {
  border-style: dashed;
}

/* Responsive calendario */
@media (max-width: 720px) {
  .cal-week {
    grid-template-columns: repeat(4, 1fr);
  }
  .cal-day-name,
  .cal-day-kcal { display: none; }
  .cal-day { align-items: center; text-align: center; gap: 0; }
  .cal-day-letter { font-size: 14px; letter-spacing: 0.02em; }

  /* La tabla de comidas ocupa más ancho en móvil: menos padding lateral */
  .cal-detail { padding-left: 12px; padding-right: 12px; }
  .cal-detail-head {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Fila de comida: etiqueta compacta · comida (con kcal debajo) · Sustituir */
  .cal-meal-row {
    display: grid;
    grid-template-columns: 21% 1fr auto;
    grid-template-areas:
      "label info swap"
      "label kcal swap";
    align-items: start;
    gap: 4px 8px;
    padding: 14px 12px;
  }
  .cal-meal-label {
    grid-area: label;
    width: auto;
    flex: none;
    font-size: 9px;
    gap: 5px;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;
  }
  .cal-meal-label .cal-meal-icon { width: 13px; height: 13px; order: -1; }
  .cal-meal-info { grid-area: info; width: auto; flex: none; min-width: 0; gap: 2px 6px; align-self: center; }
  .cal-meal-info .cal-meal-name { font-size: 14px; width: 100%; line-height: 1.25; }
  .cal-meal-ing { width: 100%; font-size: 11px; line-height: 1.25; }
  .cal-meal-kcal { grid-area: kcal; width: auto; flex: none; margin-left: 0; font-size: 13px; }
  .cal-swap-btn { grid-area: swap; width: auto; flex: none; font-size: 11px; gap: 4px; align-self: center; }
}

/* ════════════════════════════════════════════════════════════
   21. TARJETAS ESTILO APPLE (acards) — secciones de la landing
   ════════════════════════════════════════════════════════════ */
.acards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.acard {
  position: relative;
  border-radius: 0;
  padding: 30px 28px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.acard:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.acard--dark {
  background: rgba(58, 107, 79, 0.12);
  color: #1B1A17;
  border: 1px solid rgba(27, 26, 23, 0.08);
}

.acard--cream {
  background: #F2EFE8;
  color: var(--text-cream-heading);
  border: 1px solid var(--border-cream);
}

.acard--contour {
  background-color: #F7F5F0;
  background-image: repeating-rgba(39, 80, 58, 0.1);
  color: var(--text-cream-heading);
  border: 1px solid var(--border-cream);
}

.acard--gold {
  background: #27503A;
  color: #1B1A17;
  box-shadow: none;
}

.acard-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
}

.acard-label--gold { color: var(--gold-light); }
.acard-label--dark { color: var(--gold-dark); }
.acard-label--light { color: rgba(27, 26, 23, 0.9); }

.acard-title {
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 900;
  line-height: 1.15;
  margin: 12px 0 10px;
}

.acard-title--gold { color: var(--gold); }
.acard-title--dark { color: var(--text-cream-heading); }
.acard-title--white { color: #1B1A17; }

.acard-body {
  font-size: 14px;
  line-height: 1.6;
  max-width: 46ch;
}

.acard-body--white { color: rgba(27, 26, 23, 0.88); }
.acard-body--dark { color: var(--text-cream-body); }

.acard-visual {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.acard-tags {
  justify-content: center;
  margin-top: 30px;
}

/* Radar (compass) */
.aradar {
  position: relative;
  width: 100%;
  max-width: 260px;
}

.aradar svg {
  width: 100%;
  height: auto;
  display: block;
}

.radar-ring {
  fill: none;
  stroke: rgba(58, 107, 79, 0.35);
  stroke-width: 1;
}

.radar-x {
  stroke: rgba(58, 107, 79, 0.22);
  stroke-width: 1;
  fill: none;
}

.radar-sweep {
  fill: rgba(58, 107, 79, 0.14);
}

.radar-marker circle {
  fill: var(--gold);
}

.radar-marker text {
  fill: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.radar-dot {
  fill: var(--gold-light);
  opacity: 0.8;
}

.aradar-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.aradar-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 900;
  color: #1B1A17;
  line-height: 1;
}

.aradar-unit {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-top: 4px;
}

/* Mapa de contornos (topográfico) */
.acontour {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.acontour svg {
  width: 100%;
  height: 110px;
  display: block;
}

.ct-line {
  fill: none;
  stroke: rgba(39, 80, 58, 0.25);
  stroke-width: 1.2;
}

.ct-trail {
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 2.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(58, 107, 79, 0.4));
}

.ct-dot {
  fill: var(--gold-dark);
  stroke: #1B1A17;
  stroke-width: 1.5;
}

/* Gráfica blanca para tarjeta dorada (alerts) */
.acard--alerts {
  justify-content: space-between;
}

.agold-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.agold-plot {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 120px;
  max-height: 180px;
}

.agold-plot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.garea {
  fill: rgba(27, 26, 23, 0.22);
}

.gline {
  fill: none;
  stroke: #1B1A17;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gdot {
  fill: #1B1A17;
}

.agold-tag {
  position: absolute;
  top: 10px;
  right: 0;
  z-index: 2;
  background: #1B1A17;
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 0;
  padding: 4px 11px;
  box-shadow: none;
  white-space: nowrap;
}

/* Mockup del watch dentro de la feature card (contenido de verdad) */
.watch-device {
  position: relative;
  width: 205px;
  aspect-ratio: 458 / 796;
  flex-shrink: 0;
  filter: drop-shadow(0 30px 60px rgba(27, 26, 23, 0.65)) drop-shadow(0 0 42px rgba(58, 107, 79, 0.16));
}

.watch-device .nv-screen--watch {
  border-radius: 0;
}

.watch-device .watch-ring-wrapper {
  width: 102px;
  height: 102px;
}

.watch-device .watch-calories-num {
  font-size: 17px;
}

.watch-device .watch-tag {
  font-size: 9px;
}

.watch-device .w-pill {
  font-size: 9px;
  padding: 3px 6px;
}

/* Feature card de la sección Watch (1 grande + 3 minis) */
.watch-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  border-radius: 0;
  padding: 46px 50px;
  background: rgba(58, 107, 79, 0.16);
  color: #1B1A17;
  border: 1px solid rgba(27, 26, 23, 0.08);
  overflow: hidden;
}

.watch-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.wf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(27, 26, 23, 0.92);
  background: rgba(27, 26, 23, 0.05);
  border: 1px solid rgba(27, 26, 23, 0.12);
  padding: 9px 14px;
  border-radius: 0;
  white-space: nowrap;
}

.wf-dot {
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: var(--gold);
  box-shadow: none;
}

.watch-feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Fila de 3 minis */
.watch-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.watch-mini-grid .acard {
  min-height: 300px;
}

/* Barras de la semana (crema) */
.wweek {
  width: 100%;
  max-width: 300px;
}

.wweek-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 92px;
}

.wbar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.wbar i {
  display: block;
  width: 100%;
  max-width: 20px;
  height: var(--h);
  border-radius: 0;
  background: #3A6B4F;
  opacity: 0.3;
  transition: opacity var(--transition);
}

.wbar.on i {
  opacity: 1;
  box-shadow: none;
}

.wbar span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold-dark);
}

/* Mapa topográfico con elevaciones (contornos) */
.ct-elev {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: rgba(39, 80, 58, 0.6);
  pointer-events: none;
}

/* Anillo de entreno completado (dorada) */
.aworkout {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 4px 0 16px;
}

.aworkout-ring {
  position: relative;
  width: 86px;
  height: 86px;
  flex-shrink: 0;
}

.aworkout-ring > svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.aw-ring-bg {
  fill: none;
  stroke: rgba(27, 26, 23, 0.3);
  stroke-width: 7;
}

.aw-ring-fg {
  fill: none;
  stroke: #1B1A17;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 15;
  filter: drop-shadow(0 0 8px rgba(27, 26, 23, 0.55));
}

.aworkout-ring .aw-check {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 30px;
  height: 30px;
  transform: none;
}

.aw-check path {
  fill: none;
  stroke: #1B1A17;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aworkout-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aw-title {
  font-size: 15px;
  font-weight: 900;
  color: #1B1A17;
}

.aw-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(27, 26, 23, 0.85);
}

.agold-badge {
  background: #1B1A17;
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 0;
  padding: 4px 11px;
  box-shadow: none;
  white-space: nowrap;
}

/* Cabecera y estructura de la sección Watch */
.nv-watch-inner {
  max-width: 1240px;
  width: 100%;
}

.nv-watch-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  /* Halo oscuro detrás del texto para legibilidad sobre la foto */
  background: rgba(27, 26, 23,0.55);
  padding: 32px 40px;
  border-radius: 0;
}

.nv-watch-cta {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.watch-feature {
  margin-top: 8px;
}

/* Responsive de la sección Watch */
@media (max-width: 860px) {
  .watch-feature {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 28px;
  }
  .watch-mini-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive acards */
@media (max-width: 860px) {
  .acards {
    grid-template-columns: 1fr;
  }
}/* Modo claro de las tarjetas */


/* ═════════════════════════════════════════════════════════════
   19. VYTAL — CAPA DE IDENTIDAD v1.0
   Se aplica al final para ganar la cascada sin reescribir las
   reglas anteriores. Solo estilo: ningún cambio de estructura,
   de marcado ni de comportamiento.
   ═════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Tahoe Display';
  src: url('../fonts/tahoe/tahoe-display.otf') format('opentype'),
       url('../fonts/tahoe/tahoe-display.ttf') format('truetype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* ── 19.1 Base ─────────────────────────────────────────────── */
html, body { background: var(--papel); color: var(--texto); font-family: var(--font); }
::selection { background: var(--ambar-300); color: var(--tinta); }
::-webkit-scrollbar-track { background: var(--hueso); }
::-webkit-scrollbar-thumb { background: var(--savia-500); border-radius: 0; }
a { color: var(--savia-700); }
a:hover { color: var(--ambar-700); }
*:focus-visible { outline: 2px solid var(--savia-500); outline-offset: 2px; }

/* Cifras tabulares: las columnas cuadran */
.dash-card, .db-card, .db-bignum, .db-ring-num, .g-num, .aradar-num, .macro-cell,
.cal-detail, .cal-day-kcal, .cal-meal-kcal, .supp-card, .plan-price, .pricing-price,
.watch-calories-num, .range-value, .nv-dash-item-val, .stat-value {
  font-variant-numeric: tabular-nums;
}

/* ── 19.2 Marca ────────────────────────────────────────────── */
.logo-text, .nav-logo-text, .back-logo, .splash-brand-title,
.quiz-logo, .footer-big-watermark {
  font-family: var(--font-brand);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.4px currentColor;
}
.logo-dot, .splash-pulse { color: var(--savia-500); background: var(--savia-500); }
.logo-dot { background: none; }

/* ── 19.3 Titulares ───────────────────────────────────────── */
h1, h2, h3, .hero-title, .hero-title--refined, .nv-editorial-title,
.nv-marquee-title, .nv-process-title, .auth-title, .acard-title,
.db-title, .subscription-title, .nv-purpose-title {
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.hero-serif-accent, .hero-sub-accent, .nv-serif-quote, .db-quote, .footer-motto,
.nv-editorial-sub, .nv-title-accent {
  font-family: var(--font-serif) !important;
  font-weight: 300 !important;
}
.hero-serif-accent, .nv-serif-quote, .db-quote, .footer-motto { font-style: italic !important; }

/* ── 19.4 Fotografía: blanco y negro, sin tintar ───────────── */
img, .nv-lifestyle-fullimg, .marquee-card-img, .acard-visual img {
  filter: grayscale(1) contrast(1.08) !important;
}
.nv-lifestyle-bg--hero .nv-lifestyle-fullimg,
.nv-lifestyle-bg--purpose .nv-lifestyle-fullimg,
.nv-lifestyle-bg--watch .nv-lifestyle-fullimg {
  filter: grayscale(1) contrast(1.08) brightness(0.5) !important;
  opacity: 1;
}
.nav-logo img, .splash-logo-img, svg { filter: none !important; }
.nv-lifestyle-gradient-mask { background: rgba(27, 26, 23, 0.5) !important; }
.marquee-card-overlay, .nv-lifestyle-overlay { background: rgba(27, 26, 23, 0.45) !important; }

/* Sin auras, brillos ni partículas */
.splash-glow-aura, .hero-particles, .btn-shine, .radar-sweep, .db-sparkle { display: none !important; }
/* Excepción: "Consejo de hoy" es contenido, no una animación decorativa */
.db-sparkle { display: flex !important; }

/* ── 19.5 Contextos de fondo ───────────────────────────────
   Dos suelos y nada más: papel (por defecto) y tinta (escenas
   sobre fotografía). El texto se resuelve por contexto, no
   clase a clase.                                              */

/* Suelo tinta */
.nv-pinned-section, .nv-purpose-scene, .nv-watch-hero-section,
.nv-marquee-section, .site-footer, .acard--dark, .hero {
  background: var(--tinta);
  color: var(--papel);
}
.nv-pinned-section h1, .nv-pinned-section h2, .nv-pinned-section h3,
.nv-pinned-section h4, .nv-purpose-scene h1, .nv-purpose-scene h2,
.nv-purpose-scene h3, .nv-watch-hero-section h2, .nv-watch-hero-section h3,
.nv-marquee-section h2, .site-footer h3, .acard--dark .acard-title,
.nv-marquee-title, .nv-purpose-title, .nv-process-title, .nv-editorial-title,
.nv-card-title, .nv-step-box h3, .nv-step-box h4, .watch-feature-text h3,
.acard-title--white, .hero-title, .hero-title--refined, .footer-motto,
.nv-dash-section-title {
  color: var(--papel);
}
.nv-pinned-section p, .nv-purpose-scene p, .nv-watch-hero-section p,
.nv-marquee-section p, .site-footer p, .site-footer a,
.acard--dark .acard-body, .nv-purpose-desc, .nv-card-desc, .nv-card-checklist,
.nv-editorial-sub, .acard-body--white, .footer-links-col a, .footer-disclaimer,
.watch-feature-text p, .hero-subtitle, .hero-sub-accent, .p-feat, .p-p,
.nv-step-box p, .hero-proof, .proof-pill, .hero-scroll-indicator {
  color: var(--neutro-300);
}
.site-footer a:hover, .footer-links-col a:hover { color: var(--papel); }
.footer-big-watermark { color: rgba(242, 239, 232, 0.06); }
.acard--dark .acard-label, .acard-label--light, .marquee-tag, .watch-tag,
.nv-card-num, .nv-pinned-section .acard-label {
  color: var(--savia-300);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.proof-divider, .scroll-line { background: var(--savia-300); }
.nv-pinned-section .gold-gradient, .hero .gold-gradient,
.nv-purpose-scene .gold-gradient, .nv-title-accent { color: var(--savia-300); }

/* Tarjetas sobre suelo tinta: solo filete, sin relleno */
.nv-card, .nv-step-box, .marquee-card-content, .watch-feature, .nv-purpose-card {
  background: transparent;
  border: 2px solid rgba(242, 239, 232, 0.22);
  border-radius: 0;
  box-shadow: none;
}
.nv-pinned-section .btn-ghost, .site-footer .btn-ghost, .nv-watch-cta .btn-ghost,
.hero .btn-ghost, .hero .btn-secondary-link, .nv-purpose-scene .btn-ghost {
  color: var(--papel);
  border-color: var(--papel);
}
.nv-pinned-section .btn-ghost:hover, .hero .btn-ghost:hover,
.hero .btn-secondary-link:hover, .nv-watch-cta .btn-ghost:hover {
  background: var(--papel);
  color: var(--tinta);
  border-color: var(--papel);
}

/* Suelo papel — recupera la tinta dentro de las capas claras */
.nv-layer-cream, .nv-cream-content, .acard--cream, .acard--contour, .acard--alerts {
  background: var(--papel);
  color: var(--texto);
}
.nv-layer-cream h1, .nv-layer-cream h2, .nv-layer-cream h3, .nv-layer-cream h4,
.nv-cream-content h2, .nv-cream-content h3, .nv-cream-content .nv-card-title,
.acard--cream .acard-title, .acard--contour .acard-title,
.acard--alerts .acard-title, .acard-title--dark {
  color: var(--texto);
}
.nv-layer-cream p, .nv-cream-content p, .nv-layer-cream .nv-card-desc,
.nv-cream-content .nv-card-desc, .nv-cream-content .nv-card-checklist,
.acard--cream .acard-body, .acard--contour .acard-body,
.acard--alerts .acard-body, .acard-body--dark, .acard--cream p, .acard--contour p {
  color: var(--texto-cuerpo);
}
.nv-layer-cream .acard-label, .nv-cream-content .acard-label,
.acard--cream .acard-label, .acard--contour .acard-label,
.acard-label--dark, .acard-label--gold {
  color: var(--savia-700);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nv-layer-cream .nv-card, .nv-cream-content .nv-card, .nv-layer-cream .nv-step-box {
  background: var(--papel-alt);
  border-color: var(--tinta);
}
.nv-layer-cream .gold-gradient, .nv-cream-content .gold-gradient { color: var(--savia-700); }

.acard--gold, .agold-top { background: var(--savia-500); color: var(--papel); }
.acard--gold .acard-title, .acard-title--gold, .agold-tag, .agold-badge,
.acard--gold .acard-body, .acard--gold .acard-label { color: var(--papel); }

/* ── 19.6 Botones ──────────────────────────────────────────── */
.btn-gold, .btn-gold-large, .btn-next, .db-lock-link,
.mobile-drawer-link--gold {
  background: var(--savia-500);
  color: var(--papel);
  border: 2px solid var(--savia-500);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font);
  font-weight: 700;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.btn-gold:hover, .btn-gold-large:hover, .btn-next:hover,
.db-lock-link:hover, .mobile-drawer-link--gold:hover {
  background: var(--savia-700);
  border-color: var(--savia-700);
  color: var(--papel);
  transform: none;
  box-shadow: none;
}
.btn-gold:active, .btn-gold-large:active, .btn-next:active {
  background: var(--savia-900); border-color: var(--savia-900);
}
.btn-ghost, .btn-secondary-link, .btn-cancel, .btn-prev, .cal-restore {
  background: transparent;
  color: var(--tinta);
  border: 2px solid var(--tinta);
  border-radius: 0;
  font-weight: 700;
}
.btn-ghost:hover, .btn-secondary-link:hover, .btn-cancel:hover,
.btn-prev:hover, .cal-restore:hover {
  background: var(--savia-100);
  color: var(--savia-700);
  border-color: var(--savia-700);
}
.nv-pinned-section .btn-ghost, .site-footer .btn-ghost, .nv-watch-cta .btn-ghost {
  color: var(--papel); border-color: var(--papel);
}

/* ── 19.7 Etiquetas: rectángulos, nunca píldoras ───────────── */
.nv-tag-pill, .hero-badge, .banner-badge, .db-chip, .day-chip, .step-badge,
.date-badge, .session-day-badge, .plan-label, .exercise-tag, .b-tag,
.w-pill, .wf-chip, .nv-dash-plan-badge, .cal-modified-badge, .pricing-trial {
  border-radius: 0 !important;
  border: 1px solid var(--savia-500);
  background: var(--savia-100);
  color: var(--savia-700);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.badge-dot, .status-dot, .db-dot, .cal-swap-dot, .wf-dot, .gdot,
.ct-dot, .radar-dot, .proof-divider { border-radius: 0 !important; }
.gold-gradient {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--savia-700);
}
.gold { color: var(--savia-700); }

/* ── 19.8 Superficies y filetes ────────────────────────────── */
.auth-card, .quiz-card, .dash-card, .db-card, .acard, .supp-card,
.training-session, .plan-option, .pricing-box, .upgrade-modal, .checkin-modal,
.db-upgrade-card, .db-lock, .stripe-card, .upgrade-card-element, .cal-opt,
.subscription-head, .success-screen {
  background: var(--papel-alt);
  border: 2px solid var(--tinta);
  border-radius: 0;
  box-shadow: none;
}
.plan-option--pro { border-color: var(--savia-500); background: var(--savia-100); }
.cal-opt--original { background: var(--hueso); }
.dash-card-label, .db-label, .acard-label, .plan-meta, .cal-hint, .form-hint,
.supp-motivo, .banner-subtitle, .db-sub, .db-unit, .g-unit, .aradar-unit {
  color: var(--texto-suave);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}
.db-sub, .supp-motivo, .banner-subtitle, .form-hint, .cal-hint {
  letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 400;
}

.navbar, .navbar--scrolled, .navbar--glass {
  background: var(--papel);
  border: 2px solid var(--tinta);
  border-radius: 0;
  backdrop-filter: none;
}
.nav-links a { color: var(--texto-cuerpo); }
.nav-links a:hover { color: var(--savia-700); }
.nav-links a::after { background: var(--savia-500); height: 2px; }
.mobile-drawer-inner { background: var(--papel); border-left: 2px solid var(--tinta); }
.mobile-drawer-link { color: var(--texto-cuerpo); border-bottom: 1px solid var(--filete-suave); }

.sidebar { background: var(--papel-alt); border-right: 2px solid var(--tinta); }
.sidebar-header, .sidebar-footer { border-color: var(--filete-suave); }
.sidebar-link {
  border-radius: 0; border: none;
  color: var(--texto-cuerpo);
}
.sidebar-link:hover { background: var(--hueso); color: var(--tinta); }
.sidebar-link.active {
  background: var(--savia-100);
  border: none;
  color: var(--savia-700);
}
.user-avatar, .nv-dash-avatar {
  background: var(--savia-500); color: var(--papel);
  border-radius: 0; font-family: var(--font);
}
.dashboard-topbar { border-bottom: 2px solid var(--tinta); }
.quiz-header { border-bottom: 2px solid var(--tinta); }

thead, .table-header { background: var(--hueso); }
th, td { border-color: var(--filete-suave); }
hr { border: none; height: 2px; background: var(--tinta); }

/* ── 19.9 Formularios ──────────────────────────────────────── */
input, select, textarea, .form-input, .option-btn {
  background: var(--papel-alt);
  color: var(--texto);
  border: 2px solid var(--tinta);
  border-radius: 0;
  font-family: var(--font);
  box-shadow: none;
}
input::placeholder, textarea::placeholder { color: var(--texto-tenue); }
input:focus, select:focus, textarea:focus, .form-input:focus {
  border-color: var(--savia-500);
  outline: 2px solid var(--savia-500);
  outline-offset: 1px;
}
.form-label { color: var(--texto-cuerpo); font-weight: 600; }
.option-btn:hover { background: var(--savia-100); border-color: var(--savia-700); }
.option-btn.selected, .option-btn.active {
  background: var(--savia-100); border-color: var(--savia-500);
  color: var(--savia-700); font-weight: 700;
}
.option-title { color: inherit; font-weight: 700; }
.option-desc { color: var(--texto-suave); }
.checkbox-custom { border-radius: 0; border: 2px solid var(--tinta); background: var(--papel-alt); }
.checkbox-item.checked .checkbox-custom, .checkbox-custom.checked {
  background: var(--savia-500); border-color: var(--savia-500);
}
.range-slider { accent-color: var(--savia-500); border: none; background: var(--hueso); }
.range-value { color: var(--savia-700); font-weight: 800; }
.progress-bar-container { background: var(--hueso); border: 2px solid var(--tinta); border-radius: 0; }
.progress-bar { background: var(--savia-500); border-radius: 0; }
.progress-text { color: var(--texto-suave); letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }

/* ── 19.10 Roles de color por dominio ──────────────────────── */
/* Nutrición → savia · Entrenamiento → arcilla
   Descanso → malva · Aviso → ámbar. El color clasifica.       */
.training-grid .dash-card-label, .session-tipo, .aworkout { color: var(--arcilla-700); }
.training-session { border-left: 2px solid var(--arcilla-500); }
.supp-card { border-left: 2px solid var(--malva-500); }
.supp-icon { color: var(--malva-700); }
.cal-detail, .cal-week { border-left: none; border-right: none; }

.status-banner, .alert {
  border-radius: 0; border: 2px solid var(--tinta);
  background: var(--ambar-100); color: var(--ambar-900);
}
.status-banner { border-left: none; border-right: none; border-top: none; border-bottom: 2px solid var(--tinta); }
.status-banner.trial { background: var(--ambar-100); color: var(--ambar-900); border-color: var(--tinta); border-top: none; border-left: none; border-right: none; border-bottom: 2px solid var(--tinta); }
.status-banner.active, .alert-success, .ok {
  background: var(--savia-100); color: var(--savia-700); border-color: var(--tinta);
  border-top: none; border-left: none; border-right: none; border-bottom: 2px solid var(--tinta);
}
.alert-error, .err, .upgrade-card-error {
  background: var(--arcilla-100); color: var(--arcilla-700); border-color: var(--arcilla-500);
}
.warn { background: var(--ambar-100); color: var(--ambar-900); }
.neutral, .muted { color: var(--texto-suave); }

/* ── 19.11 Modales y capas ─────────────────────────────────── */
.checkin-overlay, .upgrade-overlay, .loading-overlay, .mobile-drawer-backdrop {
  background: rgba(27, 26, 23, 0.72);
  backdrop-filter: none;
}
.upgrade-close { border-radius: 0; color: var(--tinta); background: transparent; }
.upgrade-close:hover { background: var(--hueso); }
.upgrade-perks li { color: var(--texto-cuerpo); }
.upgrade-note, .footer-disclaimer { color: var(--texto-tenue); }
.spinner, .nv-3d-spinner {
  border-radius: 50%;                /* la única curva del sistema: el giro */
  border-color: var(--neutro-300);
  border-top-color: var(--savia-500);
}
.loading-text { color: var(--papel); font-family: var(--font); }

/* ── 19.12 Gráficos: trazo, no relleno ─────────────────────── */
.ring-bg, .gauge-track, .aw-ring-bg, .radar-ring, .aradar-center { stroke: var(--neutro-300); }
.ring-fg, .gauge-fg, .aw-ring-fg, .db-ring circle { stroke: var(--savia-500); }
.db-bars .db-bar, .wbar i, .wweek-bars i { background: var(--neutro-300); border-radius: 0; }
.db-bars .db-bar.on, .wbar.on i { background: var(--savia-500); }
/* Entrenamiento es dominio arcilla, no savia */
.db-card-training .db-bar.on { background: var(--arcilla-500); }
.gline, .ct-line, .ct-trail { stroke: var(--savia-500); }
.garea { fill: var(--savia-100); }
.plate-protein { background: var(--savia-500); }
.plate-carbs   { background: var(--savia-300); }
.plate-fat     { background: var(--ambar-500); }

/* ════════════════════════════════════════════════════════════
   20. DASHBOARD · REDISEÑO "GRID DE TINTA"
   Rejilla a sangre completa: los paneles se tocan entre sí y
   los filetes de 2px dibujan la estructura. Sin sombras, sin
   gap, sin radius. El color clasifica el dominio de cada panel.
   ════════════════════════════════════════════════════════════ */

/* ── 20.1 Rejilla raíz ─────────────────────────────────────── */
.dashboard-main {
  display: flex;
  flex-direction: column;
  background: var(--papel);
}

.dashboard-main > * {
  border-bottom: 2px solid var(--tinta);
}

.dashboard-main > *:last-child {
  border-bottom: none;
}

#tab-overview,
#tab-nutrition,
#tab-training,
#tab-supplements,
#tab-subscription {
  min-height: 100%;
}

#tab-overview > .dash-grid,
#tab-nutrition > *,
#tab-training > *,
#tab-supplements > *,
#tab-subscription > * {
  margin: 0 !important;
}

/* Botón utilitario con filete (Actualizar mis datos, Restaurar…) */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--papel-alt);
  border: 2px solid var(--tinta);
  color: var(--texto);
  padding: 11px 18px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.btn-line:hover {
  background: var(--hueso);
}

.btn-line .nv-icon {
  color: var(--savia-700);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--savia-500);
  border: none;
  color: #F2EFE8;
  padding: 13px 20px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.btn-cta:hover {
  background: var(--savia-700);
}

.btn-cta--sm {
  padding: 10px 16px;
  font-size: 13px;
}

.btn-cta--arcilla { background: var(--arcilla-500); }
.btn-cta--arcilla:hover { background: var(--arcilla-700); }

/* Flecha de play a la derecha del botón "Empezar sesión", en blanco */
.btn-cta .btn-cta-arrow {
  color: #FFFFFF;
  display: inline-flex;
  margin-left: 8px;
}

.btn-cta .btn-cta-arrow .nv-icon,
.btn-cta .btn-cta-arrow svg {
  color: #FFFFFF;
}
.btn-cta--tinta { background: var(--tinta); }
.btn-cta--tinta:hover { background: var(--neutro-900); }

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--texto);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn-link:hover { color: var(--savia-700); }
.btn-link--danger:hover { color: var(--arcilla-700); }

/* ── 20.2 Banner Pro / gratuito ────────────────────────────── */
.status-banner .banner-info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.status-banner .banner-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  background: var(--tinta);
  color: #F2EFE8;
  padding: 6px 10px;
  flex-shrink: 0;
}

.status-banner .banner-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  color: var(--texto);
}

.status-banner .banner-subtitle {
  font-size: 12.5px;
  color: var(--texto-suave);
}

.status-banner .btn-cta .nv-icon,
.status-banner .btn-cta {
  color: #F2EFE8;
}

.status-banner .banner-action {
  margin-left: auto;
  flex-shrink: 0;
}

/* ── 20.3 Resumen: rejilla principal ───────────────────────── */
.dash-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.dg-panel {
  background: var(--papel-alt);
  border-right: 2px solid var(--tinta);
  border-bottom: 2px solid var(--tinta);
  padding: 26px 32px;
  min-width: 0;
}

.dash-grid .dg-panel:nth-child(2n) {
  border-right: none;
}

.dg-panel--full {
  grid-column: 1 / -1;
  border-right: none;
}

.dg-panel--perfil { background: var(--savia-100); }
.dg-panel--consejo { background: var(--malva-100); }
.dg-panel--kcal { background: var(--papel-alt); }
.dg-panel--entreno { background: var(--arcilla-100); }
.dg-panel--macros { background: var(--papel-alt); }

.dg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-bottom: 14px;
}

.dg-kicker .nv-icon { color: inherit; }

.dg-panel--perfil .dg-kicker { color: var(--savia-700); }
.dg-panel--consejo .dg-kicker { color: var(--malva-700); }
.dg-panel--entreno .dg-kicker { color: var(--arcilla-700); }

/* Panel perfil */
.dg-goal {
  font-family: var(--font);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--texto);
  margin: 0 0 18px;
}

.dg-fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.dg-fact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--tinta);
  background: transparent;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--texto);
  font-family: var(--font);
}

.dg-fact .nv-icon { color: var(--savia-700); }

.dg-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--texto-suave);
}

/* Bloque kcal objetivo dentro del perfil */
.dg-kcal-block {
  margin-top: 22px;
  border-left: 3px solid var(--tinta);
  padding-left: 18px;
}

.dg-kcal-num {
  font-family: var(--font);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--texto);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.dg-kcal-unit {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--texto-suave);
  margin: 8px 0 10px;
}

.dg-kcal-track {
  width: 100%;
  max-width: 200px;
  height: 9px;
  background: var(--neutro-300);
  overflow: hidden;
}

.dg-kcal-fill {
  height: 100%;
  background: var(--savia-500);
}

.dg-kcal-note {
  display: block;
  font-size: 11.5px;
  color: var(--texto-suave);
  margin-top: 8px;
}

/* Panel consejo */
.dg-panel--consejo {
  display: flex;
  flex-direction: column;
}

.dg-tip-icon {
  color: var(--malva-500);
  margin-bottom: 14px;
}

.dg-tip {
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  color: var(--texto);
}

/* Panel calorías de la semana */
.dg-kcal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.dg-kcal-big {
  font-family: var(--font);
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 800;
  line-height: 1;
  color: var(--texto);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.dg-kcal-sub {
  font-size: 13px;
  color: var(--texto-suave);
  font-weight: 600;
  margin-left: 8px;
}

.dg-day-picker {
  display: flex;
  border: 2px solid var(--tinta);
  background: var(--papel);
}

.dg-day {
  width: 34px;
  height: 30px;
  border: none;
  border-right: 1.5px solid var(--tinta);
  background: transparent;
  color: var(--texto-cuerpo);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dg-day:last-child { border-right: none; }

.dg-day:hover { background: var(--hueso); }

.dg-day.active {
  background: var(--tinta);
  color: #F2EFE8;
}

.dg-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 170px;
  border-bottom: 2px solid var(--tinta);
}

.dg-bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}

.dg-bar {
  width: 100%;
  background: var(--savia-300);
  transition: background var(--transition-fast);
}

.dg-bar:hover { background: var(--savia-500); }

.dg-bar.on { background: var(--savia-500); }
.dg-bar.on:hover { background: var(--savia-700); }

.dg-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  color: var(--texto-suave);
  font-variant-numeric: tabular-nums;
  margin-top: 12px;
}

/* Panel entrenamiento (Resumen) */
.dg-bars--arcilla { height: 132px; }

.dg-bars--arcilla .dg-bar { background: var(--arcilla-100); outline: 1px solid var(--arcilla-300); }
.dg-bars--arcilla .dg-bar.on { background: var(--arcilla-500); outline: none; }

.dg-bars--arcilla .dg-bar-col {
  justify-content: flex-end;
  gap: 8px;
}

.dg-bar-day {
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--texto-suave);
}

.dg-entreno-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--texto-cuerpo);
  margin-top: 16px;
}

.dg-entreno-foot .nv-icon { color: var(--arcilla-700); }

/* Panel distribución */
.dg-dist-bar {
  display: flex;
  height: 26px;
  border: 2px solid var(--tinta);
  overflow: hidden;
  margin-bottom: 20px;
  background: transparent;
}

.dg-dist-seg { height: 100%; min-width: 0; }

/* Sin huecos: los tres macros rellenan la barra completa (P+C=100, G reparte el resto;
   si faltan datos, el último segmento absorbe el residual para no dejar blanco) */

.dg-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dg-legend-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  color: var(--texto-cuerpo);
}

.dg-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  align-self: center;
}

.dg-legend-row b {
  font-size: 15px;
  font-weight: 800;
  color: var(--texto);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

/* ── 20.4 Entrenamiento: semana + sesiones ─────────────────── */
.dg-train-head {
  padding: 26px 32px;
  border-bottom: 2px solid var(--tinta);
  background: var(--arcilla-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dg-train-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--arcilla-700);
  margin-bottom: 10px;
}

.dg-train-title {
  font-family: var(--font);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--texto);
}

.dg-train-sub {
  font-size: 12.5px;
  color: var(--texto-suave);
  margin-top: 6px;
}

.dg-toggle {
  display: inline-flex;
  border: 2px solid var(--tinta);
  background: var(--papel);
}

.dg-toggle button {
  border: none;
  border-right: 2px solid var(--tinta);
  background: transparent;
  color: var(--texto);
  padding: 9px 18px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dg-toggle button:last-child { border-right: none; }

.dg-toggle button.on {
  background: var(--tinta);
  color: #F2EFE8;
}

.dg-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--filete-suave);
  border-bottom: 2px solid var(--tinta);
}

.dg-week-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  background: var(--papel-alt);
  border-right: 1px solid var(--filete-suave);
  min-width: 0;
}

.dg-week-cell:last-child { border-right: none; }

.dg-week-name {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--texto-suave);
}

.dg-week-name.today { color: var(--arcilla-500); }

.dg-week-tipo {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--texto);
}

.dg-week-min {
  font-size: 11.5px;
  color: var(--texto-suave);
}

.dg-week-cell.on { background: var(--arcilla-500); }

.dg-week-cell.on .dg-week-name,
.dg-week-cell.on .dg-week-tipo,
.dg-week-cell.on .dg-week-min {
  color: #F2EFE8;
}

.dg-week-cell.on .dg-week-name { color: rgba(242, 239, 232, 0.75); }

.dg-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 2px solid var(--tinta);
}

.dg-stat {
  padding: 24px 32px;
  border-right: 2px solid var(--tinta);
  background: var(--papel-alt);
}

.dg-stat:last-child { border-right: none; }

.dg-stat-num {
  font-family: var(--font);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--texto);
  margin: 10px 0 8px;
}

.dg-stat-sub {
  font-size: 12px;
  color: var(--texto-suave);
}

.dg-stat-sub.up { color: var(--savia-700); font-weight: 700; }

.dg-session-head {
  padding: 22px 32px;
  border-bottom: 2px solid var(--tinta);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dg-session-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--texto);
}

.dg-ex-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--papel-alt);
}

.dg-ex-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-suave);
  padding: 14px 32px;
  background: var(--hueso);
  border-bottom: 2px solid var(--tinta);
}

.dg-ex-table th.num,
.dg-ex-table td.num {
  text-align: center;
}

.dg-ex-table td {
  padding: 16px 32px;
  border-bottom: 1px solid var(--filete-suave);
  vertical-align: middle;
  font-size: 13px;
  color: var(--texto-cuerpo);
  font-variant-numeric: tabular-nums;
}

.dg-ex-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 3px;
}

.dg-ex-meta {
  font-size: 11.5px;
  color: var(--texto-suave);
}

.dg-ex-meta.doing { color: var(--arcilla-700); font-weight: 700; }

.dg-ex-table tr.doing td { background: var(--arcilla-100); }
.dg-ex-table tr.done td { color: var(--texto-suave); }
.dg-ex-table tr.done .dg-ex-name { color: var(--texto-suave); }

.dg-ex-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dg-ex-state .nv-icon { color: var(--savia-500); }
.dg-ex-state.doing .nv-icon { color: var(--arcilla-500); }
.dg-ex-state.pending .nv-icon { color: var(--neutro-500); }

.dg-note-bar {
  padding: 16px 32px;
  border-top: 2px solid var(--tinta);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--texto-cuerpo);
}

.dg-note-bar .nv-icon { color: var(--texto-suave); flex-shrink: 0; }

.dg-note-bar .btn-link { margin-left: auto; }

/* Historial (entrenamiento · vista historial) */
.dg-hist-row {
  padding: 16px 32px;
  border-bottom: 1px solid var(--filete-suave);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.dg-hist-row b { font-size: 14px; }

.dg-hist-meta {
  font-size: 12px;
  color: var(--texto-suave);
}

/* ── 20.5 Suplementación ───────────────────────────────────── */
.dg-supp-head {
  padding: 26px 32px;
  border-bottom: 2px solid var(--tinta);
  background: var(--malva-100);
}

.dg-supp-head .dg-kicker { color: var(--malva-700); }

.dg-supp-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--texto);
  margin-bottom: 10px;
}

.dg-supp-sub {
  font-size: 13.5px;
  color: var(--texto-cuerpo);
  max-width: 640px;
  line-height: 1.55;
}

.dg-supp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  border-bottom: 2px solid var(--tinta);
  background: var(--tinta);
  gap: 2px;
}

.dg-supp-card {
  background: var(--papel-alt);
  padding: 26px 32px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
}

.dg-supp-icon { color: var(--malva-500); margin-bottom: 18px; }

.dg-supp-icon .nv-icon, .dg-supp-icon svg { color: inherit; }

.dg-supp-priority {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--malva-700);
  margin-bottom: 8px;
}

.dg-supp-priority.optional { color: var(--texto-suave); }

.dg-supp-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 8px;
}

.dg-supp-why {
  font-size: 13px;
  color: var(--texto-cuerpo);
  line-height: 1.55;
  flex: 1;
}

.dg-supp-divider {
  border: none;
  border-top: 2px solid var(--tinta);
  margin: 18px 0 14px;
}

.dg-supp-facts {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.dg-supp-fact-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-bottom: 6px;
}

.dg-supp-fact-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--texto);
}

.dg-day-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--tinta);
  border: 2px solid var(--tinta);
  margin: 22px 32px 26px;
}

.dg-day-slot {
  background: var(--papel-alt);
  padding: 14px 16px;
  min-height: 96px;
}

.dg-day-slot.on { background: var(--malva-100); }

.dg-slot-hour {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--texto-suave);
  margin-bottom: 8px;
}

.dg-slot-meal {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 4px;
}

.dg-slot-supp {
  font-size: 12px;
  font-weight: 600;
  color: var(--malva-700);
}

.dg-slot-supp.empty { color: var(--texto-tenue); }

.dg-disclaimer {
  padding: 18px 32px;
  border-top: 2px solid var(--tinta);
  background: var(--ambar-100);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ambar-900);
  line-height: 1.55;
}

.dg-disclaimer .nv-icon { color: var(--ambar-700); flex-shrink: 0; margin-top: 2px; }

/* ── 20.6 Suscripción ──────────────────────────────────────── */
.dg-sub-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-bottom: 2px solid var(--tinta);
}

.dg-sub-plan { background: var(--ambar-100); }

.dg-sub-plan,
.dg-sub-pay {
  padding: 28px 32px;
  border-right: 2px solid var(--tinta);
  min-width: 0;
}

.dg-sub-pay { border-right: none; }

.dg-sub-plan-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.dg-sub-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texto-suave);
}

.dg-active-chip {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: var(--ambar-500);
  color: #FFF8EA;
  padding: 5px 9px;
}

.dg-active-chip.off {
  background: var(--neutro-300);
  color: var(--texto);
}

.dg-sub-name {
  font-family: var(--font-serif);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1;
  color: var(--texto);
  margin-bottom: 8px;
}

.dg-sub-price {
  font-size: 13px;
  color: var(--texto-cuerpo);
}

.dg-sub-facts {
  margin-top: 18px;
  border-top: 2px solid var(--tinta);
}

.dg-sub-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  font-size: 13px;
  color: var(--texto-suave);
}

.dg-sub-fact b {
  font-size: 14px;
  color: var(--texto);
  font-variant-numeric: tabular-nums;
}

.dg-pay-box {
  border: 2px solid var(--tinta);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.dg-pay-box .nv-icon { color: var(--texto); flex-shrink: 0; }

.dg-pay-num {
  font-size: 14.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--texto);
  letter-spacing: 0.06em;
}

.dg-pay-meta {
  font-size: 12px;
  color: var(--texto-suave);
  margin-top: 2px;
}

.dg-pay-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}

.dg-hist-head {
  padding: 22px 32px;
  border-bottom: 2px solid var(--tinta);
}

.dg-hist-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texto-suave);
}

.dg-hist-box {
  margin: 22px 32px 26px;
  border: 2px solid var(--tinta);
}

.dg-table {
  width: 100%;
  border-collapse: collapse;
}

.dg-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-suave);
  padding: 12px 18px;
  background: var(--hueso);
  border-bottom: 2px solid var(--tinta);
}

.dg-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--filete-suave);
  font-size: 13px;
  color: var(--texto-cuerpo);
  font-variant-numeric: tabular-nums;
}

.dg-table tr:last-child td { border-bottom: none; }

.dg-table td.num,
.dg-table th.num { text-align: right; }

.dg-table .ok { color: var(--savia-700); font-weight: 700; }
.dg-table .err { color: var(--arcilla-700); font-weight: 700; }

.dg-cancel {
  border-top: 2px solid var(--tinta);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.dg-cancel-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 6px;
}

.dg-cancel-sub {
  font-size: 12.5px;
  color: var(--texto-suave);
  max-width: 520px;
  line-height: 1.55;
}

.btn-outline-danger {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 2px solid var(--arcilla-500);
  color: var(--arcilla-700);
  padding: 11px 18px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.btn-outline-danger:hover {
  background: var(--arcilla-100);
}

/* ── 20.7 Estados vacíos y bloqueos Pro ────────────────────── */
.dg-empty {
  padding: 64px 32px;
  text-align: center;
}

.dg-empty-icon {
  color: var(--savia-500);
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.dg-empty-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 6px;
}

.dg-empty-sub {
  font-size: 13.5px;
  color: var(--texto-suave);
  margin-bottom: 20px;
}

/* ── 20.8 Responsive del rediseño ──────────────────────────── */
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dg-panel--perfil, .dg-panel--kcal { grid-column: 1 / -1; border-right: none; }
  .dg-week-cell { padding: 12px 12px; }
  .dg-day-strip { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 900px) {
  .dashboard-topbar { padding: 20px 20px; }
  .status-banner { padding: 16px 20px; flex-wrap: wrap; }
  .dg-panel, .dg-train-head, .dg-session-head, .dg-supp-head,
  .dg-stat, .dg-hist-head, .dg-cancel, .dg-sub-plan, .dg-sub-pay,
  .dg-note-bar, .dg-disclaimer { padding-left: 20px; padding-right: 20px; }
  .cal-meal-row, .cal-options { padding-left: 20px; padding-right: 20px; }
  .dg-ex-table th, .dg-ex-table td { padding-left: 20px; padding-right: 20px; }
  .dg-day-strip, .dg-hist-box { margin-left: 20px; margin-right: 20px; }
  .dg-sub-top { grid-template-columns: 1fr; }
  .dg-sub-plan { border-right: none; border-bottom: 2px solid var(--tinta); }
  .dg-stats { grid-template-columns: 1fr; }
  .dg-stat { border-right: none; border-bottom: 1px solid var(--filete-suave); }
  .dg-stat:last-child { border-bottom: none; }
  .dg-week { grid-template-columns: repeat(4, 1fr); }
  .dg-week-cell { border-bottom: 1px solid var(--filete-suave); }
  .dg-day-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid .dg-panel { border-right: none !important; }
  .dg-week { grid-template-columns: repeat(2, 1fr); }
  .dg-day-strip { grid-template-columns: 1fr; }
  .dg-day-picker { width: 100%; justify-content: space-between; }
  .dg-day { flex: 1; }

  /* ── Mi Nutrición (móvil) ────────────────────────────── */
  /* Franja semanal: solo la letra del día, en fila compacta */
  .cal-week {
    grid-template-columns: repeat(7, 1fr);
  }
  .cal-day {
    padding: 10px 4px;
    align-items: center;
    text-align: center;
    gap: 0;
  }
  .cal-day-name,
  .cal-day-kcal { display: none; }
  .cal-day-letter {
    font-size: 14px;
    letter-spacing: 0.02em;
  }

  /* La tabla de comidas ocupa más ancho en móvil: menos padding lateral */
  .cal-detail { padding-left: 12px; padding-right: 12px; }
  .cal-detail-head {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Comidas: etiqueta compacta · comida (con kcal debajo) · Sustituir */
  .cal-meal-row {
    display: grid;
    grid-template-columns: 21% 1fr auto;
    grid-template-areas:
      "label info swap"
      "label kcal swap";
    align-items: start;
    gap: 4px 8px;
    padding: 14px 12px;
  }
  .cal-meal-label { grid-area: label; width: auto; flex: none; font-size: 9px; gap: 5px; }
  .cal-meal-label .cal-meal-icon { width: 13px; height: 13px; }
  .cal-meal-info { grid-area: info; width: auto; flex: none; min-width: 0; gap: 2px 6px; }
  .cal-meal-info .cal-meal-name { font-size: 14px; width: 100%; line-height: 1.25; }
  .cal-meal-ing { width: 100%; font-size: 11px; line-height: 1.25; }
  .cal-meal-kcal { grid-area: kcal; width: auto; flex: none; margin-left: 0; font-size: 13px; }
  .cal-swap-btn { grid-area: swap; width: auto; flex: none; font-size: 11px; gap: 4px; align-self: center; }
  .cal-total-row { padding: 14px 12px; }
  .cal-total-label { width: auto; margin-right: auto; }
  .cal-options { padding-left: 12px; padding-right: 12px; }
}

/* ── Mi Entrenamiento (móvil): la tabla de ejercicios se apila ── */
@media (max-width: 640px) {
  /* Cabecera de sesión: título arriba, botón debajo ocupando el ancho */
  .dg-session-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .dg-session-head .btn-cta { justify-content: center; }
  .dg-train-head { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Tabla → tarjetas apiladas: nombre arriba, datos en línea debajo */
  .dg-ex-table,
  .dg-ex-table tbody { display: block; width: 100%; }
  .dg-ex-table thead { display: none; }
  .dg-ex-table tr {
    display: block;
    position: relative;
    padding: 14px 16px;
    border-bottom: 1px solid var(--filete-suave);
  }
  .dg-ex-table tr:last-child { border-bottom: none; }
  .dg-ex-table td {
    display: block;
    padding: 0;
    border: none;
    text-align: left;
  }
  .dg-ex-table td:first-child { padding-right: 44px; margin-bottom: 10px; }
  .dg-ex-name { font-size: 15px; }

  /* Datos numéricos en una línea: SERIES 4 · REPS 8 · PESO 52 kg · PAUSA 75 s */
  .dg-ex-table td.num {
    display: inline-block;
    margin: 0 16px 0 0;
    font-size: 13px;
    font-weight: 700;
  }
  .dg-ex-table td.num::before {
    display: inline-block;
    margin-right: 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--texto-suave);
  }
  .dg-ex-table td:nth-child(2)::before { content: "Series"; }
  .dg-ex-table td:nth-child(3)::before { content: "Reps"; }
  .dg-ex-table td:nth-child(4)::before { content: "Peso"; }
  .dg-ex-table td:nth-child(5)::before { content: "Pausa"; }

  /* Estado (icono) flotando arriba a la derecha de la tarjeta */
  .dg-ex-table td:nth-child(6) {
    position: absolute;
    top: 16px;
    right: 16px;
  }

  /* Menos padding lateral para ganar ancho */
  .dg-train-head, .dg-session-head, .dg-note-bar { padding-left: 16px; padding-right: 16px; }
  .dg-note-bar { gap: 10px; }
  .dg-note-bar .btn-link { white-space: nowrap; }

  /* Botón "Actualizar mis datos" compacto y centrado en móvil */
  .dashboard-topbar .btn-line { padding: 10px 12px; font-size: 12px; justify-content: center; text-align: center; height: 42px; }
  .dashboard-topbar h1 { font-size: 24px; }

  /* Botón hamburguesa del menú móvil (3 líneas) — misma altura que el botón de al lado */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    background: var(--papel-alt);
    border: 2px solid var(--tinta);
    color: var(--texto);
    border-radius: 0;
    cursor: pointer;
    padding: 0;
  }
  .mobile-menu-btn .nv-icon { color: var(--texto); }
  /* ── Mi Suscripción (móvil): historial de facturación sin desborde ── */
  .dg-hist-box { margin: 16px 12px 20px; }
  .dg-hist-head { padding-left: 16px; padding-right: 16px; }
  .dg-table th { padding: 10px 7px; font-size: 9px; letter-spacing: 0.1em; }
  .dg-table td { padding: 11px 7px; font-size: 12px; }
  .dg-table th, .dg-table td { white-space: normal; }
}

/* Botón hamburguesa del menú móvil — oculto en escritorio */
.mobile-menu-btn { display: none; }

/* Sidebar activa con color de dominio (rediseño) */
.sidebar-link.active.tone-arcilla { background: var(--arcilla-500); }
.sidebar-link.active.tone-malva { background: var(--malva-500); }
.sidebar-link.active.tone-ambar { background: var(--ambar-500); }
.sidebar-link.active.tone-savia { background: var(--savia-500); }

/* Sobre el color de dominio el texto/icono van en claro, nunca en verde */
.sidebar-link.active { color: #F7F5F0; }
.sidebar-link.active.tone-arcilla,
.sidebar-link.active.tone-malva,
.sidebar-link.active.tone-ambar,
.sidebar-link.active.tone-savia { color: #F7F5F0; }
.sidebar-link.active .sidebar-icon { color: #F7F5F0; }
.sidebar-link.active.tone-arcilla .sidebar-icon,
.sidebar-link.active.tone-malva .sidebar-icon,
.sidebar-link.active.tone-ambar .sidebar-icon,
.sidebar-link.active.tone-savia .sidebar-icon { color: #F7F5F0; }

/* ════════════════════════════════════════════════════════════
   22. CUESTIONARIO — rediseño full-bleed (edición 2026)
   Página ancha tipo dashboard: logo izq + paso dcha, barra fina,
   título serif, opciones en filas planas con acento lateral verde,
   sin cajas con bordes gruesos.
   ════════════════════════════════════════════════════════════ */

/* La página del cuestionario ocupa todo el ancho, sin centrar una caja */
.page-wrapper--quiz {
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  overflow-x: clip;
}

.quiz-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
}

/* ── Cabecera: logo izq + paso dcha → barra de progreso fina ── */
.quiz-header {
  text-align: left;
  padding: 24px 44px;
  border-bottom: 2px solid var(--tinta);
  background: var(--papel);
}

.quiz-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quiz-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--texto);
}

.quiz-logo-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.progress-text {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin: 0;
}

.progress-bar-container {
  height: 4px;
  background: var(--neutro-300);
  border: none;
  border-radius: 0;
  overflow: hidden;
  margin-top: 22px;
}

.progress-bar {
  height: 100%;
  background: var(--savia-500);
}

/* ── Tarjetas de paso (sin caja: todo el contenido fluye) ──── */
.quiz-container .quiz-card {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 48px 44px 60px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.quiz-container .quiz-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--texto);
  margin-bottom: 12px;
}

.quiz-container .quiz-card .subtitle {
  font-size: 17px;
  color: var(--texto-cuerpo);
  margin-bottom: 36px;
}

.quiz-container .form-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texto-suave);
  font-weight: 700;
}

.quiz-container .form-input {
  border-width: 1.5px;
  border-color: var(--filete-suave);
  background: var(--papel-alt);
  font-size: 17px;
}

.quiz-container .form-input:focus {
  border-color: var(--savia-500);
  outline: 2px solid var(--savia-300);
  outline-offset: 1px;
}

/* ── Opciones: filas planas con acento verde a la izquierda ─── */
.quiz-container .option-grid {
  gap: 0;
}

.quiz-container .option-grid.cols-2 {
  gap: 12px;
}

/* En 2 columnas (ej. sexo) se muestran como fichas con filete, no como filas */
.quiz-container .option-grid.cols-2 .option-btn {
  border: 1.5px solid var(--neutro-500);
  background: var(--papel);
  padding: 18px;
  justify-content: center;
}

.quiz-container .option-grid.cols-2 .option-btn::before { display: none; }

.quiz-container .option-grid.cols-2 .option-btn.selected {
  background: var(--savia-100);
  border-color: var(--savia-500);
}

.quiz-container .option-grid.cols-2 .option-btn.selected::after { display: none; }

.quiz-container .option-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--neutro-500);
  padding: 20px 6px;
  text-align: left;
  color: var(--texto);
  position: relative;
}

/* Separadores más oscuros y visibles entre apartados */
.quiz-container .option-grid { border-top: 1px solid var(--neutro-500); }

.quiz-container .option-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: background var(--transition-fast);
}

.quiz-container .option-btn:hover {
  background: var(--hueso);
}

.quiz-container .option-btn.selected {
  background: var(--savia-100);
  color: var(--texto);
}

.quiz-container .option-btn.selected::before {
  background: var(--savia-500);
}

/* El acento lateral y el check heredan el color del dominio */
.quiz-container .option-btn.tone-arcilla.selected::before { background: var(--arcilla-500); }
.quiz-container .option-btn.tone-malva.selected::before { background: var(--malva-500); }
.quiz-container .option-btn.tone-ambar.selected::before { background: var(--ambar-500); }

.quiz-container .option-btn.selected .option-title { color: var(--savia-700); }
.quiz-container .option-btn.tone-arcilla.selected { background: var(--arcilla-100); }
.quiz-container .option-btn.tone-malva.selected { background: var(--malva-100); }
.quiz-container .option-btn.tone-ambar.selected { background: var(--ambar-100); }
.quiz-container .option-btn.tone-arcilla.selected .option-title { color: var(--arcilla-700); }
.quiz-container .option-btn.tone-malva.selected .option-title { color: var(--malva-700); }
.quiz-container .option-btn.tone-ambar.selected .option-title { color: var(--ambar-700); }

/* Check (forma recortada): colorea el fondo según el dominio */
.quiz-container .option-btn.tone-arcilla.selected::after { background: var(--arcilla-500); }
.quiz-container .option-btn.tone-malva.selected::after { background: var(--malva-500); }
.quiz-container .option-btn.tone-ambar.selected::after { background: var(--ambar-500); }
.quiz-container .option-btn.tone-arcilla.selected .option-icon { color: var(--arcilla-500); }
.quiz-container .option-btn.tone-malva.selected .option-icon { color: var(--malva-500); }
.quiz-container .option-btn.tone-ambar.selected .option-icon { color: var(--ambar-500); }

.quiz-container .option-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.quiz-container .option-desc {
  font-size: 14.5px;
  color: var(--texto-suave);
  margin-top: 3px;
}

/* Icono de opción: solo el glifo a color, sin caja ni fondo (también al hover/selected) */
.quiz-container .option-icon,
.quiz-container .option-btn:hover .option-icon,
.quiz-container .option-btn.selected .option-icon {
  width: auto;
  height: auto;
  border: none;
  background: transparent;
  color: var(--savia-700);
}

.quiz-container .option-icon svg { width: 26px; height: 26px; }

/* Color de icono por dominio (objetivo / actividad) */
.quiz-container .option-btn.tone-savia .option-icon { color: var(--savia-500); }
.quiz-container .option-btn.tone-arcilla .option-icon { color: var(--arcilla-500); }
.quiz-container .option-btn.tone-malva .option-icon { color: var(--malva-500); }
.quiz-container .option-btn.tone-ambar .option-icon { color: var(--ambar-500); }

/* Check de selección a la derecha */
.quiz-container .option-btn.selected::after {
  content: '';
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex-shrink: 0;
  background: var(--savia-500);
  clip-path: polygon(41% 100%, 0 58%, 9% 48%, 40% 78%, 92% 8%, 100% 17%);
  align-self: center;
}

/* ── Slider ──────────────────────────────────────────────── */
.quiz-container .range-value {
  font-family: var(--font);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--savia-700);
}

.quiz-container .range-slider {
  accent-color: var(--savia-500);
}

/* ── Checkboxes (condiciones) ──────────────────────────────── */
.quiz-container .checkbox-group { gap: 12px; }

.quiz-container .checkbox-item {
  background: var(--papel);
  border: 1.5px solid var(--neutro-500);
  padding: 16px 18px;
  gap: 14px;
}

.quiz-container .checkbox-item.checked {
  background: var(--savia-100);
  border-color: var(--savia-500);
}

.quiz-container .checkbox-item.checked .checkbox-label { color: var(--savia-700); font-weight: 700; }

.quiz-container .checkbox-custom {
  border: 1.5px solid var(--filete-suave);
  background: var(--papel);
}

.quiz-container .checkbox-item.checked .checkbox-custom {
  background: var(--savia-500);
  border-color: var(--savia-500);
}

/* ── Navegación inferior con filete superior ──────────────── */
.quiz-container .quiz-nav {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--tinta);
}

.quiz-container .btn-prev {
  border: 2px solid var(--tinta);
  background: transparent;
  color: var(--texto);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 0;
}

.quiz-container .btn-prev:hover { background: var(--hueso); color: var(--tinta); }

.quiz-container .btn-next {
  background: var(--savia-500);
  color: #F7F5F0;
  border: 2px solid var(--savia-500);
  font-weight: 800;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 0;
}

.quiz-container .btn-next:hover {
  background: var(--savia-700);
  border-color: var(--savia-700);
  transform: none;
}

/* ── Avisos ─────────────────────────────────────────────────── */
.quiz-container .alert { border-radius: 0; }

/* Colores del panel Pro / éxito alineados con la marca */
.pricing-box { border-color: var(--tinta); }
.pricing-label { color: var(--savia-700); }
.success-screen { background: transparent; border: none; padding: 0; }
.quiz-container .success-screen h2 { font-family: var(--font-serif); }

/* Responsive del cuestionario */
@media (max-width: 640px) {
  .quiz-header { padding: 18px 20px; }
  .quiz-container .quiz-card { padding: 32px 20px 44px; }
  .quiz-container .option-btn { padding: 18px 4px; }
  .quiz-container .quiz-card h2 { font-size: 30px; }
}

/* ════════════════════════════════════════════════════════════
   23. LOGIN — split-screen (edición 2026)
   Formulario a la izquierda, imagen B/N a la derecha.
   ════════════════════════════════════════════════════════════ */
.login-split {
  display: flex;
  min-height: 100vh;
  background: var(--papel);
}

.login-panel {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 48px;
}

.login-panel-content {
  width: 100%;
  max-width: 420px;
}

/* Logo: marca + palabra, alineados a la izquierda como en el mockup */
.login-split .nav-logo {
  justify-content: flex-start;
}

.login-logo-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.login-split .logo-text {
  font-size: 17px;
  letter-spacing: 0.22em;
  font-weight: 900;
  color: var(--texto);
}

.login-split .logo-dot { color: var(--savia-500); }

.login-split .auth-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--texto);
  margin-bottom: 10px;
}

.login-split .auth-subtitle {
  font-size: 16px;
  color: var(--texto-cuerpo);
  margin-bottom: 34px;
}

.login-split .form-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-suave);
  font-weight: 700;
}

.login-split .form-input {
  width: 100%;
  border-width: 1.5px;
  border-color: var(--tinta);
  background: var(--papel);
  font-size: 16px;
}

.login-split .form-input:focus {
  border-color: var(--savia-500);
  outline: 2px solid var(--savia-300);
  outline-offset: 1px;
}

.login-split .btn-gold-large {
  width: 100%;
  justify-content: space-between;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 800;
}

.login-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.login-link {
  font-size: 14px;
  color: var(--texto-cuerpo);
  font-weight: 600;
  text-decoration: none;
}

.login-link:hover { color: var(--savia-700); text-decoration: underline; }

/* Panel de imagen: B/N, cubre toda la altura */
.login-media {
  width: 50%;
  overflow: hidden;
  border-left: 2px solid var(--tinta);
}

.login-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

/* Responsive login */
@media (max-width: 900px) {
  .login-panel { padding: 40px 32px; width: 100%; }
  .login-media {
    display: none;
  }
}

/* ════════════════════════════════════════════════════════════
   23. CUESTIONARIO v2 — mockup sin marco
   Cabecera full-width (logo + PASO X DE 8) y barra de progreso ancha
   debajo; contenido del paso con campos limitados a ~520px.
   ════════════════════════════════════════════════════════════ */

/* ── Cabecera: hija directa del wrapper → ancho real de pantalla ── */
.page-wrapper--quiz > .quiz-header {
  width: 100%;
  padding: 20px 44px 16px;
  border-bottom: none;
  background: transparent;
}

/* La barra cruza el ancho completo de la pantalla, centrada por naturaleza */
.page-wrapper--quiz > .quiz-header .progress-bar-container {
  height: 8px;
  margin: 14px 0 0;
  background: var(--neutro-300);
  border: none;
  overflow: hidden;
}

.page-wrapper--quiz > .quiz-header .progress-bar {
  height: 100%;
  background: var(--savia-900);
}

/* ── Contenido del paso: columna centrada y simétrica ── */
.quiz-container .quiz-card {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 44px 24px 56px;
}

/* Los campos ocupan el ancho de la columna centrada */
.quiz-container .quiz-card .form-group,
.quiz-container .quiz-card .form-input-group,
.quiz-container .quiz-card .option-grid,
.quiz-container .quiz-card .checkbox-group {
  max-width: none;
}

/* Nav: botón Continuar a la derecha, sin filete superior */
.quiz-container .quiz-card .quiz-nav {
  border-top: none;
  margin-top: 36px;
  padding-top: 0;
  justify-content: flex-end;
  gap: 14px;
}

.quiz-container .quiz-card .quiz-nav .btn-next { margin-left: auto; }

/* Título del paso: serif elegante */
.quiz-container .quiz-card h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 500;
  margin-bottom: 10px;
}

.quiz-container .quiz-card .subtitle {
  font-size: 15px;
  margin-bottom: 32px;
}

/* Etiquetas y campos del formulario */
.quiz-container .quiz-card .form-label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--texto-cuerpo);
  margin-bottom: 7px;
}

.quiz-container .quiz-card .form-input {
  border: 1.5px solid var(--tinta);
  background: var(--papel-alt);
  font-size: 15px;
  padding: 13px 14px;
}

.quiz-container .quiz-card .form-input::placeholder {
  color: var(--texto-suave);
}

.quiz-container .quiz-card .form-input:focus {
  outline: 2px solid var(--arcilla-500);
  outline-offset: 2px;
  border-color: var(--tinta);
}

/* El objetivo (paso 3) ocupa la columna ancha */
.quiz-container .quiz-card.quiz-card--wide .option-grid.cols-1 {
  max-width: none;
}

/* ── Paso 5: preferencias ── */
/* Dieta: tarjetas en cuadrícula de 3 columnas con filete compartido */
.quiz-container .quiz-card .diet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid var(--neutro-500);
  border-top: 1.5px solid var(--neutro-500);
  margin-bottom: 32px;
}

.quiz-container .quiz-card .diet-grid .option-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: none;
  border-right: 1.5px solid var(--neutro-500);
  border-bottom: 1.5px solid var(--neutro-500);
  background: var(--papel);
  padding: 20px 18px;
  text-align: left;
}

.quiz-container .quiz-card .diet-grid .option-btn:nth-child(3n) { border-right: none; }
.quiz-container .quiz-card .diet-grid .option-btn:nth-last-child(-n+3) { border-bottom: none; }

.quiz-container .quiz-card .diet-grid .option-btn::before,
.quiz-container .quiz-card .diet-grid .option-btn::after { display: none; }

.quiz-container .quiz-card .diet-grid .option-btn.selected {
  /* La selección de la cuadrícula no lleva los filetes gruesos del paso 3:
     se marca solo con fondo verde y un borde verde limpio alrededor */
  border-top: 1.5px solid var(--savia-500);
  border-right: 1.5px solid var(--savia-500);
  border-bottom: 1.5px solid var(--savia-500);
  border-left: 1.5px solid var(--savia-500);
  box-shadow: none;
  background: var(--savia-100);
}

.quiz-container .quiz-card .diet-grid .option-btn.selected .option-title { color: var(--savia-700); }

.quiz-container .quiz-card .diet-grid .option-title { font-size: 15px; }
.quiz-container .quiz-card .diet-grid .option-desc { font-size: 13px; margin-top: 2px; }

.quiz-container .quiz-card .diet-grid .option-icon { color: var(--neutro-500); width: auto; height: auto; background: transparent; }
.quiz-container .quiz-card .diet-grid .option-icon svg { width: 22px; height: 22px; }
.quiz-container .quiz-card .diet-grid .option-btn.selected .option-icon { color: var(--savia-500); }

/* Días por semana: valor grande + barra segmentada */
.quiz-container .quiz-card .days-block { max-width: none; }

.quiz-container .quiz-card .days-value {
  display: flex;
  align-items: baseline;
  font-size: 34px;
  color: var(--texto);
  margin: 4px 0 18px;
}

.quiz-container .quiz-card .days-value strong {
  font-size: 40px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--texto);
}

.quiz-container .quiz-card .days-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.quiz-container .quiz-card .days-seg {
  height: 22px;
  background: var(--hueso);
  border: none;
  cursor: pointer;
  padding: 0;
}

.quiz-container .quiz-card .days-seg.filled { background: var(--savia-500); }

.quiz-container .quiz-card .days-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--texto-suave);
}

/* Dos columnas: nivel + donde entrenas */
.quiz-container .quiz-card .pref-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
  max-width: none;
}

.quiz-container .quiz-card .pref-col .form-label {
  margin-bottom: 12px;
  display: block;
}

.quiz-container .quiz-card .pref-col .option-grid.pref-list {
  border-top: 1.5px solid var(--neutro-500);
}

.quiz-container .quiz-card .pref-col .option-btn { padding: 16px 6px; }

@media (max-width: 640px) {
  .quiz-container .quiz-card .diet-grid { grid-template-columns: 1fr; }
  .quiz-container .quiz-card .diet-grid .option-btn:nth-child(3n) { border-right: 1.5px solid var(--neutro-500); }
  .quiz-container .quiz-card .diet-grid .option-btn:nth-last-child(-n+3) { border-bottom: none; }
  .quiz-container .quiz-card .diet-grid .option-btn:last-child { border-bottom: none; }
  .quiz-container .quiz-card .pref-cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Paso 4: iconos neutros, solo verde al seleccionar ── */
.quiz-container .quiz-card .option-grid.neutral-icons .option-btn .option-icon {
  color: var(--neutro-500);
}

.quiz-container .quiz-card .option-grid.neutral-icons .option-btn:hover .option-icon { color: var(--neutro-700); }

.quiz-container .quiz-card .option-grid.neutral-icons .option-btn.selected .option-icon {
  color: var(--savia-500);
}

/* Multiplicador a la derecha (×1,2 / ×1,375 ...) */
.quiz-container .quiz-card .option-grid.neutral-icons .option-mult {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--texto-suave);
  font-variant-numeric: tabular-nums;
  padding-left: 16px;
  align-self: center;
}

.quiz-container .quiz-card .option-grid.neutral-icons .option-btn.selected .option-mult {
  color: var(--savia-700);
}

/* Franja de gasto estimado al final */
.gasto-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  border: 1.5px solid var(--neutro-500);
  background: var(--savia-100);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--texto-cuerpo);
}

.gasto-strip .gasto-strip-icon {
  color: var(--savia-500);
  flex-shrink: 0;
}

.gasto-strip strong { color: var(--savia-700); }

/* Selección más marcada: acento lateral grueso + filetes superior e inferior en tinta.
   Solo aplica a las filas planas (no a la cuadrícula de dieta ni al segmento de sexo). */
.quiz-container .quiz-card .option-btn.selected:not(.diet-grid .option-btn):not(.option-grid.segment .option-btn) {
  border-top: 2px solid var(--tinta);
  border-bottom: 2px solid var(--tinta);
  box-shadow: inset 3px 0 0 var(--savia-500);
}

.quiz-container .quiz-card .option-btn.tone-arcilla.selected { box-shadow: inset 3px 0 0 var(--arcilla-500); }
.quiz-container .quiz-card .option-btn.tone-malva.selected { box-shadow: inset 3px 0 0 var(--malva-500); }
.quiz-container .quiz-card .option-btn.tone-ambar.selected { box-shadow: inset 3px 0 0 var(--ambar-500); }

/* La fila anterior cede su filete para no doblar la línea superior (filas planas) */
.quiz-container .quiz-card .option-btn:has(+ .option-btn.selected):not(.diet-grid .option-btn):not(.option-grid.segment .option-btn) {
  border-bottom: none;
}

/* Si la seleccionada es la primera fila, la línea la pone ella misma */
.quiz-container .quiz-card .option-grid:has(> .option-btn.selected:first-child) {
  border-top: none;
}

/* El segmento (sexo) no lleva acento lateral ni filetes extra */
.quiz-container .quiz-card .option-grid.segment .option-btn.selected {
  border-top: 1.5px solid var(--tinta);
  border-bottom: 1.5px solid var(--tinta);
  box-shadow: none;
}

/* ── Paso 6: condiciones de salud en cuadrícula de tarjetas ── */
.quiz-container .quiz-card .health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid var(--neutro-500);
  border-top: 1.5px solid var(--neutro-500);
  margin-bottom: 36px;
  max-width: none;
}

.quiz-container .quiz-card .health-grid .checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  border-right: 1.5px solid var(--neutro-500);
  border-bottom: 1.5px solid var(--neutro-500);
  background: var(--papel);
  padding: 20px 18px;
  cursor: pointer;
}

.quiz-container .quiz-card .health-grid .checkbox-item:nth-child(3n) { border-right: none; }
.quiz-container .quiz-card .health-grid .checkbox-item:nth-last-child(-n+3) { border-bottom: none; }

/* Checkbox cuadrado del mockup */
.quiz-container .quiz-card .health-grid .checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--filete-suave);
  background: var(--papel);
  position: relative;
}

/* Check marcado con check blanco */
.quiz-container .quiz-card .health-grid .checkbox-custom::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  background: transparent;
  clip-path: polygon(41% 100%, 0 58%, 9% 48%, 40% 78%, 92% 8%, 100% 17%);
}

.quiz-container .quiz-card .health-grid .checkbox-item .check-icon {
  display: none;
}

/* Celda seleccionada: fondo verde, borde verde, checkbox relleno */
.quiz-container .quiz-card .health-grid .checkbox-item.checked {
  background: var(--savia-100);
  border-color: var(--savia-500);
}

.quiz-container .quiz-card .health-grid .checkbox-item.checked .checkbox-custom {
  background: var(--savia-500);
  border-color: var(--savia-500);
}

.quiz-container .quiz-card .health-grid .checkbox-item.checked .checkbox-custom::after {
  background: var(--papel);
}

.quiz-container .quiz-card .health-grid .checkbox-label {
  font-size: 14px;
  color: var(--texto);
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-container .quiz-card .health-grid .checkbox-label .nv-icon {
  color: var(--neutro-500);
  flex-shrink: 0;
}

.quiz-container .quiz-card .health-grid .checkbox-item.checked .checkbox-label .nv-icon {
  color: var(--savia-500);
}

.quiz-container .quiz-card .health-grid .checkbox-item.checked .checkbox-label {
  color: var(--savia-700);
  font-weight: 700;
}

/* Aviso final: "Esta información no sustituye un diagnóstico" */
.quiz-container .quiz-card .health-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px solid var(--neutro-500);
  background: var(--papel-alt);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--texto-cuerpo);
  max-width: none;
}

.quiz-container .quiz-card .health-note .health-note-icon {
  color: var(--neutro-500);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ════════════════════════════════════════════════════════════
   24. PASO 8 — Pantalla de éxito (fondo verde a toda la página)
   ════════════════════════════════════════════════════════════ */

body.success-mode { background: var(--savia-700); }

body.success-mode .page-wrapper--quiz { background: transparent; }

body.success-mode .quiz-header {
  color: #F2EFE8;
  padding: 18px 28px 14px;
}

body.success-mode .quiz-header .progress-text { color: #F2EFE8; }

body.success-mode .quiz-header .progress-bar-container { background: rgba(242, 239, 232, 0.35); }

body.success-mode .quiz-header .progress-bar { background: #F2EFE8; }

body.success-mode .quiz-logo,
body.success-mode .quiz-logo span { color: #F2EFE8; }

body.success-mode .quiz-logo-mark { filter: brightness(0) invert(1); opacity: 0.9; }

/* Contenido del éxito en fondo verde — selectores cualificados para ganar a
   `.quiz-container .quiz-card` (que limita a 660px) y a `.quiz-container .quiz-card h2`. */
body.success-mode .quiz-container { max-width: 1120px; }

.quiz-container .quiz-card.quiz-success {
  max-width: 1120px;
  padding: 40px 24px 30px;
  width: 100%;
}

.quiz-container .quiz-card.quiz-success .success-screen {
  background: transparent;
  border: none;
  padding: 0;
  color: #F2EFE8;
}

.quiz-container .quiz-card.quiz-success .success-icon {
  display: inline-flex;
  color: #F2EFE8;
  margin-bottom: 26px;
  align-self: flex-start;
}

.quiz-container .quiz-card.quiz-success .success-icon svg {
  width: 42px;
  height: 42px;
}

.quiz-container .quiz-card.quiz-success h2 {
  font-family: var(--font-serif);
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  margin: 0 0 20px;
  text-align: left;
}

.quiz-container .quiz-card.quiz-success #successText {
  font-size: 17px;
  line-height: 1.6;
  color: #E4DCC8;
  max-width: 600px;
  margin-bottom: 44px;
  text-align: left;
}

.quiz-container .quiz-card.quiz-success #successText strong { color: #F2EFE8; }

/* Tarjetas de resumen (objetivo / menú / entreno) */
.quiz-container .quiz-card.quiz-success .success-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 860px;
  margin-bottom: 44px;
}

.quiz-container .quiz-card.quiz-success .ss-stat {
  border: none;
  padding: 24px 22px 20px;
  background: rgba(0, 0, 0, 0.08);
}

.quiz-container .quiz-card.quiz-success .ss-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 800;
  text-transform: uppercase;
  color: #D7CEBB;
  margin-bottom: 16px;
}

.quiz-container .quiz-card.quiz-success .ss-num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: #F2EFE8;
  line-height: 1;
  margin-bottom: 8px;
}

.quiz-container .quiz-card.quiz-success .ss-sub {
  font-size: 13px;
  color: #D7CEBB;
}

/* Botón crema "Ir a mi panel" */
.btn-cream {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #F2EFE8;
  color: var(--tinta);
  padding: 15px 30px;
  border: none;
  border-radius: 0;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-cream:hover { background: #E8E4DA; }

/* ── Paso 7: dos columnas (pago | plan Pro) ── */
.quiz-container .quiz-card .pay-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1.5px solid var(--neutro-500);
  max-width: none;
}

.quiz-container .quiz-card .pay-col { padding: 40px 40px 36px; }

.quiz-container .quiz-card .pay-col--form { background: var(--papel); }

/* Panel del plan Pro en verde suave */
.quiz-container .quiz-card .pay-col--plan {
  background: var(--savia-100);
  border-left: 1.5px solid var(--neutro-500);
}

.quiz-container .quiz-card .pay-col--plan .pricing-box {
  border: none;
  background: transparent;
  padding: 0;
}

.quiz-container .quiz-card .pay-col--plan .pricing-label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--savia-700);
  margin-bottom: 18px;
}

.quiz-container .quiz-card .pay-col--plan .pricing-price {
  font-size: 44px;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 18px;
  line-height: 1;
}

.quiz-container .quiz-card .pay-col--plan .pricing-price span {
  font-size: 18px;
  font-weight: 500;
  color: var(--texto-cuerpo);
}

.quiz-container .quiz-card .pay-col--plan .pricing-items {
  border-top: 2px solid var(--tinta);
}

.quiz-container .quiz-card .pay-col--plan .pricing-item .check-icon {
  color: var(--savia-700);
  flex-shrink: 0;
}

.quiz-container .quiz-card .pay-col--plan .pricing-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1.5px solid var(--neutro-500);
  font-size: 14px;
  color: var(--texto-cuerpo);
}

.quiz-container .quiz-card .pay-col--plan .pricing-item:last-child { border-bottom: none; }

.quiz-container .quiz-card .pay-col--plan .pricing-trial {
  margin-top: 20px;
  border: none;
  border-top: 2px solid var(--tinta);
  background: transparent;
  padding-top: 20px;
  font-size: 14px;
  color: var(--texto-cuerpo);
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
  border-radius: 0;
}

.quiz-container .quiz-card .pay-col--plan .pricing-trial .nv-icon { color: var(--savia-700); }

/* Skip: continuar gratis, enlazado bajo el nav */
.quiz-container .quiz-card .btn-skip {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  background: transparent;
  border: 1.5px solid var(--neutro-500);
  color: var(--texto-cuerpo);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  text-align: center;
  border-radius: 0;
}

.quiz-container .quiz-card .btn-skip:hover { background: var(--hueso); color: var(--tinta); }

/* El título del paso usa la columna ancha (ya en quiz-card--wide) */
@media (max-width: 640px) {
  .quiz-container .quiz-card .pay-cols { grid-template-columns: 1fr; }
  .quiz-container .quiz-card .pay-col { padding: 28px 20px; }
  .quiz-container .quiz-card .pay-col--plan { border-left: none; border-top: 1.5px solid var(--neutro-500); }
  .quiz-container .quiz-card .health-grid { grid-template-columns: 1fr; }
  .quiz-container .quiz-card .health-grid .checkbox-item:nth-child(3n) { border-right: 1.5px solid var(--neutro-500); }
  .quiz-container .quiz-card .health-grid .checkbox-item:nth-last-child(-n+3) { border-bottom: 1.5px solid var(--neutro-500); }
  .quiz-container .quiz-card .health-grid .checkbox-item:last-child { border-bottom: none; }
}

/* Nota bajo el campo (ej. "Mínimo 8 caracteres") */
.form-hint-inline {
  display: block;
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--texto-suave);
}

/* ── Paso 2: fila de métricas en 3 columnas ── */
.quiz-container .quiz-card .form-input-group.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quiz-container .quiz-card .form-group--third { max-width: calc((100% - 40px) / 3); }

/* Input con sufijo de unidad dentro (años / cm / kg) — el marco envuelve TODO: input + unidad */
.input-suffix {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--tinta);
  background: var(--papel-alt);
}

.input-suffix .form-input {
  border: none;
  background: transparent;
  flex: 1;
  min-width: 0;
}

.input-suffix .form-input:focus {
  outline: none;
}

.input-suffix:focus-within {
  outline: 2px solid var(--arcilla-500);
  outline-offset: 2px;
}

.input-suffix .input-unit {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-left: 1.5px solid var(--tinta);
  font-size: 13px;
  color: var(--texto-suave);
  background: var(--papel-alt);
  white-space: nowrap;
}

/* Peso objetivo con fondo tintado (verde suave) */
.input-suffix.tint {
  background: var(--savia-100);
}

.input-suffix.tint .input-unit { background: var(--savia-100); }

/* ── Sexo como segmento: dos mitades pegadas, la activa en tinta ── */
.quiz-container .quiz-card .option-grid.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: none;
  max-width: 420px;
}

.quiz-container .quiz-card .option-grid.segment .option-btn {
  display: flex;
  justify-content: flex-start;
  border: 1.5px solid var(--tinta);
  border-bottom-width: 1.5px;
  background: var(--papel-alt);
  padding: 15px 18px;
  margin-right: -1.5px; /* colapsa el borde compartido */
}

.quiz-container .quiz-card .option-grid.segment .option-btn:last-child { margin-right: 0; }

.quiz-container .quiz-card .option-grid.segment .option-btn::before,
.quiz-container .quiz-card .option-grid.segment .option-btn::after { display: none; }

.quiz-container .quiz-card .option-grid.segment .option-btn .option-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--texto);
}

.quiz-container .quiz-card .option-grid.segment .option-btn.selected {
  background: var(--tinta);
}

.quiz-container .quiz-card .option-grid.segment .option-btn.selected .option-title {
  color: var(--papel);
}

/* Los steps de métricas necesitan más ancho que el paso 1 */
.quiz-container .quiz-card.quiz-card--wide {
  max-width: 980px;
}

/* Nav del paso: Atrás a la izquierda, Continuar a la derecha */
.quiz-container .quiz-card .quiz-nav .btn-prev { margin-right: auto; }

/* Filete final más marcado sobre los botones */
.quiz-container .quiz-card .quiz-nav {
  border-top: 2px solid var(--tinta);
  padding-top: 22px;
}

/* Continuar más largo */
.quiz-container .quiz-card .quiz-nav .btn-next {
  padding: 14px 40px;
  white-space: nowrap;
}

.quiz-container .quiz-card .quiz-nav .btn-prev {
  white-space: nowrap;
}

/* Separar el aviso de pago seguro del campo de tarjeta */
.quiz-container .quiz-card .pay-col--form .form-hint {
  margin-top: 14px;
}

@media (max-width: 640px) {
  .quiz-container .quiz-card .form-input-group.cols-3 { grid-template-columns: 1fr; gap: 0; }
  .quiz-container .quiz-card .form-group--third { max-width: none; }
  .quiz-container .quiz-card .option-grid.segment { max-width: none; }
  .quiz-container .quiz-card.quiz-card--wide { max-width: none; }
}

/* En móvil respira menos y los campos ocupan todo el ancho */
@media (max-width: 640px) {
  .page-wrapper--quiz > .quiz-header { padding: 14px 16px 12px; }
  .quiz-container .quiz-card { padding: 28px 18px 30px; }
  .quiz-container .quiz-card.quiz-success { padding: 24px 16px; }
  .quiz-container .quiz-card.quiz-success h2 { font-size: 34px; }
  .quiz-container .quiz-card.quiz-success .success-stats { grid-template-columns: 1fr; max-width: none; }
  .quiz-container .quiz-card.quiz-success .ss-stat { padding: 18px; }
}
