/* ==========================================================================
   INTOCARE WEBPAGE DESIGN SYSTEM (CLEAN HEALTHTECH)
   Official CSS Variables, Tokens, Typography and Components
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES / TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Tipografías */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-kpi: 'Space Grotesk', -apple-system, monospace;

  /* Brand Colors */
  --primary-teal: #14B8A6;
  --primary-teal-hover: #0D9488;
  --primary-teal-light: #CCFBF1;
  --teal-accent: #38B2AC;
  --mint-highlight: #DCF6F0;
  --mint-border: #86D8DC;

  /* Colores Semánticos */
  --org-cobalt: #3B82F6;
  --client-orange: #F97316;
  --gradient-hero: linear-gradient(135deg, #01A985 0%, #0096D6 100%);
  --gradient-client: linear-gradient(135deg, #FB923C 0%, #EA580C 100%);

  /* Estados y Métodos de Pago */
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-warning: #F59E0B;
  --color-bizum: #00A896;
  --color-pos: #00B1D3;
  --color-transfer: #8B5CF6;

  /* Radios de Borde Oficiales */
  --radius-hero: 22px;
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-pill: 9999px;

  /* Transición Estándar */
  --transition-smooth: all 180ms ease-out;

  /* Modo Claro (Light Mode Tokens) */
  --canvas-bg: #EFF2F6;
  --surface-white: #FFFFFF;
  --card-bg: #F1F5F9;
  --card-bg-hover: #FFFFFF;
  --card-border: #D8E0EB;
  --card-border-subtle: #E8EEF5;
  --border-divider: #E2E8F0;

  --text-heading: #0F172A;
  --text-main: #334155;
  --text-muted: #475569;
  --text-subtle: #94A3B8;

  --shadow-soft: 0 4px 18px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 6px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 8px 30px rgba(20, 184, 166, 0.16);
  --glow-accent: rgba(20, 184, 166, 0.15);

  --badge-bg: rgba(20, 184, 166, 0.1);
  --badge-text: #0F766E;
  
  --header-bg: rgba(239, 242, 246, 0.85);
}

/* Modo Oscuro (Dark Mode Tokens) */
[data-theme="dark"] {
  --canvas-bg: #070A11;
  --surface-white: #0E1524;
  --card-bg: #182337;
  --card-bg-hover: #22304A;
  --card-border: #283956;
  --card-border-subtle: #1E2B42;
  --border-divider: #1E2B42;

  --text-heading: #F8FAFC;
  --text-main: #E2E8F0;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;

  /* Teal Neón para Dark Mode */
  --primary-teal: #2DD4BF;
  --primary-teal-hover: #14B8A6;
  --primary-teal-light: rgba(45, 212, 191, 0.15);
  
  --shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 12px 36px rgba(45, 212, 191, 0.22);
  --glow-accent: rgba(45, 212, 191, 0.25);

  --badge-bg: rgba(45, 212, 191, 0.15);
  --badge-text: #2DD4BF;

  --header-bg: rgba(7, 10, 17, 0.85);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-sans);
  background-color: var(--canvas-bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 200ms ease, color 200ms ease;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Tipografía de Encabezados */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  font-weight: 700;
}

p {
  color: var(--text-main);
  font-size: 1rem;
}

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

/* Cifras Tabulares KPI (Space Grotesk) */
.kpi-number {
  font-family: var(--font-kpi);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-heading);
  display: inline-flex;
  align-items: baseline;
}

.kpi-symbol {
  color: var(--primary-teal);
  font-size: 0.75em;
  font-weight: 700;
  margin-left: 2px;
}

/* Utilidades Comunes */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.w-100 { width: 100%; }

.section {
  padding: 6rem 0;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. BOTONES Y COMPONENTES UI
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary,
.btn-teal-solid {
  background-color: var(--primary-teal);
  color: #070A11;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(20, 184, 166, 0.25);
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-teal-solid {
  background-color: var(--primary-teal);
  color: #070A11;
  box-shadow: 0 2px 14px rgba(45, 212, 191, 0.3);
}

.btn-primary:hover,
.btn-teal-solid:hover {
  background-color: var(--primary-teal-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.35);
}

.btn-outline {
  background-color: var(--surface-white);
  color: var(--text-heading);
  border: 1px solid var(--card-border);
}

.btn-outline:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-main);
}

.btn-ghost:hover {
  color: var(--primary-teal);
  background-color: var(--badge-bg);
}

.btn-sm {
  padding: 0.42rem 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
}

.btn-header-outline {
  background-color: transparent;
  color: var(--primary-teal);
  border: 1.5px solid var(--primary-teal);
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
}

.btn-header-outline:hover {
  background-color: var(--primary-teal);
  color: #FFFFFF;
  border-color: var(--primary-teal);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.3);
}

[data-theme="dark"] .btn-header-outline {
  color: var(--primary-teal);
  border-color: var(--primary-teal);
  background-color: rgba(20, 184, 166, 0.05);
}

[data-theme="dark"] .btn-header-outline:hover {
  background-color: var(--primary-teal);
  color: #070A11;
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.35);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

/* Píldoras y Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-teal {
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #2563EB;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #9333EA;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.badge-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #4F46E5;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.badge-pink {
  background: rgba(236, 72, 153, 0.12);
  color: #DB2777;
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-slate {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.badge-coral {
  background: rgba(249, 115, 22, 0.12);
  color: var(--client-orange);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

/* Badges en Modo Oscuro */
[data-theme="dark"] .badge-amber {
  background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] .badge-blue {
  background: rgba(59, 130, 246, 0.18);
  color: #60A5FA;
  border-color: rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .badge-purple {
  background: rgba(168, 85, 247, 0.18);
  color: #C084FC;
  border-color: rgba(192, 132, 252, 0.3);
}

[data-theme="dark"] .badge-indigo {
  background: rgba(99, 102, 241, 0.18);
  color: #818CF8;
  border-color: rgba(129, 140, 248, 0.3);
}

[data-theme="dark"] .badge-pink {
  background: rgba(236, 72, 153, 0.18);
  color: #F472B6;
  border-color: rgba(244, 114, 182, 0.3);
}

[data-theme="dark"] .badge-emerald {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.3);
}

[data-theme="dark"] .badge-slate {
  background: rgba(100, 116, 139, 0.18);
  color: #94A3B8;
  border-color: rgba(148, 163, 184, 0.3);
}

/* --------------------------------------------------------------------------
   4. HEADER / NAVBAR
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 180ms ease-out;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.logo:hover {
  transform: scale(1.02);
}

.site-logo {
  height: 38px;
  width: auto;
  max-width: 175px;
  display: block;
  transition: opacity 200ms ease;
}

.site-logo-light { display: block; }
.site-logo-dark { display: none; }

[data-theme="dark"] .site-logo-light { display: none; }
[data-theme="dark"] .site-logo-dark { display: block; }

.main-nav {
  display: none;
  align-items: center;
  gap: 1.05rem;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--primary-teal);
  transition: width 180ms ease;
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-heading);
}

.nav-link.active {
  color: var(--primary-teal);
  font-weight: 700;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-pill-pulse {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(20, 184, 166, 0.25);
  display: inline-block;
  animation: pulseBadge 2.5s infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 250ms ease;
  pointer-events: none;
}

.btn-glow:hover::after {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--card-border);
  flex-shrink: 0;
}

.nav-switch-btn {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.75rem;
  transition: var(--transition-smooth);
}

.nav-switch-btn:hover {
  color: var(--primary-teal);
  background-color: var(--badge-bg);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-heading);
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
  transform: scale(1.04);
}

.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }

[data-theme="dark"] .theme-toggle-btn .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle-btn .moon-icon { display: none; }

/* Botón Hamburguesa */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-heading);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  background-color: var(--surface-white);
  border-bottom: 1px solid var(--card-border);
  padding: 1.5rem 0;
  box-shadow: var(--shadow-card);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  padding: 0.5rem 0;
}

.mobile-nav-divider {
  height: 1px;
  background-color: var(--border-divider);
  margin: 0.5rem 0;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   5. HERO SECTION & MOCKUP DEL DASHBOARD
   -------------------------------------------------------------------------- */
.hero {
  padding: 3.25rem 0 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, rgba(20, 184, 166, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero-glow-1 {
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18) 0%, rgba(45, 212, 191, 0) 70%);
}

.hero-glow-2 {
  position: absolute;
  top: 15%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  margin-bottom: 1.5rem;
}

.verifactu-pill-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(20, 184, 166, 0.05);
  border: 1px solid rgba(20, 184, 166, 0.22);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  box-shadow: 0 2px 10px rgba(20, 184, 166, 0.06);
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 100%;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.verifactu-pill-banner:hover {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.16);
}

.verifactu-chevron {
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.verifactu-pill-banner:hover .verifactu-chevron {
  opacity: 1;
  color: var(--primary-teal);
  transform: translateX(3px);
}

.trust-strip-clickable {
  transition: color 0.2s ease, transform 0.2s ease;
}

.trust-strip-clickable:hover {
  color: var(--primary-teal);
  transform: translateY(-1px);
}

/* Modal Veri*factu Estilizado */
.verifactu-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: verifactuFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.verifactu-modal-backdrop.active,
#verifactuModalBackdrop.active {
  display: flex !important;
}

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

.verifactu-modal-card {
  background: #FFFFFF !important;
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--primary-teal) !important;
  border-radius: 24px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 100000;
  opacity: 1 !important;
  animation: verifactuZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 184, 166, 0.4) transparent;
}

[data-theme="dark"] .verifactu-modal-card {
  background: #0E1524 !important;
  border-color: #283956 !important;
  border-top-color: var(--primary-teal) !important;
}

[data-theme="light"] .verifactu-modal-card {
  background: #FFFFFF !important;
  border-color: #D8E0EB !important;
  border-top-color: var(--primary-teal) !important;
}

.verifactu-modal-card::-webkit-scrollbar {
  width: 6px;
}

.verifactu-modal-card::-webkit-scrollbar-track {
  background: transparent;
}

.verifactu-modal-card::-webkit-scrollbar-thumb {
  background: rgba(20, 184, 166, 0.35);
  border-radius: 10px;
}

.verifactu-modal-card::-webkit-scrollbar-thumb:hover {
  background: var(--primary-teal);
}

@keyframes verifactuZoomIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.verifactu-modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem 0.5rem 1.75rem;
}

.verifactu-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20, 184, 166, 0.1);
  color: var(--primary-teal);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.verifactu-modal-header {
  padding: 0.5rem 1.75rem 1rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.verifactu-modal-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.verifactu-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.verifactu-modal-body {
  padding: 0 1.75rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Tarjeta Alerta Sanciones */
.verifactu-alert-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}

.alert-icon-wrap {
  background: rgba(245, 158, 11, 0.15);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alert-text-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #D97706;
  margin-bottom: 0.25rem;
}

[data-theme="dark"] .alert-text-content h4 {
  color: #FBBF24;
}

.alert-text-content p {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.45;
  margin: 0;
}

/* Grid de 4 Pilares */
.verifactu-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .verifactu-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pillar-card:hover {
  border-color: var(--primary-teal);
  transform: translateY(-2px);
}

.pillar-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.pillar-icon-badge.icon-teal {
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary-teal);
}

.pillar-icon-badge.icon-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #6366F1;
}

.pillar-icon-badge.icon-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
}

.pillar-icon-badge.icon-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
}

.pillar-card:hover .pillar-icon-badge {
  transform: scale(1.08);
}

.pillar-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.3rem;
}

.pillar-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Caja de Garantía Intocare */
.verifactu-guarantee-box {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(13, 148, 136, 0.03) 100%);
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
}

.guarantee-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.guarantee-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-teal);
}

.verifactu-guarantee-box p {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.5;
  margin: 0;
}

/* Modal Footer */
.verifactu-modal-footer {
  padding: 1rem 1.75rem 1.5rem 1.75rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--card-bg);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}

@media (max-width: 576px) {
  .verifactu-modal-footer {
    flex-direction: column;
    width: 100%;
  }

  .verifactu-modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.22;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
  }
}

.hero h1 span.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.85rem;
  line-height: 1.6;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 640px) {
  .hero-trust-row {
    gap: 0.65rem 1.1rem;
    font-size: 0.8rem;
    margin-bottom: 2rem;
  }
}

/* Live Dashboard Mockup */
.hero-mockup-wrap {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  z-index: 2;
}

.hero-mockup {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
}

.hero-mockup:hover {
  border-color: var(--primary-teal);
  box-shadow: var(--shadow-hover);
}

.mockup-header-bar {
  background: var(--card-bg);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.mockup-left-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.mockup-right-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mockup-brand-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-heading);
}

.mockup-app-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  max-width: 100%;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.mockup-nav-tab {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.mockup-nav-tab.active {
  background: var(--surface-white);
  color: var(--primary-teal);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mockup-window-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.window-dot.red { background-color: #EF4444; }
.window-dot.yellow { background-color: #F59E0B; }
.window-dot.green { background-color: #10B981; }

.mockup-hub-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mockup-hub-title span.active-center {
  color: var(--primary-teal);
  background: var(--badge-bg);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.mockup-user-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-heading);
  background: var(--surface-white);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
}

.user-avatar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-success);
}

.mockup-body {
  padding: 0;
  display: flex;
  background: var(--surface-white);
  min-height: 480px;
}

.mockup-saas-sidebar {
  width: 215px;
  background: var(--card-bg);
  border-right: 1px solid var(--card-border);
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.saas-sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--card-border-subtle);
  min-width: 0;
}

.saas-sidebar-header-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.saas-sidebar-header-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saas-sidebar-header-subtitle {
  font-size: 0.65rem;
  color: var(--primary-teal);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.saas-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.saas-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.saas-menu-item.active {
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary-teal);
  border: 1px solid rgba(20, 184, 166, 0.25);
  font-weight: 700;
}

.saas-menu-item-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.saas-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-teal);
  box-shadow: 0 0 6px var(--primary-teal);
}

.saas-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--card-border-subtle);
}

.saas-btn-hub {
  background: rgba(20, 184, 166, 0.1);
  color: var(--primary-teal);
  border: 1px solid rgba(20, 184, 166, 0.3);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.mockup-main-pane {
  flex: 1;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-x: hidden;
}

/* Time tracking banner preview */
.time-tracking-banner-preview {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.time-timer-display {
  font-family: var(--font-kpi);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.btn-stop-shift {
  background: #EF4444;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Responsividad del layout interno del mockup */
.mockup-saas-sidebar.compact-sidebar {
  width: 190px;
  padding: 0.75rem 0.6rem;
}

.mockup-saas-sidebar.compact-sidebar .saas-sidebar-header {
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  gap: 0.45rem;
}

.mockup-saas-sidebar.compact-sidebar .saas-sidebar-header-title {
  font-size: 0.72rem;
  letter-spacing: -0.01em;
}

.mockup-saas-sidebar.compact-sidebar .saas-sidebar-header-subtitle {
  font-size: 0.59rem;
}

.mockup-saas-sidebar.compact-sidebar .saas-menu-item {
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  border-radius: 7px;
}

.mockup-saas-sidebar.compact-sidebar .saas-menu-item-left {
  gap: 0.45rem;
}

.mockup-saas-sidebar.compact-sidebar .saas-menu-item-left svg {
  width: 13px;
  height: 13px;
}

.mockup-saas-sidebar.compact-sidebar .saas-btn-hub {
  padding: 0.3rem 0.5rem;
  font-size: 0.68rem;
}

@media (max-width: 1240px) {
  #ficha-sesion .mockup-saas-sidebar {
    width: 48px !important;
    padding: 0.75rem 0.3rem !important;
  }
  #ficha-sesion .mockup-saas-sidebar .saas-sidebar-header-info,
  #ficha-sesion .mockup-saas-sidebar .saas-sidebar-header > div,
  #ficha-sesion .mockup-saas-sidebar .saas-menu-item span,
  #ficha-sesion .mockup-saas-sidebar .saas-active-dot,
  #ficha-sesion .mockup-saas-sidebar .saas-sidebar-footer span {
    display: none !important;
  }
  #ficha-sesion .mockup-saas-sidebar .saas-sidebar-header,
  #ficha-sesion .mockup-saas-sidebar .saas-menu-item,
  #ficha-sesion .mockup-saas-sidebar .saas-btn-hub {
    justify-content: center !important;
    padding: 0.35rem 0 !important;
  }
  #ficha-sesion .mockup-saas-sidebar .saas-menu-item-left {
    justify-content: center !important;
    gap: 0 !important;
  }
}

@media (max-width: 991px) {
  .ficha-sesion-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .mockup-session-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 860px) {
  .mockup-saas-sidebar {
    display: none;
  }
}

.mockup-dashboard-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border-subtle);
}

.mockup-dash-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-heading);
}

.mockup-dash-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Mockup KPI Cards Row (4 cards on 1 line) */
.mockup-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.kpi-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: var(--transition-smooth);
}

.kpi-card:hover {
  background: var(--card-bg-hover);
  border-color: var(--primary-teal);
}

.kpi-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
}

.kpi-value {
  font-size: 1.45rem;
}

.kpi-trend {
  font-size: 0.68rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.kpi-trend.up { color: var(--color-success); }

/* Mockup Split View (Agenda + Body Map Preview) */
.mockup-split-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
}

.mockup-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
}

.panel-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agenda-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.agenda-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--surface-white);
  border: 1px solid var(--card-border-subtle);
  border-radius: 10px;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.agenda-item:hover {
  border-color: var(--primary-teal);
}

.agenda-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agenda-time {
  font-family: var(--font-kpi);
  font-weight: 700;
  color: var(--primary-teal);
  font-size: 0.85rem;
}

.agenda-patient {
  font-weight: 600;
  color: var(--text-heading);
}

.agenda-service {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Mini Body map card preview */
.mini-bodymap-preview {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.5rem 0;
}

.mini-silhouette {
  height: 140px;
  opacity: 0.85;
}

.mini-notes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.note-pill {
  background: var(--surface-white);
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary-teal);
  box-shadow: var(--shadow-soft);
}



/* --------------------------------------------------------------------------
   6. BARRA DE ESPECIALIDADES MÉDICAS
   -------------------------------------------------------------------------- */
