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

/* Variables de Diseño */
:root {
  --color-bg-global: #F4F6F9;
  --color-navy: #1E3A8A;
  --color-navy-dark: #111827;
  --color-navy-light: #2563EB;
  --color-azul: #3B82F6;
  --color-mostaza: #F59E0B;
  --color-mostaza-suave: #FBBF24;
  --color-mostaza-hover: #D97706;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  
  /* Textos */
  --text-dark: #0F172A;
  --text-light: #F8FAFC;
  --text-muted: #64748B;
  --text-muted-light: #94A3B8;

  /* Sombras e Iluminaciones */
  --shadow-premium: 0 10px 30px -10px rgba(30, 58, 138, 0.15);
  --shadow-neon: 0 0 15px rgba(59, 130, 246, 0.35);
  --shadow-mostaza: 0 0 15px rgba(245, 158, 11, 0.25);
  
  /* Tipografía Fluida */
  --font-title: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reseteo y Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg-global);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Títulos y Encabezados */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 2px solid rgba(59, 130, 246, 0.15);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
}

/* Layout y Contenedores */
header {
  background: var(--color-navy);
  color: var(--text-light);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--color-mostaza-suave);
}

.nav-tabs-custom {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-tabs-custom button {
  background: transparent;
  border: none;
  color: var(--text-muted-light);
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-title);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-tabs-custom button:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.08);
}

.nav-tabs-custom button.active {
  color: var(--text-light);
  background: var(--color-azul);
  box-shadow: var(--shadow-neon);
}

/* Contenido Principal */
main {
  flex: 1;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Secciones y Pestañas */
.spa-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.spa-section.active {
  display: block;
}

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

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--color-navy) 0%, #172554 100%);
  color: var(--text-light);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 4rem);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-azul);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-title {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

.hero-description {
  color: var(--text-muted-light);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-figure {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-element {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25));
  animation: floatIllustration 6s ease-in-out infinite alternate;
}

@keyframes floatIllustration {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Tarjetas y Contenedores */
article {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -10px rgba(30, 58, 138, 0.2);
}

/* Formularios y Selectores */
.form-group-custom {
  margin-bottom: 1.25rem;
}

.form-label-custom {
  display: block;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-select-custom, .form-input-custom {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  background-color: #F8FAFC;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-select-custom:focus, .form-input-custom:focus {
  border-color: var(--color-azul);
  background-color: white;
  box-shadow: var(--shadow-neon);
}

.form-checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 576px) {
  .form-checkbox-group {
    grid-template-columns: 1fr 1fr;
  }
}

.form-checkbox-custom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.6rem 0.85rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.form-checkbox-custom:hover {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.3);
}

.form-checkbox-custom input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-azul);
}

/* Botones */
.btn-primary-custom {
  background: var(--color-mostaza-suave);
  color: var(--color-navy);
  border: none;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  font-family: var(--font-title);
  font-size: 1.05rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-mostaza);
  text-decoration: none;
}

