/* ============================================================
   UNITECO · SISTEMA DE DISEÑO
   Paleta, tipografía, componentes base
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ──────────────────────────────────────── */
:root {
  /* Paleta primaria */
  --color-primary:       #0F6B5E;
  --color-primary-light: #16A085;
  --color-primary-pale:  #E8F5F2;

  /* Neutros */
  --color-bg:            #F8F9FA;
  --color-surface:       #FFFFFF;
  --color-border:        #E9ECEF;
  --color-text-muted:    #6C757D;
  --color-text:          #1A2332;

  /* Acentos */
  --color-mir:           #E76F51;
  --color-gold:          #C9A961;
  --color-gold-pale:     #FBF6EC;
  --color-alert:         #F4A261;
  --color-success:       #2A9D8F;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(26,35,50,.06), 0 1px 2px rgba(26,35,50,.04);
  --shadow-md: 0 4px 12px rgba(26,35,50,.08), 0 2px 4px rgba(26,35,50,.04);
  --shadow-lg: 0 8px 24px rgba(26,35,50,.12);

  /* Radios */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-pill: 100px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 20px;
  --space-xl: 24px;
  --space-2xl: 32px;

  /* Tipografía */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 700;
  --font-semibold: 600;
  --font-medium: 500;
  --font-regular: 400;

  /* Transiciones */
  --transition-fast: 150ms ease;
  --transition: 200ms ease;
  --transition-slow: 300ms ease;
}

/* ── RESET BÁSICO ────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html { font-size: 16px; }

body {
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--color-text);
  background: #D0D5DD;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── MARCO DE MÓVIL (gestionado desde index.html) ── */
/* Los estilos del frame se definen en el <style> del index
   para que el modo escritorio pueda sobreescribirlos */

/* Status bar simulada */
.status-bar {
  height: 44px;
  padding: 12px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.status-bar .time { font-weight: 700; }
.status-bar .icons { display: flex; gap: 4px; align-items: center; }

/* Scroll interior */
.phone-screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
}

.phone-screen::-webkit-scrollbar { display: none; }
.phone-screen { -ms-overflow-style: none; scrollbar-width: none; }

/* ── COMPONENTES BASE ─────────────────────────────── */

/* Card */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  border: 1px solid rgba(0,0,0,.04);
}

.card-elevated {
  box-shadow: var(--shadow-md);
}

/* CTA primario */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--color-primary-light);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary:hover { background: var(--color-primary); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

/* CTA secundario */
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover { background: var(--color-primary-pale); }

/* CTA ghost */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  color: var(--color-primary-light);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover { background: var(--color-primary-pale); }

/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.chip-primary { background: var(--color-primary-pale); color: var(--color-primary); }
.chip-gold { background: var(--color-gold-pale); color: #8B6914; }
.chip-plata { background: #F0F0F4; color: #5A6480; }
.chip-mir { background: #FDF0EC; color: #C1532A; }
.chip-success { background: #E8F5F2; color: #1A7A70; }
.chip-alert { background: #FEF4EC; color: #B25E00; }
.chip-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-text-muted); }

/* Chip seleccionable (onboarding) */
.chip-toggle {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  transition: var(--transition);
  user-select: none;
}
.chip-toggle:hover { border-color: var(--color-primary-light); color: var(--color-primary); }
.chip-toggle.selected {
  background: var(--color-primary-pale);
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.avatar-gold { background: var(--color-gold-pale); color: #8B6914; }
.avatar-mir { background: #FDF0EC; color: #C1532A; }

/* Banner explicativo */
.explain-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-family);
  padding: 4px 0;
  transition: var(--transition);
}
.explain-trigger:hover { color: var(--color-primary); }
.explain-trigger svg { width: 14px; height: 14px; }

.explain-content {
  background: #F0F7F5;
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: 8px;
  display: none;
}
.explain-content.open { display: block; animation: slideDown 200ms ease; }

/* ── BOTTOM NAV ──────────────────────────────────── */
.bottom-nav {
  display: flex;
  align-items: stretch;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 8px 4px 16px;
  gap: 0;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: none;
  border: none;
  font-family: var(--font-family);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 500;
}
.nav-item:hover { color: var(--color-primary); }
.nav-item.active { color: var(--color-primary); }
.nav-item.active svg { stroke: var(--color-primary); }
.nav-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.nav-item.active svg { stroke-width: 2.2; }

/* ── SKELETON LOADER ─────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #E9ECEF 25%, #F8F9FA 50%, #E9ECEF 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── SWITCH ──────────────────────────────────────── */
.switch-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.switch-wrap:last-child { border-bottom: none; }
.switch-label { font-size: 15px; color: var(--color-text); font-weight: 500; }
.switch-sub { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }

.switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}
.switch input { display: none; }
.switch-track {
  position: absolute;
  inset: 0;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}
.switch input:checked + .switch-track { background: var(--color-primary-light); }
.switch-track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + .switch-track::after { transform: translateX(18px); }

/* ── HEADER DE PANTALLA ──────────────────────────── */
.screen-header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  gap: 12px;
  position: sticky;
  top: 0;
  background: rgba(248,249,250,.92);
  backdrop-filter: blur(8px);
  z-index: 20;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.screen-header h2 { font-size: 17px; font-weight: 600; flex: 1; }
.back-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  color: var(--color-text);
  flex-shrink: 0;
  transition: var(--transition);
}
.back-btn:hover { background: var(--color-primary-pale); color: var(--color-primary); }

/* ── BARRA DE PROGRESO ───────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-pill);
  transition: width 600ms ease;
}

/* ── ANIMACIONES ─────────────────────────────────── */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.92); }
  60% { transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes checkmark {
  0% { stroke-dashoffset: 50; }
  100% { stroke-dashoffset: 0; }
}

/* Confetti (solo en primer onboarding completado) */
@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(400px) rotate(720deg); opacity: 0; }
}

