/**
 * RedRRHH Calculadoras WordPress - Scoped CSS
 * 100% aislado bajo #redrrhh-app-wrapper.
 * Garantiza inmunidad total para el header, menu de navegacion, footer y tema de WordPress.
 *
 * @package RedRRHH_Calculadoras
 * @version 1.0.3
 */

#redrrhh-app-wrapper {
  /* Paleta Corporativa Oficial RedRRHH: Rojo y Negro */
  --red-primary: #DB0100;
  --red-hover: #b50100;
  --red-light: #fff0f0;
  --corporate-black: #000000;
  --corporate-dark: #1A1A1A;
  --color-primary: var(--red-primary, #DB0100);
  --color-secondary: var(--corporate-black, #000000);
  --color-hover: var(--red-hover, #b50100);
  --color-light: var(--red-light, #fff0f0);
  --blue-primary: var(--red-primary, #DB0100); /* Redirigido a Rojo Corporativo */
  --blue-hover: var(--red-hover, #b50100);
  --blue-light: var(--red-light, #fff0f0);
  --text-dark: #252525;
  --text-muted: #6C757D;
  --bg-light: #F5F6F8;
  --border-color: #E2E4E9;
  --radius-card: 16px;
  --radius-btn: 8px;
  --card-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 10px 24px rgba(219, 1, 0, 0.15);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  font-family: var(--font-main);
  color: var(--text-dark);
  background: transparent !important;
  background-color: transparent !important;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.5;
  position: relative;
}

#redrrhh-app-wrapper.redrrhh-wp-plugin,
#redrrhh-app-wrapper.redrrhh-theme-canvas,
#redrrhh-app-wrapper.redrrhh-shortcode-wrapper,
#redrrhh-app-wrapper.redrrhh-standalone-canvas {
  background: transparent !important;
  background-color: transparent !important;
}

#redrrhh-app-wrapper *,
#redrrhh-app-wrapper *::before,
#redrrhh-app-wrapper *::after {
  box-sizing: border-box;
}

#redrrhh-app-wrapper a {
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

#redrrhh-app-wrapper h1,
#redrrhh-app-wrapper h2,
#redrrhh-app-wrapper h3,
#redrrhh-app-wrapper h4,
#redrrhh-app-wrapper h5,
#redrrhh-app-wrapper h6 {
  font-family: var(--font-main);
  margin-top: 0;
  color: var(--text-dark);
}

/* ==========================================================================
   GRID SYSTEM (100% AISLADO)
   ========================================================================== */
#redrrhh-app-wrapper .container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: 1200px;
}

#redrrhh-app-wrapper .container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

#redrrhh-app-wrapper .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}

#redrrhh-app-wrapper .row > * {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: 12px;
  padding-left: 12px;
}

#redrrhh-app-wrapper .g-0, #redrrhh-app-wrapper .gx-0 { margin-right: 0; margin-left: 0; }
#redrrhh-app-wrapper .g-0 > *, #redrrhh-app-wrapper .gx-0 > * { padding-right: 0; padding-left: 0; }

#redrrhh-app-wrapper .g-1 { margin-right: -4px; margin-left: -4px; margin-top: -8px; }
#redrrhh-app-wrapper .g-1 > * { padding-right: 4px; padding-left: 4px; padding-top: 8px; }

#redrrhh-app-wrapper .g-2 { margin-right: -8px; margin-left: -8px; margin-top: -12px; }
#redrrhh-app-wrapper .g-2 > * { padding-right: 8px; padding-left: 8px; padding-top: 12px; }

#redrrhh-app-wrapper .g-3 { margin-right: -12px; margin-left: -12px; margin-top: -16px; }
#redrrhh-app-wrapper .g-3 > * { padding-right: 12px; padding-left: 12px; padding-top: 16px; }

#redrrhh-app-wrapper .g-4 { margin-right: -16px; margin-left: -16px; margin-top: -24px; }
#redrrhh-app-wrapper .g-4 > * { padding-right: 16px; padding-left: 16px; padding-top: 24px; }

#redrrhh-app-wrapper .col { flex: 1 0 0%; }
#redrrhh-app-wrapper .col-12 { flex: 0 0 auto; width: 100%; }
#redrrhh-app-wrapper .col-6 { flex: 0 0 auto; width: 50%; }
#redrrhh-app-wrapper .col-4 { flex: 0 0 auto; width: 33.333333%; }
#redrrhh-app-wrapper .col-3 { flex: 0 0 auto; width: 25%; }

@media (min-width: 768px) {
  #redrrhh-app-wrapper .col-md-12 { flex: 0 0 auto; width: 100%; }
  #redrrhh-app-wrapper .col-md-6 { flex: 0 0 auto; width: 50%; }
  #redrrhh-app-wrapper .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  #redrrhh-app-wrapper .col-md-3 { flex: 0 0 auto; width: 25%; }
  #redrrhh-app-wrapper .d-md-flex { display: flex !important; }
  #redrrhh-app-wrapper .d-md-inline { display: inline !important; }
  #redrrhh-app-wrapper .d-md-block { display: block !important; }
  #redrrhh-app-wrapper .d-md-none { display: none !important; }
  #redrrhh-app-wrapper .mb-md-0 { margin-bottom: 0 !important; }
}

@media (min-width: 992px) {
  #redrrhh-app-wrapper .col-lg-12 { flex: 0 0 auto; width: 100%; }
  #redrrhh-app-wrapper .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  #redrrhh-app-wrapper .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  #redrrhh-app-wrapper .col-lg-3 { flex: 0 0 auto; width: 25%; }
  #redrrhh-app-wrapper .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  #redrrhh-app-wrapper .d-lg-block { display: block !important; }
  #redrrhh-app-wrapper .d-lg-flex { display: flex !important; }
}

/* ==========================================================================
   DISPLAY Y FLEXBOX UTILITIES
   ========================================================================== */
#redrrhh-app-wrapper .d-flex { display: flex !important; }
#redrrhh-app-wrapper .d-inline-flex { display: inline-flex !important; }
#redrrhh-app-wrapper .d-block { display: block !important; }
#redrrhh-app-wrapper .d-inline-block { display: inline-block !important; }
#redrrhh-app-wrapper .d-none { display: none !important; }

#redrrhh-app-wrapper .align-items-start { align-items: flex-start !important; }
#redrrhh-app-wrapper .align-items-center { align-items: center !important; }
#redrrhh-app-wrapper .align-items-end { align-items: flex-end !important; }
#redrrhh-app-wrapper .align-items-stretch { align-items: stretch !important; }

#redrrhh-app-wrapper .justify-content-start { justify-content: flex-start !important; }
#redrrhh-app-wrapper .justify-content-center { justify-content: center !important; }
#redrrhh-app-wrapper .justify-content-between { justify-content: space-between !important; }
#redrrhh-app-wrapper .justify-content-end { justify-content: flex-end !important; }

#redrrhh-app-wrapper .flex-grow-1 { flex-grow: 1 !important; }
#redrrhh-app-wrapper .flex-wrap { flex-wrap: wrap !important; }
#redrrhh-app-wrapper .flex-nowrap { flex-wrap: nowrap !important; }
#redrrhh-app-wrapper .flex-column { flex-direction: column !important; }

#redrrhh-app-wrapper .gap-1 { gap: 0.25rem !important; }
#redrrhh-app-wrapper .gap-2 { gap: 0.5rem !important; }
#redrrhh-app-wrapper .gap-3 { gap: 1rem !important; }

/* ==========================================================================
   SPACING (MARGINS Y PADDINGS)
   ========================================================================== */
#redrrhh-app-wrapper .m-0 { margin: 0 !important; }
#redrrhh-app-wrapper .mb-0 { margin-bottom: 0 !important; }
#redrrhh-app-wrapper .mb-1 { margin-bottom: 0.25rem !important; }
#redrrhh-app-wrapper .mb-2 { margin-bottom: 0.5rem !important; }
#redrrhh-app-wrapper .mb-3 { margin-bottom: 1rem !important; }
#redrrhh-app-wrapper .mb-4 { margin-bottom: 1.5rem !important; }
#redrrhh-app-wrapper .mb-5 { margin-bottom: 3rem !important; }

#redrrhh-app-wrapper .mt-0 { margin-top: 0 !important; }
#redrrhh-app-wrapper .mt-1 { margin-top: 0.25rem !important; }
#redrrhh-app-wrapper .mt-2 { margin-top: 0.5rem !important; }
#redrrhh-app-wrapper .mt-3 { margin-top: 1rem !important; }
#redrrhh-app-wrapper .mt-4 { margin-top: 1.5rem !important; }
#redrrhh-app-wrapper .mt-5 { margin-top: 3rem !important; }
#redrrhh-app-wrapper .mt-auto { margin-top: auto !important; }

#redrrhh-app-wrapper .me-1 { margin-right: 0.25rem !important; }
#redrrhh-app-wrapper .me-2 { margin-right: 0.5rem !important; }
#redrrhh-app-wrapper .me-3 { margin-right: 1rem !important; }

#redrrhh-app-wrapper .ms-1 { margin-left: 0.25rem !important; }
#redrrhh-app-wrapper .ms-2 { margin-left: 0.5rem !important; }
#redrrhh-app-wrapper .ms-auto { margin-left: auto !important; }

#redrrhh-app-wrapper .my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
#redrrhh-app-wrapper .my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
#redrrhh-app-wrapper .my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
#redrrhh-app-wrapper .my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
#redrrhh-app-wrapper .my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

#redrrhh-app-wrapper .p-0 { padding: 0 !important; }
#redrrhh-app-wrapper .p-1 { padding: 0.25rem !important; }
#redrrhh-app-wrapper .p-2 { padding: 0.5rem !important; }
#redrrhh-app-wrapper .p-3 { padding: 1rem !important; }
#redrrhh-app-wrapper .p-4 { padding: 1.5rem !important; }
#redrrhh-app-wrapper .p-5 { padding: 3rem !important; }

#redrrhh-app-wrapper .py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
#redrrhh-app-wrapper .py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
#redrrhh-app-wrapper .py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
#redrrhh-app-wrapper .py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

#redrrhh-app-wrapper .px-0 { padding-left: 0 !important; padding-right: 0 !important; }
#redrrhh-app-wrapper .px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
#redrrhh-app-wrapper .px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
#redrrhh-app-wrapper .px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
#redrrhh-app-wrapper .px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

#redrrhh-app-wrapper .pt-0 { padding-top: 0 !important; }
#redrrhh-app-wrapper .pt-1 { padding-top: 0.25rem !important; }
#redrrhh-app-wrapper .pt-2 { padding-top: 0.5rem !important; }
#redrrhh-app-wrapper .pt-3 { padding-top: 1rem !important; }
#redrrhh-app-wrapper .pb-2 { padding-bottom: 0.5rem !important; }
#redrrhh-app-wrapper .pb-3 { padding-bottom: 1rem !important; }
#redrrhh-app-wrapper .ps-3 { padding-left: 1rem !important; }
#redrrhh-app-wrapper .ps-5 { padding-left: 3rem !important; }

/* ==========================================================================
   TIPOGRAFÍA Y COLORES DE TEXTO
   ========================================================================== */
#redrrhh-app-wrapper .text-center { text-align: center !important; }
#redrrhh-app-wrapper .text-start { text-align: left !important; }
#redrrhh-app-wrapper .text-end { text-align: right !important; }

#redrrhh-app-wrapper .text-primary { color: var(--red-primary, #DB0100) !important; }
#redrrhh-app-wrapper .text-danger { color: var(--red-primary, #DB0100) !important; }
#redrrhh-app-wrapper .text-dark { color: #212529 !important; }
#redrrhh-app-wrapper .text-muted { color: #6C757D !important; }
#redrrhh-app-wrapper .text-white { color: #FFFFFF !important; }
#redrrhh-app-wrapper .text-white-50 { color: rgba(255, 255, 255, 0.65) !important; }
#redrrhh-app-wrapper .text-success { color: #198754 !important; }
#redrrhh-app-wrapper .text-warning { color: #FFC107 !important; }

#redrrhh-app-wrapper .text-uppercase { text-transform: uppercase !important; }
#redrrhh-app-wrapper .text-decoration-none { text-decoration: none !important; }
#redrrhh-app-wrapper .text-nowrap { white-space: nowrap !important; }
#redrrhh-app-wrapper .text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#redrrhh-app-wrapper .fw-bold { font-weight: 700 !important; }
#redrrhh-app-wrapper .fw-semibold { font-weight: 600 !important; }
#redrrhh-app-wrapper .fw-normal { font-weight: 400 !important; }

#redrrhh-app-wrapper .fs-1 { font-size: 2.5rem !important; }
#redrrhh-app-wrapper .fs-2 { font-size: 2rem !important; }
#redrrhh-app-wrapper .fs-3 { font-size: 1.75rem !important; }
#redrrhh-app-wrapper .fs-4 { font-size: 1.5rem !important; }
#redrrhh-app-wrapper .fs-5 { font-size: 1.25rem !important; }
#redrrhh-app-wrapper .fs-6 { font-size: 1rem !important; }
#redrrhh-app-wrapper .small { font-size: 0.875rem !important; }
#redrrhh-app-wrapper .display-6 { font-size: 2.25rem; font-weight: 700; line-height: 1.2; }
#redrrhh-app-wrapper .font-monospace { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace !important; }

#redrrhh-app-wrapper .h-100 { height: 100% !important; }
#redrrhh-app-wrapper .w-100 { width: 100% !important; }
#redrrhh-app-wrapper .position-relative { position: relative !important; }

/* ==========================================================================
   FONDOS, BORDES Y SOMBRAS
   ========================================================================== */
#redrrhh-app-wrapper .bg-white { background-color: #FFFFFF !important; }
#redrrhh-app-wrapper .bg-light { background-color: var(--bg-light, #F5F6F8) !important; }
#redrrhh-app-wrapper .bg-primary { background-color: var(--red-primary, #DB0100) !important; }
#redrrhh-app-wrapper .bg-danger { background-color: var(--red-primary, #DB0100) !important; }
#redrrhh-app-wrapper .bg-opacity-10 { opacity: 0.9; }
#redrrhh-app-wrapper .bg-opacity-20 { background-color: rgba(255, 255, 255, 0.2) !important; }
#redrrhh-app-wrapper .bg-opacity-25 { background-color: rgba(255, 255, 255, 0.25) !important; }

#redrrhh-app-wrapper .border { border: 1px solid var(--border-color, #E2E4E9) !important; }
#redrrhh-app-wrapper .border-0 { border: 0 !important; }
#redrrhh-app-wrapper .border-top { border-top: 1px solid var(--border-color, #E2E4E9) !important; }
#redrrhh-app-wrapper .border-bottom { border-bottom: 1px solid var(--border-color, #E2E4E9) !important; }
#redrrhh-app-wrapper .border-primary { border-color: var(--red-primary, #DB0100) !important; }
#redrrhh-app-wrapper .border-4 { border-width: 4px !important; }

#redrrhh-app-wrapper .rounded { border-radius: 8px !important; }
#redrrhh-app-wrapper .rounded-3 { border-radius: 12px !important; }
#redrrhh-app-wrapper .rounded-4 { border-radius: 16px !important; }
#redrrhh-app-wrapper .rounded-pill { border-radius: 50rem !important; }
#redrrhh-app-wrapper .rounded-circle { border-radius: 50% !important; }

#redrrhh-app-wrapper .shadow-sm { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important; }
#redrrhh-app-wrapper .shadow { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important; }
#redrrhh-app-wrapper .shadow-lg { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important; }

/* ==========================================================================
   CARDS Y BADGES
   ========================================================================== */
#redrrhh-app-wrapper .card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #FFFFFF;
  background-clip: border-box;
  border: 1px solid var(--border-color, #E2E4E9);
  border-radius: var(--radius-card, 14px);
  box-shadow: var(--card-shadow, 0 4px 14px rgba(0, 0, 0, 0.05));
}

#redrrhh-app-wrapper .card-header {
  padding: 0.85rem 1.25rem;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border-color, #E2E4E9);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

#redrrhh-app-wrapper .card-body {
  flex: 1 1 auto;
  padding: 1.25rem;
}