.specialties-bar {
  padding: 2.5rem 0;
  background: var(--surface-white);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.specialties-title {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.specialties-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  max-width: 1080px;
  margin: 0 auto;
}

.specialty-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.specialty-item:hover, .specialty-item.active {
  background: var(--surface-white);
  border-color: var(--primary-teal);
  color: var(--primary-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.12);
}

.specialty-icon {
  width: 17px;
  height: 17px;
  color: var(--primary-teal);
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.specialty-item:hover .specialty-icon {
  transform: scale(1.1);
}

.specialty-item.teal .specialty-icon { color: var(--primary-teal); }
.specialty-item.amber .specialty-icon { color: #F59E0B; }
.specialty-item.blue .specialty-icon { color: #3B82F6; }
.specialty-item.purple .specialty-icon { color: #A855F7; }
.specialty-item.indigo .specialty-icon { color: #6366F1; }
.specialty-item.pink .specialty-icon { color: #EC4899; }
.specialty-item.emerald .specialty-icon { color: #10B981; }
.specialty-item.slate .specialty-icon { color: #64748B; }

.specialty-item.teal:hover, .specialty-item.teal.active { border-color: var(--primary-teal); color: var(--primary-teal); }
.specialty-item.amber:hover, .specialty-item.amber.active { border-color: #F59E0B; color: #D97706; }
.specialty-item.blue:hover, .specialty-item.blue.active { border-color: #3B82F6; color: #2563EB; }
.specialty-item.purple:hover, .specialty-item.purple.active { border-color: #A855F7; color: #9333EA; }
.specialty-item.indigo:hover, .specialty-item.indigo.active { border-color: #6366F1; color: #4F46E5; }
.specialty-item.pink:hover, .specialty-item.pink.active { border-color: #EC4899; color: #DB2777; }
.specialty-item.emerald:hover, .specialty-item.emerald.active { border-color: #10B981; color: #059669; }
.specialty-item.slate:hover, .specialty-item.slate.active { border-color: #64748B; color: #475569; }

[data-theme="dark"] .specialty-item.amber:hover, [data-theme="dark"] .specialty-item.amber.active { color: #FBBF24; }
[data-theme="dark"] .specialty-item.blue:hover, [data-theme="dark"] .specialty-item.blue.active { color: #60A5FA; }
[data-theme="dark"] .specialty-item.purple:hover, [data-theme="dark"] .specialty-item.purple.active { color: #C084FC; }
[data-theme="dark"] .specialty-item.indigo:hover, [data-theme="dark"] .specialty-item.indigo.active { color: #818CF8; }
[data-theme="dark"] .specialty-item.pink:hover, [data-theme="dark"] .specialty-item.pink.active { color: #F472B6; }
[data-theme="dark"] .specialty-item.emerald:hover, [data-theme="dark"] .specialty-item.emerald.active { color: #34D399; }
[data-theme="dark"] .specialty-item.slate:hover, [data-theme="dark"] .specialty-item.slate.active { color: #94A3B8; }

@media (max-width: 768px) {
  .specialties-bar {
    padding: 1.25rem 0;
  }
  .specialties-title {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0 1rem;
  }
  .specialties-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0.25rem 1rem 0.65rem;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .specialties-grid::-webkit-scrollbar {
    display: none;
  }
  .specialty-item {
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    gap: 0.45rem;
  }
  .specialty-icon {
    width: 15px;
    height: 15px;
  }
}

.specialty-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.specialty-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
}

.specialty-chip svg {
  color: var(--primary-teal);
  flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   7. SECCIÓN INTERACTIVA: MAPA ANATÓMICO CORPORAL (PILAR #1)
   -------------------------------------------------------------------------- */
.bodymap-section {
  background-color: var(--canvas-bg);
}

.bodymap-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.bodymap-interactive-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-hero);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.bodymap-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--card-border-subtle);
}

.view-toggle {
  display: flex;
  background: var(--card-bg);
  padding: 4px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--card-border);
}

.view-toggle-btn {
  border: none;
  background: transparent;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.view-toggle-btn.active {
  background: var(--surface-white);
  color: var(--primary-teal);
  box-shadow: var(--shadow-soft);
}

.bodymap-canvas-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.05) 0%, rgba(0, 0, 0, 0) 65%);
}

.silhouette-svg {
  width: 220px;
  height: 420px;
  transition: opacity 250ms ease;
}

.silhouette-svg path {
  fill: var(--card-border);
  transition: fill 200ms ease;
}

[data-theme="dark"] .silhouette-svg path {
  fill: #1E2B42;
}

/* Pain Points Markers */
.pain-point {
  position: absolute;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
}

.pain-point-inner {
  width: 100%;
  height: 100%;
  background: #EF4444;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
  position: relative;
  transition: var(--transition-smooth);
}

.pain-point-ping {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #EF4444;
  animation: pingAnim 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pain-point.active .pain-point-inner {
  transform: scale(1.3);
  background: var(--primary-teal);
  border-color: #FFFFFF;
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.8);
}

.pain-point.active .pain-point-ping {
  border-color: var(--primary-teal);
}

@keyframes pingAnim {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Bodymap Clinical Detail Card */
.bodymap-detail-card {
  margin-top: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  transition: var(--transition-smooth);
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.detail-zone-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.eva-scale {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #EF4444;
}

.eva-bar-wrap {
  width: 70px;
  height: 6px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.eva-bar-fill {
  height: 100%;
  background: #EF4444;
  border-radius: 3px;
  transition: width 300ms ease;
}

.detail-notes {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* Contenido explicativo derecho */
.bodymap-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--badge-bg);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.benefit-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.benefit-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SIMULADOR SAAS REAL: NUEVA SESIÓN CLÍNICA & MAPA ANATÓMICO 2D
   ========================================================================== */
.bodymap-saas-window {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-card), 0 20px 50px -15px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}

.bodymap-window-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  padding: 0.9rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.saas-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.saas-close-btn:hover {
  background: var(--badge-bg);
  color: var(--primary-teal);
  border-color: var(--primary-teal);
}

.bodymap-window-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--canvas-bg);
}

@media (max-width: 1024px) {
  .bodymap-window-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.25rem;
  }
}

.saas-panel-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.saas-panel-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.saas-tools-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.saas-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.saas-mode-btn:hover {
  color: var(--text-heading);
  border-color: var(--primary-teal);
}

.saas-mode-btn.active {
  background: var(--primary-teal);
  color: #070A11;
  border-color: var(--primary-teal);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
}

.saas-tool-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.saas-tool-icon-btn:hover {
  background: var(--surface-white);
  color: var(--primary-teal);
  border-color: var(--primary-teal);
}

.saas-select-all-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.saas-select-all-btn:hover {
  background: rgba(20, 184, 166, 0.08);
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

.saas-select-all-btn.active {
  background: var(--primary-teal);
  color: #070A11;
  border-color: var(--primary-teal);
  font-weight: 700;
}

/* Canvas Anatómico Dual */
.saas-canvas-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem 0.75rem;
  min-height: 480px;
  align-items: center;
}

@media (max-width: 580px) {
  .saas-canvas-dual {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.saas-silhouette-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

.saas-silhouette-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}

.saas-svg-container {
  position: relative;
  width: 100%;
  max-width: 230px;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.saas-svg-container svg {
  width: 100%;
  height: 100%;
  display: block;
}

.silhouette-loader {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* ==========================================================================
   REGLAS SVG INTERACTIVAS SEGÚN LA GUÍA TÉCNICA DE INTOCARE
   ========================================================================== */
/* 1. Habilitar la zona de impacto invisible para el cursor */
.saas-svg-container path[id$="_hit_area"],
.saas-svg-container path[id*="_hit_area"] {
  fill: transparent !important;
  pointer-events: all !important;
  cursor: pointer !important;
}

/* 2. Iluminación al pasar el cursor (Hover exclusivo para el grupo muscular individual, excluyendo contenedores raíz) */
.saas-svg-container g#muscles_zones_front > g:hover path:not([id*="_hit_area"]),
.saas-svg-container g#muscle_zones_back > g:hover path:not([id*="_hit_area"]),
.saas-svg-container g[id$="_front"]:not(#muscles_zones_front):not(#Front):hover path:not([id*="_hit_area"]),
.saas-svg-container g[id$="_back"]:not(#muscle_zones_back):not(#Back):hover path:not([id*="_hit_area"]) {
  fill: rgba(20, 184, 166, 0.35) !important;
  stroke: #0D9488 !important;
  stroke-width: 1.8px !important;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

/* 3. Iluminación de zona activa o seleccionada (clic en músculo concreto) */
.saas-svg-container g#muscles_zones_front > g.active path:not([id*="_hit_area"]),
.saas-svg-container g#muscle_zones_back > g.active path:not([id*="_hit_area"]),
.saas-svg-container g[id$="_front"]:not(#muscles_zones_front):not(#Front).active path:not([id*="_hit_area"]),
.saas-svg-container g[id$="_back"]:not(#muscle_zones_back):not(#Back).active path:not([id*="_hit_area"]) {
  fill: rgba(20, 184, 166, 0.55) !important;
  stroke: #0D9488 !important;
  stroke-width: 2px !important;
  filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.75)) !important;
}

/* 4. Modo Selección Global (Tratamiento General de Todo el Cuerpo) */
.saas-canvas-dual.all-selected .saas-svg-container g#muscles_zones_front > g path:not([id*="_hit_area"]),
.saas-canvas-dual.all-selected .saas-svg-container g#muscle_zones_back > g path:not([id*="_hit_area"]) {
  fill: rgba(20, 184, 166, 0.45) !important;
  stroke: #0D9488 !important;
}

/* Selector de Modo Zonas / Modo Puntos Fiel al SaaS (Captura 2) */
.saas-mode-pill-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 4px;
  flex: 1;
}

.saas-mode-pill-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.saas-mode-pill-btn:hover:not(.active) {
  color: var(--text-heading);
}

.saas-mode-pill-btn.active {
  background: var(--surface-white);
  color: var(--primary-teal);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.saas-tool-broom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.saas-tool-broom-btn:hover {
  background: var(--surface-white);
  color: #DC2626;
  border-color: rgba(220, 38, 38, 0.3);
}

.saas-general-treatment-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.saas-general-treatment-btn:hover,
.saas-general-treatment-btn.active {
  background: var(--surface-white);
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

/* Tarjetas y Controles del Formulario de Sesión Fieles al SaaS (Capturas 3, 4 y 5) */
.saas-session-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  transition: box-shadow 0.2s ease;
}

.saas-session-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.saas-session-card-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
}

.saas-session-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary-teal);
  flex-shrink: 0;
}

/* Campos con etiqueta flotante sobre el borde (Floating Label) */
.saas-floating-field {
  position: relative;
  margin-top: 0.85rem;
}

.saas-floating-field .saas-floating-legend {
  position: absolute;
  top: -8px;
  left: 12px;
  background: var(--surface-white);
  padding: 0 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  z-index: 2;
  border-radius: 3px;
}

.saas-floating-field .saas-floating-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-heading);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.saas-floating-field .saas-floating-box:hover {
  border-color: var(--primary-teal);
}

.saas-doc-buttons-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.saas-doc-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.saas-doc-btn-outline {
  border: 1px solid var(--primary-teal);
  background: var(--surface-white);
  color: var(--primary-teal);
}

.saas-doc-btn-outline:hover {
  background: rgba(20, 184, 166, 0.08);
}

.saas-doc-btn-solid {
  border: 1px solid var(--primary-teal);
  background: var(--primary-teal);
  color: #FFFFFF;
}

.saas-doc-btn-solid:hover {
  filter: brightness(1.08);
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
}

.saas-doc-empty-box {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1.75rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Theme toggle for Bodymap Mockup Preview Images */
.bodymap-preview-img.dark-only {
  display: none !important;
}
.bodymap-preview-img.light-only {
  display: block !important;
}

[data-theme="dark"] .bodymap-preview-img.dark-only {
  display: block !important;
}
[data-theme="dark"] .bodymap-preview-img.light-only {
  display: none !important;
}



.saas-btn-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
  color: #070A11;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
  transition: all 0.2s ease;
}

.saas-btn-continue:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.45);
}

/* Tooltip Anatómico Flotante */
.bodymap-floating-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 60;
  padding: 0.35rem 0.75rem;
  background: #0F172A;
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translate(-50%, -130%);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.bodymap-floating-tooltip.visible {
  opacity: 1;
}

/* Botón Mejorar con IA */
.btn-improve-ai {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.85rem;
  background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
  color: #070A11;
  border: none;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
  transition: all 0.2s ease;
}

.btn-improve-ai:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.45);
  filter: brightness(1.06);
}

.btn-improve-ai.generating {
  pointer-events: none;
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 100%);
  color: #FFFFFF;
  animation: aiGlowPulse 0.9s infinite alternate;
}

@keyframes aiGlowPulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.2) drop-shadow(0 0 10px rgba(20, 184, 166, 0.8)); }
}

/* Cuadernos Clínicos: Público vs Privado */
.saas-note-box-public {
  background: rgba(20, 184, 166, 0.06);
  border-left: 3px solid var(--primary-teal);
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text-heading);
  line-height: 1.45;
  transition: opacity 0.2s ease;
  min-height: 52px;
}

.saas-note-box-private {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  font-size: 0.76rem;
  color: var(--client-orange);
  line-height: 1.45;
  transition: opacity 0.2s ease;
  min-height: 48px;
}

/* Puntos de dolor flotantes sobre silueta */
.bodymap-pin-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bodymap-pin-marker .pin-dot {
  width: 14px;
  height: 14px;
  background: #EF4444;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
  transition: transform 0.2s ease, background 0.2s ease;
}

.bodymap-pin-marker.active .pin-dot {
  transform: scale(1.35);
  background: var(--primary-teal);
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.9);
}

.bodymap-pin-marker .pin-ping {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid #EF4444;
  animation: pingAnim 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.bodymap-pin-marker.active .pin-ping {
  border-color: var(--primary-teal);
}

/* --------------------------------------------------------------------------
   8. BENTO GRID: FUNCIONALIDADES ESTRELLA (PILARES 2 AL 6)
   -------------------------------------------------------------------------- */
.bento-section {
  background-color: var(--surface-white);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

a.bento-card {
  text-decoration: none;
  color: inherit;
}

a.bento-card:hover h3 {
  color: var(--primary-teal);
}

.bento-card:hover {
  background: var(--card-bg-hover);
  border-color: var(--primary-teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.bento-card[id],
section[id] {
  scroll-margin-top: 85px;
}

.bento-card:target {
  animation: bentoTargetHighlight 2.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-color: var(--primary-teal);
}

@keyframes bentoTargetHighlight {
  0% {
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.4), 0 20px 45px -10px rgba(13, 148, 136, 0.3);
    border-color: var(--primary-teal);
    transform: translateY(-4px);
  }
  70% {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25), 0 15px 35px -10px rgba(13, 148, 136, 0.15);
    border-color: var(--primary-teal);
    transform: translateY(-2px);
  }
  100% {
    box-shadow: var(--shadow-card);
    border-color: var(--card-border);
    transform: translateY(0);
  }
}

.bento-corner-arrow {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.bento-card:hover .bento-corner-arrow {
  color: var(--primary-teal);
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.35);
  transform: translate(2px, -2px);
}

.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

.bento-header {
  margin-bottom: 1.5rem;
}

.bento-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  padding-right: 1.5rem;
  flex-wrap: nowrap;
}

.bento-card-header .bento-icon {
  margin-bottom: 0 !important;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.bento-card-header .badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.bento-icon.teal {
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary-teal);
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.bento-icon.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.bento-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.bento-icon.purple {
  background: rgba(168, 85, 247, 0.12);
  color: #A855F7;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.bento-icon.indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #6366F1;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.bento-icon.pink {
  background: rgba(236, 72, 153, 0.12);
  color: #EC4899;
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.bento-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.bento-icon.slate {
  background: rgba(100, 116, 139, 0.12);
  color: #64748B;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.bento-icon.coral {
  background: rgba(249, 115, 22, 0.12);
  color: var(--client-orange);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.bento-card h3 {
  margin-bottom: 0.65rem;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* UI Previews inside Bento Cards */
.bento-ui-preview {
  margin-top: 1.5rem;
  background: var(--surface-white);
  border: 1px solid var(--card-border-subtle);
  border-radius: var(--radius-card);
  padding: 1.25rem;
}

/* UI Preview: Booking Slug */
.booking-slug-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px dashed var(--primary-teal);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: var(--font-kpi);
  font-size: 0.9rem;
}
.booking-slug-preview .slug-prefix { color: var(--text-muted); }
.booking-slug-preview .slug-highlight { color: var(--primary-teal); font-weight: 700; }

/* UI Preview: Digital Signature */
.signature-preview-box {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1rem;
  background: var(--surface-white);
  position: relative;
}
.sig-line {
  stroke: var(--primary-teal);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.sig-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-success);
  margin-top: 0.5rem;
}

/* UI Preview: TPV Fast Checkout */
.tpv-pills-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.bento-ui-preview .tpv-pills-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-top: 0;
}

.tpv-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.bento-ui-preview .tpv-pill {
  padding: 0.32rem 0.15rem;
  border-radius: 6px;
  font-size: 0.72rem;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}
.tpv-pill.bizum { color: var(--color-bizum); background: rgba(0, 168, 150, 0.1); }
.tpv-pill.card { color: var(--color-pos); background: rgba(0, 177, 211, 0.1); }
.tpv-pill.cash { color: var(--color-success); background: rgba(16, 185, 129, 0.1); }
.tpv-pill.transfer { color: var(--color-transfer); background: rgba(139, 92, 246, 0.1); }


/* UI Preview: Bonos Session Counter */
.bono-visual-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--card-border);
}

.bono-dots-row {
  display: flex;
  gap: 6px;
}

.bono-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.bono-dot.used { background-color: var(--primary-teal); }
.bono-dot.available { background-color: var(--card-border); border: 1px dashed var(--primary-teal); }

/* --------------------------------------------------------------------------
   9. SECCIÓN MULTI-SEDE / HUB MAESTRO
   -------------------------------------------------------------------------- */
.multicenter-section {
  background: var(--canvas-bg);
}

.multicenter-box {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-hero);
  padding: 3.5rem;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.multicenter-left h2 {
  margin-bottom: 1.25rem;
}

.multicenter-left p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hub-mockup-screen {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.hub-screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border-subtle);
}

.hub-badge {
  background: rgba(59, 130, 246, 0.12);
  color: var(--org-cobalt);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.hub-center-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.center-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.center-card-item:hover {
  border-color: var(--org-cobalt);
  transform: translateX(4px);
}

.center-card-name {
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.center-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. SECCIÓN PRECIOS Y TARIFAS (PRICING SIMULATOR)
   -------------------------------------------------------------------------- */
.pricing-section {
  background-color: var(--surface-white);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.pricing-controls-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.plan-segment-tabs {
  display: inline-flex;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.plan-segment-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.plan-segment-tab:hover {
  color: var(--text-heading);
}

.plan-segment-tab.active {
  background: var(--primary-teal);
  color: #070A11;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(20, 184, 166, 0.35);
}

.plan-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary-teal);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0;
}

.billing-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.billing-label.active {
  color: var(--text-heading);
  font-weight: 700;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background-color: var(--card-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.toggle-switch::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch.active {
  background-color: var(--primary-teal);
}

.toggle-switch.active::before {
  transform: translateX(24px);
}

.discount-pill {
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-hero);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
}

.pricing-card:hover {
  background: var(--card-bg-hover);
  border-color: var(--primary-teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pricing-card.featured {
  border: 2px solid var(--primary-teal);
  padding: calc(2.5rem - 1px) calc(2rem - 1px);
  background: var(--surface-white);
  box-shadow: var(--shadow-card);
  overflow: visible;
}

[data-theme="dark"] .pricing-card.featured {
  border-color: var(--primary-teal);
  box-shadow: 0 0 25px rgba(45, 212, 191, 0.15);
}

.featured-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  z-index: 2;
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.plan-desc {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
  min-height: 48px;
}

.plan-price-wrap {
  margin: 1.75rem 0;
}

.plan-price {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -1px;
}

.plan-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 2rem 0;
}

.plan-features-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-main);
}

.plan-features-list li svg {
  color: var(--primary-teal);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   11. SECCIÓN PREGUNTAS FRECUENTES (FAQ ACCORDION)
   -------------------------------------------------------------------------- */
.faq-section {
  background-color: var(--canvas-bg);
  padding-bottom: 2.25rem;
}

.faq-accordion-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--primary-teal);
}

.faq-question-btn, .faq-question {
  width: 100%;
  padding: 1.35rem 1.75rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-teal);
  transition: transform 220ms ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms cubic-bezier(0.4, 0, 0.2, 1), padding 200ms ease;
  padding: 0 1.75rem;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 1.75rem 1.35rem 1.75rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. BANNER FINAL DE CONVERSIÓN (HIGH-IMPACT CTA)
   -------------------------------------------------------------------------- */
.cta-banner-section {
  padding: 2rem 0 6rem 0;
  background-color: var(--canvas-bg);
}

.cta-banner-box {
  background: linear-gradient(135deg, #070A11 0%, #0E1524 100%);
  border: 1px solid #283956;
  border-radius: var(--radius-hero);
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.cta-banner-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.25) 0%, rgba(45, 212, 191, 0) 70%);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.cta-banner-box h2 {
  color: #F8FAFC;
  font-size: 2.65rem;
  margin-bottom: 1.25rem;
}

.cta-banner-box p {
  color: #94A3B8;
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

.cta-banner-box .btn-primary {
  background-color: #2DD4BF;
  color: #070A11;
  font-size: 1.1rem;
  padding: 1rem 2.25rem;
}

.cta-banner-box .btn-primary:hover {
  background-color: #14B8A6;
  color: #FFFFFF;
}

.cta-guarantee-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #94A3B8;
}

.cta-guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cta-guarantee-item svg {
  color: #2DD4BF;
}

/* --------------------------------------------------------------------------
   13. FOOTER CORPORATIVO
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--surface-white);
  border-top: 1px solid var(--card-border);
  padding: 4.5rem 0 2.5rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col-brand .logo {
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.footer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-success);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links-list a:hover {
  color: var(--primary-teal);
  transform: translateX(2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-right: 5.5rem; /* Margen de seguridad para no colisionar con el botón flotante del chatbot */
}

@media (max-width: 991px) {
  .footer-bottom {
    padding-right: 0;
    padding-bottom: 4rem; /* En pantallas móviles dejamos espacio vertical para el chatbot */
  }
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-subtle);
}

.footer-badges {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.security-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.security-tag:hover {
  border-color: var(--primary-teal);
  color: var(--text-main);
  background: rgba(20, 184, 166, 0.05);
}

/* --------------------------------------------------------------------------
   14. MODAL LEGAL / RGPD
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 10, 17, 0.75);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  animation: modalScale 200ms ease-out;
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.2rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-heading);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-divider);
  display: flex;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   15. MEDIA QUERIES (RESPONSIVE BREAKPOINTS)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .main-nav {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }

  .header-mobile-only-cta {
    display: none !important;
  }
}

@media (max-width: 1200px) {
  .bento-card {
    padding: 1.5rem;
  }
}

@media (max-width: 991px) {
  .header-actions {
    border-left: none;
    padding-left: 0;
    margin-left: auto;
    gap: 0.45rem;
  }
  .header-actions .btn:not(.header-mobile-cta) {
    display: none !important;
  }
  .header-actions .header-mobile-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 0.3rem;
    padding: 0.36rem 0.72rem;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
  }
  .logo {
    margin-right: 0;
  }
  .hero h1 { font-size: 2.25rem; }
  .hero-badge { max-width: 100%; white-space: normal; text-align: center; }
  .bento-col-8, .bento-col-4, .bento-col-6 { grid-column: span 12; }
  .bodymap-container { grid-template-columns: 1fr; }
  .multicenter-box { grid-template-columns: 1fr; padding: 2rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mockup-split-row { grid-template-columns: 1fr; }
  .floating-badge { display: none; }
}

@media (max-width: 768px) {
  .header-actions .header-mobile-cta svg {
    display: none;
  }
  .site-header .site-logo {
    height: 36px;
    width: auto;
  }
  .verifactu-pill-banner {
    font-size: 0.78rem !important;
    padding: 0.45rem 0.85rem !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.35 !important;
  }
  .dock-text-label {
    display: none !important;
  }
  .ai-dock-btn::after {
    content: 'IA';
    font-weight: 700;
  }
  .section-tag {
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
    display: inline-flex !important;
    font-size: 0.68rem !important;
    padding: 0.35rem 0.75rem !important;
    line-height: 1.35 !important;
  }
}

/* Responsividad para móviles */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.75rem; line-height: 1.2; }
  .section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-banner-box { padding: 3rem 1.5rem; }
  .cta-banner-box h2 { font-size: 2rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.3rem !important; line-height: 1.25; }
}

@media (max-width: 480px) {
  .chatbot-widget-container {
    bottom: 14px;
    right: 10px;
    align-items: flex-end;
  }

  .floating-support-dock {
    padding: 3px 5px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }

  .dock-action-btn {
    padding: 0.38rem 0.55rem;
    font-size: 0.72rem;
  }

  .chatbot-window,
  .chatbot-window.faq-hub-window {
    top: 12px;
    bottom: 72px;
    right: 12px;
    left: 12px;
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 16px;
  }
}

/* --------------------------------------------------------------------------
   16. ANIMACIONES PREMIUM Y MICROINTERACCIONES
   -------------------------------------------------------------------------- */
/* Efecto Spotlight: Resplandor perimetral reactivo al movimiento del ratón */
.spotlight-card {
  position: relative;
  overflow: hidden;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 250ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    450px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(45, 212, 191, 0.18),
    transparent 50%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 1;
}

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

/* Revelación fluida al hacer scroll (Scroll Reveal) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1), transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

/* Animación de entrada para el Hero y mockups */
@keyframes heroFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(0.4deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.floating-badge {
  animation: heroFloat 5s ease-in-out infinite alternate !important;
}

.floating-badge.badge-right {
  animation-delay: -2.5s !important;
}

/* Efecto magnético sutil en botones principales */
.btn-magnetic {
  transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 150ms ease;
}

.btn-magnetic:hover {
  transform: translateY(-3px) scale(1.015);
}

.btn-magnetic:active {
  transform: translateY(-1px) scale(0.99);
}

/* Tarjetas interactivas con elevación de alta gama */
.interactive-elevation {
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 250ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease;
}

.interactive-elevation:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-teal);
}

/* Badge con pulso de luz */
.pulse-indicator {
  position: relative;
  display: inline-block;
}

.pulse-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: inherit;
  border: 1px solid var(--primary-teal);
  animation: pulseRings 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseRings {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* --------------------------------------------------------------------------
   14. FORMULARIOS Y PÁGINA DE CONTACTO
   -------------------------------------------------------------------------- */
.contact-hero-wrap {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

@media (max-width: 991px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-form-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-form-card form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form-card .form-trust-pills {
  margin-top: auto !important;
  padding-top: 0.85rem;
}

@media (max-width: 576px) {
  .contact-form-card {
    padding: 1.5rem 1.25rem;
  }
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Selector segmentado "¿Con qué podemos ayudarte hoy?" */
.contact-mode-selector {
  margin-bottom: 1.2rem;
}

.contact-mode-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  background: var(--card-bg);
  padding: 0.38rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
}

.contact-mode-tab {
  font-family: var(--font-sans);
  padding: 0.62rem 0.6rem;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: var(--transition-smooth);
  line-height: 1.25;
}

.contact-mode-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--primary-teal);
  opacity: 0.8;
  transition: transform 180ms ease-out, opacity 180ms ease-out, color 180ms ease-out;
}

.contact-mode-tab:hover {
  color: var(--text-heading);
  background: rgba(20, 184, 166, 0.06);
  border-color: rgba(20, 184, 166, 0.25);
}

.contact-mode-tab:hover .contact-mode-icon {
  opacity: 1;
  transform: scale(1.08);
}

.contact-mode-tab.active {
  background: var(--surface-white);
  border-color: var(--primary-teal);
  color: var(--primary-teal);
  box-shadow: 0 2px 10px rgba(20, 184, 166, 0.12);
}

.contact-mode-tab.active .contact-mode-icon {
  color: var(--primary-teal);
  opacity: 1;
}

[data-theme="dark"] .contact-mode-tab.active {
  background: var(--card-bg-hover);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

@media (max-width: 640px) {
  .contact-mode-tabs {
    grid-template-columns: 1fr;
  }
  .contact-mode-tab {
    justify-content: flex-start;
    padding: 0.65rem 0.85rem;
  }
}

.form-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .form-grid-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.form-group {
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .req {
  color: var(--color-danger);
  margin-left: 3px;
}

.form-label .optional-hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
  background: var(--surface-white);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1em;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.form-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  cursor: pointer;
}

.form-checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary-teal);
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox-wrap label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  cursor: pointer;
}

.form-checkbox-wrap label a {
  color: var(--primary-teal);
  text-decoration: underline;
}

.form-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-trust-item svg {
  color: var(--primary-teal);
  flex-shrink: 0;
}

/* Alerta de Envío Exitoso */
.contact-alert-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-alert-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-alert-body h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.contact-alert-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* Barra Lateral de Información y Contacto Directo */
.contact-side-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 1.35rem;
}

.contact-side-panel > .contact-info-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-side-panel .demo-takeaways-list,
.contact-side-panel .direct-channels-list {
  flex: 1;
  justify-content: space-evenly;
}

.contact-info-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.contact-info-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.demo-takeaways-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-takeaway-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.takeaway-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.15);
  color: var(--primary-teal);
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.takeaway-content strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.takeaway-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Canales Directos */
.direct-channels-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.direct-channel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.direct-channel-link:hover {
  transform: translateX(4px);
  border-color: var(--primary-teal);
  background: var(--surface-white);
}