.screen-enter { animation: slideUp 250ms ease; }
.screen-fade { animation: fadeIn 200ms ease; }

/* ── MODAL ───────────────────────────────────────── */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,35,50,.4);
  backdrop-filter: blur(2px);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-sheet {
  background: var(--color-surface);
  border-radius: 24px 24px 0 0;
  width: 100%;
  padding: 12px 20px 32px;
  transform: translateY(20px);
  transition: transform 250ms ease;
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  margin: 0 auto 20px;
}

/* ── HORARIO SELECTOR ────────────────────────────── */
.time-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 10px;
}
.time-slot:hover { border-color: var(--color-primary-light); background: var(--color-primary-pale); }
.time-slot.selected { border-color: var(--color-primary-light); background: var(--color-primary-pale); }
.time-slot .slot-dia { font-size: 14px; font-weight: 600; }
.time-slot .slot-hora { font-size: 13px; color: var(--color-text-muted); }
.time-slot .slot-modo { margin-left: auto; font-size: 12px; color: var(--color-primary); font-weight: 500; }

/* ── CARRUSEL ────────────────────────────────────── */
.carousel-wrap {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 20px 8px;
  margin: 0 -20px;
  scrollbar-width: none;
}
.carousel-wrap::-webkit-scrollbar { display: none; }

.carousel-card {
  min-width: 220px;
  max-width: 220px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.carousel-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.carousel-card-media {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
}
.carousel-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-card-media .card-icon {
  position: absolute;
  bottom: -14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.carousel-card-body {
  padding: 22px 16px 16px;
}
.carousel-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.carousel-card p { font-size: 12px; color: var(--color-text-muted); line-height: 1.4; margin-bottom: 12px; }
.carousel-card .card-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── CHECK ANIMADO ───────────────────────────────── */
.check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 400ms ease;
  margin: 0 auto;
}
.check-circle svg {
  width: 32px;
  height: 32px;
  stroke: white;
  fill: none;
  stroke-width: 3;
  stroke-dasharray: 50;
  stroke-dashoffset: 0;
  animation: checkmark 400ms 200ms ease both;
}

/* ── TYPING INDICATOR ────────────────────────────── */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 14px;
}
.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--color-text-muted);
  border-radius: 50%;
  animation: typingBounce 1.2s ease infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* ── BOCADILLO CHAT ──────────────────────────────── */
.bubble {
  max-width: 80%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
}
.bubble-in {
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 16px 16px 16px 4px;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}
.bubble-out {
  background: var(--color-primary-light);
  color: white;
  border-radius: 16px 16px 4px 16px;
  align-self: flex-end;
}

/* ── CONFETTI ────────────────────────────────────── */
.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confetti-fall 2s ease-in forwards;
  top: -10px;
}

/* ── MODO PRESENTACIÓN ───────────────────────────── */
body.presentation-mode * { cursor: none !important; }
.presentation-cursor {
  position: fixed;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(22, 160, 133, 0.7);
  border: 2px solid var(--color-primary-light);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 50ms;
}
.presentation-cursor.click {
  transform: translate(-50%, -50%) scale(1.6);
  background: rgba(22, 160, 133, 0.4);
}

body.presentation-mode .btn-primary:hover,
body.presentation-mode .btn-secondary:hover,
body.presentation-mode .carousel-card:hover {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
}

/* ── CHROME DE PRESENTACIÓN ──────────────────────── */
.presentation-chrome {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.chrome-controls {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.chrome-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(26,35,50,.85);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-family);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  white-space: nowrap;
}
.chrome-btn:hover { background: rgba(26,35,50,.95); }
.chrome-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Selector de arquetipo */
.archetype-selector {
  position: fixed;
  top: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}

.archetype-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.5);
  padding: 0 4px;
}

.archetype-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(26,35,50,.75);
  color: rgba(255,255,255,.7);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-family);
  border: 1.5px solid rgba(255,255,255,.1);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.archetype-btn:hover { background: rgba(26,35,50,.9); color: white; }
.archetype-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary-light);
}

.archetype-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Flujos rápidos */
.flows-panel {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 200;
}

.flow-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(26,35,50,.75);
  color: rgba(255,255,255,.7);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-family);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.flow-btn:hover { background: rgba(26,35,50,.9); color: white; }
.flow-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,.4); padding: 0 4px; }

/* ── UTILIDADES ──────────────────────────────────── */
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 22px; }
.text-2xl { font-size: 28px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.mt-xs { margin-top: 4px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 20px; }
.mt-xl { margin-top: 24px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 20px; }
.p-screen { padding: 0 20px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* ============================================================
   P3 · BENEFICIOS — REDISEÑO
   ============================================================ */

/* ── HEADER LISTA ─────────────────────────────────────────── */
.bl-header {
  padding: 16px 20px 10px;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg) 100%);
}
.bl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.bl-eyebrow::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}
.bl-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.bl-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* ── TARJETA HERO DE VALOR ────────────────────────────────── */
.bl-value-card {
  margin: 14px 20px 4px;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(22,160,133,.18) 0%, transparent 60%),
    linear-gradient(135deg, #0F6B5E 0%, #16A085 100%);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,107,94,.28);
}
.bl-value-card::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 70%);
  pointer-events: none;
}
.bl-value-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.bl-value-head .tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255,255,255,.18);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  backdrop-filter: blur(4px);
}
.bl-value-amount {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.bl-value-amount .currency {
  font-size: 18px;
  font-weight: 600;
  opacity: .8;
  margin-left: 2px;
}
.bl-value-caption {
  font-size: 12px;
  color: rgba(255,255,255,.78);
  position: relative;
  z-index: 1;
}
.bl-value-stats {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.16);
  position: relative;
  z-index: 1;
}
.bl-value-stat {
  flex: 1;
}
.bl-value-stat .num {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}
.bl-value-stat .lab {
  font-size: 10px;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 2px;
  font-weight: 600;
}