#redrrhh-app-wrapper .badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: #FFFFFF;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 6px;
}

#redrrhh-app-wrapper .badge.bg-light {
  color: var(--red-primary, #DB0100) !important;
  background-color: #F8F9FA !important;
  border: 1px solid var(--border-color, #E2E4E9);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
#redrrhh-app-wrapper .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1.5px solid transparent;
  padding: 0.55rem 1.15rem;
  font-size: 0.95rem;
  border-radius: var(--radius-btn, 8px);
  transition: all 0.2s ease-in-out;
}

#redrrhh-app-wrapper .btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 6px;
}

#redrrhh-app-wrapper .btn-primary {
  color: #FFFFFF !important;
  background-color: var(--red-primary, #DB0100) !important;
  border-color: var(--red-primary, #DB0100) !important;
}

#redrrhh-app-wrapper .btn-primary:hover {
  background-color: var(--red-hover, #b50100) !important;
  border-color: var(--red-hover, #b50100) !important;
  transform: translateY(-1px);
}

#redrrhh-app-wrapper .btn-danger,
#redrrhh-app-wrapper .btn-redrrhh-primary {
  color: #FFFFFF !important;
  background-color: var(--red-primary, #DB0100) !important;
  border-color: var(--red-primary, #DB0100) !important;
}

#redrrhh-app-wrapper .btn-danger:hover,
#redrrhh-app-wrapper .btn-redrrhh-primary:hover {
  background-color: var(--red-hover, #b50100) !important;
  border-color: var(--red-hover, #b50100) !important;
  transform: translateY(-1px);
}

#redrrhh-app-wrapper .btn-outline-primary {
  color: var(--red-primary, #DB0100) !important;
  border-color: var(--red-primary, #DB0100) !important;
  background-color: transparent !important;
}

#redrrhh-app-wrapper .btn-outline-primary:hover {
  color: #FFFFFF !important;
  background-color: var(--red-primary, #DB0100) !important;
}

#redrrhh-app-wrapper .btn-outline-danger {
  color: var(--red-primary, #DB0100) !important;
  border-color: var(--red-primary, #DB0100) !important;
  background-color: transparent !important;
}

#redrrhh-app-wrapper .btn-outline-danger:hover {
  color: #FFFFFF !important;
  background-color: var(--red-primary, #DB0100) !important;
}

#redrrhh-app-wrapper .btn-outline-secondary {
  color: #6C757D !important;
  border-color: #6C757D !important;
}

#redrrhh-app-wrapper .btn-outline-secondary:hover {
  color: #FFFFFF !important;
  background-color: #6C757D !important;
}

#redrrhh-app-wrapper .btn-outline-success {
  color: #198754 !important;
  border-color: #198754 !important;
}

#redrrhh-app-wrapper .btn-outline-success:hover {
  color: #FFFFFF !important;
  background-color: #198754 !important;
}

#redrrhh-app-wrapper .btn-outline-dark {
  color: #212529 !important;
  border-color: #212529 !important;
}

#redrrhh-app-wrapper .btn-outline-dark:hover {
  color: #FFFFFF !important;
  background-color: #212529 !important;
}