.channel-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.channel-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon-circle.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
}

.channel-icon-circle.email {
  background: rgba(20, 184, 166, 0.15);
  color: var(--primary-teal);
}

.channel-icon-circle.app {
  background: rgba(99, 102, 241, 0.15);
  color: #6366F1;
}

.channel-texts {
  display: flex;
  flex-direction: column;
}

.channel-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.channel-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.channel-arrow {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.direct-channel-link:hover .channel-arrow {
  color: var(--primary-teal);
  transform: translateX(2px);
}

/* Tarjeta Destacada de Migración Asistida */
.migration-banner-card {
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.08) 0%, rgba(45, 212, 191, 0.02) 100%);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

.migration-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.migration-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(20, 184, 166, 0.18);
  color: var(--primary-teal);
}

.migration-banner-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.migration-banner-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   15. LANZADOR FLOTANTE CIRCULAR ESTÁNDAR DEL CHATBOT
   -------------------------------------------------------------------------- */
.chatbot-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  font-family: inherit;
}

.chatbot-widget-container > * {
  pointer-events: auto;
}

.chatbot-trigger-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, background 0.22s ease;
  outline: none;
}

.chatbot-trigger-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.55);
  background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
}

.chatbot-trigger-btn.is-active {
  background: #334155;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.1);
}

.chatbot-trigger-btn .icon-chat-open {
  display: block;
}

.chatbot-trigger-btn .icon-chat-close {
  display: none;
}

.chatbot-trigger-btn.is-active .icon-chat-open {
  display: none !important;
}

.chatbot-trigger-btn.is-active .icon-chat-close {
  display: block !important;
}

.chat-trigger-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #14B8A6;
  opacity: 0.6;
  animation: triggerPulse 2.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  pointer-events: none;
}

@keyframes triggerPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

/* Ventana Principal del Chat */
.chatbot-window {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 385px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 100px);
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
  animation: chatbotSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatbotSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Cabecera del Chat */
.chatbot-header {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #ffffff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chatbot-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.2);
  border: 1px solid rgba(20, 184, 166, 0.4);
  color: #2DD4BF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.avatar-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #0F172A;
}

.chatbot-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.chatbot-subline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #94A3B8;
  margin-top: 2px;
}

.status-online-text {
  color: #34D399;
  font-weight: 600;
}

.dot-separator {
  opacity: 0.4;
}

.ai-badge-pill {
  background: rgba(20, 184, 166, 0.2);
  color: #2DD4BF;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
}

.chatbot-btn-header {
  background: transparent;
  border: none;
  color: #94A3B8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.chatbot-btn-header:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Selector de Modo Dual: Pacientes vs Clínicas */
.chatbot-mode-bar {
  background: #0F172A;
  padding: 0.5rem 1rem 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chatbot-mode-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 10px;
  gap: 4px;
}

.chatbot-mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.42rem 0.5rem;
  border: none;
  background: transparent;
  color: #94A3B8;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chatbot-mode-tab svg {
  flex-shrink: 0;
}

.chatbot-mode-tab:hover {
  color: #F1F5F9;
  background: rgba(255, 255, 255, 0.05);
}

.chatbot-mode-tab.active {
  background: #14B8A6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.35);
}

/* Cuerpo de Mensajes */
.chatbot-body {
  flex: 1;
  padding: 1.15rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--card-bg);
  scroll-behavior: smooth;
}

.chatbot-body::-webkit-scrollbar {
  width: 5px;
}
.chatbot-body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}

/* Mensajes Individuales */
.chatbot-message {
  display: flex;
  flex-direction: column;
  max-width: 86%;
  animation: msgFadeIn 0.25s ease-out;
}

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

.bot-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
}

.bot-message .message-content {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  border-radius: 16px 16px 16px 4px;
  padding: 0.85rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 0.88rem;
  line-height: 1.5;
}

.user-message .message-content {
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
}

.message-content p {
  margin: 0 0 0.5rem 0;
}
.message-content p:last-child {
  margin-bottom: 0;
}

.message-content strong {
  font-weight: 700;
  color: inherit;
}

.chat-link {
  color: var(--primary-teal);
  text-decoration: underline;
  font-weight: 600;
}
.user-message .chat-link {
  color: #E6FFFA;
}

.message-content code {
  background: rgba(15, 23, 42, 0.07);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  color: var(--primary-teal);
  font-weight: 600;
}
.user-message .message-content code {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.chat-bullet-item {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.chat-bullet-dot {
  color: var(--primary-teal);
  font-weight: bold;
}
.chat-bullet-num {
  color: var(--primary-teal);
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.chat-system-notice {
  align-self: center;
  margin: 0.35rem auto;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.25);
  color: #0F766E;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  max-width: 90%;
  animation: msgFadeIn 0.25s ease-out;
}
.chat-system-notice strong {
  font-weight: 700;
  color: #0D9488;
}

[data-theme="dark"] .chat-system-notice {
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(20, 184, 166, 0.35);
  color: #2DD4BF;
}
[data-theme="dark"] .chat-system-notice strong {
  color: #5EEAD4;
}
[data-theme="dark"] .message-content code {
  background: rgba(255, 255, 255, 0.1);
  color: #2DD4BF;
}

.message-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
  padding: 0 4px;
}
.user-message .message-time {
  text-align: right;
}

/* Píldoras de Sugerencias */
.chatbot-pills-wrap {
  margin-top: 0.25rem;
}

.pills-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.pills-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.chat-pill-btn {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.chat-pill-btn:hover {
  border-color: var(--primary-teal);
  background: rgba(20, 184, 166, 0.06);
  color: var(--primary-teal);
  transform: translateX(3px);
}

/* Separador de respuestas compuestas y píldoras contextuales de seguimiento */
.chat-divider {
  border: 0;
  border-top: 1px solid var(--card-border);
  margin: 0.7rem 0;
}

.chat-followup-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 92%;
  margin-top: -0.35rem;
  animation: msgFadeIn 0.25s ease-out;
}

.chat-followup-chip {
  background: var(--surface-white);
  border: 1px solid rgba(20, 184, 166, 0.35);
  color: var(--primary-teal);
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.chat-followup-chip:hover {
  background: rgba(20, 184, 166, 0.1);
  border-color: var(--primary-teal);
  transform: translateY(-1px);
}

[data-theme="dark"] .chat-followup-chip {
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(45, 212, 191, 0.35);
  color: #2DD4BF;
}

[data-theme="dark"] .chat-followup-chip:hover {
  background: rgba(20, 184, 166, 0.18);
  border-color: #2DD4BF;
}

/* Indicador de Escritura */
.chatbot-typing {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  align-self: flex-start;
  margin-top: 0.25rem;
}

.typing-bubble {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-teal);
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

.typing-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Pie del Chat */
.chatbot-footer {
  background: var(--surface-white);
  border-top: 1px solid var(--card-border);
  padding: 0.85rem 1rem;
}

.chatbot-input-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 0.35rem 0.45rem 0.35rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-input-form:focus-within {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.chatbot-input-field {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
}

.chatbot-input-field::placeholder {
  color: var(--text-muted);
}

.chatbot-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-teal);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.chatbot-send-btn:hover:not(:disabled) {
  background: #0D9488;
  transform: scale(1.05);
}

.chatbot-send-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.chatbot-foot-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.chatbot-pill-toggle-btn {
  background: transparent;
  border: none;
  color: var(--primary-teal);
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
  font-family: inherit;
}

.chatbot-pill-toggle-btn:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.chatbot-foot-links a {
  color: var(--primary-teal);
  font-weight: 600;
  text-decoration: none;
}
.chatbot-foot-links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   BUSCADOR RÁPIDO DE PREGUNTAS FRECUENTES (HELP HUB - OPCIÓN A)
   ========================================================================== */

.chatbot-window.faq-hub-window {
  width: 405px;
  height: 585px;
  max-height: calc(100vh - 104px);
}

.faq-hub-header {
  padding: 0.9rem 1.15rem;
}

/* Barra superior de búsqueda en vivo + chips en 1 clic */
.faq-hub-search-wrap {
  background: var(--surface-white);
  padding: 0.65rem 0.9rem 0.58rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.faq-hub-search-wrap.is-compact {
  padding: 0.58rem 0.9rem;
}

.faq-hub-chips-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1px;
}

.faq-hub-chips-row::-webkit-scrollbar {
  display: none;
}

.faq-FilterChip {
  flex-shrink: 0;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.71rem;
  font-weight: 600;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.faq-FilterChip:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

.faq-FilterChip.is-active {
  background: var(--badge-bg);
  border-color: var(--primary-teal);
  color: var(--badge-text);
  font-weight: 700;
}

.faq-hub-search-box {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.48rem 0.65rem 0.48rem 0.8rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.faq-hub-search-box:focus-within {
  background: var(--surface-white);
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px var(--glow-accent);
}

.faq-hub-search-icon {
  color: var(--primary-teal);
  flex-shrink: 0;
}

.faq-hub-search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-heading);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  outline: none;
  min-width: 0;
}

.faq-hub-search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.faq-hub-clear-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.faq-hub-clear-btn:hover {
  background: var(--card-border-subtle);
  color: var(--text-heading);
}

/* Cuerpo del panel Help Hub */
.chatbot-body.faq-hub-body {
  padding: 0.95rem;
  gap: 0;
  background: var(--card-bg);
}

.faq-view-fade {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: msgFadeIn 0.18s ease-out;
}

.faq-section-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.faq-section-eyebrow {
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0 0.15rem;
}

/* Preguntas rápidas destacadas y relacionadas */
.faq-quick-list {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.faq-quick-item {
  width: 100%;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 11px;
  padding: 0.62rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  text-align: left;
  cursor: pointer;
  color: var(--text-heading);
  font-family: var(--font-sans);
  font-size: 0.81rem;
  font-weight: 600;
  line-height: 1.35;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.faq-quick-item:hover {
  border-color: var(--primary-teal);
  box-shadow: 0 3px 10px rgba(20, 184, 166, 0.1);
  transform: translateX(2px);
}

.faq-quick-item:hover .faq-quick-text {
  color: var(--primary-teal);
}

.faq-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.16s ease, color 0.16s ease;
}

.faq-quick-item:hover .faq-chevron,
.faq-cat-question-btn:hover .faq-chevron {
  color: var(--primary-teal);
  transform: translateX(2px);
}

/* Acordeones por Categoría Temática */
.faq-cat-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.faq-cat-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq-cat-card:hover {
  border-color: rgba(20, 184, 166, 0.45);
}

.faq-cat-card.is-expanded {
  border-color: var(--primary-teal);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.faq-cat-header {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.7rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  color: var(--text-heading);
}

.faq-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--badge-bg);
  color: var(--badge-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-cat-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.faq-cat-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
}

.faq-cat-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.faq-cat-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--badge-text);
  background: var(--badge-bg);
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.faq-cat-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.faq-cat-card.is-expanded .faq-cat-arrow {
  transform: rotate(180deg);
  color: var(--primary-teal);
}

.faq-cat-list {
  flex-direction: column;
  border-top: 1px solid var(--card-border-subtle);
  background: var(--card-bg);
  padding: 0.35rem;
  gap: 0.28rem;
}

.faq-cat-question-btn {
  width: 100%;
  border: 1px solid transparent;
  background: var(--surface-white);
  border-radius: 9px;
  padding: 0.55rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.faq-cat-question-btn:hover {
  border-color: var(--primary-teal);
}

.faq-cat-question-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
  min-width: 0;
}

.faq-cat-question-title {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.35;
}

.faq-mini-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--badge-text);
  background: var(--badge-bg);
  padding: 1px 6px;
  border-radius: 5px;
  line-height: 1.35;
}

/* Resultados de Búsqueda Instantánea */
.faq-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.15rem;
}

.faq-text-btn {
  border: none;
  background: transparent;
  color: var(--primary-teal);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.faq-text-btn:hover {
  text-decoration: underline;
}

.faq-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.faq-result-card {
  width: 100%;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.faq-result-card:hover,
.faq-result-card.is-kb-selected {
  border-color: var(--primary-teal);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.14);
  transform: translateY(-1px);
}

.faq-result-card.is-kb-selected {
  outline: 2px solid rgba(20, 184, 166, 0.28);
  outline-offset: 0;
}

.faq-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.faq-result-cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.faq-result-question {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.35;
}

.faq-result-summary {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

mark.faq-hl {
  background: rgba(20, 184, 166, 0.18);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}

/* Ficha Individual de Respuesta (Detalle de FAQ) */
.faq-detail-wrap {
  gap: 0.75rem;
}

.faq-back-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid var(--card-border);
  background: var(--surface-white);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.38rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.faq-back-btn:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

.faq-sheet-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.faq-sheet-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.faq-sheet-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.32;
  margin: 0;
}

.faq-sheet-answer {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-main);
}

.faq-sheet-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--card-border-subtle);
}

.faq-btn-primary-full {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 0.9rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.faq-btn-primary-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.34);
}

.faq-btn-secondary-full {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.54rem 0.85rem;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-heading) !important;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.faq-btn-secondary-full:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal) !important;
}

.faq-related-block {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin-top: 0.15rem;
}

/* Estados vacíos y cambio cruzado de perfil */
.faq-empty-box {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.faq-empty-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--badge-bg);
  color: var(--badge-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-empty-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
}