/* ── BANNER PENDIENTE ─────────────────────────────────────── */
.bl-pending {
  margin: 12px 20px 0;
  padding: 12px 14px;
  background: #FEF7EC;
  border: 1px solid #F8DEAB;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.bl-pending:hover { border-color: var(--color-alert); }
.bl-pending .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--color-alert);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bl-pending .txt p { font-size: 13px; font-weight: 600; line-height: 1.3; }
.bl-pending .txt small { font-size: 11px; color: var(--color-text-muted); }
.bl-pending .arr { margin-left: auto; color: var(--color-text-muted); }

/* ── FILTROS STICKY ───────────────────────────────────────── */
.bl-filters {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  gap: 6px;
  padding: 14px 20px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(248,249,250,.94);
  backdrop-filter: blur(10px);
  margin-top: 16px;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.bl-filters::-webkit-scrollbar { display: none; }
.bl-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-family);
  background: white;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}
.bl-filter:hover { border-color: var(--color-primary-light); color: var(--color-primary); }
.bl-filter.active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: white;
}
.bl-filter .count {
  font-size: 11px;
  opacity: .7;
  font-weight: 600;
}
.bl-filter.active .count { opacity: .85; }

/* ── DESTACADO ────────────────────────────────────────────── */
.bl-featured-wrap {
  padding: 14px 20px 4px;
}
.bl-featured-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-mir);
  margin-bottom: 10px;
}
.bl-featured-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-mir);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}
.bl-featured {
  position: relative;
  border-radius: 20px;
  padding: 20px;
  color: white;
  overflow: hidden;
  cursor: pointer;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.bl-featured:hover { transform: translateY(-2px); }
.bl-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bf-color, #2A9D8F) 0%, color-mix(in srgb, var(--bf-color, #2A9D8F) 60%, #0a1815) 100%);
  z-index: 0;
}
.bl-featured::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22) 0%, transparent 65%);
  z-index: 0;
}
.bl-featured > * { position: relative; z-index: 1; }
.bl-featured .bf-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(255,255,255,.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  align-self: flex-start;
}
.bl-featured .bf-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 10px 0 6px;
  max-width: 80%;
}
.bl-featured .bf-desc {
  font-size: 13px;
  line-height: 1.45;
  opacity: .88;
  max-width: 85%;
}
.bl-featured .bf-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: white;
  color: var(--bf-color, #2A9D8F);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  align-self: flex-start;
  margin-top: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.bl-featured .bf-icon {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  backdrop-filter: blur(6px);
  z-index: 1;
}

/* ── SECCIÓN POR CATEGORÍA ────────────────────────────────── */
.bl-section {
  padding: 22px 20px 4px;
}
.bl-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.bl-section-icon {
  width: 28px; height: 28px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bl-section-head h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bl-section-head .count {
  margin-left: auto;
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ── TARJETA DE BENEFICIO V2 ──────────────────────────────── */
.bl-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 14px;
  background: white;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.bl-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26,35,50,.08);
  border-color: rgba(0,0,0,.08);
}
.bl-card.urgent {
  border-color: rgba(244,162,97,.4);
  background: linear-gradient(135deg, #FFFCF6 0%, white 60%);
}
.bl-card.urgent::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color-alert);
}
.bl-card-thumb {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.bl-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.4) 0%, transparent 50%);
  pointer-events: none;
}
.bl-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bl-card-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 3px;
  color: var(--color-text);
  letter-spacing: -0.005em;
}
.bl-card-desc {
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bl-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.bl-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .01em;
}
.bl-card-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-left: auto;
}
.bl-card-value strong { color: var(--color-primary); font-weight: 700; }

/* ── EMPTY STATE ──────────────────────────────────────────── */
.bl-empty {
  margin: 24px 20px;
  padding: 32px 20px;
  text-align: center;
  background: white;
  border-radius: 16px;
  border: 1px dashed var(--color-border);
}
.bl-empty .emoji { font-size: 32px; margin-bottom: 8px; }
.bl-empty p { font-size: 14px; color: var(--color-text-muted); }

/* ============================================================
   DETALLE — REDISEÑO
   ============================================================ */
.bd-screen { padding-bottom: 110px; position: relative; }

/* Header transparente que se rellena al scroll */
.bd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
}
.bd-header-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  transition: transform 150ms ease;
}
.bd-header-btn:hover { transform: scale(1.06); }

/* Hero principal */
.bd-hero {
  position: relative;
  padding: 76px 22px 28px;
  color: white;
  overflow: hidden;
  min-height: 280px;
}
.bd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 60% at 10% 0%, rgba(255,255,255,.22) 0%, transparent 60%),
    linear-gradient(160deg, var(--bd-color, #2A9D8F) 0%, color-mix(in srgb, var(--bd-color, #2A9D8F) 60%, #081a17) 100%);
  z-index: 0;
}
.bd-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, transparent 65%);
  z-index: 0;
}
.bd-hero > * { position: relative; z-index: 1; }