#redrrhh-app-wrapper .btn-group {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

#redrrhh-app-wrapper .btn-group > .btn {
  position: relative;
  flex: 1 1 auto;
}

#redrrhh-app-wrapper .btn-group > :not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#redrrhh-app-wrapper .btn-group > :not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -1.5px;
}

/* ==========================================================================
   FORM CONTROLS
   ========================================================================== */
#redrrhh-app-wrapper .form-label {
  display: inline-block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark, #252525);
  margin-bottom: 0.4rem;
}

#redrrhh-app-wrapper .form-control,
#redrrhh-app-wrapper .form-select {
  display: block;
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #FFFFFF;
  background-clip: padding-box;
  border: 1.5px solid var(--border-color, #E2E4E9);
  border-radius: var(--radius-btn, 8px);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  box-sizing: border-box;
}

#redrrhh-app-wrapper .form-control-sm,
#redrrhh-app-wrapper .form-select-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  border-radius: 6px;
}

#redrrhh-app-wrapper .form-control:focus,
#redrrhh-app-wrapper .form-select:focus {
  border-color: var(--red-primary, #DB0100);
  box-shadow: 0 0 0 3px rgba(219, 1, 0, 0.15);
  outline: 0;
}

#redrrhh-app-wrapper .input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

#redrrhh-app-wrapper .input-group > .form-control,
#redrrhh-app-wrapper .input-group > .form-select {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