.faq-empty-box p {
  font-size: 0.79rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.faq-empty-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.faq-btn-ghost {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem;
  cursor: pointer;
}

.faq-btn-ghost:hover {
  color: var(--primary-teal);
  text-decoration: underline;
}

.faq-cross-banner {
  background: var(--surface-white);
  border: 1px solid var(--primary-teal);
  border-radius: 12px;
  padding: 0.68rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.faq-cross-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.faq-cross-banner-text strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
}

.faq-cross-banner-text span {
  font-size: 0.71rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.faq-cross-switch-pill {
  flex-shrink: 0;
  border: 1px solid var(--primary-teal);
  background: var(--badge-bg);
  color: var(--badge-text);
  font-family: var(--font-sans);
  font-size: 0.71rem;
  font-weight: 700;
  padding: 0.32rem 0.62rem;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.faq-cross-switch-pill:hover {
  opacity: 0.88;
}

.faq-cross-hint-btn {
  width: 100%;
  border: 1px dashed var(--card-border);
  background: var(--surface-white);
  color: var(--primary-teal);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  margin-top: 0.2rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.faq-cross-hint-btn:hover {
  border-color: var(--primary-teal);
  background: var(--badge-bg);
}

/* Pie honesto del panel */
.chatbot-footer.faq-hub-footer {
  padding: 0.68rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.faq-hub-footer-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.faq-hub-footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.73rem;
}

.faq-hub-footer-link-muted {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.faq-hub-footer-link-muted:hover {
  color: var(--text-heading);
  text-decoration: underline;
}

.faq-hub-footer-link-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  color: var(--primary-teal);
  font-weight: 700;
  text-decoration: none;
}

.faq-hub-footer-link-primary:hover {
  text-decoration: underline;
}

/* Responsividad para móviles */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .verifactu-pill-banner {
    white-space: normal;
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.35;
  }

  .hero-p {
    font-size: 0.92rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .chatbot-widget-container {
    bottom: 16px;
    right: 12px;
    align-items: flex-end;
  }

  .floating-support-dock {
    padding: 3px 6px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  }

  .dock-action-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.76rem;
  }

  .chatbot-window,
  .chatbot-window.faq-hub-window {
    top: 12px;
    bottom: 72px;
    right: 12px;
    left: 12px;
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 16px;
  }
}

/* ==========================================================================
   PORTAL B2C CLIENTES / BUSCADOR DE CENTROS (Clean HealthTech B2C UI)
   Inspirado exactamente en la interfaz de app.intocare.es/#/search
   ========================================================================== */

/* ==========================================================================
   B2C PORTAL & DIRECTORIO DE CENTROS (Fiel a app.intocare.es/#/client/centers)
   ========================================================================== */
.b2c-portal-section {
  padding: 2.5rem 0 5rem 0;
  background-color: var(--canvas-bg);
  min-height: calc(100vh - 180px);
}

/* 1. Barra de Navegación Superior (Botón Volver + Breadcrumbs) */
.b2c-top-navigation-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.b2c-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  color: var(--text-heading);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.b2c-back-btn:hover {
  background: rgba(20, 184, 166, 0.1);
  border-color: var(--primary-teal);
  color: var(--primary-teal);
  transform: translateX(-2px);
}

.b2c-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-teal);
}

.b2c-breadcrumbs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  display: inline-block;
}

.b2c-breadcrumb-link {
  color: var(--primary-teal);
  text-decoration: none;
}

.b2c-breadcrumb-link:hover {
  text-decoration: underline;
}

.b2c-breadcrumb-sep {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.b2c-breadcrumb-current {
  color: var(--text-muted);
}

/* 2. Título y Subtítulo de la Pantalla */
.b2c-title-box {
  margin-bottom: 1.5rem;
}

.b2c-title-box h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.b2c-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* 3. Píldoras de Especialidades (Filtros Rápidos) */
.b2c-category-pills-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.b2c-cat-pill {
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  white-space: nowrap;
}

.b2c-cat-pill:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

.b2c-cat-pill.active {
  background: rgba(20, 184, 166, 0.12);
  border-color: var(--primary-teal);
  color: var(--primary-teal-hover);
  font-weight: 700;
}

/* 4. Barra de Filtros y Búsqueda (Fiel a app.intocare.es/#/client/centers) */
.b2c-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface-white);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.b2c-search-inputs {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.b2c-input-wrapper {
  position: relative;
  flex: 1;
}

.b2c-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-teal);
  pointer-events: none;
}

.b2c-input-control {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.b2c-input-control:focus {
  outline: none;
  border-color: var(--primary-teal);
  background: var(--surface-white);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

/* Toggle Lista / Mapa */
.b2c-view-toggle-group {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  flex-shrink: 0;
}

.b2c-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.b2c-toggle-btn.active {
  background: var(--surface-white);
  color: var(--text-heading);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* 5. Tabla de Resultados Desktop (Idéntica al SaaS) */
.b2c-table-card {
  background: var(--surface-white);
  border-radius: 16px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.b2c-center-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.b2c-center-table th {
  background: var(--card-bg);
  padding: 0.85rem 1.25rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--card-border-subtle);
}

.b2c-center-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--card-border-subtle);
  vertical-align: middle;
  font-size: 0.92rem;
}

.b2c-center-row:last-child td {
  border-bottom: none;
}

.b2c-center-row:hover td {
  background-color: rgba(20, 184, 166, 0.02);
}

.b2c-center-info-cell {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

/* Avatar de la clínica: Cuadrado suave con icono de brote en turquesa (como en el SaaS) */
.b2c-avatar-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.b2c-avatar-box.teal {
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary-teal);
}

.b2c-avatar-box.image {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
}

.b2c-avatar-text {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.b2c-center-name-box {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.b2c-center-name-link {
  font-weight: 800;
  color: var(--text-heading);
  text-decoration: none;
  font-size: 0.96rem;
  transition: color 0.15s ease;
}

.b2c-center-name-link:hover {
  color: var(--primary-teal);
}

.b2c-center-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.b2c-location-cell {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
}

.b2c-location-cell svg {
  color: var(--primary-teal);
  flex-shrink: 0;
}

.b2c-contact-cell {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.b2c-contact-cell svg {
  color: var(--primary-teal);
  flex-shrink: 0;
}

.b2c-contact-dash {
  color: var(--text-muted);
  font-weight: 600;
}

/* Acciones: Botón Favorito Corazón + Ver Centro */
.b2c-actions-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.b2c-fav-btn {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.15s ease, color 0.15s ease;
}

.b2c-fav-btn:hover {
  transform: scale(1.18);
  color: #EF4444;
}

.b2c-fav-btn.active {
  color: #EF4444;
}

.b2c-btn-ver-centro {
  background-color: var(--primary-teal);
  color: #FFFFFF !important;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 0.86rem;
  transition: all 0.15s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
}

.b2c-btn-ver-centro:hover {
  background-color: var(--primary-teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
}

/* Empty State */
.b2c-empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem !important;
  color: var(--text-muted);
}

.b2c-empty-state > svg {
  margin-bottom: 1rem;
}

.b2c-empty-state h3 {
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}

.b2c-empty-state p {
  font-size: 0.9rem;
  margin: 0;
}

/* 6. Mapa Interactivo Leaflet */
.b2c-map-wrapper {
  position: relative;
  background: var(--surface-white);
  border-radius: 16px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  height: 560px;
}

.b2c-map-element {
  width: 100%;
  height: 100%;
}

.b2c-map-top-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.b2c-map-badge {
  pointer-events: auto;
  background: var(--surface-white);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-heading);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--card-border);
}

.b2c-map-search-area-btn {
  pointer-events: auto;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-heading);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-smooth);
}

.b2c-map-search-area-btn:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

.b2c-map-center-controls {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b2c-map-right-controls {
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Botón FinOps "Buscar en esta zona" (idéntico a CentersMapView en quiroerp) */
.b2c-map-area-pill-btn {
  pointer-events: auto;
  background: #0D9488;
  color: #FFFFFF;
  border: 1.5px solid #FFFFFF;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.38);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.b2c-map-area-pill-btn:hover {
  background: #0F766E;
  transform: translateY(-1px);
}

/* Aviso FinOps de zoom mínimo requerido (< 12.0) */
.b2c-map-zoom-hint-pill {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.88);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(6px);
}

.b2c-map-zoom-hint-pill:hover {
  background: rgba(13, 148, 136, 0.95);
}

/* Tarjeta flotante inferior de centro seleccionado en mapa */
.b2c-map-floating-card {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 440px;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 1rem 1.15rem;
  animation: fadeUpCard 0.18s ease-out;
}

@keyframes fadeUpCard {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.b2c-map-card-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.b2c-map-card-close:hover {
  color: var(--text-heading);
  background: var(--card-bg);
}

/* Punto azul de ubicación actual del usuario */
.b2c-user-loc-wrapper {
  background: transparent;
  border: none;
}

.b2c-user-loc-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563EB;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.28), 0 2px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
  .b2c-map-top-bar {
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .hide-xs {
    display: none;
  }
  .b2c-detail-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Pines del mapa (idénticos a CentersMapView._buildMapPin y _buildPinFallback en quiroerp) */
.b2c-map-pin-wrapper {
  background: transparent;
  border: none;
}

.b2c-map-pin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #0D9488;
  padding: 3px;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

[data-theme="dark"] .b2c-map-pin {
  background: #0E1526;
}

.b2c-map-pin-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(13, 148, 136, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.b2c-map-pin-inner.has-logo {
  background: #FFFFFF;
}

.b2c-map-pin-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.b2c-map-pin-fallback {
  color: #0D9488;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.b2c-map-pin:hover,
.b2c-map-pin.selected {
  transform: scale(1.18);
  background: #0D9488;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.45);
  z-index: 1000;
}

.b2c-map-pin:hover .b2c-map-pin-inner:not(.has-logo),
.b2c-map-pin.selected .b2c-map-pin-inner:not(.has-logo) {
  background: #FFFFFF;
}

.b2c-map-pin:hover .b2c-map-pin-fallback,
.b2c-map-pin.selected .b2c-map-pin-fallback {
  color: #0D9488;
}

/* Popups Leaflet */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  padding: 0.4rem !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  background: var(--surface-white) !important;
  color: var(--text-main) !important;
}

.b2c-map-popup {
  padding: 0.25rem 0.35rem;
}

.b2c-map-popup h4 {
  font-size: 0.98rem;
  font-weight: 800;
  margin: 0 0 0.2rem 0;
  color: var(--text-heading);
}

.b2c-popup-sub {
  font-size: 0.76rem;
  color: var(--primary-teal);
  font-weight: 600;
  margin: 0 0 0.3rem 0;
}

.b2c-popup-city {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.65rem 0;
}

/* 7. Franja de Confianza al Pie */
.b2c-trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--card-border-subtle);
}

.b2c-trust-strip-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.b2c-trust-strip-item svg {
  color: var(--primary-teal);
  flex-shrink: 0;
}

/* ==========================================================================
   8. RESPONSIVE MÓVIL (CRUCIAL: TRANSFORMACIÓN DE TABLA A CARDS EN < 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .b2c-filters-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .b2c-search-inputs {
    flex-direction: column;
    gap: 0.75rem;
  }

  .b2c-view-toggle-group {
    align-self: flex-end;
  }

  /* La tabla se convierte en lista de tarjetas limpias sin desborde */
  .b2c-center-table,
  .b2c-center-table thead,
  .b2c-center-table tbody,
  .b2c-center-table tr,
  .b2c-center-table td {
    display: block;
    width: 100%;
  }

  .b2c-center-table thead {
    display: none; /* Ocultar encabezados de tabla en móvil */
  }

  .b2c-center-row {
    position: relative;
    padding: 1.25rem;
    border-bottom: 1px solid var(--card-border-subtle);
  }

  .b2c-center-row td {
    padding: 0.25rem 0;
    border: none;
  }

  .b2c-center-row td.col-center {
    padding-bottom: 0.65rem;
  }

  .b2c-center-row td.col-actions {
    padding-top: 0.85rem;
  }

  .b2c-actions-wrapper {
    justify-content: stretch;
    gap: 0.75rem;
  }

  .b2c-fav-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
  }

  .b2c-btn-ver-centro {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
  }

  .b2c-trust-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Estado Vacío */
.b2c-empty-state {
  text-align: center;
  padding: 3rem 1rem !important;
  color: var(--text-muted);
}

.b2c-empty-state p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

/* Adaptación Responsive */
@media (max-width: 992px) {
  .b2c-categories-grid {
    grid-template-columns: 1fr;
  }

  .b2c-filters-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .b2c-search-inputs {
    flex-direction: column;
  }

  .b2c-view-toggle-group {
    justify-content: center;
  }
}

/* ==========================================================================
   HOMEPAGE PACIENTES (B2C INDEX.PHP) - HEALTHCARE BOOKING HERO & PORTAL
   ========================================================================== */

/* Hero Pacientes Grid */
.hero-patient-wrap {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  position: relative;
}

.hero-patient-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-patient-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-patient-badge-row {
  margin-bottom: 1.25rem;
}

.hero-patient-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: var(--primary-teal);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.hero-patient-pill:hover {
  background: rgba(20, 184, 166, 0.16);
  border-color: var(--primary-teal);
}

.hero-patient-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .hero-patient-title {
    font-size: 2.15rem;
  }
}

.hero-patient-lead {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 620px;
}

/* Formulario Buscador Destacado */
.hero-patient-search-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.hero-patient-search-card:focus-within {
  border-color: var(--primary-teal);
  box-shadow: 0 16px 45px rgba(20, 184, 166, 0.18);
}

.hero-search-inputs-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 640px) {
  .hero-search-inputs-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.hero-search-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-search-field-icon {
  position: absolute;
  left: 14px;
  color: var(--primary-teal);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-search-input-ctrl {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.hero-search-input-ctrl:focus {
  border-color: var(--primary-teal);
  background: var(--surface-white);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.hero-search-btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
}

/* Píldoras de Especialidades Rápidas */
.hero-chips-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.hero-chips-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-chip-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero-chip-tag:hover {
  background: rgba(20, 184, 166, 0.12);
  border-color: var(--primary-teal);
  color: var(--primary-teal);
  transform: translateY(-2px);
}

/* Lista de Confianza Bajo el Buscador */
.hero-micro-trust-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-micro-trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-micro-trust-item svg {
  color: var(--color-success);
  flex-shrink: 0;
}

/* Maqueta Interactiva de Página de Clínica (Inspirada en el Portal de Paciente Real de Intocare) */
.clinic-preview-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: var(--transition-smooth);
}

.clinic-preview-banner {
  height: 72px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18) 0%, rgba(59, 130, 246, 0.12) 60%, rgba(13, 148, 136, 0.22) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.6rem 1rem;
}

.clinic-preview-banner-badge {
  background: var(--surface-white);
  color: var(--primary-teal-hover);
  border: 1px solid rgba(20, 184, 166, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.clinic-preview-banner-badge svg {
  color: #10B981;
}

[data-theme="dark"] .clinic-preview-banner-badge {
  background: #1E293B;
  color: #2DD4BF;
  border-color: rgba(45, 212, 191, 0.3);
}

.clinic-preview-body {
  padding: 1.15rem 1.25rem;
}

.clinic-preview-identity {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.clinic-preview-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
  border: 3px solid var(--surface-white);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.3);
  flex-shrink: 0;
  margin-top: -36px;
}

.clinic-preview-actions-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 2px;
}

.clinic-preview-social-icons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.clinic-preview-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.clinic-preview-icon-circle:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

.clinic-preview-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
  font-size: 0.72rem;
  font-weight: 700;
}

.clinic-preview-meta {
  margin-bottom: 1.15rem;
}

.clinic-preview-meta h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0 0 0.25rem 0;
}

.clinic-preview-subline {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.clinic-preview-rating {
  color: #F59E0B;
  font-weight: 700;
}

.clinic-preview-specialty-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--primary-teal);
  background: rgba(20, 184, 166, 0.08);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
}

.clinic-preview-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border-subtle);
}

.clinic-preview-step-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.step-indicator-bar {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--primary-teal);
}

.clinic-preview-services-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.clinic-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.clinic-service-item:hover {
  border-color: var(--primary-teal);
  background: var(--surface-white);
}

.clinic-service-item-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
}

.clinic-service-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clinic-service-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.15rem 0;
  line-height: 1.25;
}

.clinic-service-item-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
}

.clinic-service-item-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.clinic-service-item-price-col {
  text-align: right;
}

.clinic-service-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary-teal);
}

.clinic-service-duration {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.clinic-service-btn-elegir {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid var(--primary-teal);
  color: var(--primary-teal);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.clinic-service-btn-elegir:hover {
  background: var(--primary-teal);
  color: #FFFFFF;
}

.clinic-preview-footer {
  padding-top: 0.65rem;
  border-top: 1px solid var(--card-border-subtle);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Bento Grid de Especialidades Pacientes Compacto (4x2 en Desktop) */
.b2c-specialties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1200px) {
  .b2c-specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .b2c-specialties-grid {
    grid-template-columns: 1fr;
  }
}

.b2c-specialty-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  position: relative;
  height: 100%;
}

.b2c-specialty-card > div {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.b2c-specialty-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-teal);
  box-shadow: var(--shadow-card);
}

.b2c-spec-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  min-height: 48px;
}

.b2c-spec-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.b2c-spec-icon-wrap.teal {
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary-teal);
}

.b2c-spec-icon-wrap.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
}

.b2c-spec-icon-wrap.indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #6366F1;
}

.b2c-spec-icon-wrap.purple {
  background: rgba(168, 85, 247, 0.12);
  color: #A855F7;
}

.b2c-spec-icon-wrap.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}

.b2c-spec-icon-wrap.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
}

.b2c-spec-icon-wrap.pink {
  background: rgba(236, 72, 153, 0.12);
  color: #EC4899;
}

.b2c-spec-icon-wrap.slate {
  background: rgba(100, 116, 139, 0.12);
  color: #64748B;
}

.b2c-spec-header-text {
  flex: 1;
}

.b2c-spec-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.b2c-specialty-card:hover .b2c-spec-title {
  color: var(--primary-teal);
}

.b2c-card-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.b2c-specialty-card:hover .b2c-card-arrow {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
  color: #FFFFFF;
  transform: translateX(3px);
}

.b2c-spec-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.b2c-spec-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.48;
  margin-bottom: 1.15rem;
  min-height: 2.65rem;
  height: 2.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.b2c-spec-tags-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  align-items: center;
  width: 100%;
}

.b2c-spec-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.70rem;
  font-weight: 600;
  padding: 0.28rem 0.2rem;
  border-radius: 6px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.b2c-specialty-card:hover .b2c-spec-tag {
  border-color: rgba(20, 184, 166, 0.25);
  background: var(--surface-white);
  color: var(--text-main);
}


/* 3 Pasos del Paciente Compacto */
.b2c-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

@media (max-width: 860px) {
  .b2c-steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.b2c-step-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.75rem 1.65rem;
  position: relative;
  transition: var(--transition-smooth);
}

.b2c-step-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-teal);
  box-shadow: var(--shadow-card);
}

.b2c-step-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.b2c-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.15);
  color: var(--primary-teal);
  flex-shrink: 0;
}

.b2c-step-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-teal);
  flex-shrink: 0;
}

.b2c-step-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0;
  line-height: 1.3;
}

.b2c-step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* 4 Garantías de Calidad Intocare Compacto */
.b2c-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

@media (max-width: 991px) {
  .b2c-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .b2c-trust-grid {
    grid-template-columns: 1fr;
  }
}

.b2c-trust-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.b2c-trust-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-teal);
  box-shadow: var(--shadow-soft);
}

.b2c-trust-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.b2c-trust-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.b2c-trust-icon-box.teal {
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary-teal);
}

.b2c-trust-icon-box.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}

.b2c-trust-icon-box.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
}

.b2c-trust-icon-box.indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #6366F1;
}

.b2c-trust-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0;
  line-height: 1.3;
}

.b2c-trust-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.48;
  margin: 0;
}

/* --------------------------------------------------------------------------
   14. CENTRO DE AYUDA Y ASISTENCIA AL PACIENTE (AYUDA.PHP)
   -------------------------------------------------------------------------- */
.help-hero-search-box {
  position: relative;
  max-width: 680px;
  margin: 1.75rem auto 1rem auto;
  display: flex;
  align-items: center;
  background: var(--surface-white);
  border: 2px solid var(--card-border);
  border-radius: 9999px;
  padding: 0.4rem 0.6rem 0.4rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.help-hero-search-box:focus-within {
  border-color: var(--primary-teal);
  box-shadow: 0 12px 35px rgba(20, 184, 166, 0.16);
}

.help-search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-heading);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
}