.bd-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  background: rgba(255,255,255,.18);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  backdrop-filter: blur(6px);
  margin-bottom: 14px;
}
.bd-hero-icon-float {
  position: absolute;
  right: 22px;
  top: 76px;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.2);
}
.bd-hero h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  max-width: calc(100% - 70px);
}
.bd-hero-desc {
  font-size: 14px;
  line-height: 1.55;
  opacity: .9;
  max-width: 94%;
}

/* Strip de stats encima del hero */
.bd-stats {
  margin: -22px 16px 0;
  background: white;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 14px 4px;
  box-shadow: 0 14px 36px rgba(26,35,50,.1);
  position: relative;
  z-index: 5;
}
.bd-stat {
  text-align: center;
  padding: 4px 6px;
  border-right: 1px solid var(--color-border);
}
.bd-stat:last-child { border-right: none; }
.bd-stat .val {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--color-text);
}
.bd-stat .val.color { color: var(--bd-color, var(--color-primary)); }
.bd-stat .lab {
  font-size: 10.5px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  margin-top: 3px;
}

/* Bloque de contenido */
.bd-content { padding: 26px 20px 4px; }

.bd-section { margin-top: 26px; }
.bd-section:first-child { margin-top: 0; }
.bd-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bd-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* Timeline vertical de pasos */
.bd-timeline {
  position: relative;
  padding-left: 6px;
}
.bd-step {
  position: relative;
  padding-left: 38px;
  padding-bottom: 18px;
}
.bd-step:last-child { padding-bottom: 0; }
.bd-step::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 26px;
  bottom: -8px;
  width: 2px;
  background: linear-gradient(180deg, var(--bd-color, #2A9D8F) 0%, color-mix(in srgb, var(--bd-color, #2A9D8F) 20%, transparent) 100%);
  opacity: .25;
}
.bd-step:last-child::before { display: none; }
.bd-step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bd-color, #2A9D8F);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--bd-color, #2A9D8F) 35%, transparent);
}
.bd-step-text {
  font-size: 14px;
  line-height: 1.5;
  padding-top: 4px;
  color: var(--color-text);
}

/* Lista de inclusiones */
.bd-includes {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 4px 14px;
}
.bd-include {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.bd-include:last-child { border-bottom: none; }
.bd-include-ic {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bd-color, #2A9D8F) 18%, white);
  color: var(--bd-color, #2A9D8F);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bd-include-text {
  font-size: 13.5px;
  line-height: 1.4;
  flex: 1;
}

/* Trust strip */
.bd-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #FBF6EC 0%, #FEF7EC 100%);
  border-radius: 14px;
  border: 1px solid #F0E2BD;
}
.bd-trust-avatars {
  display: flex;
  flex-shrink: 0;
}
.bd-trust-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-left: -8px;
}
.bd-trust-avatar:first-child { margin-left: 0; }
.bd-trust-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: #6B5320;
}
.bd-trust-text strong { color: #44380E; font-weight: 700; }

/* WhatsApp preview */
.bd-whatsapp {
  background: #ECFDF5;
  border: 1px solid #BBE9C7;
  border-radius: 14px;
  padding: 14px;
  position: relative;
}
.bd-whatsapp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.bd-whatsapp-head .ic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.bd-whatsapp-head .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}
.bd-whatsapp-head .name small {
  display: block;
  font-size: 10.5px;
  color: var(--color-text-muted);
  font-weight: 500;
}
.bd-whatsapp-bubble {
  background: white;
  border-radius: 4px 14px 14px 14px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

/* Eligibility tag row */
.bd-eligible {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bd-elig-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: #F2F4F7;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.bd-elig-chip.active {
  background: var(--color-primary-pale);
  color: var(--color-primary);
}
.bd-elig-chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* CTA sticky inferior */
.bd-cta-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px 18px;
  background: linear-gradient(180deg, rgba(248,249,250,0) 0%, rgba(248,249,250,.95) 30%, rgba(248,249,250,1) 100%);
  z-index: 20;
  backdrop-filter: blur(6px);
}
.bd-cta-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.bd-cta-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 14px;
  background: var(--bd-color, var(--color-primary));
  color: white;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  box-shadow:
    0 10px 24px color-mix(in srgb, var(--bd-color, var(--color-primary)) 40%, transparent),
    inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform 150ms ease;
}
.bd-cta-primary:hover { transform: translateY(-1px); }
.bd-cta-primary:active { transform: translateY(0); }
.bd-cta-chat {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  flex-shrink: 0;
  transition: var(--transition);
}
.bd-cta-chat:hover { border-color: var(--bd-color, var(--color-primary)); color: var(--bd-color, var(--color-primary)); }

/* ── RESPONSIVE (fallback) ───────────────────────── */
@media (max-width: 440px) {
  .chrome-controls, .archetype-selector, .flows-panel { display: none; }
}

/* ══════════════════════════════════════════════════
   POLISH · iteración mayo 2026
   ══════════════════════════════════════════════════ */

/* ── Bottom nav: indicador activo más limpio ── */
.nav-item .nav-item-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-item.active svg { stroke-width: 2; }
.nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 0 0 3px 3px;
}

/* Badge pendiente sobre el icono del chat */
.nav-badge {
  position: absolute;
  top: -3px;
  right: -6px;
  width: 8px;
  height: 8px;
  background: #E76F51;
  border: 2px solid var(--color-surface);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(231,111,81,.4);
  animation: pulseBadge 1.8s infinite;
}
@keyframes pulseBadge {
  0%   { box-shadow: 0 0 0 0 rgba(231,111,81,.45); }
  70%  { box-shadow: 0 0 0 8px rgba(231,111,81,0); }
  100% { box-shadow: 0 0 0 0 rgba(231,111,81,0); }
}