#redrrhh-app-wrapper .input-group-text {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark, #252525);
  text-align: center;
  white-space: nowrap;
  background-color: #F8F9FA;
  border: 1.5px solid var(--border-color, #E2E4E9);
}

#redrrhh-app-wrapper .input-group > :not(:last-child):not(.dropdown-toggle) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#redrrhh-app-wrapper .input-group > :not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -1.5px;
}

#redrrhh-app-wrapper .form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.75em;
  margin-bottom: 0.35rem;
  position: relative;
}

#redrrhh-app-wrapper .form-check-input {
  float: left;
  margin-left: -1.75em;
  margin-top: 0.25em;
  width: 1.15em;
  height: 1.15em;
  border: 1.5px solid var(--border-color, #E2E4E9);
  border-radius: 0.25em;
  cursor: pointer;
}

#redrrhh-app-wrapper .form-check-input:checked {
  background-color: var(--red-primary, #DB0100);
  border-color: var(--red-primary, #DB0100);
}

#redrrhh-app-wrapper .form-check-label {
  font-size: 0.9rem;
  color: var(--text-dark, #252525);
  cursor: pointer;
}

#redrrhh-app-wrapper .form-check-inline {
  display: inline-block;
  margin-right: 1.25rem;
}

#redrrhh-app-wrapper .form-switch .form-check-input {
  width: 2.2em;
  margin-left: -2.5em;
  border-radius: 2em;
  transition: background-position 0.15s ease-in-out;
}

/* ==========================================================================
   TABLES, ALERTS, BREADCRUMBS, LIST GROUPS
   ========================================================================== */
#redrrhh-app-wrapper .table {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--text-dark, #252525);
  vertical-align: top;
  border-color: var(--border-color, #E2E4E9);
  border-collapse: collapse;
}

#redrrhh-app-wrapper .table th,
#redrrhh-app-wrapper .table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-color, #E2E4E9);
  vertical-align: middle;
}

#redrrhh-app-wrapper .table-sm th,
#redrrhh-app-wrapper .table-sm td {
  padding: 0.4rem 0.6rem;
}

#redrrhh-app-wrapper .table-bordered th,
#redrrhh-app-wrapper .table-bordered td {
  border: 1px solid var(--border-color, #E2E4E9);
}

#redrrhh-app-wrapper .table-hover tbody tr:hover {
  background-color: rgba(15, 18, 155, 0.03);
}

#redrrhh-app-wrapper .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#redrrhh-app-wrapper .alert {
  position: relative;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn, 8px);
}

#redrrhh-app-wrapper .alert-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

#redrrhh-app-wrapper .list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  border-radius: var(--radius-card, 14px);
  list-style: none;
}

#redrrhh-app-wrapper .list-group-item {
  position: relative;
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-dark, #252525);
  background-color: #FFFFFF;
  border: 1px solid var(--border-color, #E2E4E9);
}

#redrrhh-app-wrapper .list-group-flush > .list-group-item {
  border-width: 0 0 1px;
}

#redrrhh-app-wrapper .list-group-flush > .list-group-item:last-child {
  border-bottom-width: 0;
}

#redrrhh-app-wrapper .list-group-item-action {
  width: 100%;
  text-align: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

#redrrhh-app-wrapper .list-group-item-action:hover {
  background-color: rgba(219, 1, 0, 0.04);
  color: var(--red-primary, #DB0100);
}

#redrrhh-app-wrapper .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin-bottom: 1rem;
  list-style: none;
}

#redrrhh-app-wrapper .breadcrumb-item + .breadcrumb-item {
  padding-left: 0.5rem;
}

#redrrhh-app-wrapper .breadcrumb-item + .breadcrumb-item::before {
  float: left;
  padding-right: 0.5rem;
  color: #6C757D;
  content: "/";
}

/* ==========================================================================
   ACCORDIONS Y TABS
   ========================================================================== */
#redrrhh-app-wrapper .accordion {
  border-radius: var(--radius-card, 14px);
}

#redrrhh-app-wrapper .accordion-item {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color, #E2E4E9);
  margin-bottom: 0.75rem;
  border-radius: 10px !important;
  overflow: hidden;
}

#redrrhh-app-wrapper .accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark, #252525);
  text-align: left;
  background-color: #FFFFFF;
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  cursor: pointer;
}

#redrrhh-app-wrapper .accordion-button:not(.collapsed) {
  color: var(--red-primary, #DB0100);
  background-color: var(--red-light, #FFF0F0);
}

#redrrhh-app-wrapper .accordion-body {
  padding: 1rem 1.25rem;
}

#redrrhh-app-wrapper .collapse:not(.show) {
  display: none;
}

#redrrhh-app-wrapper .nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

#redrrhh-app-wrapper .nav-pills .nav-link {
  border-radius: var(--radius-btn, 8px);
  padding: 0.5rem 1rem;
  color: var(--text-dark, #252525);
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: 0;
}

#redrrhh-app-wrapper .nav-pills .nav-link.active,
#redrrhh-app-wrapper .nav-pills .nav-link:hover {
  background-color: var(--red-primary, #DB0100) !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   CAJA DE RESULTADOS INTERACTIVOS (DISEÑO Y FORMATO ORIGINAL REDRRHH)
   ========================================================================== */

/* Contenedor Principal de Resultados (Tarjeta Blanca con Borde Rojo Oficial) */
#redrrhh-app-wrapper .results-card {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  color: var(--text-dark, #252525) !important;
  border: 2px solid var(--red-primary, #DB0100) !important;
  border-radius: var(--radius-card, 16px) !important;
  padding: 1.75rem !important;
  margin-top: 2rem !important;
  box-shadow: 0 8px 25px rgba(219, 1, 0, 0.08) !important;
  display: none;
}

#redrrhh-app-wrapper .results-card.active {
  display: block !important;
  animation: redrrhhFadeIn 0.3s ease-in-out !important;
}

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

/* Tarjeta Destacada de Resultado Principal (Negro Sólido #000000 Oficial) */
#redrrhh-app-wrapper .result-highlight-box {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
  color: #FFFFFF !important;
  border: 2px solid #000000 !important;
  border-radius: 12px !important;
  padding: 1.6rem 1.5rem !important;
  text-align: center !important;
  margin-bottom: 1.6rem !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
}

#redrrhh-app-wrapper .result-highlight-label {
  font-size: 0.95rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  opacity: 0.95 !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  margin-bottom: 0.25rem !important;
}

