/* ==========================================================================
   RIESGO PSICOSOCIAL & DESARROLLO ORGANIZACIONAL - DIANA CAROLINA PANTOJA
   Sistema de Diseño Corporativo B2B - Look & Feel Estratégico y Riguroso
   ========================================================================== */

:root {
  --color-primary-900: #08121f;
  --color-primary-800: #0b1a2d;
  --color-primary-700: #132a46;
  --color-primary-600: #1e3e62;
  --color-primary-500: #2a527f;
  
  --color-accent-emerald: #059669;
  --color-accent-teal: #0d9488;
  --color-accent-teal-light: #14b8a6;
  --color-accent-cyan: #06b6d4;

  --color-amber: #d97706;
  --color-amber-light: #f59e0b;

  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;

  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-subtle: 0 4px 20px -2px rgba(11, 26, 45, 0.05);
  --shadow-card: 0 10px 30px -4px rgba(11, 26, 45, 0.08);
  --shadow-hover: 0 20px 40px -6px rgba(11, 26, 45, 0.14);
  --shadow-glow: 0 0 25px rgba(13, 148, 136, 0.25);
}

/* Base smoothing & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-slate-800);
  background-color: #ffffff;
}

body {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Glassmorphism navigation bar */
.nav-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: all 0.25s ease;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

.nav-glass.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 25px rgba(11, 26, 45, 0.08);
  border-bottom: 1px solid rgba(203, 213, 225, 0.8);
}

/* Custom Proprietary Icons Box */
.custom-icon-box {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 6px 14px rgba(13, 148, 136, 0.15));
}

.service-card:hover .custom-icon-box,
.differential-card:hover .custom-icon-box {
  transform: translateY(-4px) scale(1.06);
  filter: drop-shadow(0 12px 22px rgba(13, 148, 136, 0.28));
}

/* Corporate hero gradient */
.hero-gradient {
  background: radial-gradient(circle at 85% 20%, rgba(13, 148, 136, 0.09) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(19, 42, 70, 0.06) 0%, transparent 50%),
              linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background-color: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-slate-700);
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s ease;
}

.badge-trust:hover {
  border-color: var(--color-accent-teal);
  color: var(--color-primary-700);
  transform: translateY(-1px);
}

/* Strategic triad interactive card */
.triad-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: 1.25rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.triad-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-700), var(--color-accent-teal));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.triad-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(13, 148, 136, 0.3);
}

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

/* Modular Service Card */
.service-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent-teal);
  box-shadow: 0 20px 35px -8px rgba(13, 148, 136, 0.12);
}

.service-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0fdfa;
  color: var(--color-accent-teal);
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
  background: var(--color-accent-teal);
  color: #ffffff;
  transform: scale(1.05);
}

/* Strategic Quote Wizard Tabs */
.wizard-step {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.wizard-step.active {
  display: block;
}

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

/* Differential checkmarks */
.differential-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.differential-card:hover {
  border-color: var(--color-primary-600);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

/* Lead magnet banner */
.lead-magnet-banner {
  background: linear-gradient(135deg, #0b1a2d 0%, #132a46 60%, #0d9488 150%);
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

.lead-magnet-banner::after {
  content: '';
  position: absolute;
  right: -5%;
  bottom: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #25d366;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.55);
  color: #ffffff;
}

.whatsapp-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background-color: #ef4444;
  border: 2px solid #ffffff;
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Corporate Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0f766e 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-primary-700);
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border: 1.5px solid var(--color-slate-200);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--color-primary-600);
  background: var(--color-slate-50);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--color-primary-800);
  color: #ffffff;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(11, 26, 45, 0.2);
  text-decoration: none;
}

.btn-navy:hover {
  background: var(--color-primary-900);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(11, 26, 45, 0.3);
}

/* Accordion Styling */
.faq-item {
  border: 1px solid var(--color-slate-200);
  border-radius: 0.875rem;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--color-accent-teal);
  box-shadow: var(--shadow-subtle);
}

.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-slate-900);
  background: transparent;
  border: none;
  cursor: pointer;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 1.5rem;
  color: var(--color-slate-600);
  line-height: 1.65;
}

.faq-item.active .faq-content {
  padding-bottom: 1.25rem;
}

/* Metric Counter Box */
.counter-box {
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.counter-box:hover {
  border-color: var(--color-accent-teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* Matrix Table Styling */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--color-slate-200);
}

.comparison-table th {
  background: var(--color-primary-800);
  color: #ffffff;
  padding: 1.125rem 1.25rem;
  font-weight: 600;
  text-align: left;
  font-size: 0.9375rem;
}

.comparison-table td {
  padding: 1.125rem 1.25rem;
  border-top: 1px solid var(--color-slate-200);
  font-size: 0.875rem;
  line-height: 1.5;
}

.comparison-table tr:nth-child(even) td {
  background-color: var(--color-slate-50);
}

.comparison-table tr:hover td {
  background-color: #f0fdfa;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