/* ── Info-card (Lo que está pasando, en P2) ── */
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.info-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15,107,94,.08);
  border-color: rgba(15,107,94,.16);
}
.info-card-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}
.info-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  background: none;
  border: none;
  color: var(--color-primary);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 150ms ease;
}
.info-cta:hover { color: var(--color-primary-light); }
.info-cta:hover svg { transform: translateX(3px); }
.info-cta svg { transition: transform 180ms ease; }
.info-cta:disabled {
  color: var(--color-success);
  cursor: default;
  opacity: .85;
}

/* ── Chat polish ── */
.chat-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.chat-avatar-wrap .avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
}
.chat-avatar-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: #4ADE80;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
}
.chat-sub {
  font-size: 12px;
  opacity: .85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-action {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  border: none;
  color: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms ease;
}
.chat-action:hover { background: rgba(255,255,255,.22); }
.chat-day-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 2px;
}
.chat-day-sep span {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(255,255,255,.7);
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: lowercase;
  letter-spacing: .02em;
}

/* ── P5 desplegable de "qué incluye Platino" ── */
.nivel-incluye {
  margin-top: 16px;
  border-radius: 12px;
  background: var(--color-primary-pale);
  overflow: hidden;
}
.nivel-incluye > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-primary);
  transition: background 150ms ease;
}
.nivel-incluye > summary::-webkit-details-marker { display: none; }
.nivel-incluye > summary > span { display: inline-flex; align-items: center; gap: 8px; }
.nivel-incluye > summary > svg { transition: transform 220ms ease; }
.nivel-incluye[open] > summary > svg { transform: rotate(180deg); }
.nivel-incluye > summary:hover { background: rgba(15,107,94,.12); }
.nivel-incluye-body {
  padding: 4px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Referidos (P10) ── */
.referral-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
}
.referral-code .btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 100px;
  font-family: var(--font-family);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease;
  white-space: nowrap;
}
.referral-code .btn-copy:hover { background: var(--color-primary-light); }
.referido-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.referidos-empty {
  text-align: center;
  padding: 24px 12px;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.referidos-empty .emoji {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.referidos-empty p { font-size: 13.5px; line-height: 1.55; }
.invite-channel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  transition: var(--transition);
  text-align: left;
}
.invite-channel:hover {
  border-color: var(--color-primary-light);
  background: var(--color-primary-pale);
}
.invite-channel .ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Inputs y editor inline ── */
.text-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-surface);
  outline: none;
  transition: border-color 150ms ease, background 150ms ease;
}
.text-input:focus { border-color: var(--color-primary-light); background: white; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.chip-input {
  padding: 4px 10px;
  border: 1.5px dashed var(--color-primary-light);
  border-radius: 100px;
  background: white;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  outline: none;
  min-width: 140px;
}

/* ── Modal handle más visible ── */
.modal-handle {
  width: 42px;
  height: 4px;
  background: rgba(0,0,0,.18);
  border-radius: 4px;
  margin: 0 auto 18px;
}

/* ── P0 perfil seleccionado · subtle ─── */
.btn-perfil-entrada.selected {
  box-shadow: 0 6px 20px rgba(15,107,94,.12);
}
.btn-perfil-entrada:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}

/* ── Toast variantes ── */
#toast.toast-success {
  background: rgba(15,107,94,.95);
}
#toast.toast-info {
  background: rgba(26,35,50,.95);
}

/* ── Cursor demo: mix-blend para que no oculte contenido ── */
#presentation-cursor {
  mix-blend-mode: multiply;
}
body.presentation-mode #presentation-cursor {
  mix-blend-mode: difference;
}

/* ══════════════════════════════════════════════════
   SECCIÓN "YO" · perfil unificado
   ══════════════════════════════════════════════════ */

.yo-screen {
  position: relative;
  margin-bottom: 16px;
}

/* Cover header con gradiente del perfil */
.yo-cover {
  position: relative;
  height: 168px;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
}
.yo-cover-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 320px 200px at 80% -20%, rgba(255,255,255,.22) 0%, transparent 60%),
    radial-gradient(ellipse 220px 160px at 10% 110%, rgba(0,0,0,.18) 0%, transparent 70%);
  pointer-events: none;
}
.yo-cover-btn {
  position: absolute;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: white;
  border: 1px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 180ms ease;
  z-index: 2;
}
.yo-cover-btn:hover { background: rgba(255,255,255,.3); }
.yo-cover-btn { left: 16px; }
.yo-cover-btn-right { left: auto; right: 16px; }

/* Tarjeta de perfil (foto + datos + stats) que solapa el cover */
.yo-profile {
  position: relative;
  margin: -64px 16px 0;
  background: var(--color-surface);
  border-radius: 22px;
  padding: 16px 18px 18px;
  box-shadow: 0 12px 32px rgba(15,107,94,.08), 0 2px 8px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yo-avatar {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 84px;
}
.yo-avatar-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 24px;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.yo-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yo-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--ring, var(--color-primary));
  opacity: .35;
  z-index: 1;
}