#redrrhh-app-wrapper .result-highlight-value {
  font-size: clamp(2rem, 5vw, 2.75rem) !important;
  font-weight: 900 !important;
  margin: 0.3rem 0 !important;
  color: #FFFFFF !important;
  letter-spacing: -0.5px !important;
  line-height: 1.15 !important;
  word-break: break-word !important;
}

#redrrhh-app-wrapper .result-highlight-box small {
  color: #FFFFFF !important;
  opacity: 0.9 !important;
  font-size: 0.82rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
}

#redrrhh-app-wrapper .result-highlight-box .fa-check-circle {
  color: #22c55e !important;
}

/* Encabezado del Desglose de Operaciones */
#redrrhh-app-wrapper .results-card h5 {
  color: var(--text-dark, #252525) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  display: flex !important;
  align-items: center !important;
}

#redrrhh-app-wrapper .results-card h5 i {
  color: var(--red-primary, #DB0100) !important;
  margin-right: 0.5rem !important;
}

/* Tabla de Desglose de Conceptos */
#redrrhh-app-wrapper .breakdown-table {
  width: 100% !important;
  background-color: #FFFFFF !important;
  border: 1px solid var(--border-color, #E2E4E9) !important;
  border-collapse: collapse !important;
  margin-bottom: 0 !important;
}

#redrrhh-app-wrapper .breakdown-table th {
  background-color: var(--bg-light, #F5F6F8) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  color: var(--text-dark, #252525) !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid var(--border-color, #E2E4E9) !important;
  text-align: left !important;
}

#redrrhh-app-wrapper .breakdown-table th.text-end {
  text-align: right !important;
}

#redrrhh-app-wrapper .breakdown-table td {
  vertical-align: middle !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid var(--border-color, #E2E4E9) !important;
  color: var(--text-dark, #252525) !important;
  font-size: 0.95rem !important;
  background-color: #FFFFFF;
}

#redrrhh-app-wrapper .breakdown-table tbody tr:hover td {
  background-color: rgba(219, 1, 0, 0.02) !important;
}

/* Filas Contextuales con Colores Oficiales */
#redrrhh-app-wrapper .breakdown-table tr.table-primary td,
#redrrhh-app-wrapper .breakdown-table tr.table-primary th {
  background-color: #fff0f0 !important;
  color: var(--red-primary, #DB0100) !important;
  font-weight: 700 !important;
  border-color: #fcd5d5 !important;
}

#redrrhh-app-wrapper .breakdown-table tr.table-secondary td,
#redrrhh-app-wrapper .breakdown-table tr.table-secondary th {
  background-color: #f1f3f5 !important;
  color: #212529 !important;
  font-weight: 700 !important;
  border-color: #dee2e6 !important;
}

#redrrhh-app-wrapper .breakdown-table tr.table-light td,
#redrrhh-app-wrapper .breakdown-table tr.table-light th {
  background-color: #f8f9fa !important;
  color: #212529 !important;
  font-weight: 600 !important;
  border-color: #e9ecef !important;
}

#redrrhh-app-wrapper .breakdown-table tr.table-success td,
#redrrhh-app-wrapper .breakdown-table tr.table-success th {
  background-color: #d1e7dd !important;
  color: #0f5132 !important;
  border-color: #bcd0c7 !important;
}

#redrrhh-app-wrapper .breakdown-table tr.table-danger td,
#redrrhh-app-wrapper .breakdown-table tr.table-danger th {
  background-color: #f8d7da !important;
  color: #842029 !important;
  border-color: #f5c2c7 !important;
}

/* Formato y Colores Tipográficos del Desglose */
#redrrhh-app-wrapper .breakdown-table .text-success,
#redrrhh-app-wrapper .text-success {
  color: #198754 !important;
  font-weight: 600;
}

#redrrhh-app-wrapper .breakdown-table .text-danger,
#redrrhh-app-wrapper .text-danger {
  color: var(--red-primary, #DB0100) !important;
  font-weight: 600;
}

#redrrhh-app-wrapper .breakdown-table .text-primary,
#redrrhh-app-wrapper .text-primary {
  color: var(--red-primary, #DB0100) !important;
  font-weight: 700;
}

#redrrhh-app-wrapper .breakdown-table .text-dark,
#redrrhh-app-wrapper .text-dark {
  color: #212529 !important;
}

#redrrhh-app-wrapper .breakdown-table .text-muted,
#redrrhh-app-wrapper .text-muted {
  color: var(--text-muted, #6C757D) !important;
}

#redrrhh-app-wrapper .breakdown-table .text-end,
#redrrhh-app-wrapper .text-end {
  text-align: right !important;
}

#redrrhh-app-wrapper .breakdown-table .fw-bold,
#redrrhh-app-wrapper .fw-bold {
  font-weight: 700 !important;
}

#redrrhh-app-wrapper .breakdown-table .fs-5,
#redrrhh-app-wrapper .fs-5 {
  font-size: 1.15rem !important;
}

#redrrhh-app-wrapper .text-capitalize {
  text-transform: capitalize !important;
}

#redrrhh-app-wrapper .font-monospace {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

/* Barra Inferior de Acciones (Imprimir, PDF, Compartir) */
#redrrhh-app-wrapper .results-card .border-top {
  border-top: 1px solid var(--border-color, #E2E4E9) !important;
  padding-top: 1rem !important;
  margin-top: 1.5rem !important;
}

#redrrhh-app-wrapper .results-card .btn-print-calc {
  border: 1.5px solid #212529 !important;
  color: #212529 !important;
  background-color: transparent !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
}

#redrrhh-app-wrapper .results-card .btn-print-calc:hover {
  background-color: #212529 !important;
  color: #FFFFFF !important;
}

#redrrhh-app-wrapper .results-card .btn-print-calc i {
  color: var(--red-primary, #DB0100) !important;
  transition: color 0.2s ease !important;
}

#redrrhh-app-wrapper .results-card .btn-print-calc:hover i {
  color: #FFFFFF !important;
}

#redrrhh-app-wrapper .results-card .action-buttons-group span {
  color: var(--text-muted, #6C757D) !important;
  font-size: 0.85rem !important;
}

#redrrhh-app-wrapper .results-card .action-buttons-group .btn {
  padding: 0.35rem 0.65rem !important;
  font-size: 0.85rem !important;
  border-radius: 6px !important;
  background: transparent !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
}

#redrrhh-app-wrapper .results-card .action-buttons-group .btn-outline-success {
  border: 1px solid #198754 !important;
  color: #198754 !important;
}

#redrrhh-app-wrapper .results-card .action-buttons-group .btn-outline-success:hover {
  background-color: #198754 !important;
  color: #FFFFFF !important;
}