.help-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.help-search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.help-search-clear-btn:hover {
  color: var(--text-heading);
  background: var(--badge-bg);
}

.help-search-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.help-chip-btn {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  color: var(--text-heading);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.38rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.help-chip-btn:hover {
  background: rgba(20, 184, 166, 0.1);
  border-color: var(--primary-teal);
  color: var(--primary-teal);
  transform: translateY(-1px);
}

.help-chip-btn svg {
  color: var(--primary-teal);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.help-chip-btn:hover svg {
  transform: scale(1.1);
}

.help-chip-btn.is-active {
  background: var(--badge-bg);
  border-color: var(--primary-teal);
  color: var(--badge-text);
  font-weight: 700;
}

/* Panel de Resultados Instantáneos bajo el Buscador Principal de ayuda.php */
.help-instant-panel {
  max-width: 720px;
  margin: 1rem auto 0 auto;
  text-align: left;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
  animation: msgFadeIn 0.18s ease-out;
}

[data-theme="dark"] .help-instant-panel {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.help-instant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border-subtle);
}

.help-instant-count {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.help-instant-clear-link {
  border: none;
  background: transparent;
  color: var(--primary-teal);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.help-instant-clear-link:hover {
  text-decoration: underline;
}

.help-instant-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.help-instant-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 13px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.help-instant-card:hover {
  border-color: rgba(20, 184, 166, 0.55);
}

.help-instant-card.is-open {
  background: var(--surface-white);
  border-color: var(--primary-teal);
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.1);
}

.help-instant-q-btn {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.82rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
}

.help-instant-q-main {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.help-instant-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.help-instant-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.help-instant-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.35;
}

.help-instant-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.help-instant-card.is-open .help-instant-chevron {
  transform: rotate(180deg);
  color: var(--primary-teal);
}

.help-instant-body {
  display: none;
  padding: 0 0.95rem 0.95rem 0.95rem;
  border-top: 1px solid var(--card-border-subtle);
  padding-top: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-main);
}

.help-instant-card.is-open .help-instant-body {
  display: block;
}

.help-faq-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--card-border-subtle);
}

.help-instant-pro-banner {
  background: var(--badge-bg);
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 11px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-heading);
}

.help-instant-pro-banner a {
  color: var(--primary-teal);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.help-instant-pro-banner a:hover {
  text-decoration: underline;
}

.help-category-tab svg {
  color: currentColor;
  flex-shrink: 0;
}

#helpFaqList .faq-answer {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-main);
}

#helpFaqList .faq-answer strong {
  color: var(--text-heading);
}

#helpFaqList .faq-item.active .faq-answer {
  max-height: 1200px;
}

/* Tarjetas de Acción Rápida & Autoservicio */
.help-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .help-action-grid {
    grid-template-columns: 1fr;
  }
}

.help-action-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.help-action-card:hover {
  border-color: var(--primary-teal);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

.help-action-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.help-action-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.help-action-badge.teal {
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary-teal);
}

.help-action-badge.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
}

.help-action-badge.purple {
  background: rgba(147, 51, 234, 0.12);
  color: #9333EA;
}

.help-action-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-action-icon-box.teal {
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary-teal);
}

.help-action-icon-box.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
}

.help-action-icon-box.purple {
  background: rgba(147, 51, 234, 0.12);
  color: #9333EA;
}

.help-action-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.help-action-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Píldoras de Categorías FAQ */
.help-category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2rem;
  max-width: 100%;
}

.help-category-tab {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.42rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.help-category-tab:hover {
  color: var(--text-heading);
  border-color: var(--primary-teal);
}

.help-category-tab.active {
  background: var(--primary-teal);
  color: #FFFFFF;
  border-color: var(--primary-teal);
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.28);
}

@media (max-width: 640px) {
  .help-category-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .help-category-tabs::-webkit-scrollbar {
    display: none;
  }
}

/* FAQ Item refinements */
.help-faq-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-teal);
  background: rgba(20, 184, 166, 0.1);
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  margin-right: 0.5rem;
  display: inline-block;
  vertical-align: middle;
}

.faq-highlight-match {
  background: rgba(20, 184, 166, 0.25);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 800;
}

.help-no-results {
  background: var(--surface-white);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-card);
  padding: 2.75rem 1.5rem;
  text-align: center;
  display: none;
}

/* Banner de Atención Urgente */
.help-urgent-notice {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-heading);
}

.help-urgent-notice .urgent-icon {
  color: #F59E0B;
  flex-shrink: 0;
}

/* Tarjeta Destacada B2B: Intocare Clínico */
.help-b2b-card {
  margin-top: 3.5rem;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-hero);
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

[data-theme="dark"] .help-b2b-card {
  background: #0B1120;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.help-b2b-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-teal) 0%, #3B82F6 50%, #8B5CF6 100%);
}

.help-b2b-card:hover {
  border-color: var(--primary-teal);
  box-shadow: 0 18px 45px rgba(20, 184, 166, 0.15);
  transform: translateY(-2px);
}

.help-b2b-inner {
  padding: 2.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

@media (max-width: 960px) {
  .help-b2b-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 1.75rem;
    gap: 1.75rem;
  }
}

.help-b2b-content {
  flex: 1;
}

.help-b2b-badge-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.help-b2b-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-b2b-tag {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--primary-teal);
  text-transform: uppercase;
}

.help-b2b-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.help-b2b-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  max-width: 620px;
}

.help-b2b-features {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
}

.help-b2b-feat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-heading);
}

.help-b2b-action-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 260px;
}

.help-b2b-action-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.help-b2b-trust-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
}

/* ==========================================================================
   SELECTOR DE ESPECIALIDAD Y WIDGET CLÍNICO DE PSICOLOGÍA (RADAR ROM)
   Fiel al SaaS original (SessionWidgetsContainer + PsychologyRadarWidget)
   ========================================================================== */

.specialty-mockup-switcher-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0 auto 1.5rem auto;
  max-width: 1180px;
}

.specialty-mockup-switcher-label {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.specialty-mockup-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.38rem;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.specialty-mockup-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.specialty-mockup-tab:hover:not(.active) {
  background: var(--card-bg);
  color: var(--text-heading);
}

.specialty-mockup-tab-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--card-bg);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.specialty-mockup-tab-pill {
  font-size: 0.69rem;
  font-weight: 700;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

/* Estado Activo: Fisioterapia y Terapia Manual (Teal) */
.specialty-mockup-tab[data-specialty="physiotherapy"].active {
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.38);
  color: var(--text-heading);
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(20, 184, 166, 0.12);
}

.specialty-mockup-tab[data-specialty="physiotherapy"].active .specialty-mockup-tab-icon {
  background: rgba(20, 184, 166, 0.16);
  color: var(--primary-teal);
}

.specialty-mockup-tab[data-specialty="physiotherapy"].active .specialty-mockup-tab-pill {
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(20, 184, 166, 0.32);
  color: var(--badge-text);
}

/* Estado Activo: Psicología (Violeta #8B5CF6 fiel a CenterType.psychology) */
.specialty-mockup-tab[data-specialty="psychology"].active {
  background: rgba(139, 92, 246, 0.09);
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--text-heading);
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(139, 92, 246, 0.14);
}

.specialty-mockup-tab[data-specialty="psychology"].active .specialty-mockup-tab-icon {
  background: rgba(139, 92, 246, 0.16);
  color: #7C3AED;
}

.specialty-mockup-tab[data-specialty="psychology"].active .specialty-mockup-tab-pill {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.32);
  color: #6D28D9;
}

[data-theme="dark"] .specialty-mockup-tab[data-specialty="psychology"].active {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(167, 139, 250, 0.42);
}

[data-theme="dark"] .specialty-mockup-tab[data-specialty="psychology"].active .specialty-mockup-tab-icon {
  background: rgba(139, 92, 246, 0.24);
  color: #A78BFA;
}

[data-theme="dark"] .specialty-mockup-tab[data-specialty="psychology"].active .specialty-mockup-tab-pill {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(167, 139, 250, 0.35);
  color: #C4B5FD;
}

.specialty-mockup-roadmap-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

/* Altura adaptativa de la barra lateral derecha según el widget activo */
.bodymap-saas-window .saas-sidebar-col {
  max-height: 650px;
  transition: max-height 0.25s ease;
}

.bodymap-saas-window[data-active-specialty="psychology"] .saas-sidebar-col {
  max-height: 870px;
}

/* Contraste impecable en Modo Oscuro para Notas Internas (Privado) */
[data-theme="dark"] .saas-note-box-private {
  color: #FDBA74 !important;
}

/* Cabecera común de SessionWidgetsContainer (Aviso confidencial + Resumen derecho) */
.saas-widget-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.saas-widget-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.saas-widget-privacy-row {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.12rem;
  font-size: 0.71rem;
  font-weight: 600;
  color: #B45309;
}

.saas-widget-privacy-row svg {
  color: #D97706;
  flex-shrink: 0;
}

[data-theme="dark"] .saas-widget-privacy-row {
  color: #FBBF24;
}

[data-theme="dark"] .saas-widget-privacy-row svg {
  color: #F59E0B;
}

.saas-widget-summary-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Banner Superior: Índice Global de Bienestar (ROM) */
.psych-wellbeing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem 0.9rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.10) 0%, rgba(99, 102, 241, 0.04) 100%);
  border: 1px solid rgba(139, 92, 246, 0.22);
  margin-bottom: 0.85rem;
}

[data-theme="dark"] .psych-wellbeing-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-color: rgba(139, 92, 246, 0.35);
}

.psych-wellbeing-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.psych-avg-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-kpi);
  font-size: 1.02rem;
  font-weight: 800;
  flex-shrink: 0;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.32);
  color: #7C3AED;
  transition: all 0.2s ease;
}

.psych-wellbeing-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.psych-wellbeing-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
}

.psych-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #7C3AED;
  transition: all 0.2s ease;
}

.psych-wellbeing-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.35;
}

.psych-reset-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--surface-white);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.psych-reset-btn:hover {
  color: #DC2626;
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.05);
}

.psych-activate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.78rem;
  border-radius: 8px;
  border: none;
  background: #8B5CF6;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, transform 0.15s ease;
}

.psych-activate-btn:hover {
  background: #7C3AED;
  transform: translateY(-1px);
}

/* Contenedor del Radar Hexagonal Interactivo (Canvas) */
.psych-radar-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

[data-theme="dark"] .psych-radar-wrap {
  background: rgba(15, 23, 42, 0.55);
}

#psychRadarCanvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* Cuadrícula de 6 Dimensiones con Sliders (2 columnas fiel a quiroerp) */
.psych-dims-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.psych-dim-card {
  padding: 0.55rem 0.7rem 0.5rem 0.7rem;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.psych-dim-card.scored {
  border-color: rgba(139, 92, 246, 0.24);
}

.psych-dim-card.active-axis {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.14);
}

[data-theme="dark"] .psych-dim-card {
  background: rgba(24, 35, 55, 0.72);
}

[data-theme="dark"] .psych-dim-card.scored {
  border-color: rgba(139, 92, 246, 0.35);
}

.psych-dim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.32rem;
}

.psych-dim-label-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.psych-dim-icon {
  color: #7C3AED;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .psych-dim-icon {
  color: #A78BFA;
}

.psych-dim-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.psych-dim-score {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.08rem 0.42rem;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.12);
  color: #7C3AED;
  flex-shrink: 0;
}

/* Slider de rango personalizado estilo Flutter SliderTheme (#8B5CF6) */
.psych-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(to right, #8B5CF6 0%, #8B5CF6 var(--slider-pct, 70%), #E2E8F0 var(--slider-pct, 70%), #E2E8F0 100%);
  outline: none;
  cursor: pointer;
  display: block;
  margin: 0.25rem 0 0.1rem 0;
}

[data-theme="dark"] .psych-range-slider {
  background: linear-gradient(to right, #8B5CF6 0%, #8B5CF6 var(--slider-pct, 70%), #334155 var(--slider-pct, 70%), #334155 100%);
}

.psych-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #8B5CF6;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(139, 92, 246, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.psych-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.18);
}

.psych-range-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #8B5CF6;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(139, 92, 246, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease;
}

/* Sección de 12 Focos Terapéuticos Abordados */
.psych-focus-section {
  border-top: 1px solid var(--border-divider);
  padding-top: 0.85rem;
}

.psych-focus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.psych-focus-title {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-heading);
}

.psych-focus-title svg {
  color: #7C3AED;
  flex-shrink: 0;
}

[data-theme="dark"] .psych-focus-title svg {
  color: #A78BFA;
}

.psych-focus-count-pill {
  font-size: 0.69rem;
  font-weight: 700;
  padding: 0.12rem 0.52rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: #7C3AED;
  white-space: nowrap;
}

[data-theme="dark"] .psych-focus-count-pill {
  background: rgba(139, 92, 246, 0.22);
  color: #C4B5FD;
}

.psych-focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.psych-focus-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.36rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
  line-height: 1.2;
}

.psych-focus-chip:hover:not(.active) {
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--text-heading);
}

.psych-focus-chip .chip-check {
  display: none;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.psych-focus-chip.active {
  background: rgba(139, 92, 246, 0.13);
  border-color: #8B5CF6;
  color: #6D28D9;
  font-weight: 700;
}

.psych-focus-chip.active .chip-check {
  display: inline-block;
}

[data-theme="dark"] .psych-focus-chip {
  background: rgba(24, 35, 55, 0.8);
}

[data-theme="dark"] .psych-focus-chip.active {
  background: rgba(139, 92, 246, 0.25);
  border-color: #A78BFA;
  color: #DDD6FE;
}

@media (max-width: 991px) {
  .bodymap-window-grid {
    grid-template-columns: 1fr !important;
    padding: 1.1rem !important;
    gap: 1.15rem !important;
  }

  .bodymap-window-header {
    flex-wrap: wrap;
    padding: 0.85rem 1.05rem !important;
  }

  .bodymap-saas-window .saas-sidebar-col,
  .bodymap-saas-window[data-active-specialty="psychology"] .saas-sidebar-col {
    max-height: none !important;
    overflow-y: visible !important;
    padding-right: 0 !important;
  }
}

#saasWindowDot,
.saas-close-btn {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .specialty-mockup-switcher {
    width: 100%;
    border-radius: 14px;
  }

  .specialty-mockup-tab {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .psych-dims-grid {
    grid-template-columns: 1fr;
  }

  .psych-radar-wrap {
    height: 275px;
  }

  .saas-widget-header-row {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   GOOGLE RECAPTCHA V3 (FIREBASE APP CHECK) & ATRIBUCIÓN LEGAL B2C
   Conforme a la documentación oficial de Google reCAPTCHA v3 FAQ:
   se oculta el badge flotante inferior derecho para evitar la colisión visual
   con el lanzador del Asistente Intocare (#chatbotTriggerBtn), mostrando el
   aviso legal oficial de privacidad y condiciones en el pie del directorio.
   ========================================================================== */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.b2c-recaptcha-legal-note {
  margin-top: 1.15rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-subtle);
}

.b2c-recaptcha-legal-note a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.18s ease;
}

.b2c-recaptcha-legal-note a:hover {
  color: var(--primary-teal);
}

/* ==========================================================================
   INICIO PROFESIONALES (SÍNTESIS EJECUTIVA, ESCAPARATES Y SIMETRÍA B2B)
   ========================================================================== */

/* 1. Grid esquemático y simétrico de capacidades (6 tarjetas: 3x2 -> 2x3 -> 1x6) */
.home-capabilities-section {
  background-color: var(--canvas-bg);
}

.home-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.home-cap-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.85rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.home-cap-card:hover {
  border-color: var(--primary-teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

[data-theme="dark"] .home-cap-card:hover {
  background: var(--card-bg);
}

.home-cap-card:hover .bento-corner-arrow {
  color: var(--primary-teal);
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.35);
  transform: translate(2px, -2px);
}

.home-cap-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-right: 2.25rem;
  margin-bottom: 1.15rem;
}

.home-cap-top .bento-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.home-cap-top .badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
}

.home-cap-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 0.55rem;
  transition: color 180ms ease;
}

.home-cap-card:hover h3 {
  color: var(--primary-teal);
}

.home-cap-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.58;
  margin: 0;
}

/* 2. Bloque Escaparate: Ficha Clínica & Evolución IA (2 columnas simétricas) */
.clinical-showcase-section {
  background-color: var(--surface-white);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.clinical-showcase-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.clinical-showcase-copy .section-tag {
  margin-bottom: 1rem;
}

.clinical-showcase-copy h2 {
  font-size: 2.2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.clinical-showcase-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.62;
  margin-bottom: 1.75rem;
}

.clinical-pillars-list {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  margin-bottom: 2rem;
}

.clinical-pillar-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.clinical-pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.clinical-pillar-icon.teal {
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary-teal);
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.clinical-pillar-icon.purple {
  background: rgba(168, 85, 247, 0.12);
  color: #A855F7;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.clinical-pillar-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.clinical-pillar-text strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.15rem;
}

.clinical-pillar-text span {
  display: block;
  font-size: 0.89rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Panel Esquemático Conceptual Derecho (sin exponer pantallas internas) */
.clinical-showcase-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-hero);
  padding: 1.85rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.clinical-showcase-panel::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.showcase-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--card-border);
  position: relative;
  z-index: 2;
}

.showcase-panel-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-heading);
}

.showcase-flow-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  z-index: 2;
}

.showcase-flow-step {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.05rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.showcase-flow-step.is-accent {
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.08);
}

.showcase-flow-step:hover {
  border-color: var(--primary-teal);
  transform: translateX(3px);
}

.showcase-step-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.showcase-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.showcase-step-icon.teal {
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary-teal);
}

.showcase-step-icon.purple {
  background: rgba(168, 85, 247, 0.12);
  color: #A855F7;
}

.showcase-step-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
}

.showcase-step-copy strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.showcase-step-copy span {
  display: block;
  font-size: 0.81rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.showcase-panel-footer {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.showcase-footer-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* 3. Bloque Escaparate de Suscripciones Transparentes + Barra Multisede */
.home-pricing-section {
  background-color: var(--canvas-bg);
  padding-bottom: 2.5rem;
}

.pricing-teaser-box {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-hero);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-teaser-box::after {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 240px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.11) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-teaser-header {
  max-width: 760px;
  margin: 0 auto 2.35rem auto;
  position: relative;
  z-index: 2;
}

.pricing-teaser-header .section-tag {
  margin-bottom: 1rem;
}

.pricing-teaser-header h2 {
  font-size: 2.3rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.pricing-teaser-header p {
  font-size: 1.04rem;
  color: var(--text-muted);
  line-height: 1.62;
  margin: 0;
}

.pricing-pillars-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  margin-bottom: 2.35rem;
  position: relative;
  z-index: 2;
}

.pricing-pillar-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.35rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: var(--transition-smooth);
}

.pricing-pillar-item:hover {
  border-color: rgba(20, 184, 166, 0.45);
  transform: translateY(-2px);
}

.pricing-pillar-kpi {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary-teal);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.pricing-pillar-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
}

.pricing-pillar-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.38;
}

.pricing-teaser-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Barra horizontal compacta y simétrica para Multisede */
.multicenter-compact-card {
  margin-top: 1.5rem;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.multicenter-compact-info {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.multicenter-compact-info .bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.multicenter-compact-info h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.multicenter-compact-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.48;
}

@media (max-width: 991px) {
  .home-cap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .clinical-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .pricing-pillars-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-teaser-box {
    padding: 2.5rem 1.75rem;
  }
}

@media (max-width: 820px) {
  .multicenter-compact-card {
    flex-direction: column;
    text-align: center;
    padding: 1.65rem 1.35rem;
  }

  .multicenter-compact-info {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .home-cap-grid {
    grid-template-columns: 1fr;
  }

  .clinical-showcase-copy h2,
  .pricing-teaser-header h2 {
    font-size: 1.75rem;
  }

  .showcase-flow-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .showcase-panel-footer {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .pricing-pillars-strip {
    grid-template-columns: 1fr;
  }

  .pricing-teaser-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   REDISEÑO INICIO PACIENTES (B2C V2) - BUSCADOR PROTAGONISTA & PORTAL BENTO
   ========================================================================== */

.b2c-hero-v2 {
  position: relative;
  padding: 3.5rem 0 4.25rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(20, 184, 166, 0.16) 0%, rgba(14, 165, 233, 0.06) 48%, transparent 80%),
    var(--canvas-bg);
}

.b2c-hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.075) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 35%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .b2c-hero-v2 {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(45, 212, 191, 0.16) 0%, rgba(56, 189, 248, 0.06) 48%, transparent 80%),
    var(--canvas-bg);
}

[data-theme="dark"] .b2c-hero-v2::before {
  background-image: radial-gradient(rgba(248, 250, 252, 0.07) 1px, transparent 1px);
}

.b2c-hero-center-wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.b2c-hero-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 1rem;
  border-radius: 9999px;
  background: var(--surface-white);
  border: 1px solid rgba(20, 184, 166, 0.32);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  color: var(--text-heading);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.35rem;
}