.yo-identity {
  text-align: center;
  margin-top: 38px;
}
.yo-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}
.yo-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.yo-chips {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.yo-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.yo-chip-soft {
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Stats row */
.yo-stats {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.yo-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.yo-stat-val {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--color-text);
  line-height: 1.15;
}
.yo-stat-suf {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: 1px;
}
.yo-stat-lab {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 4px;
  font-weight: 500;
}
.yo-stat-sep {
  width: 1px;
  background: var(--color-border);
  margin: 0 4px;
}

/* Tabs */
.yo-tabs {
  display: flex;
  gap: 6px;
  padding: 14px 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.yo-tabs::-webkit-scrollbar { display: none; }
.yo-tab {
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-family);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}
.yo-tab:hover { color: var(--color-text); border-color: var(--color-text-muted); }
.yo-tab.active {
  background: var(--color-text);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* Body común */
.yo-body { padding: 8px 16px 20px; }
.yo-lead {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 22px;
  padding: 0 4px;
}
.yo-section-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--color-text-muted);
  margin: 6px 0 10px;
}
.yo-section-title svg { color: var(--color-text-muted); opacity: .7; }
.yo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
}
.yo-card-tight { padding: 0; }
.yo-card-tight .switch-wrap { padding: 12px 14px; }
.yo-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.yo-row-last { border-bottom: none; }
.yo-row-ic {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 1px;
}
.yo-row-text { font-size: 14px; line-height: 1.45; }

/* Switch info layout */
.switch-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.switch-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Lead soft card */
.yo-soft-card {
  display: flex;
  gap: 12px;
  background: var(--color-primary-pale);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.yo-soft-ic {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.yo-soft-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text);
}

/* Progress card */
.yo-progress-card {
  padding: 16px;
}
.yo-progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.yo-progress-num {
  font-weight: 700;
  font-size: 15px;
}
.yo-progress-bar { height: 8px; margin-bottom: 16px; }
.yo-progress-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.yo-progress-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.yo-progress-step .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

/* Chips row */
.yo-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

/* Inferencias */
.yo-inferencias {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.yo-inferencia {
  padding: 14px;
}
.yo-inf-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.yo-inf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.yo-inf-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.yo-inf-actions button {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-family);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition);
}
.yo-inf-actions .btn-inf-ok {
  background: var(--color-primary-pale);
  color: var(--color-primary);
}
.yo-inf-actions .btn-inf-ok:hover { background: var(--color-primary); color: white; }
.yo-inf-actions .btn-inf-no {
  background: #FEF2F2;
  color: #B91C1C;
}
.yo-inf-actions .btn-inf-no:hover { background: #FEE2E2; }

/* Frecuencia */
.yo-freq {
  display: flex;
  align-items: center;
  gap: 14px;
}
.yo-freq-val {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  min-width: 32px;
  text-align: center;
}
.yo-freq-slider {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.yo-freq-slider input[type=range] { width: 100%; }
.yo-freq-marks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--color-text-muted);
  padding: 0 2px;
}

/* Historial */
.yo-hist-list {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: 18px;
  overflow: hidden;
}
.yo-hist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--color-border);
  transition: background 150ms ease;
}
.yo-hist-row:last-child { border-bottom: none; }
.yo-hist-row:hover { background: var(--color-bg); }
.yo-hist-ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.yo-hist-body { flex: 1; min-width: 0; }
.yo-hist-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}
.yo-hist-sub {
  font-size: 12.5px;
  color: var(--color-text-muted);
}
.yo-hist-value { text-align: right; }
.yo-hist-value .num { font-size: 15px; font-weight: 700; }
.yo-hist-value .lab { font-size: 11px; color: var(--color-text-muted); }

.yo-total-card {
  border-radius: 18px;
  padding: 22px;
  color: white;
  text-align: center;
  box-shadow: 0 10px 26px rgba(15,107,94,.18);
  position: relative;
  overflow: hidden;
}
.yo-total-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 280px 180px at 90% -20%, rgba(255,255,255,.25) 0%, transparent 60%);
  pointer-events: none;
}
.yo-total-eyebrow {
  font-size: 12px;
  opacity: .85;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}
.yo-total-num {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -.02em;
}
.yo-total-num span { font-size: 22px; opacity: .85; margin-left: 2px; }
.yo-total-foot { font-size: 13px; opacity: .85; }