#redrrhh-app-wrapper .results-card .action-buttons-group .btn-outline-primary {
  border: 1px solid var(--red-primary, #DB0100) !important;
  color: var(--red-primary, #DB0100) !important;
}

#redrrhh-app-wrapper .results-card .action-buttons-group .btn-outline-primary:hover {
  background-color: var(--red-primary, #DB0100) !important;
  color: #FFFFFF !important;
}

#redrrhh-app-wrapper .results-card .action-buttons-group .btn-outline-secondary {
  border: 1px solid var(--text-muted, #6C757D) !important;
  color: var(--text-muted, #6C757D) !important;
}

#redrrhh-app-wrapper .results-card .action-buttons-group .btn-outline-secondary:hover {
  background-color: var(--text-muted, #6C757D) !important;
  color: #FFFFFF !important;
}

/* Iconos de Herramientas y Calculadoras (Caja Cuadrada Negra Oficial) */
#redrrhh-app-wrapper .calc-icon-wrapper {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 12px;
  background-color: #000000 !important;
  background: #000000 !important;
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#redrrhh-app-wrapper .calc-icon-wrapper i {
  color: #FFFFFF !important;
  font-size: 1.25rem;
  line-height: 1;
}

#redrrhh-app-wrapper .calc-card:hover .calc-icon-wrapper,
#redrrhh-app-wrapper .hover-card:hover .calc-icon-wrapper,
#redrrhh-app-wrapper .list-group-item:hover .calc-icon-wrapper {
  background-color: var(--red-primary, #DB0100) !important;
  background: var(--red-primary, #DB0100) !important;
  transform: scale(1.06);
}

#redrrhh-app-wrapper .calc-icon-sm {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  font-size: 1.05rem !important;
  border-radius: 10px !important;
}

#redrrhh-app-wrapper .calc-icon-sm i {
  font-size: 1.05rem !important;
}

#redrrhh-app-wrapper .calc-icon-lg {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  font-size: 1.4rem !important;
  border-radius: 14px !important;
}

#redrrhh-app-wrapper .calc-icon-lg i {
  font-size: 1.4rem !important;
}

/* Acordeón de Fundamento Legal y Metodología */
#redrrhh-app-wrapper .info-accordion .accordion-item {
  border: 1px solid var(--border-color, #E2E4E9) !important;
  border-radius: var(--radius-card, 16px) !important;
  margin-bottom: 1rem !important;
  overflow: hidden !important;
}

#redrrhh-app-wrapper .info-accordion .accordion-button {
  font-weight: 700 !important;
  color: var(--corporate-black, #000000) !important;
  background-color: #F8F9FA !important;
}

#redrrhh-app-wrapper .info-accordion .accordion-button:not(.collapsed) {
  background-color: var(--red-primary, #DB0100) !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   TARJETAS DE CALCULADORAS Y EFECTOS HOVER
   ========================================================================== */
#redrrhh-app-wrapper .calc-card {
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--border-color, #E2E4E9);
  border-radius: 12px;
}

#redrrhh-app-wrapper .calc-card:hover,
#redrrhh-app-wrapper .hover-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover, 0 10px 24px rgba(219, 1, 0, 0.15)) !important;
  border-color: rgba(219, 1, 0, 0.4);
}

#redrrhh-app-wrapper .calculator-box {
  background: #FFFFFF;
  border-radius: var(--radius-card, 16px);
  box-shadow: var(--card-shadow, 0 4px 14px rgba(0, 0, 0, 0.05));
  padding: 1.5rem;
  margin-bottom: 2rem;
}

#redrrhh-app-wrapper .calc-header-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background-color: var(--red-light, #FFF0F0);
  color: var(--red-primary, #DB0100);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   HERO SECTION Y SLIDER DE FONDOS CORPORATIVOS
   ========================================================================== */
#redrrhh-app-wrapper .hero-section {
  background-color: #111111;
  color: #FFFFFF;
  padding: clamp(3.25rem, 6vw, 4.75rem) 0;
  position: relative;
  overflow: visible !important;
  z-index: 50;
  min-height: 440px;
}

#redrrhh-app-wrapper .hero-slider-bg-wrapper,
#redrrhh-app-wrapper .hero-bg-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

#redrrhh-app-wrapper .hero-slide-item,
#redrrhh-app-wrapper .hero-bg-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 1.2s ease-in-out, visibility 1.2s;
  will-change: opacity;
  background-color: #111111;
}

#redrrhh-app-wrapper .hero-slide-item.active,
#redrrhh-app-wrapper .hero-bg-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

#redrrhh-app-wrapper .hero-slide-img,
#redrrhh-app-wrapper .hero-bg-slide-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border: 0; margin: 0; padding: 0;
}

#redrrhh-app-wrapper .hero-slider-overlay,
#redrrhh-app-wrapper .hero-bg-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.72) 0%, 
    rgba(20, 20, 20, 0.58) 50%, 
    rgba(219, 1, 0, 0.65) 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* ELIMINACIÓN DE DOTS EN SLIDERS DENTRO DE REDRRHH */
#redrrhh-app-wrapper .hero-slider-dots-wrapper,
#redrrhh-app-wrapper .hero-slider-dot-btn,
#redrrhh-app-wrapper .carousel-indicators,
#redrrhh-app-wrapper [class*="dots-wrapper"],
#redrrhh-app-wrapper [class*="slider-dots"],
#redrrhh-app-wrapper [class*="carousel-dots"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#redrrhh-app-wrapper .hero-slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 35;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#redrrhh-app-wrapper .hero-slider-nav-btn:hover {
  background: var(--red-primary, #DB0100);
  border-color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
  color: #FFFFFF;
}

#redrrhh-app-wrapper .hero-nav-prev { left: 24px; }
#redrrhh-app-wrapper .hero-nav-next { right: 24px; }

@media (max-width: 768px) {
  #redrrhh-app-wrapper .hero-slider-nav-btn {
    width: 36px; height: 36px;
    font-size: 0.85rem;
  }
  #redrrhh-app-wrapper .hero-nav-prev { left: 8px; }
  #redrrhh-app-wrapper .hero-nav-next { right: 8px; }
}

#redrrhh-app-wrapper .hero-content-container {
  position: relative;
  z-index: 20;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4.5vw, 4rem) !important;
  padding-right: clamp(1.25rem, 4.5vw, 4rem) !important;
  box-sizing: border-box;
  width: 100%;
}

#redrrhh-app-wrapper .hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: center;
  max-width: min(92vw, 680px);
  padding: 0.5rem 1.25rem !important;
  font-size: clamp(0.72rem, 0.95vw + 0.35rem, 0.82rem) !important;
  letter-spacing: 0.5px;
  line-height: 1.45;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#redrrhh-app-wrapper .hero-title {
  font-size: clamp(1.85rem, 3.8vw + 0.5rem, 2.75rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 1rem;
  color: #FFFFFF !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85), 0 4px 20px rgba(0, 0, 0, 0.5);
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

#redrrhh-app-wrapper .hero-subtitle {
  font-size: clamp(0.95rem, 1.2vw + 0.45rem, 1.15rem);
  opacity: 0.98;
  max-width: 820px;
  width: 100%;
  margin: 0 auto 2rem;
  color: #FFFFFF !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.6;
}