[data-theme="dark"] .b2c-hero-top-pill {
  background: rgba(14, 21, 36, 0.85);
  border-color: rgba(45, 212, 191, 0.3);
}

.b2c-hero-top-pill strong {
  color: var(--primary-teal);
  font-weight: 700;
}

.b2c-hero-heading {
  font-size: clamp(2.15rem, 4.3vw, 3.3rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  max-width: 820px;
  margin: 0 auto 1rem;
}

.b2c-hero-sub {
  font-size: 1.08rem;
  line-height: 1.58;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.1rem;
}

/* Cápsula Horizontal Protagonista de Búsqueda */
.b2c-search-dock {
  display: grid;
  grid-template-columns: 1.45fr 1px 0.95fr auto;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface-white);
  border: 1.5px solid rgba(20, 184, 166, 0.32);
  border-radius: 20px;
  padding: 0.55rem 0.55rem 0.55rem 0.85rem;
  box-shadow:
    0 22px 50px rgba(15, 23, 42, 0.09),
    0 0 0 6px rgba(20, 184, 166, 0.06);
  max-width: 920px;
  margin: 0 auto 1.15rem;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.b2c-search-dock:focus-within {
  border-color: var(--primary-teal);
  box-shadow:
    0 24px 56px rgba(20, 184, 166, 0.16),
    0 0 0 6px rgba(20, 184, 166, 0.11);
}

[data-theme="dark"] .b2c-search-dock {
  background: var(--surface-white);
  border-color: rgba(45, 212, 191, 0.32);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.5),
    0 0 0 6px rgba(45, 212, 191, 0.07);
}

.b2c-dock-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 13px;
  min-width: 0;
  transition: background 0.18s ease;
}

.b2c-dock-field:focus-within {
  background: rgba(20, 184, 166, 0.05);
}

.b2c-dock-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(20, 184, 166, 0.11);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.b2c-dock-input-stack {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.b2c-dock-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-teal);
  line-height: 1.2;
  margin-bottom: 0.12rem;
}

.b2c-dock-control {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  outline: none;
  padding: 0;
  text-overflow: ellipsis;
}

.b2c-dock-control::placeholder {
  color: var(--text-subtle);
  font-weight: 500;
}

.b2c-dock-control option {
  background: var(--surface-white);
  color: var(--text-heading);
}

.b2c-dock-divider {
  width: 1px;
  height: 40px;
  background: var(--card-border);
}

.b2c-dock-submit {
  height: 54px;
  padding: 0 1.65rem;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  white-space: nowrap;
}

/* Barra rápida bajo el buscador: Mapa GPS + Acceso Pacientes */
.b2c-hero-quickbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  margin-bottom: 2.15rem;
}

.b2c-map-near-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 1rem;
  border-radius: 9999px;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  color: var(--text-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
  transition: var(--transition-smooth);
}

.b2c-map-near-btn:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.14);
}

.b2c-map-near-btn svg {
  color: var(--primary-teal);
}

.b2c-gps-tag {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.13);
  color: var(--primary-teal);
}

.b2c-quickbar-sep {
  color: var(--card-border);
  font-weight: 700;
}

.b2c-returning-link {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.b2c-returning-link a {
  color: var(--primary-teal);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.b2c-returning-link a:hover {
  text-decoration: underline;
}

/* Tira de Especialidades en 1 Clic integrada en el Hero */
.b2c-hero-spec-wrap {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  max-width: 920px;
  margin: 0 auto;
}

.b2c-hero-spec-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.b2c-hero-spec-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.b2c-spec-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.48rem 0.92rem;
  border-radius: 9999px;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  color: var(--text-heading);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.b2c-spec-quick-pill:hover {
  border-color: var(--primary-teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.13);
  color: var(--primary-teal);
}

.b2c-spec-pill-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.b2c-spec-pill-dot.teal { background: rgba(20, 184, 166, 0.14); color: #0D9488; }
.b2c-spec-pill-dot.blue { background: rgba(59, 130, 246, 0.14); color: #2563EB; }
.b2c-spec-pill-dot.purple { background: rgba(168, 85, 247, 0.14); color: #9333EA; }
.b2c-spec-pill-dot.amber { background: rgba(245, 158, 11, 0.15); color: #D97706; }
.b2c-spec-pill-dot.indigo { background: rgba(99, 102, 241, 0.14); color: #4F46E5; }
.b2c-spec-pill-dot.pink { background: rgba(236, 72, 153, 0.14); color: #DB2777; }
.b2c-spec-pill-dot.emerald { background: rgba(16, 185, 129, 0.14); color: #059669; }

[data-theme="dark"] .b2c-spec-pill-dot.teal { color: #2DD4BF; }
[data-theme="dark"] .b2c-spec-pill-dot.blue { color: #60A5FA; }
[data-theme="dark"] .b2c-spec-pill-dot.purple { color: #C084FC; }
[data-theme="dark"] .b2c-spec-pill-dot.amber { color: #FBBF24; }
[data-theme="dark"] .b2c-spec-pill-dot.indigo { color: #818CF8; }
[data-theme="dark"] .b2c-spec-pill-dot.pink { color: #F472B6; }
[data-theme="dark"] .b2c-spec-pill-dot.emerald { color: #34D399; }

.b2c-spec-quick-pill.view-all {
  background: rgba(20, 184, 166, 0.09);
  border-color: rgba(20, 184, 166, 0.3);
  color: var(--primary-teal);
  font-weight: 700;
}

/* Sección Bento: Valor Diferencial y Portal del Paciente */
.b2c-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.b2c-bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.35rem;
  transition: var(--transition-smooth);
}

.b2c-bento-card:hover {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.b2c-bento-visual {
  background: var(--surface-white);
  border: 1px solid var(--card-border-subtle);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

@media (min-width: 992px) {
  @supports (grid-template-rows: subgrid) {
    .b2c-bento-card {
      display: grid;
      grid-row: span 2;
      grid-template-rows: subgrid;
      row-gap: 1.35rem;
      align-items: start;
    }

    .b2c-bento-card .b2c-bento-visual {
      align-self: stretch;
    }
  }
}

[data-theme="dark"] .b2c-bento-visual {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.b2c-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.b2c-mini-pill-ok {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.13);
  color: #059669;
}

[data-theme="dark"] .b2c-mini-pill-ok {
  color: #34D399;
}

.b2c-bento-copy h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.b2c-bento-copy p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.58;
  margin: 0;
}

/* Barra Horizontal de Acceso al Portal del Paciente */
.b2c-portal-cta-bar {
  margin-top: 1.75rem;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.09) 0%, rgba(14, 165, 233, 0.06) 100%);
  border: 1.5px solid rgba(20, 184, 166, 0.28);
  border-radius: 18px;
  padding: 1.5rem 1.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.b2c-portal-cta-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 260px;
}

.b2c-portal-cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-white);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.12);
}

.b2c-portal-cta-left h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.2rem;
}

.b2c-portal-cta-left p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.b2c-portal-cta-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Franja Unificada de Garantías Sanitarias bajo los 3 Pasos */
.b2c-guarantees-ribbon {
  margin-top: 2rem;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.15rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.b2c-guarantee-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.b2c-guarantee-inline-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.11);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.b2c-guarantee-inline strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
}

.b2c-guarantee-inline span {
  display: block;
  font-size: 0.79rem;
  color: var(--text-muted);
  line-height: 1.35;
}

@media (max-width: 991px) {
  .b2c-bento-grid {
    grid-template-columns: 1fr;
  }

  .b2c-guarantees-ribbon {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 820px) {
  .b2c-search-dock {
    grid-template-columns: 1fr;
    padding: 0.75rem;
    gap: 0.55rem;
  }

  .b2c-dock-divider {
    width: 100%;
    height: 1px;
  }

  .b2c-dock-submit {
    width: 100%;
    margin-top: 0.2rem;
  }

  .b2c-quickbar-sep {
    display: none;
  }

  .b2c-portal-cta-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.35rem;
  }

  .b2c-portal-cta-actions,
  .b2c-portal-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .b2c-hero-v2 {
    padding: 2.35rem 0 3.25rem;
  }

  .b2c-hero-top-pill {
    font-size: 0.75rem;
    padding: 0.38rem 0.8rem;
  }

  .b2c-hero-sub {
    font-size: 0.96rem;
  }
}

/* ==========================================================================
   ESPECIALIDADES B2B (GRID SIMÉTRICO 2x4 & BASE COMÚN TRANSVERSAL)
   ========================================================================== */

.spec-section {
  background-color: var(--canvas-bg);
  padding: 3.5rem 0 2rem;
}

.spec-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.spec-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.9rem 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  scroll-margin-top: 95px;
}

.spec-card:hover {
  border-color: var(--primary-teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

[data-theme="dark"] .spec-card:hover {
  background: var(--card-bg);
}

.spec-card:target {
  animation: bentoTargetHighlight 2.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-color: var(--primary-teal);
}

.spec-card:hover .bento-corner-arrow {
  color: var(--primary-teal);
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.35);
  transform: translate(2px, -2px);
}

.spec-card .bento-card-header {
  margin-bottom: 1rem;
  padding-right: 2.25rem;
}

.spec-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
  transition: color 180ms ease;
}

.spec-card:hover h3 {
  color: var(--primary-teal);
}

.spec-card-lead {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.56;
  margin: 0 0 1.2rem 0;
}

.spec-points-list {
  list-style: none;
  margin: auto 0 0 0;
  padding: 1.05rem 0 0 0;
  border-top: 1px solid var(--card-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}

.spec-points-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.89rem;
  color: var(--text-main);
  line-height: 1.46;
}

.spec-points-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary-teal);
}

/* Bloque Transversal: Base Común Incluida en Todas las Disciplinas */
.spec-common-box {
  margin-top: 3rem;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-hero);
  padding: 2.85rem 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.spec-common-box::after {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 540px;
  height: 220px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.spec-common-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 2;
}

.spec-common-header .section-tag {
  margin-bottom: 0.85rem;
}

.spec-common-header h2 {
  font-size: 1.95rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.spec-common-header p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.58;
  margin: 0;
}

.spec-common-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.spec-common-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

.spec-common-item:hover {
  border-color: var(--primary-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.spec-common-item .bento-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin-bottom: 0.2rem;
  flex-shrink: 0;
}

.spec-common-item h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
  line-height: 1.3;
  transition: color 180ms ease;
}

.spec-common-item:hover h3 {
  color: var(--primary-teal);
}

.spec-common-item p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.48;
  margin: 0;
}

.spec-common-actions {
  margin-top: 1.85rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 991px) {
  .spec-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .spec-common-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-common-box {
    padding: 2.25rem 1.65rem;
  }
}

@media (max-width: 640px) {
  .spec-section {
    padding: 2.5rem 0 1.5rem;
  }

  .spec-card {
    padding: 1.5rem 1.35rem;
  }

  .spec-common-header h2 {
    font-size: 1.58rem;
  }

  .spec-common-grid {
    grid-template-columns: 1fr;
  }

  .spec-common-box {
    padding: 1.85rem 1.25rem;
  }

  .spec-common-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   FUNCIONALIDADES B2B (ESCAPARATES MINIMALISTAS, CONSOLA MULTIESPECIALIDAD Y 2x2)
   ========================================================================== */

.func-showcase-section {
  padding: 4.25rem 0;
  scroll-margin-top: 95px;
}

.func-showcase-section.is-canvas {
  background-color: var(--canvas-bg);
}

.func-showcase-section.is-white {
  background-color: var(--surface-white);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.func-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.25rem;
  align-items: center;
}

.func-showcase-grid.is-clinical {
  grid-template-columns: 0.96fr 1.04fr;
}

.func-showcase-copy .section-tag {
  margin-bottom: 0.95rem;
}

.func-showcase-copy h2 {
  font-size: 2.15rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.95rem 0;
}

.func-showcase-lead {
  font-size: 1.01rem;
  color: var(--text-muted);
  line-height: 1.62;
  margin: 0 0 1.5rem 0;
}

.func-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.func-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.93rem;
  color: var(--text-main);
  line-height: 1.52;
}

.func-check-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--primary-teal);
}

.func-check-list li strong {
  color: var(--text-heading);
  font-weight: 700;
}

.func-actions-row {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Nota clara de adaptación multiespecialidad en Ficha de Sesión */
.func-specialty-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(20, 184, 166, 0.06);
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 13px;
  padding: 0.9rem 1.05rem;
  margin-bottom: 1.35rem;
  font-size: 0.87rem;
  color: var(--text-main);
  line-height: 1.5;
}

[data-theme="dark"] .func-specialty-note {
  background: rgba(45, 212, 191, 0.08);
  border-color: rgba(45, 212, 191, 0.25);
}

.func-specialty-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary-teal);
}

.func-specialty-note strong {
  color: var(--text-heading);
  font-weight: 700;
}

/* Tarjetas Escaparate Minimalistas (#agenda y #reservas) */
.func-visual-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-hero);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.func-visual-card.on-white {
  background: var(--card-bg);
}

.func-visual-card::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.func-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.95rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--card-border);
  position: relative;
  z-index: 2;
}

.func-visual-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-heading);
}

.func-url-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.75rem;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-heading);
}

.func-url-pill svg {
  color: var(--primary-teal);
  flex-shrink: 0;
}

.func-visual-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  z-index: 2;
}

.func-appt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.func-visual-card.on-white .func-appt-row,
.func-visual-card.on-white .func-booking-step {
  background: var(--surface-white);
}

.func-appt-row:hover {
  border-color: var(--primary-teal);
  transform: translateX(2px);
}

.func-appt-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.func-appt-time {
  font-family: var(--font-kpi);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary-teal);
  background: rgba(20, 184, 166, 0.11);
  border: 1px solid rgba(20, 184, 166, 0.24);
  padding: 0.26rem 0.55rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.func-appt-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
}

.func-appt-info span {
  display: block;
  font-size: 0.79rem;
  color: var(--text-muted);
  margin-top: 0.12rem;
}

/* Pasos minimalistas de Reserva Online (#reservas) */
.func-booking-step {
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.func-booking-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.func-booking-label {
  font-size: 0.71rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.func-booking-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
}

.func-slots-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.func-slot-chip {
  text-align: center;
  padding: 0.42rem 0.35rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  font-family: var(--font-kpi);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-heading);
}

.func-slot-chip.is-selected {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
}

[data-theme="dark"] .func-slot-chip.is-selected {
  color: #070A11;
}

.func-visual-footer {
  margin-top: 1.05rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.func-footer-fact {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-muted);
}

.func-footer-fact svg {
  color: var(--primary-teal);
  flex-shrink: 0;
}

/* Consola Clínica Multiespecialidad (#ficha-sesion - Visual 1) */
.func-clinical-console {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-hero);
  padding: 1.65rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.func-clinical-console::after {
  content: '';
  position: absolute;
  top: -90px;
  right: -70px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.13) 0%, transparent 70%);
  pointer-events: none;
}

.console-specialty-bar {
  position: relative;
  z-index: 2;
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--card-border);
}

.console-specialty-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.console-specialty-pills {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.console-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
}

.console-spec-pill.is-active {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.42);
  color: var(--primary-teal);
  font-weight: 700;
}

.console-spec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-teal);
}

.console-body-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 0.95rem;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.console-bodymap-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
}

.console-box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.console-box-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-heading);
}

.console-example-tag {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.14rem 0.5rem;
  border-radius: 9999px;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
}

.console-silhouette-frame {
  background: var(--surface-white);
  border: 1px solid var(--card-border-subtle);
  border-radius: 10px;
  padding: 0.6rem 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 172px;
}

.console-silhouette-frame img {
  width: 100%;
  height: 162px;
  object-fit: contain;
}

.console-zone-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.38rem 0.6rem;
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.09);
  border: 1px solid rgba(20, 184, 166, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-teal);
}

.console-ai-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
}

.console-ai-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 13px;
  padding: 0.85rem 0.95rem;
}

.console-ai-card.is-accent {
  border-color: rgba(168, 85, 247, 0.35);
}

.console-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.console-ai-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--text-heading);
}

.console-ai-snippet {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.48;
  background: var(--surface-white);
  border: 1px solid var(--card-border-subtle);
  border-left: 2.5px solid #A855F7;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
}

.console-privacy-rows {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.console-privacy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.42rem 0.6rem;
  border-radius: 8px;
  background: var(--surface-white);
  border: 1px solid var(--card-border-subtle);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-heading);
}

.console-adapt-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.console-adapt-footer svg {
  color: var(--primary-teal);
  flex-shrink: 0;
}

/* Grid Simétrico 2x2: Operativa Legal, Financiera y de Equipo */
.func-grid-section {
  background-color: var(--surface-white);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 4.5rem 0;
}

.func-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  align-items: stretch;
}

.func-module-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.9rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  scroll-margin-top: 95px;
}

.func-module-card:hover {
  border-color: var(--primary-teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.func-module-card:target,
.func-showcase-section:target,
.func-gestoria-section:target {
  animation: bentoTargetHighlight 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.func-module-card .bento-card-header {
  margin-bottom: 1rem;
}

.func-module-card h3 {
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
  margin: 0 0 0.55rem 0;
}

.func-module-lead {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.56;
  margin: 0 0 1.15rem 0;
  flex: 1;
}

/* Micro-Escaparate Limpio dentro de cada tarjeta del 2x2 */
.func-micro-preview {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  min-height: 62px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.func-module-card .spec-points-list {
  margin-top: 0;
}

@media (min-width: 992px) {
  @supports (grid-template-rows: subgrid) {
    .func-modules-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: 1.6rem;
      row-gap: 0;
    }

    .func-module-card {
      display: grid;
      grid-row: span 5;
      grid-template-rows: subgrid;
      row-gap: 0;
      align-items: start;
    }

    .func-module-card:nth-child(n + 3) {
      margin-top: 1.6rem;
    }

    .func-module-card .func-micro-preview {
      align-self: stretch;
    }
  }
}

.func-micro-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.func-micro-copy strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
}

.func-micro-copy span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.12rem;
}

.func-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--primary-teal);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.18s ease;
}

.func-inline-link:hover {
  opacity: 0.82;
  text-decoration: underline;
}

.func-voucher-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.func-voucher-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--card-border);
  background: transparent;
}

.func-voucher-dot.is-used {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
}

/* Bloque 5: Tu Gestoría + Barra Simétrica para Despachos */
.func-gestoria-section {
  background-color: var(--canvas-bg);
  padding: 4.25rem 0 2.5rem;
  scroll-margin-top: 95px;
}

.func-gestoria-box {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-hero);
  padding: 3rem 2.75rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.func-gestoria-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 991px) {
  .func-showcase-grid,
  .func-showcase-grid.is-clinical,
  .func-gestoria-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .func-showcase-grid.is-reversed .func-visual-card {
    order: 2;
  }

  .func-showcase-grid.is-reversed .func-showcase-copy {
    order: 1;
  }

  .func-modules-grid {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .func-gestoria-box {
    padding: 2.25rem 1.75rem;
  }
}

@media (max-width: 640px) {
  .func-showcase-section,
  .func-grid-section {
    padding: 3rem 0;
  }

  .func-showcase-copy h2 {
    font-size: 1.72rem;
  }

  .console-body-grid {
    grid-template-columns: 1fr;
  }

  .func-slots-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .func-module-card {
    padding: 1.55rem 1.35rem;
  }

  .func-gestoria-box {
    padding: 1.85rem 1.3rem;
  }

  .func-actions-row .btn {
    width: 100%;
  }
}


/* ============================================================================
   FICHA CLÍNICA & IA (mapa-corporal.php) — REDISEÑO LIMPIO Y SIMÉTRICO
   ============================================================================ */

.clinica-hero {
  padding-bottom: 4rem;
}

.clinica-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
}

.clinica-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

/* Escaparate Conceptual del Expediente Clínico en el Hero */
.clinica-dossier-showcase {
  max-width: 1060px;
  margin: 0 auto;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-hero);
  padding: 1.45rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.clinica-dossier-showcase::before {
  content: '';
  position: absolute;
  top: -110px;
  right: -90px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.11) 0%, transparent 70%);
  pointer-events: none;
}