/* ── ASESOR cards (P8) ── */
.advisor-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.advisor-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15,107,94,.08);
}
.advisor-card.is-personal {
  border: 1.5px solid var(--color-primary);
  padding-top: 28px;
}
.advisor-flag {
  position: absolute;
  top: 0;
  left: 16px;
  background: var(--color-primary);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0 0 10px 10px;
}
.advisor-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.advisor-photo {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary-pale);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--ring, var(--color-primary)), 0 4px 10px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.advisor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.advisor-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #4ADE80;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}
.advisor-meta { flex: 1; min-width: 0; }
.advisor-name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.advisor-role {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.advisor-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-muted);
}
.advisor-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
}
.advisor-status-dot.on {
  background: #4ADE80;
  box-shadow: 0 0 0 2px rgba(74,222,128,.25);
}
.advisor-quote {
  font-size: 13.5px;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.5;
  border-left: 3px solid var(--color-border);
  padding: 4px 0 4px 10px;
  margin-bottom: 14px;
}
.advisor-actions {
  display: flex;
  gap: 8px;
}
.advisor-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px;
  border-radius: 12px;
  border: none;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: white;
  transition: filter 150ms ease, transform 120ms ease;
}
.advisor-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.advisor-btn.wapp { background: #25D366; }

.yo-handoff-card {
  background: #FEF9EC;
  border: 1px solid #F4D575;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 8px;
}

.yo-handoff-success {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #E8F5F2;
  border: 1px solid #1A7A70;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
}
.yo-handoff-success .ic { color: #1A7A70; flex-shrink: 0; margin-top: 2px; }
.yo-handoff-success .title {
  font-size: 14px;
  font-weight: 600;
  color: #1A7A70;
  margin-bottom: 2px;
}
.yo-handoff-success .sub {
  font-size: 12px;
  color: #1A7A70;
  opacity: .85;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════
   BENEFICIOS · imagenes en hero y lista
   ══════════════════════════════════════════════════ */

/* Hero detalle con imagen — la base sigue siendo .bd-hero (gradient color),
   pero cuando hay imagen, ocultamos el ::before y mostramos la foto. */
.bd-hero-imaged::before { display: none; }

.bd-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.bd-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.bd-hero-inner {
  position: relative;
  z-index: 2;
}
.bd-hero-noimg {
  background: linear-gradient(135deg, var(--bd-color, var(--color-primary)), color-mix(in srgb, var(--bd-color, var(--color-primary)) 70%, #081a17));
}

/* Thumb en lista de beneficios */
.bl-card-thumb {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bl-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
.bl-card-thumb-ic {
  position: absolute;
  bottom: 4px;
  right: 4px;
  z-index: 2;
  background: rgba(255,255,255,.95);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.bl-card-thumb-ic svg { width: 14px; height: 14px; }

/* Featured card con imagen de fondo */
.bl-featured { isolation: isolate; }
.bl-featured .bf-bg {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0 !important;
  opacity: .55;
}
.bl-featured .bf-tint {
  position: absolute !important;
  inset: 0;
  z-index: 1 !important;
  opacity: .88;
  pointer-events: none;
}
/* Subir el contenido (rule de existing CSS pone z-index:1 a los hijos directos) */
.bl-featured > .bf-tag,
.bl-featured > .bf-cta,
.bl-featured > .bf-icon,
.bl-featured > div:not(.bf-tint):not(.bf-bg) {
  z-index: 2 !important;
}


/* ============================================================
   P2 · HOME — REDISEÑO 2026
   Hero personalizado + bento de valor + acciones rápidas
   ============================================================ */
.home-screen {
  padding-bottom: 90px;
  background: var(--color-bg);
  --hh-accent: var(--color-primary-light);
  --ht-accent: var(--color-primary-light);
}

/* ── Top bar contextual ───────────────────────────────────── */
.home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 0;
}
.home-topbar-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}
.home-topbar-loc svg { color: var(--color-primary); }
.home-topbar-loc strong {
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.005em;
}
.home-topbar-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.home-topbar-btn:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15,107,94,.08);
}
.home-topbar-btn .topbar-dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  background: #E76F51;
  border-radius: 50%;
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 0 rgba(231,111,81,.45);
  animation: pulseBadge 2s infinite;
}

/* ── Hero personal ────────────────────────────────────────── */
.home-hero {
  margin: 14px 16px 0;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(140% 80% at 110% 0%, color-mix(in srgb, var(--hh-accent) 55%, transparent) 0%, transparent 60%),
    linear-gradient(160deg, #0F6B5E 0%, #142A30 100%);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 24px 50px -16px rgba(15,107,94,.45),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.home-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(60% 40% at 10% 110%, rgba(255,255,255,.06) 0%, transparent 60%);
  pointer-events: none;
}
.home-hero::after {
  content: '';
  position: absolute;
  right: -70px; top: -50px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--hh-accent) 28%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.home-hero > * { position: relative; z-index: 1; }

.home-hero-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.home-hero-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: rgba(255,255,255,.1);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--hh-accent) 80%, white),
    0 0 0 5px rgba(255,255,255,.18),
    0 10px 24px rgba(0,0,0,.35);
}
.home-hero-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.home-hero-name {
  flex: 1;
  min-width: 0;
}
.home-hero-name h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 7px;
}
.home-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  color: rgba(255,255,255,.7);
}
.home-hero-meta .sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  flex-shrink: 0;
}
.chip-on-dark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 9px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  backdrop-filter: blur(6px);
}
.chip-on-dark.gold { background: rgba(201,169,97,.32); border-color: rgba(201,169,97,.5); }
.chip-on-dark.mir  { background: rgba(231,111,81,.32); border-color: rgba(231,111,81,.5); }