/* ==========================================================================
   BUSCADOR INTELIGENTE EN VIVO
   ========================================================================== */
#redrrhh-app-wrapper .search-container {
  position: relative;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  z-index: 99999 !important;
}

#redrrhh-app-wrapper .search-input-group {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 50px;
  overflow: hidden;
  background: #FFFFFF;
  position: relative;
  z-index: 10;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  width: 100%;
}

#redrrhh-app-wrapper .search-input-group .input-group-text {
  flex-shrink: 0;
  background: #FFFFFF;
  border: none;
  padding-left: clamp(0.85rem, 2vw, 1.35rem);
  padding-right: 0.5rem;
  display: flex;
  align-items: center;
}

#redrrhh-app-wrapper .search-input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: clamp(0.9rem, 1.2vw + 0.4rem, 1.05rem);
  color: var(--text-dark, #252525);
  padding: 0.95rem 0.5rem;
  width: 100%;
  background: #FFFFFF;
}

#redrrhh-app-wrapper .search-btn {
  background-color: var(--red-primary, #DB0100) !important;
  color: #FFFFFF !important;
  border: none !important;
  padding-left: clamp(1rem, 2.5vw, 1.75rem);
  padding-right: clamp(1rem, 2.5vw, 1.75rem);
  font-weight: 700;
  border-radius: 0 50px 50px 0 !important;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

#redrrhh-app-wrapper .search-btn:hover {
  background-color: var(--red-hover, #b50100) !important;
}

#redrrhh-app-wrapper .hero-quick-tags {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

#redrrhh-app-wrapper .hero-quick-tag {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

#redrrhh-app-wrapper .hero-quick-tag:hover {
  background: #FFFFFF;
  color: var(--red-primary, #DB0100) !important;
}

#redrrhh-app-wrapper .search-results-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  max-height: 380px;
  overflow-y: auto;
  z-index: 999999 !important;
  display: none;
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

#redrrhh-app-wrapper .search-result-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-dark, #252525);
  transition: background-color 0.15s ease;
}

#redrrhh-app-wrapper .search-result-item:hover {
  background-color: var(--red-light, #FFF0F0);
  color: var(--red-primary, #DB0100);
}

#redrrhh-app-wrapper .search-result-item .item-icon {
  width: 38px;
  height: 38px;
  background-color: #000000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.85rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

#redrrhh-app-wrapper .search-result-item .item-icon i {
  color: #FFFFFF;
  font-size: 1.1rem;
}

#redrrhh-app-wrapper .search-result-item:hover .item-icon {
  background-color: var(--red-primary, #DB0100);
}

/* ==========================================================================
   TICKER DE INDICADORES ECONÓMICOS
   ========================================================================== */
#redrrhh-app-wrapper .indicators-ticker-bar {
  background: linear-gradient(90deg, #000000 0%, #1A1A1A 60%, var(--red-primary, #DB0100) 100%);
  color: #FFFFFF;
  padding: 0.5rem 0;
  font-size: 0.88rem;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1);
}

#redrrhh-app-wrapper .indicator-item {
  display: inline-flex;
  align-items: center;
  margin-right: 1.75rem;
  font-weight: 500;
}

#redrrhh-app-wrapper .indicator-item strong {
  margin-right: 0.35rem;
  color: #FFA3A3;
}

#redrrhh-app-wrapper .indicator-item .badge-ind {
  background-color: rgba(255, 255, 255, 0.18);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 0.35rem;
}

/* ==========================================================================
   BANNER COMERCIAL Y FOOTER REDRRHH
   ========================================================================== */
#redrrhh-app-wrapper .commercial-card-redrrhh {
  background: linear-gradient(135deg, #000000 0%, #1A1A1A 50%, var(--red-primary, #DB0100) 100%);
  border-radius: var(--radius-card, 16px);
  color: #FFFFFF;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow, 0 4px 14px rgba(0, 0, 0, 0.05));
}

#redrrhh-app-wrapper .commercial-card-redrrhh h3 {
  color: #FFFFFF !important;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

#redrrhh-app-wrapper .commercial-card-redrrhh p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  max-width: 600px;
}

/* ==========================================================================
   COMPONENTES ESPECÍFICOS Y UTILIDADES ADICIONALES (SCOPED)
   ========================================================================== */
#redrrhh-app-wrapper .breakdown-table th {
  background-color: #F8F9FA;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark, #252525);
}

#redrrhh-app-wrapper .breakdown-table td {
  font-size: 0.9rem;
}

#redrrhh-app-wrapper .accordion-header {
  margin-bottom: 0;
}

#redrrhh-app-wrapper .accordion-collapse {
  transition: height 0.35s ease;
}

#redrrhh-app-wrapper .fade {
  transition: opacity 0.15s linear;
}

#redrrhh-app-wrapper .fade:not(.show) {
  opacity: 0;
}

#redrrhh-app-wrapper .tab-content > .tab-pane {
  display: none;
}

#redrrhh-app-wrapper .tab-content > .active {
  display: block;
}

#redrrhh-app-wrapper .nav-item {
  margin-right: 0.5rem;
}

#redrrhh-app-wrapper .action-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#redrrhh-app-wrapper .faq-icon-bullet {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.8rem;
}

#redrrhh-app-wrapper .faq-icon-bullet i {
  color: #FFFFFF;
  font-size: 0.85rem;
}

#redrrhh-app-wrapper .hover-scale {
  transition: transform 0.2s ease;
}

#redrrhh-app-wrapper .hover-scale:hover {
  transform: scale(1.02);
}

#redrrhh-app-wrapper .overflow-auto {
  overflow: auto !important;
}

#redrrhh-app-wrapper .opacity-90 {
  opacity: 0.9 !important;
}

#redrrhh-app-wrapper .text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#redrrhh-app-wrapper .hero-quick-tags-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin-right: 0.35rem;
}

#redrrhh-app-wrapper .info-accordion .accordion-item {
  border-color: var(--border-color, #E2E4E9);
}

#redrrhh-app-wrapper .input-group-lg > .form-control,
#redrrhh-app-wrapper .input-group-lg > .input-group-text {
  padding: 0.75rem 1.25rem;
  font-size: 1.15rem;
  border-radius: 10px;
}

#redrrhh-app-wrapper .input-group-sm > .form-control,
#redrrhh-app-wrapper .input-group-sm > .input-group-text {
  padding: 0.25rem 0.5rem;
  font-size: 0.82rem;
  border-radius: 6px;
}

#redrrhh-app-wrapper .btn-print-calc {
  cursor: pointer;
}

#redrrhh-app-wrapper .smart-search-input {
  width: 100%;
}

/* ==========================================================================
   OPTIMIZACIONES RESPONSIVAS MULTI-DISPOSITIVO (TABLETS Y MÓVILES)
   ========================================================================== */