.clinica-dossier-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--card-border);
  position: relative;
  z-index: 2;
}

.clinica-dossier-patient {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.clinica-patient-avatar {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.28);
  color: var(--primary-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.clinica-patient-meta strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
}

.clinica-patient-meta span {
  display: block;
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 0.12rem;
}

.clinica-dossier-pills {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.clinica-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.32rem 0.72rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-heading);
}

.clinica-status-pill.is-teal {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.32);
  color: var(--primary-teal);
}

.clinica-dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.clinica-dossier-col {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
}

.clinica-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.clinica-col-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-heading);
}

.clinica-col-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.16rem 0.52rem;
  border-radius: 9999px;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  white-space: nowrap;
}

.clinica-col-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.clinica-mini-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border-subtle);
  border-radius: 10px;
  padding: 0.58rem 0.72rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.clinica-mini-card.is-active {
  border-color: rgba(20, 184, 166, 0.35);
  background: rgba(20, 184, 166, 0.05);
}

.clinica-mini-card.is-private {
  border-color: rgba(249, 115, 22, 0.32);
  background: rgba(249, 115, 22, 0.05);
}

.clinica-mini-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.clinica-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-teal);
  flex-shrink: 0;
}

.clinica-dot.is-muted {
  background: var(--text-muted);
  opacity: 0.5;
}

.clinica-dot.is-orange {
  background: var(--client-orange);
}

.clinica-mini-text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
}

.clinica-mini-text span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.08rem;
}

.clinica-mini-pill {
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--primary-teal);
  white-space: nowrap;
  flex-shrink: 0;
}

.clinica-mini-pill.is-muted {
  color: var(--text-muted);
}

.clinica-mini-pill.is-orange {
  color: var(--client-orange);
}

.clinica-col-foot {
  margin: 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--card-border-subtle);
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Sección 2: Mosaico Simétrico 3x2 Multiespecialidad */
.clinica-spec-section {
  background-color: var(--surface-white);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 4.5rem 0;
  scroll-margin-top: 90px;
}

.clinica-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.clinica-spec-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.clinica-spec-card:hover {
  border-color: var(--primary-teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.clinica-spec-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.clinica-spec-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clinica-spec-icon.is-teal {
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary-teal);
}

.clinica-spec-icon.is-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #8B5CF6;
}

.clinica-spec-icon.is-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #6366F1;
}

.clinica-spec-icon.is-amber {
  background: rgba(245, 158, 11, 0.13);
  color: #D97706;
}

.clinica-spec-icon.is-blue {
  background: rgba(59, 130, 246, 0.12);
  color: var(--org-cobalt);
}

.clinica-spec-icon.is-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}

[data-theme="dark"] .clinica-spec-icon.is-purple {
  color: #A78BFA;
}

[data-theme="dark"] .clinica-spec-icon.is-indigo {
  color: #818CF8;
}

[data-theme="dark"] .clinica-spec-icon.is-amber {
  color: #FBBF24;
}

[data-theme="dark"] .clinica-spec-icon.is-emerald {
  color: #34D399;
}

.clinica-spec-card h3 {
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 0.45rem 0;
  line-height: 1.3;
}

.clinica-spec-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1.25rem 0;
}

.clinica-spec-visual {
  margin-top: auto;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 13px;
  padding: 0.85rem 0.95rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.clinica-physio-mini {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0.8rem;
  align-items: center;
}

.clinica-physio-thumb {
  background: var(--card-bg);
  border: 1px solid var(--card-border-subtle);
  border-radius: 9px;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
}

.clinica-physio-thumb img {
  width: 100%;
  height: 82px;
  object-fit: contain;
}

.clinica-physio-info {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.clinica-visual-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.clinica-visual-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-teal);
}

.clinica-visual-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Barras evolutivas conceptuales limpias (Psicología / Logopedia / Podología) */
.clinica-progress-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  align-items: end;
  height: 44px;
  padding: 0.2rem 0.15rem 0;
}

.clinica-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  height: 100%;
  justify-content: flex-end;
}

.clinica-bar-fill {
  width: 100%;
  border-radius: 5px 5px 3px 3px;
  background: rgba(139, 92, 246, 0.25);
  border: 1px solid rgba(139, 92, 246, 0.38);
}

.clinica-bar-fill.is-highlight {
  background: rgba(139, 92, 246, 0.65);
  border-color: #8B5CF6;
}

.clinica-bar-label {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-muted);
}

.clinica-visual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.42rem 0.62rem;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border-subtle);
  font-size: 0.76rem;
}

.clinica-visual-row strong {
  font-weight: 700;
  color: var(--text-heading);
}

.clinica-visual-row span {
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--primary-teal);
  white-space: nowrap;
}

.clinica-visual-row span.is-purple {
  color: #8B5CF6;
}

.clinica-visual-row span.is-indigo {
  color: #6366F1;
}

.clinica-visual-row span.is-amber {
  color: #D97706;
}

.clinica-visual-row span.is-blue {
  color: var(--org-cobalt);
}

[data-theme="dark"] .clinica-visual-row span.is-purple {
  color: #A78BFA;
}

[data-theme="dark"] .clinica-visual-row span.is-indigo {
  color: #818CF8;
}

[data-theme="dark"] .clinica-visual-row span.is-amber {
  color: #FBBF24;
}

/* Onda vocal minimalista para Logopedia */
.clinica-voice-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0.2rem 0;
}

.clinica-voice-wave span {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.45);
}

.clinica-voice-wave span.is-peak {
  background: #6366F1;
}

[data-theme="dark"] .clinica-voice-wave span.is-peak {
  background: #818CF8;
}

/* Barra inferior de enlace a Especialidades */
.clinica-spec-footer-bar {
  margin-top: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.clinica-spec-footer-copy {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.clinica-spec-footer-copy svg {
  color: var(--primary-teal);
  flex-shrink: 0;
}

/* Sección 3: Copiloto Clínico IA & Doble Privacidad (2 Columnas Simétricas) */
.clinica-ai-section {
  background-color: var(--canvas-bg);
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--card-border);
}

.clinica-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.clinica-panel-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-hero);
  padding: 2.1rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.clinica-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.05rem;
}

.clinica-panel-pill {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 0.24rem 0.65rem;
  border-radius: 9999px;
}

.clinica-panel-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.clinica-panel-lead {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.56;
  margin: 0 0 1.35rem 0;
}

.clinica-flow-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.3rem;
  flex: 1;
  justify-content: center;
}

@media (min-width: 1025px) {
  @supports (grid-template-rows: subgrid) {
    .clinica-panel-card {
      display: grid;
      grid-row: span 5;
      grid-template-rows: subgrid;
      row-gap: 0;
      align-items: start;
    }

    .clinica-panel-card .clinica-flow-stack {
      align-self: stretch;
    }
  }
}

.clinica-note-step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 13px;
  padding: 0.95rem 1.05rem;
}

.clinica-note-step.is-ai-output {
  background: rgba(168, 85, 247, 0.05);
  border-color: rgba(168, 85, 247, 0.3);
  border-left: 3px solid #A855F7;
}

.clinica-note-step.is-patient-layer {
  background: rgba(20, 184, 166, 0.05);
  border-color: rgba(20, 184, 166, 0.28);
  border-left: 3px solid var(--primary-teal);
}

.clinica-note-step.is-private-layer {
  background: rgba(249, 115, 22, 0.05);
  border-color: rgba(249, 115, 22, 0.3);
  border-left: 3px solid var(--client-orange);
}

.clinica-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.38rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.clinica-step-label {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--text-heading);
}

.clinica-step-tag {
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--text-muted);
}

.clinica-step-tag.is-teal {
  color: var(--primary-teal);
}

.clinica-step-tag.is-purple {
  color: #9333EA;
}

.clinica-step-tag.is-orange {
  color: var(--client-orange);
}

[data-theme="dark"] .clinica-step-tag.is-purple {
  color: #C084FC;
}

.clinica-note-step p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-main);
  line-height: 1.5;
}

.clinica-note-step.is-input p {
  font-family: inherit;
  color: var(--text-muted);
  font-style: italic;
}

.clinica-flow-arrow {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.22rem 0.78rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.28);
  color: #9333EA;
}

[data-theme="dark"] .clinica-flow-arrow {
  color: #C084FC;
  background: rgba(168, 85, 247, 0.16);
}

.clinica-panel-foot {
  margin-top: auto;
  padding-top: 0.95rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.clinica-panel-foot svg {
  color: var(--primary-teal);
  flex-shrink: 0;
}

/* Sección 4: Seguridad Jurídica y Ley 41/2002 (4 Pilares Simétricos) */
.clinica-legal-section {
  background-color: var(--surface-white);
  padding: 4.5rem 0 2.5rem;
}

.clinica-legal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.clinica-legal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.65rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.clinica-legal-card:hover {
  border-color: var(--primary-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.clinica-legal-card h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0.35rem 0 0 0;
  line-height: 1.3;
}

.clinica-legal-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Responsive Ficha Clínica & IA */
@media (max-width: 1024px) {
  .clinica-dossier-grid {
    grid-template-columns: 1fr;
  }

  .clinica-spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clinica-dual-grid {
    grid-template-columns: 1fr;
  }

  .clinica-legal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .clinica-spec-section,
  .clinica-ai-section,
  .clinica-legal-section {
    padding: 3.1rem 0;
  }

  .clinica-dossier-showcase {
    padding: 1.15rem;
  }

  .clinica-spec-grid,
  .clinica-legal-grid {
    grid-template-columns: 1fr;
  }

  .clinica-panel-card {
    padding: 1.6rem 1.3rem;
  }

  .clinica-spec-footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .clinica-spec-footer-bar .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================================================
   SUSCRIPCIONES Y PLANES (precios.php) — REDISEÑO LIMPIO Y SIMÉTRICO
   ============================================================================ */

.precios-hero {
  padding-bottom: 4.25rem;
}

.precios-hero .pricing-controls-wrap {
  margin-top: 1.85rem;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.precios-segment-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.45;
}

.precios-trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.precios-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.pricing-grid.precios-cards-grid {
  max-width: 100%;
  padding: 0;
  gap: 1.65rem;
  align-items: stretch;
}

.precios-cards-grid .pricing-card {
  text-align: left;
  padding: 2.25rem 1.9rem;
  background: var(--surface-white);
  box-shadow: var(--shadow-soft);
}

.precios-cards-grid .pricing-card.featured {
  padding: calc(2.25rem - 1px) calc(1.9rem - 1px);
  box-shadow: var(--shadow-card);
}

.precios-cards-grid .plan-desc {
  min-height: 44px;
  font-size: 0.89rem;
  line-height: 1.48;
}

.precios-cards-grid .plan-price-wrap {
  margin: 1.35rem 0;
  padding: 1.15rem 0;
  border-top: 1px solid var(--card-border-subtle);
  border-bottom: 1px solid var(--card-border-subtle);
}

.precios-cards-grid .plan-features-list {
  margin: 0 0 1.85rem 0;
  padding: 0;
  gap: 0.78rem;
}

.precios-cards-grid .plan-features-list li {
  align-items: flex-start;
  text-align: left;
  line-height: 1.42;
  font-size: 0.9rem;
}

.precios-cards-grid .plan-features-list li svg {
  margin-top: 2px;
}

.pricing-card-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.pricing-plan-demo-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.pricing-plan-demo-link:hover {
  color: var(--primary-teal);
  text-decoration: underline;
}

/* Sección 2: Tabla Comparativa Estructurada por Bloques */
.precios-table-section {
  background-color: var(--surface-white);
  border-top: 1px solid var(--card-border);
  padding: 4.5rem 0;
}

.precios-table-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  margin-top: 2.25rem;
}

.precios-table-scroll {
  overflow-x: auto;
}

.precios-compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.91rem;
  text-align: left;
}

.precios-compare-table thead tr {
  border-bottom: 1px solid var(--card-border);
  background: var(--card-bg);
}

.precios-compare-table th {
  padding: 1.15rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
  vertical-align: middle;
}

.precios-compare-table th.is-center,
.precios-compare-table td.is-center {
  text-align: center;
  width: 17.5%;
}

.precios-compare-table th.is-featured {
  color: var(--primary-teal);
  background: rgba(20, 184, 166, 0.1);
  border-top: 3px solid var(--primary-teal);
}

.precios-compare-table tbody tr {
  border-bottom: 1px solid var(--card-border-subtle);
}

.precios-compare-table tbody tr:last-child {
  border-bottom: none;
}

.precios-compare-table td {
  padding: 0.88rem 1.25rem;
  color: var(--text-main);
  vertical-align: middle;
}

.precios-compare-table td.is-featured {
  background: rgba(20, 184, 166, 0.045);
}

.precios-cat-row td {
  background: var(--card-bg);
  padding: 0.65rem 1.25rem;
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border);
}

.precios-row-sub {
  display: block;
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 0.14rem;
  font-weight: 400;
}

.precios-dash {
  color: var(--text-muted);
  opacity: 0.45;
  font-weight: 600;
}

/* Sección 3: Complementos Opcionales y Redes (#modulo-gestoria) */
.precios-addons-section {
  background-color: var(--canvas-bg);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 4.5rem 0;
  scroll-margin-top: 90px;
}

.precios-addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.65rem;
  margin-top: 2.35rem;
  align-items: stretch;
}

.precios-addon-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-hero);
  padding: 2rem 1.95rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.precios-addon-card:hover {
  border-color: var(--primary-teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.precios-addon-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.05rem;
}

.precios-addon-card h3 {
  font-size: 1.26rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.precios-addon-desc {
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.56;
  margin: 0 0 1.25rem 0;
  flex: 1;
}

.precios-addon-rows {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.precios-addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.62rem 0.85rem;
  border-radius: 11px;
  background: var(--card-bg);
  border: 1px solid var(--card-border-subtle);
  font-size: 0.82rem;
}

.precios-addon-row strong {
  color: var(--text-heading);
  font-weight: 700;
}

.precios-addon-row span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-teal);
  white-space: nowrap;
}

.precios-addon-row span.is-blue {
  color: var(--org-cobalt);
}

.precios-addon-actions {
  margin-top: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--card-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (min-width: 1025px) {
  @supports (grid-template-rows: subgrid) {
    .precios-addon-card {
      display: grid;
      grid-row: span 5;
      grid-template-rows: subgrid;
      row-gap: 0;
      align-items: start;
    }

    .precios-addon-card .precios-addon-rows {
      align-self: stretch;
    }
  }
}

/* Sección 4: 4 Compromisos de Transparencia */
.precios-guarantees-section {
  background-color: var(--surface-white);
  padding: 4.25rem 0 2.5rem;
}

.precios-guarantees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
  margin-top: 2.35rem;
  align-items: stretch;
}

.precios-guarantee-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.65rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.precios-guarantee-card:hover {
  border-color: var(--primary-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.precios-guarantee-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0.35rem 0 0 0;
  line-height: 1.3;
}

.precios-guarantee-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.54;
  margin: 0;
}

/* Responsive Suscripciones */
@media (max-width: 1024px) {
  .pricing-grid.precios-cards-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .precios-addons-grid {
    grid-template-columns: 1fr;
  }

  .precios-guarantees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .precios-table-section,
  .precios-addons-section,
  .precios-guarantees-section {
    padding: 3.1rem 0;
  }

  .precios-guarantees-grid {
    grid-template-columns: 1fr;
  }

  .precios-addon-card {
    padding: 1.6rem 1.3rem;
  }

  .precios-addon-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .precios-addon-actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   MULTICENTRO REDESIGN & CONTACTO STREAMLINING (CLEAN & SYMMETRICAL)
   ========================================================================== */

.multi-hero-section {
  padding-bottom: 4.25rem;
}

.multi-network-wrap {
  max-width: 1040px;
  margin: 2.75rem auto 0;
}

.multi-network-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  text-align: left;
}

.multi-network-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.35rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border-subtle);
  flex-wrap: wrap;
}

.multi-network-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.multi-network-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--badge-bg);
  color: var(--primary-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.multi-network-brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
}

.multi-network-brand span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.multi-network-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.multi-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.multi-pill.is-neutral {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-heading);
}

.multi-pill.is-teal {
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.28);
  color: var(--primary-teal);
}

.multi-sedes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}

.multi-sede-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.multi-sede-card:hover {
  border-color: rgba(20, 184, 166, 0.45);
  transform: translateY(-2px);
}

.multi-sede-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.multi-sede-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.multi-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
}

.multi-sede-title h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
  line-height: 1.3;
}

.multi-sede-spec {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 1rem 0;
  line-height: 1.45;
}

.multi-sede-meta {
  list-style: none;
  padding: 0.85rem 0 0 0;
  margin: auto 0 0 0;
  border-top: 1px solid var(--card-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.multi-sede-meta li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.multi-sede-meta li span {
  color: var(--text-muted);
}

.multi-sede-meta li strong {
  color: var(--text-heading);
  font-weight: 600;
  text-align: right;
}

.multi-network-footer {
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--card-border-subtle);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.multi-footer-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-heading);
}

/* Sección 2: 4 Pilares Simétricos 2x2 */
.multi-pillars-section {
  background-color: var(--surface-white);
  border-top: 1px solid var(--card-border);
  padding: 4.75rem 0;
}

.multi-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
  align-items: stretch;
}

.multi-pillar-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.85rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.multi-pillar-card:hover {
  border-color: var(--primary-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.multi-pillar-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 0.65rem 0;
}

.multi-pillar-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
}

.multi-pillar-list {
  list-style: none;
  padding: 1rem 0 0 0;
  margin: auto 0 0 0;
  border-top: 1px solid var(--card-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.multi-pillar-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.85rem;
  color: var(--text-heading);
  font-weight: 500;
  line-height: 1.45;
}

.multi-pillar-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-teal);
  font-weight: 800;
}

.multi-pillar-list li a {
  color: var(--primary-teal);
  font-weight: 700;
  text-decoration: underline;
}

/* Sección 3: Escalabilidad 50/50 */
.multi-scale-section {
  background-color: var(--canvas-bg);
  border-top: 1px solid var(--card-border);
  padding: 4.75rem 0;
}

.multi-scale-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.multi-scale-copy h2 {
  margin: 0.85rem 0 0.85rem 0;
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  line-height: 1.2;
}

.multi-scale-copy > p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1.85rem 0;
}

.multi-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.multi-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}

.multi-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--badge-bg);
  color: var(--primary-teal);
  font-size: 0.85rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.multi-step-item strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-heading);
  margin-bottom: 0.2rem;
}

.multi-step-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.multi-roadmap-card {
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 2.1rem 1.9rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.multi-roadmap-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-teal);
  margin-bottom: 0.3rem;
}

.multi-roadmap-head h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
}

.multi-roadmap-stages {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.multi-stage-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.multi-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.multi-stage-top strong {
  font-size: 0.9rem;
  color: var(--text-heading);
}

.multi-stage-box p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.multi-roadmap-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--card-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.multi-inline-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary-teal);
  text-decoration: none;
}

.multi-inline-link:hover {
  text-decoration: underline;
}

/* Contacto: Espaciado limpio y enlace contextual a Multicentro */
.contact-main-section {
  padding-top: 0;
  padding-bottom: 5rem;
}