.btn-primary-custom:hover {
  background: var(--color-mostaza);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.btn-primary-custom:active {
  transform: translateY(0);
}

.btn-secondary-custom {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-family: var(--font-title);
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary-custom:hover {
  background: rgba(30, 58, 138, 0.05);
  transform: translateY(-1px);
}

/* Tablas y Benchmarks */
.table-responsive-custom {
  width: 100%;
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: white;
}

.table-custom th {
  background-color: var(--color-navy);
  color: var(--text-light);
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.table-custom td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.95rem;
}

.table-custom tr:last-child td {
  border-bottom: none;
}

.table-custom tr:nth-child(even) td {
  background-color: #F8FAFC;
}

/* Badges Semáforo */
.badge-semaphore {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-semaphore.verde {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-semaphore.amarillo {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-semaphore.rojo {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Buscador y Meta-Indexing */
.search-box-container {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input-custom {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-input-custom:focus {
  border-color: var(--color-azul);
  box-shadow: var(--shadow-neon);
}

.preset-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.preset-tag {
  background: white;
  border: 1px solid #E2E8F0;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  color: var(--color-navy);
}

.preset-tag:hover {
  background: var(--color-azul);
  color: white;
  border-color: var(--color-azul);
}

/* Embudo Visual (Funnel Container) */
.funnel-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2rem 0;
  position: relative;
}

.funnel-stage {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
  opacity: 0; /* Animado por Anime.js */
  transform: translateX(-20px);
}

.funnel-stage:hover {
  transform: scale(1.02);
}

.funnel-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.08) 0%, rgba(59, 130, 246, 0.15) 100%);
  border-right: 4px solid var(--color-azul);
  transition: width 1s ease-out;
  z-index: 1;
}

.funnel-stage-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 80px 1.5fr 1fr 100px;
  width: 100%;
  padding: 0.85rem 1.25rem;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .funnel-stage-content {
    grid-template-columns: 60px 1fr 1fr;
    font-size: 0.9rem;
  }
  .funnel-stage-value {
    grid-column: span 3;
    text-align: right;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 0.25rem;
  }
}

.funnel-stage-icon {
  font-size: 1.5rem;
  color: var(--color-navy);
  display: flex;
  justify-content: center;
}

.funnel-stage-name {
  font-weight: 700;
  color: var(--color-navy);
  font-family: var(--font-title);
}

.funnel-stage-rate {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.funnel-stage-value {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--color-navy-light);
  font-size: 1.15rem;
  text-align: right;
}

/* Indicador de Límites en PDV */
.limit-alert-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed var(--color-mostaza);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text-dark);
  font-size: 0.9rem;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

/* Estilos de Calibración Ex Post */
.calibration-comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .calibration-comparison-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.calib-input-group {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}

.deviation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.deviation-badge.neutral {
  background-color: #E2E8F0;
  color: var(--text-dark);
}

.deviation-badge.good {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.deviation-badge.bad {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Estilos de Calendario de Recurrencia */
.calendar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .calendar-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.calendar-card {
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.calendar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.calendar-card-header {
  background: var(--color-navy);
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.calendar-card-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
}

.calendar-card-date {
  font-size: 0.85rem;
  color: var(--color-mostaza-suave);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.calendar-btn-alert {
  background: white;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

.calendar-btn-alert.active {
  background: var(--color-mostaza-suave);
  border-color: var(--color-mostaza-suave);
  color: var(--color-navy);
}

/* Modos de Impresión (Reportes PDF) */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  header, nav, footer, .hero-section, aside, button, .search-box-container, #btn-print-report, #history-list, .nav-tabs-custom {
    display: none !important;
  }
  main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  section {
    display: none !important;
  }
  section#section-simulador {
    display: block !important;
  }
  article {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 2rem !important;
  }
  h2 {
    border-bottom: 2px solid black !important;
  }
  .funnel-stage {
    opacity: 1 !important;
    transform: none !important;
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
  .funnel-bar-fill {
    background: rgba(30, 58, 138, 0.15) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Modal Estilo GR58 */
.gr58-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gr58-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.gr58-modal-content {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gr58-modal-overlay.active .gr58-modal-content {
  transform: translateY(0);
}

.gr58-modal-header {
  background: var(--color-navy);
  color: var(--text-light);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gr58-modal-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
}

.gr58-modal-close {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.gr58-modal-close:hover {
  opacity: 1;
}

.gr58-modal-body {
  padding: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-navy);
  line-height: 1.5;
}

.gr58-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: flex-end;
}

/* Footer Estilos */
.footer-gr58 {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--text-light);
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  border-top: 3px solid var(--color-mostaza-suave);
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.footer-logo-desc {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-social-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-social-column {
    align-items: flex-end;
  }
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: rgba(255, 255, 255, 0.03);
}

.social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.linkedin-btn:hover {
  background: #0077B5;
  border-color: #0077B5;
  box-shadow: 0 0 15px rgba(0, 119, 181, 0.5);
  transform: translateY(-3px) scale(1.05);
}

.tiktok-btn:hover {
  background: #010101;
  border-color: #FE2C55;
  color: #fff;
  box-shadow: 0 0 15px rgba(254, 44, 85, 0.5);
  transform: translateY(-3px) scale(1.05);
}

.footer-copyright {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted-light);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

.social-prompt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--color-mostaza-suave);
}

/* Animación de Carga (Simulación Ejecutándose) */
.progress-container-custom {
  background: #E2E8F0;
  border-radius: 10px;
  height: 8px;
  width: 100%;
  overflow: hidden;
  margin: 1.5rem 0;
  display: none;
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--color-azul) 0%, var(--color-mostaza) 100%);
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}

/* Pestaña de Precios / Empaquetado */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-card {
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  background: white;
  transition: all 0.3s ease;
}

.pricing-card.premium {
  border-color: var(--color-azul);
  box-shadow: var(--shadow-premium);
  position: relative;
}

.pricing-card.premium .badge-premium {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--color-azul);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-header {
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.pricing-title {
  color: var(--color-navy);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-navy-light);
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.pricing-features li i {
  color: var(--color-success);
}

.pricing-action {
  margin-top: auto;
  width: 100%;
}

/* Tarjetas de Ayuda de Estímulos */
.stimuli-help-card {
  background-color: #FEF3C7;
  border-left: 4px solid var(--color-mostaza);
  color: #78350F;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0.4rem 0 0.8rem 0.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Tarjetas de Métricas Premium */
.metric-card-inner {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card-inner:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

/* Dashboard Funnel Card (Dark Mode with Neon Accents) */
.dashboard-funnel-card {
  background: #0d1222 !important;
  color: #f8fafc !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
}

.dashboard-funnel-card h2 {
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-bottom: 0.75rem !important;
}

.dashboard-funnel-card .text-muted {
  color: #94a3b8 !important;
}

/* Dark Mode Funnel Stages */
.dashboard-funnel-card .funnel-stage {
  flex-shrink: 0 !important;
  min-height: 100px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dashboard-funnel-card .funnel-stage:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(6, 182, 212, 0.4) !important;
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.15) !important;
}

.dashboard-funnel-card .funnel-bar-fill {
  top: auto !important;
  height: 4px !important;
  background: linear-gradient(90deg, #6366f1 0%, #06b6d4 100%) !important;
  border-right: none !important;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6) !important;
}

.dashboard-funnel-card .funnel-stage-icon {
  background: rgba(6, 182, 212, 0.1) !important;
  border: 1px solid rgba(6, 182, 212, 0.3) !important;
  color: #06b6d4 !important;
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.2) !important;
}

.dashboard-funnel-card .funnel-stage-name strong {
  color: #ffffff !important;
  font-family: var(--font-title);
}

.dashboard-funnel-card .funnel-stage-value {
  color: #06b6d4 !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.3) !important;
}

/* Semaphores as Glowing Neon Badges */
.dashboard-funnel-card .badge-semaphore.verde {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.3) !important;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.15) !important;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.dashboard-funnel-card .badge-semaphore.amarillo {
  background: rgba(245, 158, 11, 0.1) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.15) !important;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.dashboard-funnel-card .badge-semaphore.rojo {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #f87171 !important;
  border: 1px solid rgba(248, 113, 113, 0.3) !important;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.15) !important;
  text-transform: uppercase;
  font-size: 0.65rem;
}

/* Estilos para las pestañas de Aplicar Modelo */
#section-aplicar-modelo .nav-pills .nav-link {
  color: var(--color-navy-light);
  background: rgba(30, 58, 138, 0.05);
  border: 1px solid rgba(30, 58, 138, 0.1);
  transition: all 0.25s ease;
}

#section-aplicar-modelo .nav-pills .nav-link:hover {
  background: rgba(30, 58, 138, 0.1);
  color: var(--color-navy);
}

#section-aplicar-modelo .nav-pills .nav-link.active {
  background: var(--color-azul) !important;
  color: white !important;
  box-shadow: var(--shadow-neon) !important;
  border-color: var(--color-azul) !important;
}

#section-aplicar-modelo .nav-pills .nav-link.active .badge {
  background: white !important;
  color: var(--color-azul) !important;
}

#section-aplicar-modelo .nav-pills .nav-link .badge {
  background: var(--color-azul);
  color: white;
  transition: all 0.25s ease;
}

/* Print Media Styles for GR58 Official Report */
@media print {
  body > *:not(#gr58-printable-report):not(script) {
    display: none !important;
  }
  #gr58-printable-report {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    background: white !important;
    color: black !important;
  }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