/* Tira de stats glass */
.home-hero-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.home-hero-stat { padding: 0 2px; }
.home-hero-stat + .home-hero-stat { border-left: 1px solid rgba(255,255,255,.1); padding-left: 12px; }
.home-hero-stat .num {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: white;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.home-hero-stat .num .cur {
  font-size: 11px;
  font-weight: 600;
  opacity: .65;
  margin-left: 1px;
}
.home-hero-stat .lab {
  font-size: 9.5px;
  color: rgba(255,255,255,.62);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  margin-top: 5px;
}
.home-hero-stat .num.accent { color: color-mix(in srgb, var(--hh-accent) 75%, white); }

/* ── Acciones rápidas (cuadrícula 4 col) ─────────────────── */
.home-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 16px 4px;
}
.home-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px 11px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  cursor: pointer;
  font-family: var(--font-family);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  position: relative;
}
.home-quick-btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--color-primary-light) 40%, var(--color-border));
  box-shadow: 0 8px 18px rgba(15,107,94,.1);
}
.home-quick-btn .qa-ic {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  transition: transform 220ms ease;
}
.home-quick-btn:hover .qa-ic { transform: scale(1.08) rotate(-3deg); }
.home-quick-btn .qa-lab {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
}
.home-quick-btn .qa-badge {
  position: absolute;
  top: 8px; right: 10px;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 100px;
  background: var(--color-mir);
  color: white;
  font-size: 9.5px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Tarjeta "Para ti hoy" rediseñada ────────────────────── */
.home-today {
  margin: 14px 16px 0;
  padding: 18px 18px 16px;
  background: var(--color-surface);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(26,35,50,.05);
  transition: box-shadow 200ms ease;
}
.home-today:hover { box-shadow: 0 12px 28px rgba(26,35,50,.09); }
.home-today::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ht-accent) 0%, color-mix(in srgb, var(--ht-accent) 25%, transparent) 100%);
}
.home-today::after {
  content: '';
  position: absolute;
  right: -50px; top: -50px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ht-accent) 10%, transparent) 0%, transparent 65%);
  pointer-events: none;
}
.home-today-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ht-accent);
  margin-bottom: 10px;
}
.home-today-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ht-accent);
  position: relative;
}
.home-today-eyebrow .dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--ht-accent);
  opacity: .35;
  animation: pingDot 1.8s ease infinite;
}
@keyframes pingDot {
  0%   { transform: scale(.6); opacity: .55; }
  80%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

.home-today-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--color-text);
}
.home-today-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.home-today-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  background: var(--ht-accent);
  color: white;
  border: none;
  border-radius: 14px;
  font-family: var(--font-family);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 10px 22px color-mix(in srgb, var(--ht-accent) 32%, transparent),
    inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform 150ms ease, box-shadow 200ms ease;
}
.home-today-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px color-mix(in srgb, var(--ht-accent) 38%, transparent),
    inset 0 1px 0 rgba(255,255,255,.22);
}
.home-today-cta:active { transform: translateY(0); }

.home-today .explain-trigger {
  margin-top: 12px;
  padding: 0;
  font-weight: 500;
  font-size: 12px;
}
.home-today .explain-content {
  background: color-mix(in srgb, var(--ht-accent) 8%, white);
  border-left-color: var(--ht-accent);
  color: var(--color-text);
  font-size: 12.5px;
}

/* ── Section header ──────────────────────────────────────── */
.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 26px 20px 12px;
}
.home-section-head h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.home-section-head h3 small {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0;
}
.home-section-head .seemore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-family);
  padding: 4px 0;
  transition: var(--transition);
}
.home-section-head .seemore:hover { color: var(--color-primary-light); }
.home-section-head .seemore:hover svg { transform: translateX(3px); }
.home-section-head .seemore svg { transition: transform 180ms ease; }

/* Override carrusel para que cuadre con el padding 16 */
.home-screen .carousel-wrap {
  padding: 4px 16px 8px;
  margin: 0 -16px;
}

/* ── Banner asesor mejorado ──────────────────────────────── */
.home-asesor {
  margin: 4px 16px 0;
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.18) 0%, transparent 60%),
    linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 30px -12px rgba(15,107,94,.4);
}
.home-asesor::after {
  content: '';
  position: absolute;
  right: -40px; bottom: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14) 0%, transparent 70%);
  pointer-events: none;
}
.home-asesor > * { position: relative; z-index: 1; }
.home-asesor-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.home-asesor-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: rgba(255,255,255,.18);
  box-shadow:
    0 0 0 2px rgba(255,255,255,.4),
    0 6px 16px rgba(0,0,0,.18);
}
.home-asesor-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-asesor-avatar .online {
  position: absolute;
  bottom: -1px; right: -1px;
  width: 13px; height: 13px;
  background: #4ADE80;
  border: 2.5px solid var(--color-primary);
  border-radius: 50%;
}
.home-asesor-info { flex: 1; min-width: 0; }
.home-asesor-info .name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.home-asesor-info .detail {
  font-size: 12px;
  opacity: .82;
  margin-top: 2px;
  line-height: 1.35;
}
.home-asesor-ctas {
  display: flex;
  gap: 8px;
}
.home-asesor-cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 10px;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 150ms ease, box-shadow 200ms ease;
}
.home-asesor-cta:hover { transform: translateY(-1px); }
.home-asesor-cta.primary {
  background: white;
  color: var(--color-primary);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.home-asesor-cta.primary:hover { box-shadow: 0 12px 22px rgba(0,0,0,.22); }
.home-asesor-cta.secondary {
  background: rgba(255,255,255,.18);
  color: white;
  border: 1px solid rgba(255,255,255,.36);
  backdrop-filter: blur(6px);
}
.home-asesor-cta.secondary:hover { background: rgba(255,255,255,.26); }

/* ── Feed "Lo que está pasando" ──────────────────────────── */
.home-feed {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-feed-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  position: relative;
  overflow: hidden;
}
.home-feed-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--feed-color, var(--color-primary));
  opacity: 0;
  transition: opacity 200ms ease;
}
.home-feed-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--feed-color, var(--color-primary)) 35%, var(--color-border));
  box-shadow: 0 10px 24px rgba(26,35,50,.08);
}
.home-feed-card:hover::before { opacity: 1; }
.home-feed-ic {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--feed-bg, var(--color-primary-pale));
  color: var(--feed-color, var(--color-primary));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.home-feed-text { flex: 1; min-width: 0; }
.home-feed-text p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 8px;
}
.home-feed-text p strong { font-weight: 700; color: var(--color-text); }
.home-feed-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  padding: 2px 0;
  transition: var(--transition);
}
.home-feed-cta:hover { color: var(--color-primary-light); }
.home-feed-cta:hover svg { transform: translateX(3px); }
.home-feed-cta svg { transition: transform 180ms ease; }
.home-feed-cta:disabled {
  color: var(--color-success);
  cursor: default;
  opacity: .85;
}