.contact-multicentro-banner {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.contact-multicentro-banner span {
  color: var(--text-heading);
  font-weight: 600;
}

.contact-multicentro-banner a {
  color: var(--primary-teal);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.contact-multicentro-banner a:hover {
  text-decoration: underline;
}

/* Responsive Multicentro & Contacto */
@media (max-width: 1024px) {
  .multi-sedes-grid {
    grid-template-columns: 1fr;
  }

  .multi-network-footer {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .multi-footer-item {
    justify-content: flex-start;
  }

  .multi-pillars-grid,
  .multi-scale-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .multi-network-card,
  .multi-pillar-card,
  .multi-roadmap-card {
    padding: 1.45rem 1.25rem;
  }

  .multi-pillars-section,
  .multi-scale-section {
    padding: 3.25rem 0;
  }

  .multi-roadmap-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .multi-roadmap-footer .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-main-section {
    padding-bottom: 3.5rem;
  }
}


/* Puente discreto para profesionales en cierre de pacientes.php */
.b2c-pro-bridge-note {
  margin-top: 1.65rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}

.b2c-pro-bridge-note a {
  color: #5eead4;
  font-weight: 700;
  text-decoration: none;
}

.b2c-pro-bridge-note a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   16. ARQUITECTURA MÓVIL INTEGRAL: BARRA DE PANTALLAS, MOCKUPS ADAPTADOS
       Y CARRUSELES HORIZONTALES ANTI-SCROLL INFINITO
   ========================================================================== */

/* Escudo global contra desbordamientos horizontales en móvil sin romper position: sticky */
html,
body,
.hero {
  max-width: 100%;
  overflow-x: clip;
}

/* Garantizar min-width: 0 en celdas de grid/flex principales para evitar expansión del viewport */
.hero-content,
.hero-mockup-wrap,
.hero-mockup,
.mockup-body,
.mockup-main-pane,
.mockup-panel,
.func-showcase-grid > *,
.clinical-showcase-grid > *,
.clinica-dual-grid > *,
.contact-layout-grid > *,
.multi-scale-grid > * {
  min-width: 0;
  max-width: 100%;
}

/* Ocultar barra móvil de pantallas y controles de carrusel en escritorio */
.mobile-page-strip {
  display: none;
}

.mobile-carousel-nav {
  display: none;
}

@media (max-width: 991px) {
  /* 1. Cabecera compacta y Barra Superior Seleccionable de Pantallas */
  .nav-container {
    height: 3.7rem;
  }

  .site-header .site-logo {
    height: 32px;
    width: auto;
    max-width: 138px;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .header-actions .header-mobile-cta {
    padding: 0.34rem 0.65rem;
    font-size: 0.74rem;
  }

  .theme-toggle-btn,
  .mobile-menu-btn {
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 9px;
    flex-shrink: 0;
  }

  .mobile-page-strip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.42rem 1rem;
    border-top: 1px solid var(--card-border-subtle);
    background: var(--header-bg);
  }

  .mobile-page-strip::-webkit-scrollbar {
    display: none;
  }

  .mobile-strip-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-white);
    border: 1px solid var(--card-border);
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    transition: all 180ms ease;
  }

  .mobile-strip-link.active {
    background: rgba(13, 148, 136, 0.14);
    color: var(--primary-teal);
    border-color: rgba(13, 148, 136, 0.38);
    font-weight: 700;
  }

  .mobile-strip-link.is-switch {
    background: transparent;
    border-style: dashed;
    color: var(--text-heading);
  }
}

@media (max-width: 768px) {
  /* 2. Adaptación completa del Mockup Principal (Panel Operativo en Inicio) */
  .hero-mockup {
    border-radius: 16px;
  }

  .mockup-header-bar {
    padding: 0.65rem 0.85rem;
    gap: 0.45rem;
  }

  .mockup-brand-tag {
    font-size: 0.72rem;
    gap: 0.35rem;
  }

  .mockup-brand-tag img {
    width: 16px;
    height: 16px;
  }

  .mockup-right-controls {
    width: 100%;
    justify-content: space-between;
    gap: 0.4rem;
    flex-wrap: wrap;
  }

  .mockup-hub-title {
    font-size: 0.68rem;
    gap: 0.3rem;
  }

  .mockup-hub-title span.active-center {
    padding: 2px 7px;
    font-size: 0.66rem;
  }

  .mockup-user-pill {
    font-size: 0.68rem;
    padding: 0.18rem 0.55rem;
  }

  .mockup-body {
    min-height: 0;
  }

  .mockup-main-pane {
    padding: 0.85rem !important;
    gap: 0.85rem !important;
    width: 100%;
  }

  .mockup-dashboard-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-bottom: 0.65rem;
  }

  .mockup-dash-title {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .mockup-dash-sub {
    font-size: 0.66rem;
    line-height: 1.3;
    margin-top: 0.12rem;
  }

  .mockup-dashboard-bar .badge {
    font-size: 0.66rem;
    padding: 0.2rem 0.55rem;
  }

  /* 4 KPIs en cuadrícula limpia 2x2 sin recortes */
  .mockup-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
  }

  .kpi-card {
    padding: 0.65rem 0.7rem;
    min-width: 0;
    border-radius: 11px;
  }

  .kpi-label {
    font-size: 0.62rem;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .kpi-value {
    font-size: 1.2rem;
    line-height: 1.15;
  }

  .kpi-trend {
    font-size: 0.63rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Agenda + Estado de Citas en móvil */
  .mockup-split-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.75rem !important;
  }

  .mockup-panel {
    padding: 0.85rem;
    border-radius: 12px;
  }

  .panel-title {
    font-size: 0.84rem;
    margin-bottom: 0.7rem;
    gap: 0.4rem;
    flex-wrap: wrap;
  }

  .agenda-items-list {
    gap: 0.5rem;
  }

  .agenda-item {
    padding: 0.6rem 0.7rem;
    gap: 0.45rem;
    align-items: center;
  }

  .agenda-item-left {
    min-width: 0;
    flex: 1;
    gap: 0.55rem;
  }

  .agenda-time {
    font-size: 0.76rem;
    flex-shrink: 0;
  }

  .agenda-item-left > div {
    min-width: 0;
    flex: 1;
  }

  .agenda-patient {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .agenda-service {
    font-size: 0.69rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .agenda-item .badge {
    flex-shrink: 0;
    font-size: 0.62rem;
    padding: 2px 6px;
    white-space: nowrap;
  }

  /* Rosco de Estado de Citas adaptado a móvil */
  .mockup-donut-card {
    padding: 0.75rem 0.8rem !important;
    gap: 0.65rem !important;
  }

  .mockup-donut-svg-box {
    width: 82px !important;
    height: 82px !important;
  }

  .mockup-donut-svg-box svg {
    width: 82px !important;
    height: 82px !important;
  }

  .mockup-donut-legend > div {
    font-size: 0.72rem !important;
  }

  .mockup-attendance-card {
    padding: 0.6rem 0.75rem !important;
  }

  /* Adaptación de otros paneles / mockups secundarios (Funcionalidades, Ficha Clínica, Multicentro) */
  .func-visual-card,
  .func-clinical-console,
  .clinical-showcase-panel {
    padding: 1rem !important;
    border-radius: 16px;
  }

  .func-visual-header,
  .showcase-panel-header,
  .console-specialty-bar {
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .func-appt-row {
    padding: 0.6rem 0.7rem !important;
    gap: 0.45rem !important;
  }

  .func-appt-row > div {
    min-width: 0;
  }

  .func-appt-row .badge {
    flex-shrink: 0;
    font-size: 0.62rem !important;
    white-space: nowrap;
  }

  .showcase-flow-step {
    padding: 0.75rem 0.8rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .showcase-step-left {
    min-width: 0;
    flex: 1 1 180px;
  }

  .showcase-panel-footer {
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    justify-content: center;
  }

  /* Píldoras rápidas en Pacientes en 1 fila deslizable */
  .b2c-hero-spec-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.2rem 0.25rem 0.5rem;
    gap: 0.45rem !important;
  }

  .b2c-hero-spec-pills::-webkit-scrollbar {
    display: none;
  }

  .b2c-hero-spec-pills > * {
    flex-shrink: 0;
  }

  /* 3. Sistema Universal de Carruseles Horizontales Deslizables en Móvil (CSS nativo cero CLS + JS dots) */
  .is-mobile-carousel,
  .home-cap-grid,
  .pricing-pillars-strip,
  .spec-cards-grid,
  .spec-common-grid,
  .func-modules-grid,
  .clinica-dossier-grid,
  .clinica-spec-grid,
  .clinica-legal-grid,
  .precios-cards-grid,
  .precios-addons-grid,
  .precios-guarantees-grid,
  .multi-sedes-grid,
  .multi-pillars-grid,
  .b2c-bento-grid,
  .b2c-steps-grid,
  .help-action-grid,
  .dr-meta-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.85rem !important;
    padding: 0.25rem 0.25rem 0.65rem 0.25rem !important;
    max-width: 100% !important;
  }

  .is-mobile-carousel::-webkit-scrollbar,
  .home-cap-grid::-webkit-scrollbar,
  .pricing-pillars-strip::-webkit-scrollbar,
  .spec-cards-grid::-webkit-scrollbar,
  .spec-common-grid::-webkit-scrollbar,
  .func-modules-grid::-webkit-scrollbar,
  .clinica-dossier-grid::-webkit-scrollbar,
  .clinica-spec-grid::-webkit-scrollbar,
  .clinica-legal-grid::-webkit-scrollbar,
  .precios-cards-grid::-webkit-scrollbar,
  .precios-addons-grid::-webkit-scrollbar,
  .precios-guarantees-grid::-webkit-scrollbar,
  .multi-sedes-grid::-webkit-scrollbar,
  .multi-pillars-grid::-webkit-scrollbar,
  .b2c-bento-grid::-webkit-scrollbar,
  .b2c-steps-grid::-webkit-scrollbar,
  .help-action-grid::-webkit-scrollbar,
  .dr-meta-grid::-webkit-scrollbar {
    display: none;
  }

  .is-mobile-carousel > *,
  .home-cap-grid > *,
  .pricing-pillars-strip > *,
  .spec-cards-grid > *,
  .spec-common-grid > *,
  .func-modules-grid > *,
  .clinica-dossier-grid > *,
  .clinica-spec-grid > *,
  .clinica-legal-grid > *,
  .precios-cards-grid > *,
  .precios-addons-grid > *,
  .precios-guarantees-grid > *,
  .multi-sedes-grid > *,
  .multi-pillars-grid > *,
  .b2c-bento-grid > *,
  .b2c-steps-grid > *,
  .help-action-grid > *,
  .dr-meta-grid > * {
    flex: 0 0 85% !important;
    width: 85% !important;
    max-width: 335px !important;
    min-width: 0 !important;
    scroll-snap-align: center;
    margin: 0 !important;
    height: auto !important;
    /* Mostrar de inmediato las tarjetas adyacentes del carrusel sin esperar a scroll vertical */
    opacity: 1 !important;
    transform: none !important;
  }

  /* Tarjetas compactas de métricas (se ve 1 tarjeta y un tercio de la siguiente) */
  .pricing-pillars-strip > *,
  .spec-common-grid > *,
  .dr-meta-grid > *,
  .multi-sedes-grid > * {
    flex: 0 0 76% !important;
    width: 76% !important;
    max-width: 275px !important;
  }

  /* Igualar altura visual en tarjetas de planes de precios dentro del carrusel móvil */
  .precios-cards-grid > .pricing-card.featured {
    transform: none !important;
  }

  /* Barra de puntos interactivos + indicador de deslizamiento bajo cada carrusel */
  .mobile-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.55rem;
    padding: 0 0.2rem;
  }

  .mc-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
  }

  .mc-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border-radius: 999px;
    border: none;
    background: rgba(148, 163, 184, 0.38);
    cursor: pointer;
    transition: all 200ms ease;
  }

  .mc-dot.active {
    width: 20px;
    background: var(--primary-teal);
  }

  .mc-counter {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-teal);
    white-space: nowrap;
    letter-spacing: 0.01em;
  }
}

@media (max-width: 380px) {
  .header-actions .header-mobile-cta {
    padding: 0.3rem 0.5rem;
    font-size: 0.68rem;
  }

  .site-header .site-logo {
    height: 28px;
    max-width: 118px;
  }

  .mockup-donut-card {
    flex-direction: column;
    align-items: stretch !important;
  }

  .mockup-donut-svg-box {
    margin: 0 auto;
  }
}

/* Ocultar indicador de deslizamiento de tabla en escritorio */
.mobile-table-swipe-hint {
  display: none;
}

@media (max-width: 768px) {
  /* 4. Botones e insignias flexibles sin desbordar ni truncar en móvil */
  .btn:not(.header-mobile-cta) {
    max-width: 100%;
    white-space: normal !important;
    text-align: center;
    height: auto;
    line-height: 1.35;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .btn:not(.header-mobile-cta) svg {
    flex-shrink: 0;
  }

  .badge {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }

  /* Mantener insignias de 1 línea dentro de filas compactas de agenda */
  .agenda-item .badge,
  .func-appt-row .badge,
  .clinica-mini-pill,
  .multi-sede-head .badge {
    white-space: nowrap !important;
  }

  /* 5. Ajuste fino de Agenda en Mockup de Inicio para leer nombres y servicios completos */
  .mockup-panel {
    padding: 0.7rem 0.65rem;
  }

  .agenda-item {
    padding: 0.55rem 0.6rem;
    gap: 0.35rem;
    align-items: center;
  }

  .agenda-item-left {
    gap: 0.45rem;
  }

  .agenda-time {
    font-size: 0.72rem;
  }

  .agenda-patient {
    font-size: 0.76rem;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.25;
  }

  .agenda-service {
    font-size: 0.67rem;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.28;
  }

  .agenda-item .badge {
    font-size: 0.58rem;
    padding: 2px 5px;
  }

  /* 6. Funcionalidades: Consola Clínica y Filas de Agenda sin textos comprimidos */
  .console-specialty-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.4rem !important;
    padding-bottom: 0.25rem;
    max-width: 100%;
  }

  .console-specialty-pills::-webkit-scrollbar {
    display: none;
  }

  .console-spec-pill {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .func-appt-row {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.35rem;
  }

  .func-appt-left {
    flex: 1 1 138px;
    min-width: 0;
    gap: 0.5rem !important;
  }

  .func-appt-time {
    font-size: 0.75rem;
    padding: 0.2rem 0.45rem;
  }

  .func-appt-info strong {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .func-appt-info span {
    display: block;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  /* 7. Ficha Clínica & IA (mapa-corporal.php): Expediente y Tarjetas por Especialidad */
  .clinica-dossier-shell {
    padding: 1rem 0.85rem !important;
    border-radius: 18px;
  }

  .clinica-dossier-top {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.65rem !important;
  }

  .clinica-dossier-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .clinica-dossier-grid.is-mobile-carousel > *,
  .clinica-spec-grid.is-mobile-carousel > * {
    flex: 0 0 92% !important;
    width: 92% !important;
    max-width: 328px !important;
  }

  .clinica-mini-card {
    padding: 0.58rem 0.68rem !important;
    gap: 0.35rem 0.45rem !important;
    flex-wrap: wrap;
  }

  .clinica-mini-left {
    min-width: 0;
    flex: 1 1 150px;
  }

  .clinica-mini-text {
    min-width: 0;
  }

  .clinica-mini-text strong {
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
  }

  .clinica-mini-pill {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
    flex-shrink: 0;
  }

  .clinica-physio-mini {
    padding: 0.6rem !important;
    gap: 0.5rem !important;
    align-items: center !important;
  }

  .clinica-physio-thumb {
    width: 44px !important;
    flex: 0 0 44px !important;
  }

  .clinica-spec-card {
    padding: 1.15rem 1rem !important;
  }

  .clinica-spec-visual {
    padding: 0.6rem !important;
  }

  .clinica-physio-info {
    min-width: 0;
    flex: 1;
  }

  .clinica-visual-sub {
    font-size: 0.74rem !important;
    line-height: 1.35 !important;
  }

  .clinica-visual-row {
    flex-wrap: wrap !important;
    gap: 0.2rem 0.5rem !important;
  }

  .clinica-visual-row strong {
    min-width: 140px;
  }

  /* 8. Multicentro: Cabecera de Red y Tarjetas de Sede amplias y legibles */
  .multi-network-topbar {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.65rem !important;
  }

  .multi-network-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
  }

  .multi-sedes-grid.is-mobile-carousel > * {
    flex: 0 0 88% !important;
    width: 88% !important;
    max-width: 315px !important;
  }

  .multi-sede-head {
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: flex-start;
  }

  .multi-sede-title {
    flex: 1 1 155px;
    min-width: 0;
  }

  .multi-sede-title h3 {
    font-size: 0.94rem !important;
    line-height: 1.25 !important;
  }

  .multi-sede-meta li {
    flex-wrap: wrap;
    gap: 0.15rem 0.5rem;
  }

  /* 9. Suscripciones (precios.php): Selector y Tabla Comparativa deslizable con columna fija */
  .mobile-table-swipe-hint {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary-teal);
    text-align: right;
    margin: 0 0 0.45rem 0;
  }

  .precios-table-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .precios-compare-table {
    min-width: 560px;
  }

  .precios-compare-table th,
  .precios-compare-table td {
    padding: 0.65rem 0.7rem !important;
    font-size: 0.8rem !important;
  }

  .precios-compare-table th:first-child,
  .precios-compare-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface-white);
    min-width: 165px;
    max-width: 195px;
  }

  .precios-compare-table tr.precios-cat-row td:first-child {
    background: var(--card-bg);
    max-width: none;
  }

  /* 10. Buscar Centros y Centro de Ayuda (B2C): Píldoras en 1 fila y Buscador a ancho completo */
  .b2c-category-pills-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.45rem !important;
    padding: 0.15rem 0.1rem 0.55rem !important;
    max-width: 100%;
  }

  .b2c-category-pills-row::-webkit-scrollbar {
    display: none;
  }

  .b2c-cat-pill {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .b2c-filters-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }

  .b2c-search-inputs {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.6rem !important;
  }

  .b2c-input-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
  }

  .b2c-view-toggle {
    align-self: stretch;
    display: flex;
    width: 100%;
  }

  .b2c-view-toggle button {
    flex: 1;
    justify-content: center;
  }

  .help-category-tabs,
  .help-quick-chips {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100% !important;
    padding-bottom: 0.4rem !important;
    gap: 0.45rem !important;
  }

  .help-category-tabs::-webkit-scrollbar,
  .help-quick-chips::-webkit-scrollbar {
    display: none;
  }

  .help-category-tab,
  .help-chip-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* 11. Complementos de Suscripciones, Bento Pacientes, Hoja de Ruta y Metadatos Legales */
  .precios-addons-grid.is-mobile-carousel > *,
  .b2c-bento-grid.is-mobile-carousel > * {
    flex: 0 0 90% !important;
    width: 90% !important;
    max-width: 325px !important;
  }

  .precios-addon-top {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .precios-addon-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .precios-addon-row span {
    white-space: normal;
  }

  .b2c-mini-row {
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
  }

  .multi-stage-top {
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
  }

  .legal-meta-bar > div {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  /* 12. Blindaje estético adicional: Cero colisiones flecha/insignia, Pasos B2C, Modal Veri*factu y Menú */
  .spec-cards-grid.is-mobile-carousel > *,
  .home-cap-grid.is-mobile-carousel > * {
    flex: 0 0 88% !important;
    width: 88% !important;
    max-width: 325px !important;
  }

  .bento-corner-arrow {
    top: 1rem !important;
    right: 1rem !important;
    width: 27px !important;
    height: 27px !important;
  }

  .bento-card-header,
  .spec-card .bento-card-header,
  .func-module-card .bento-card-header {
    padding-right: 2.65rem !important;
    gap: 0.5rem !important;
    flex-wrap: wrap;
  }

  .bento-card-header .bento-icon {
    width: 38px !important;
    height: 38px !important;
  }

  .bento-card-header .badge {
    white-space: normal !important;
    flex-shrink: 1 !important;
    font-size: 0.68rem !important;
    padding: 0.22rem 0.55rem !important;
    line-height: 1.25 !important;
    text-align: left !important;
  }

  .b2c-step-header {
    flex-wrap: wrap !important;
    row-gap: 0.5rem !important;
  }

  .b2c-step-header h3 {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  body:has(#mobileNav.active) .mobile-page-strip {
    display: none !important;
  }

  .verifactu-modal-backdrop {
    padding: 0.85rem !important;
  }

  .verifactu-modal-top-bar {
    padding: 1rem 1.15rem 0.4rem !important;
    gap: 0.65rem !important;
  }

  .verifactu-badge-pill {
    font-size: 0.72rem !important;
    padding: 0.3rem 0.65rem !important;
    line-height: 1.3 !important;
  }

  .verifactu-modal-header {
    padding: 0.4rem 1.15rem 0.85rem !important;
  }

  .verifactu-modal-header h3 {
    font-size: 1.2rem !important;
  }

  .verifactu-modal-body {
    padding: 0 1.15rem 1.15rem !important;
    gap: 0.9rem !important;
  }

  .verifactu-modal-footer {
    padding: 0.9rem 1.15rem !important;
  }

  /* Cabecera limpia en una sola línea en el panel de Ayuda Rápida / Chatbot */
  .chatbot-header.faq-hub-header {
    padding: 0.85rem 0.95rem !important;
  }

  .chatbot-subline {
    flex-wrap: nowrap !important;
    gap: 0.3rem !important;
    font-size: 0.68rem !important;
  }

  .chatbot-subline .ai-badge-pill {
    white-space: nowrap !important;
    font-size: 0.66rem !important;
    padding: 0.14rem 0.48rem !important;
  }

  .chatbot-subline span {
    white-space: nowrap !important;
  }
}