@media (max-width: 991.98px) {
  #redrrhh-app-wrapper .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  #redrrhh-app-wrapper .calculator-box {
    padding: 1.25rem;
  }
  
  #redrrhh-app-wrapper .hero-section {
    padding: 3.5rem 0;
    min-height: 400px;
  }
  
  #redrrhh-app-wrapper .results-card {
    padding: 1.25rem !important;
  }
  
  #redrrhh-app-wrapper .result-highlight-box {
    padding: 1.25rem 1rem !important;
  }
}

@media (max-width: 576px) {
  #redrrhh-app-wrapper .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  #redrrhh-app-wrapper .hero-section {
    padding: 2.5rem 0 3rem;
    min-height: 360px;
  }

  #redrrhh-app-wrapper .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }

  #redrrhh-app-wrapper .hero-subtitle {
    font-size: 0.92rem !important;
    margin-bottom: 1.5rem;
  }

  #redrrhh-app-wrapper .hero-badge {
    font-size: 0.72rem !important;
    padding: 0.4rem 0.85rem !important;
  }

  #redrrhh-app-wrapper .calc-icon-wrapper {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 10px !important;
    font-size: 1.1rem !important;
  }

  #redrrhh-app-wrapper .calc-icon-wrapper i {
    font-size: 1.1rem !important;
  }

  #redrrhh-app-wrapper .calc-icon-lg {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 12px !important;
    font-size: 1.25rem !important;
  }

  #redrrhh-app-wrapper .calc-icon-lg i {
    font-size: 1.25rem !important;
  }

  #redrrhh-app-wrapper .calculator-box {
    padding: 1rem;
    border-radius: 12px;
  }

  #redrrhh-app-wrapper .results-card {
    padding: 1rem !important;
    border-radius: 12px !important;
  }

  #redrrhh-app-wrapper .result-highlight-box {
    padding: 1rem 0.75rem !important;
    border-radius: 10px !important;
  }

  #redrrhh-app-wrapper .result-highlight-value {
    font-size: 1.75rem !important;
  }

  #redrrhh-app-wrapper .result-highlight-label {
    font-size: 0.82rem !important;
  }

  #redrrhh-app-wrapper .action-buttons-group {
    flex-direction: column;
    width: 100%;
  }

  #redrrhh-app-wrapper .action-buttons-group .btn {
    width: 100%;
    margin-bottom: 0.4rem;
  }

  #redrrhh-app-wrapper .search-btn {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    font-size: 0.88rem !important;
  }

  #redrrhh-app-wrapper .nav-pills {
    padding-bottom: 0.5rem;
  }

  #redrrhh-app-wrapper .nav-pills .nav-link {
    font-size: 0.82rem;
    padding: 0.4rem 0.8rem;
  }

  #redrrhh-app-wrapper .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #redrrhh-app-wrapper .breakdown-table th,
  #redrrhh-app-wrapper .breakdown-table td {
    padding: 0.5rem 0.5rem !important;
    font-size: 0.82rem !important;
  }
}

/* ==========================================================================
   GRID MODERNO Y COMPACTO DE CATEGORÍAS (SIN DESPLAZAMIENTOS HORIZONTALES)
   ========================================================================== */
#redrrhh-app-wrapper .category-grid-card {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 12px !important;
  padding: 0.75rem 0.9rem !important;
  cursor: pointer;
  transition: all 0.22s ease-in-out;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

#redrrhh-app-wrapper .category-grid-card:hover {
  border-color: var(--red-primary, #DB0100) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(219, 1, 0, 0.08) !important;
}

#redrrhh-app-wrapper .category-grid-card.active {
  border-color: var(--red-primary, #DB0100) !important;
  background-color: #FFF5F5 !important;
  box-shadow: 0 0 0 1.5px var(--red-primary, #DB0100), 0 4px 14px rgba(219, 1, 0, 0.12) !important;
}

#redrrhh-app-wrapper .category-grid-card .cat-grid-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  color: #FFFFFF;
  font-size: 14px;
  transition: all 0.22s ease;
}

#redrrhh-app-wrapper .category-grid-card:hover .cat-grid-icon,
#redrrhh-app-wrapper .category-grid-card.active .cat-grid-icon {
  background-color: var(--red-primary, #DB0100) !important;
  color: #FFFFFF !important;
}

#redrrhh-app-wrapper .category-grid-card .cat-grid-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}

#redrrhh-app-wrapper .category-grid-card.active .cat-grid-title {
  color: var(--red-primary, #DB0100) !important;
}

#redrrhh-app-wrapper .category-grid-card .cat-grid-desc {
  font-size: 0.72rem;
  color: #64748B;
  display: block;
  line-height: 1.2;
  margin-top: 2px;
}

#redrrhh-app-wrapper .category-grid-card .cat-grid-count {
  font-size: 0.72rem;
  font-weight: 700;
  background-color: #F1F5F9;
  color: #475569;
  padding: 4px 8px;
  border-radius: 20px;
  transition: all 0.22s ease;
  flex-shrink: 0;
}

#redrrhh-app-wrapper .category-grid-card.active .cat-grid-count {
  background-color: #FEE2E2 !important;
  color: var(--red-primary, #DB0100) !important;
}

/* Enriquecimiento de acordeón informativo SSR */
#redrrhh-app-wrapper .redrrhh-rich-info-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #FEE2E2;
  padding-bottom: 4px;
}

#redrrhh-app-wrapper .redrrhh-rich-info-content h3:first-child {
  margin-top: 0;
}

#redrrhh-app-wrapper .redrrhh-rich-info-content p,
#redrrhh-app-wrapper .redrrhh-rich-info-content li {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
}

#redrrhh-app-wrapper .redrrhh-rich-info-content ul,
#redrrhh-app-wrapper .redrrhh-rich-info-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

#redrrhh-app-wrapper .redrrhh-rich-info-content a {
  color: var(--red-primary, #DB0100);
  font-weight: 600;
  text-decoration: underline;
}

#redrrhh-app-wrapper .redrrhh-rich-info-content a:hover {
  color: var(--red-hover, #B50100);
}

/* ==========================================================================
   OCULTAMIENTO ABSOLUTO DEL MEMBRETE Y REPORTES EN PANTALLA PÚBLICA (SECCIÓN 2)
   El membrete, logo institucional, encabezados y reportes solo deben existir
   para impresión o descarga en PDF. En la web normal quedan 100% invisibles.
   ========================================================================== */
#redrrhh-app-wrapper #redrrhh-print-document,
#redrrhh-app-wrapper .redrrhh-print-sheet,
#redrrhh-app-wrapper .redrrhh-report-container,
#redrrhh-print-document,
.redrrhh-print-sheet,
.redrrhh-report-container,
[data-redrrhh-print-sheet] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -99999px !important;
  top: -99999px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  pointer-events: none !important;
}

