/* ==========================================================================
   XPERTOS OUTSOURCING PERÚ - ESTILOS CORPORATIVOS GLOBALES
   Arquitectura: CSS3 Nativo + Bootstrap 5.3 Overrides + Custom Design Tokens
   Paleta: Blanco (#ffffff), Rojo Corporativo (#DC2626), Negro Puro (#000000 / #0A0A0A), Gris Neutro (#525252 / #E5E5E5)
   ========================================================================== */

:root {
  --xpertos-red: #DC2626;
  --xpertos-red-hover: #B91C1C;
  --xpertos-red-dark: #991B1B;
  --xpertos-red-subtle: #FEF2F2;
  --xpertos-red-border: #FCA5A5;
  --xpertos-black: #000000;
  --xpertos-dark: #121212;
  --xpertos-gray-dark: #262626;
  --xpertos-gray-medium: #525252;
  --xpertos-gray-light: #F7F7F8;
  --xpertos-gray-border: #E5E5E5;
  --xpertos-white: #FFFFFF;
  --xpertos-whatsapp: #25D366;
  --xpertos-whatsapp-hover: #1EBE5D;
  --xpertos-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --xpertos-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --xpertos-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --xpertos-shadow-red: 0 8px 24px rgba(220, 38, 38, 0.25);
  --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Base & Typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-primary);
  width: 100%;
}

section[id],
footer[id] {
  scroll-margin-top: 85px;
}

html,
body {
  width: 100%;
  position: relative;
}

body {
  font-family: var(--font-primary);
  color: var(--xpertos-dark);
  background-color: var(--xpertos-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

navbar-component,
hero-component,
servicios-component,
tecnologia-component,
postulate-component,
footer-component,
main {
  display: block;
  width: 100%;
}

/* Fluid Media & Anti-Overflow */
img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Custom Scrollbar - Neutral Black & Red */
::-webkit-scrollbar {
  width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--xpertos-red);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: 700;
  color: var(--xpertos-black);
  letter-spacing: -0.02em;
}

/* Text Highlights */
.text-corporate-red {
  color: var(--xpertos-red) !important;
}

.bg-corporate-red {
  background-color: var(--xpertos-red) !important;
}

.text-corporate-dark {
  color: var(--xpertos-black) !important;
}

/* Rounded Utilities */
.rounded-4 {
  border-radius: 1rem !important;
}

.rounded-5 {
  border-radius: 1.5rem !important;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (IntersectionObserver Native)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Estado Revelado */
.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Stagger Delays para tarjetas en cuadrícula al entrar */
.reveal.revealed.reveal-delay-1,
.reveal-left.revealed.reveal-delay-1,
.reveal-right.revealed.reveal-delay-1,
.reveal-scale.revealed.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal.revealed.reveal-delay-2,
.reveal-left.revealed.reveal-delay-2,
.reveal-right.revealed.reveal-delay-2,
.reveal-scale.revealed.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal.revealed.reveal-delay-3,
.reveal-left.revealed.reveal-delay-3,
.reveal-right.revealed.reveal-delay-3,
.reveal-scale.revealed.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal.revealed.reveal-delay-4,
.reveal-left.revealed.reveal-delay-4,
.reveal-right.revealed.reveal-delay-4,
.reveal-scale.revealed.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* Al salir de pantalla, reseteo instantáneo sin retrasos para que vuelva a animarse limpiamente */
.reveal:not(.revealed),
.reveal-left:not(.revealed),
.reveal-right:not(.revealed),
.reveal-scale:not(.revealed) {
  transition-delay: 0s !important;
}

/* Corporate Buttons */
.btn-corporate {
  background-color: var(--xpertos-red);
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 50rem;
  border: 1px solid var(--xpertos-red);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-corporate:hover,
.btn-corporate:focus {
  background-color: var(--xpertos-red-hover);
  border-color: var(--xpertos-red-hover);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

.btn-corporate-white,
.btn-corporate-outline {
  background-color: #FFFFFF !important;
  color: #111827 !important;
  font-weight: 700;
  padding: 0.75rem 1.85rem;
  border-radius: 50rem;
  border: 1.5px solid #FFFFFF;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
}

.btn-corporate-white span,
.btn-corporate-outline span,
.btn-corporate-white i,
.btn-corporate-outline i {
  color: #111827 !important;
  transition: transform 0.25s ease;
}

.btn-corporate-white:hover,
.btn-corporate-white:focus,
.btn-corporate-outline:hover,
.btn-corporate-outline:focus {
  background-color: #F9FAFB !important;
  border-color: #F3F4F6 !important;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 16px rgba(255, 255, 255, 0.3);
}

.btn-corporate-white:hover i,
.btn-corporate-outline:hover i {
  transform: translateX(3px);
}

/* Service Filter Pill Buttons (B2B Portfolio Navigation - Exact match to reference image) */
.service-filter-btn {
  background-color: #FFFFFF;
  color: #111827;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.72rem 1.65rem;
  border-radius: 50rem;
  border: 1.5px solid #E5E7EB;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  outline: none;
  user-select: none;
  position: relative;
  line-height: 1.35;
}

.service-filter-btn i {
  font-size: 1rem;
  color: #111827;
  transition: color 0.25s ease, transform 0.25s ease;
}

/* Hover: Si el cursor está encima del botón, se aplica el diseño corporativo rojo con glow */
.service-filter-btn:hover {
  background-color: #A1181F !important;
  border-color: #A1181F !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 25px -2px rgba(161, 24, 31, 0.45) !important;
  transform: translateY(-2px);
}

.service-filter-btn:hover i {
  color: #FFFFFF !important;
  transform: scale(1.08);
}

/* Activo: Según la categoría/sección en la que nos encontremos */
.service-filter-btn.active {
  background-color: #A1181F !important;
  border-color: #A1181F !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 25px -2px rgba(161, 24, 31, 0.45) !important;
  transform: translateY(-2px);
}

.service-filter-btn.active i {
  color: #FFFFFF !important;
}

/* ==========================================================================
   SERVICIOS B2B: ARQUITECTURA DE CARRUSELES ANIDADOS Y CONTROLES INTERACTIVOS
   ========================================================================== */
#servicios {
  scroll-margin-top: 95px;
}

.b2b-carousel-master-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Barra de Navegación del Carrusel Nivel 1 */
.carousel-nav-header.level-1-nav {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  transition: all 0.25s ease;
  max-width: 100%;
  overflow: hidden;
}

.carousel-control-prev.position-static,
.carousel-control-next.position-static {
  position: static !important;
  opacity: 1 !important;
  width: auto !important;
  flex-shrink: 0 !important;
}

.carousel-nav-arrow-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #1E293B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  padding: 0;
}

.carousel-nav-arrow-btn .carousel-control-prev-icon,
.carousel-nav-arrow-btn .carousel-control-next-icon {
  width: 1.15rem;
  height: 1.15rem;
  filter: invert(0.2);
  background-size: 100% 100%;
}

.carousel-nav-arrow-btn:hover {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  transform: scale(1.06);
}

.carousel-nav-arrow-btn:hover .carousel-control-prev-icon,
.carousel-nav-arrow-btn:hover .carousel-control-next-icon {
  filter: invert(1);
}

.level-indicator-badge {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 50rem;
  white-space: nowrap;
}

.master-tabs-track {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 50rem;
  padding: 3px;
  box-sizing: border-box;
}

.master-tab-btn {
  background: transparent;
  color: #475569;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
  border-radius: 50rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  user-select: none;
  white-space: nowrap;
  max-width: 100%;
}

.master-tab-btn:hover {
  color: #0F172A;
  background: rgba(255, 255, 255, 0.7);
}

.master-tab-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

@media (max-width: 575.98px) {
  .master-tab-btn {
    font-size: 0.75rem;
    padding: 0.38rem 0.4rem;
  }

  .carousel-nav-arrow-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 0.8rem;
  }
}

/* Barra de Navegación del Carrusel Nivel 2 */
.subcarousel-nav-bar {
  background: #FFFFFF;
  transition: all 0.2s ease;
  max-width: 100%;
  overflow: hidden;
}

.carousel-counter-badge {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 50rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  color: #334155;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.btn-carousel-arrow {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s ease;
  opacity: 1 !important;
}

.btn-carousel-arrow .carousel-control-prev-icon,
.btn-carousel-arrow .carousel-control-next-icon {
  width: 0.95rem;
  height: 0.95rem;
  background-size: 100% 100%;
}

.btn-outline-danger.btn-carousel-arrow .carousel-control-prev-icon,
.btn-outline-danger.btn-carousel-arrow .carousel-control-next-icon {
  filter: invert(24%) sepia(85%) saturate(3000%) hue-rotate(345deg) brightness(90%) contrast(105%);
}

.btn-outline-danger.btn-carousel-arrow:hover .carousel-control-prev-icon,
.btn-outline-danger.btn-carousel-arrow:hover .carousel-control-next-icon {
  filter: invert(1);
}

.btn-outline-primary.btn-carousel-arrow .carousel-control-prev-icon,
.btn-outline-primary.btn-carousel-arrow .carousel-control-next-icon {
  filter: invert(20%) sepia(80%) saturate(2500%) hue-rotate(210deg) brightness(90%) contrast(100%);
}

.btn-outline-primary.btn-carousel-arrow:hover .carousel-control-prev-icon,
.btn-outline-primary.btn-carousel-arrow:hover .carousel-control-next-icon {
  filter: invert(1);
}

.btn-outline-secondary.btn-carousel-arrow .carousel-control-prev-icon,
.btn-outline-secondary.btn-carousel-arrow .carousel-control-next-icon {
  filter: invert(0.4);
}

.btn-outline-secondary.btn-carousel-arrow:hover .carousel-control-prev-icon,
.btn-outline-secondary.btn-carousel-arrow:hover .carousel-control-next-icon {
  filter: invert(1);
}

/* Indicadores de Carruseles */
.custom-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.custom-indicators button {
  background: #FFFFFF !important;
  color: #475569 !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 50rem !important;
  padding: 0.38rem 0.75rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  height: auto !important;
  width: auto !important;
  text-indent: 0 !important;
  opacity: 1 !important;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  transition: all 0.22s ease !important;
  white-space: nowrap;
}

.custom-indicators button:hover {
  border-color: #94A3B8 !important;
  background: #F8FAFC !important;
  transform: translateY(-1px);
}

.custom-indicators button.active {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border-color: #0F172A !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25) !important;
}

.custom-indicators button.partner-indicator-vialegal.active {
  background: #1E3A8A !important;
  border-color: #1E3A8A !important;
  color: #FFFFFF !important;
}

.custom-indicators button.partner-indicator-allbay.active {
  background: #7C3AED !important;
  border-color: #7C3AED !important;
  color: #FFFFFF !important;
}

.custom-indicators button.partner-indicator-allcash.active {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #FFFFFF !important;
}

/* Barra de Navegación del Carrusel Nivel 3 (Por cada socio) */
.nested-service-nav-bar {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.service-counter-pill {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 50rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
}

.nested-indicators {
  margin: 0;
  padding: 0;
  gap: 0.35rem;
  display: flex;
  justify-content: center;
}

.nested-indicators button {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  border: 1.5px solid #94A3B8 !important;
  background-color: transparent !important;
  opacity: 0.7 !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
}

.nested-indicators button.active {
  background-color: #1E3A8A !important;
  border-color: #1E3A8A !important;
  opacity: 1 !important;
  transform: scale(1.25);
}

/* ==========================================================================
   B2B SERVICIOS REFACTOR: TOOLBAR, OFFCANVAS, CAROUSEL INDICATORS & CONTROLS
   ========================================================================== */

.b2b-toolbar-card {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* ==========================================================================
   TABBED FEATURE CAROUSEL SINCRONIZADO - SERVICIOS B2B
   ========================================================================== */
.b2b-tabbed-carousel-wrapper {
  width: 100%;
  position: relative;
}

/* Contenedor Superior de Tabs de Texto */
.b2b-tabs-nav-wrapper {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 0.35rem 0.45rem;
  position: relative;
  overflow: hidden;
}

.b2b-tabs-nav-scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 0.1rem;
}

.b2b-tabs-nav-scroll::-webkit-scrollbar {
  display: none;
}

/* Botón individual de Tab de Texto (Nombre del Servicio) */
.b2b-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #64748B;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.48rem 0.95rem;
  border-radius: 0.75rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  outline: none;
  user-select: none;
}

.b2b-tab-btn:hover {
  color: #0F172A;
  background: rgba(255, 255, 255, 0.7);
}

.b2b-tab-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  font-weight: 700;
  border-color: rgba(220, 38, 38, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.b2b-tab-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #CBD5E1;
  transition: background-color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  flex-shrink: 0;
}

.b2b-tab-btn.active .b2b-tab-indicator-dot {
  background: var(--xpertos-red);
  transform: scale(1.2);
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.5);
}

/* Marco del Feature Carousel */
.b2b-feature-carousel {
  border: 1px solid #E2E8F0;
  border-radius: 1.25rem !important;
  background-color: #0F172A;
}

.b2b-hero-slide {
  height: 380px;
  width: 100%;
  position: relative;
  background-color: #0F172A;
  overflow: hidden;
}

.b2b-slide-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-item.active .b2b-slide-bg-img {
  transform: scale(1.03);
}

/* Degradado oscuro inferior para alto contraste y máxima legibilidad */
.b2b-slide-gradient {
  background: linear-gradient(to top,
      rgba(10, 15, 29, 0.98) 0%,
      rgba(10, 15, 29, 0.85) 45%,
      rgba(10, 15, 29, 0.4) 75%,
      rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
}

/* Tag de la Empresa en la Esquina Superior Izquierda */
.b2b-slide-company-tag {
  top: 16px;
  left: 18px;
  z-index: 3;
}

/* Tag de Categoría en la Esquina Superior Derecha */
.b2b-slide-badge-tag {
  top: 16px;
  right: 18px;
  z-index: 3;
}

.b2b-company-pill {
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.2s ease;
}

/* Contenido inferior centrado con padding lateral seguro y espacio para dots */
.b2b-slide-caption {
  max-width: 100%;
  padding: 1.25rem 4rem 3.4rem 4rem !important;
  text-align: center !important;
}

.b2b-slide-caption h3 {
  text-align: center !important;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.b2b-slide-desc {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  color: #F1F5F9 !important;
  font-size: 0.88rem;
  line-height: 1.48;
  max-width: 660px;
}

.b2b-slide-cta-btn {
  border-radius: 50rem;
  padding: 0.45rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.b2b-slide-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
}

.text-shadow {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.text-shadow-sm {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

/* Indicadores de Paginación (Dots) en la Parte Centro Inferior */
.b2b-carousel-dots {
  position: absolute !important;
  bottom: 14px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  z-index: 5 !important;
  padding: 0 !important;
}

.b2b-carousel-dots button {
  width: 9px !important;
  height: 9px !important;
  min-width: 9px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
  background-color: rgba(255, 255, 255, 0.45) !important;
  opacity: 0.75 !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.b2b-carousel-dots button:hover {
  opacity: 1 !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
}

.b2b-carousel-dots button.active {
  width: 26px !important;
  height: 9px !important;
  border-radius: 12px !important;
  background-color: var(--xpertos-red) !important;
  border-color: var(--xpertos-red) !important;
  opacity: 1 !important;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.65) !important;
}

/* Adaptación Responsiva para Celulares y Tablets */
@media (max-width: 767.98px) {
  .b2b-hero-slide {
    height: 350px;
  }

  .b2b-slide-company-tag {
    top: 12px !important;
    left: 14px !important;
  }

  .b2b-slide-company-tag .b2b-company-pill {
    font-size: 0.72rem !important;
    padding: 0.25rem 0.6rem !important;
  }

  .b2b-slide-caption {
    padding: 0.75rem 3.4rem 3rem 3.4rem !important;
  }

  .b2b-slide-caption h3 {
    font-size: 1.08rem !important;
    margin-bottom: 0.35rem !important;
  }

  .b2b-slide-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.78rem !important;
    line-height: 1.38 !important;
  }

  .b2b-tab-btn {
    font-size: 0.76rem !important;
    padding: 0.42rem 0.75rem !important;
  }
}

@media (max-width: 575.98px) {
  .b2b-hero-slide {
    height: 340px;
  }

  .b2b-toolbar-card {
    padding: 0.5rem 0.65rem !important;
  }

  .b2b-slide-caption {
    padding: 0.6rem 3.2rem 2.8rem 3.2rem !important;
  }

  .b2b-slide-caption h3 {
    font-size: 1.02rem !important;
  }

  .b2b-carousel-dots {
    bottom: 10px !important;
    gap: 6px !important;
  }

  .b2b-carousel-dots button {
    width: 7px !important;
    height: 7px !important;
    min-width: 7px !important;
  }

  .b2b-carousel-dots button.active {
    width: 20px !important;
    height: 7px !important;
  }
}

/* Floating carousel controls */
.carousel-control-floating {
  width: 42px !important;
  height: 42px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 50% !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  opacity: 0.95 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 5 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.carousel-control-floating.carousel-control-prev {
  left: -10px !important;
}

.carousel-control-floating.carousel-control-next {
  right: -10px !important;
}

@media (max-width: 767.98px) {
  .carousel-control-floating {
    width: 34px !important;
    height: 34px !important;
  }

  .carousel-control-floating.carousel-control-prev {
    left: 8px !important;
  }

  .carousel-control-floating.carousel-control-next {
    right: 8px !important;
  }
}

.carousel-control-floating:hover {
  background: #0F172A !important;
  border-color: #0F172A !important;
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.08) !important;
}

.carousel-control-floating .carousel-control-prev-icon,
.carousel-control-floating .carousel-control-next-icon {
  width: 1.15rem;
  height: 1.15rem;
  filter: invert(0.2);
}

.carousel-control-floating:hover .carousel-control-prev-icon,
.carousel-control-floating:hover .carousel-control-next-icon {
  filter: invert(1);
}

.cursor-pointer {
  cursor: pointer;
}

.border-dashed {
  border: 2px dashed #CBD5E1 !important;
}

.indicator-pill {
  background: #FFFFFF;
  color: #475569;
  border: 1.5px solid #CBD5E1;
  border-radius: 50rem;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.22s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.indicator-pill:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
  transform: translateY(-1px);
}

.indicator-pill.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.indicator-pill.active i {
  color: #FFFFFF !important;
}

@media (max-width: 575.98px) {
  .indicator-pill {
    padding: 0.35rem 0.65rem;
    font-size: 0.74rem;
    gap: 0.3rem;
  }
}

.indicator-pill.partner-pill-vialegal.active {
  background: #1E3A8A !important;
  border-color: #1E3A8A !important;
  color: #FFFFFF !important;
}

.indicator-pill.partner-pill-allbay.active {
  background: #7C3AED !important;
  border-color: #7C3AED !important;
  color: #FFFFFF !important;
}

.indicator-pill.partner-pill-allcash.active {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #FFFFFF !important;
}

.nested-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #94A3B8;
  background-color: transparent;
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.nested-dot:hover {
  opacity: 1;
  border-color: #1E3A8A;
}

.nested-dot.active {
  background-color: #1E3A8A !important;
  border-color: #1E3A8A !important;
  opacity: 1 !important;
  transform: scale(1.3);
}

.hierarchy-tag-socios {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 50rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hierarchy-tag-nuestros {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 50rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.partner-logo-pill {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.partner-logo-vialegal {
  background: #1E3A8A;
  color: #FFFFFF;
}

.partner-logo-allbay {
  background: #7C3AED;
  color: #FFFFFF;
}

.partner-logo-allcash {
  background: #059669;
  color: #FFFFFF;
}

.partner-logo-xpertos {
  background: #DC2626;
  color: #FFFFFF;
}

/* Compact Showcase for B2B Services (Fits alongside button controls without scrolling) */
.service-compact-showcase {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.service-compact-showcase:hover {
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.12);
  border-color: #D1D5DB;
}

.service-compact-img-col {
  position: relative;
  min-height: 240px;
  height: 100%;
  overflow: hidden;
  background: #F3F4F6;
}

.service-compact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-compact-showcase:hover .service-compact-img {
  transform: scale(1.04);
}

.service-compact-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(17, 24, 39, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 50rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}

.service-compact-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .service-compact-img-col {
    min-height: 190px;
    max-height: 220px;
  }

  .service-compact-body {
    padding: 1.25rem;
  }
}

.service-compact-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: #4B5563;
  margin-bottom: 0.45rem;
  line-height: 1.4;
}

.service-compact-feature-item i {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.btn-whatsapp {
  background-color: var(--xpertos-whatsapp);
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50rem;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background-color: var(--xpertos-whatsapp-hover);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Badge styling */
.badge-soft-red {
  background-color: var(--xpertos-red-subtle);
  color: var(--xpertos-red);
  border: 1px solid var(--xpertos-red-border);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.9rem;
  border-radius: 50rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Navbar Component Overrides */
.navbar-xpertos {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.navbar-xpertos.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.navbar-xpertos .navbar-brand-logo {
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
}

.navbar-xpertos .brand-title-text {
  font-size: 1.15rem;
}

.navbar-xpertos .brand-subtitle-text {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.navbar-toggler-icon-custom {
  font-size: 1.35rem;
  display: block;
}

/* Reglas Estrictas: Logo, Indicador de Sección y Botón Hamburguesa en UNA SOLA LÍNEA */
@media (max-width: 991.98px) {
  .navbar-xpertos .container {
    flex-wrap: wrap !important;
  }

  .navbar-brand-wrapper {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    margin-right: 0.35rem !important;
  }

  .navbar-xpertos .navbar-toggler {
    flex-shrink: 0 !important;
    margin-left: auto !important;
    padding: 0.25rem 0.35rem !important;
    border: none !important;
    background: transparent !important;
  }

  .navbar-xpertos .navbar-collapse {
    flex-basis: 100% !important;
    width: 100% !important;
  }
}

.nav-link-custom {
  font-weight: 600;
  color: var(--xpertos-gray-dark) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.6rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.95rem;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link-custom:hover {
  color: var(--xpertos-red) !important;
  background-color: transparent !important;
}

.nav-link-custom.active {
  color: var(--xpertos-red) !important;
  background-color: transparent !important;
  font-weight: 700;
  box-shadow: none !important;
  border: none !important;
}

.nav-link-custom.active i,
.nav-link-custom:hover i {
  color: var(--xpertos-red) !important;
}

/* Indicador dinámico de sección para dispositivos móviles (al costado del logo en una sola línea) */
.mobile-section-indicator {
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 50rem;
  padding: 0.24rem 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  text-decoration: none;
  min-width: 0;
  max-width: 140px;
}

.mobile-section-indicator:hover {
  background: #E5E7EB;
}

.mobile-section-indicator .indicator-pill-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #111827;
  max-width: 95px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Adaptación para pantallas móviles pequeñas (menos de 480px) */
@media (max-width: 480px) {
  .navbar-xpertos .navbar-brand-logo {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .navbar-xpertos .brand-title-text {
    font-size: 1.05rem;
  }

  .navbar-xpertos .brand-subtitle-text {
    font-size: 0.54rem;
    letter-spacing: 0.05em;
  }

  .mobile-section-indicator {
    padding: 0.2rem 0.45rem;
    max-width: 120px;
  }

  .mobile-section-indicator .indicator-pill-text {
    font-size: 0.68rem;
    max-width: 80px;
  }

  .navbar-toggler-icon-custom {
    font-size: 1.25rem;
  }
}

/* Para pantallas ultra-compactas (menos de 375px) */
@media (max-width: 374.98px) {
  .navbar-xpertos .brand-subtitle-text {
    display: none;
  }

  .mobile-section-indicator {
    max-width: 105px;
    padding: 0.18rem 0.4rem;
  }

  .mobile-section-indicator .indicator-pill-text {
    max-width: 65px;
    font-size: 0.65rem;
  }
}

/* Hero Section & Video Container - Pure Black & Neutral */
/*.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #000000;
}
.hero-staff-animated-bg {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-image: url('/img/personal-xpertos-banner.jpg');
  background-size: cover;
  background-position: center 25%;
  z-index: 1;
  transform-origin: center center;
  animation: xpertosStaffLoop 5s ease-in-out infinite;
  animation-play-state: paused;
  will-change: transform, filter;
}

@keyframes xpertosStaffLoop {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
    filter: brightness(0.92) contrast(1.04);
  }

  50% {
    transform: scale(1.06) translate3d(-1.2%, -0.8%, 0);
    filter: brightness(1.05) contrast(1.08);
  }

  100% {
    transform: scale(1) translate3d(0, 0, 0);
    filter: brightness(0.92) contrast(1.04);
  }
}
.hero-animated-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 65% 35%, rgba(220, 38, 38, 0.22) 0%, transparent 65%);
  z-index: 2;
  animation: xpertosShimmerLoop 5s ease-in-out infinite;
  animation-play-state: paused;
  pointer-events: none;
}

@keyframes xpertosShimmerLoop {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.75;
    transform: scale(1.03);
  }
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.6s ease;
}

.hero-poster-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.90) 0%,
      rgba(10, 10, 10, 0.78) 45%,
      rgba(0, 0, 0, 0.86) 100%);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 3;
}*/

/* ==========================================================================
   LÍNEAS DE NEGOCIO: VIGILANCIA, RETAIL, LIMPIEZA Y TERCERIZACIÓN (HERO COMPACTO)
   ========================================================================== */
.hero-business-lines-container {
  width: 100%;
}

.business-line-card {
  border-radius: 0.85rem !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: default;
  overflow: hidden;
}

.business-line-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

/* 1. Vigilancia - Fondo Negro */
.business-card-vigilancia {
  background-color: #0B111E !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}

/* 2. Retail - Fondo Amarillo */
.business-card-retail {
  background-color: #F59E0B !important;
  border: 1px solid #D97706 !important;
  color: #0F172A !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28) !important;
}

/* 3. Limpieza - Fondo Celeste */
.business-card-limpieza {
  background-color: #0284C7 !important;
  border: 1px solid #0369A1 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
}

/* 4. Tercerización - Fondo Rojo */
.business-card-tercerizacion {
  background-color: #DC2626 !important;
  border: 1px solid #B91C1C !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.32) !important;
}

/* Foto circular en miniatura: solo del hombro para arriba */
.business-avatar-wrapper {
  width: 44px;
  height: 44px;
}

.business-avatar-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: block;
}

.business-card-retail .business-avatar-img {
  border-color: rgba(15, 23, 42, 0.45);
}

.business-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
}

.business-card-desc {
  font-size: 0.72rem;
  line-height: 1.15;
}

/* Optimización para que la sección Inicio completa entre en una sola pantalla móvil */
@media (max-width: 991.98px) {
  .hero-wrapper {
    min-height: auto !important;
    padding-top: calc(52px + 0.5rem) !important;
    padding-bottom: 1rem !important;
  }

  .hero-content {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }
}

/* Estilos del Título, Descripción y CTAs de la sección Hero */
.hero-title-main {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.16;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-desc-main {
  font-size: 1.15rem;
  line-height: 1.48;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-cta-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.65rem !important;
  width: 100% !important;
}

.hero-cta-row .hero-btn-cta {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  text-align: center !important;
  justify-content: center !important;
}

@media (max-width: 575.98px) {
  .hero-wrapper {
    min-height: calc(100vh - 54px) !important;
    max-height: 100vh;
    padding-top: calc(52px + 0.35rem) !important;
    padding-bottom: 0.65rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .hero-title-main {
    font-size: 1.62rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.45rem !important;
  }

  .hero-desc-main {
    font-size: 0.92rem !important;
    line-height: 1.38 !important;
    margin-bottom: 0.85rem !important;
  }

  .hero-cta-row {
    gap: 0.45rem !important;
  }

  .hero-cta-row .hero-btn-cta {
    padding: 0.52rem 0.5rem !important;
    font-size: 0.8rem !important;
    gap: 0.35rem !important;
  }

  .hero-cta-row .hero-btn-cta i {
    font-size: 0.95rem !important;
  }

  .business-avatar-wrapper,
  .business-avatar-img {
    width: 36px !important;
    height: 36px !important;
  }

  .business-card-title {
    font-size: 0.8rem !important;
  }

  .business-card-desc {
    font-size: 0.65rem !important;
  }

  .business-line-card {
    padding: 0.4rem 0.5rem !important;
    border-radius: 0.6rem !important;
  }
}

.hero-stats-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  padding: 1.5rem;
  color: #FFFFFF;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.hero-stats-card:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 38, 38, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

/* Card Enhancements */
.card-service {
  background: var(--xpertos-white);
  border: 1px solid var(--xpertos-gray-border);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--xpertos-shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.card-service:hover {
  transform: translateY(-6px);
  box-shadow: var(--xpertos-shadow-lg);
  border-color: #A3A3A3;
}

.card-service:hover::before {
  background: var(--xpertos-red);
}

.card-service-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1.25rem;
  background-color: var(--xpertos-gray-light);
}

.card-service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.card-service:hover .card-service-img {
  transform: scale(1.06);
}

.card-service-badge-floating {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 10, 10, 0.85);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-service-floating-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--xpertos-red);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
  z-index: 2;
}

.icon-box-lg {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.icon-box-red {
  background: var(--xpertos-red-subtle);
  color: var(--xpertos-red);
  border: 1px solid var(--xpertos-red-border);
}

.card-service:hover .icon-box-red {
  background: var(--xpertos-red);
  color: #FFFFFF;
  transform: scale(1.05);
}

/* 2x2 Tech Images Grid */
.tech-grid-card {
  position: relative;
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--xpertos-gray-border);
  background: #FFFFFF;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  aspect-ratio: 1/1;
}

.tech-grid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  border-color: var(--xpertos-red);
}

.tech-grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-grid-card:hover .tech-grid-img {
  transform: scale(1.06);
}

.tech-grid-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tech-grid-overlay-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.88) 100%);
  color: #FFFFFF;
  padding: 1.5rem 0.85rem 0.75rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.tech-grid-overlay-caption strong {
  font-size: 0.84rem;
  letter-spacing: -0.01em;
}

.tech-grid-overlay-caption small {
  font-size: 0.7rem;
  color: #D4D4D4;
}

.tech-mockup-wrapper {
  background: linear-gradient(145deg, #0A0A0A 0%, #171717 100%);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  color: #F5F5F5;
}

.tech-feature-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  transition: all 0.25s ease;
}

.tech-feature-pill:hover {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.4);
}

/* Tech Stack Integrations Accordion */
.accordion-custom-tech {
  background: #FFFFFF;
  border: 1px solid var(--xpertos-gray-border);
  border-radius: 1.15rem !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.accordion-custom-tech .accordion-item {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.accordion-custom-tech .accordion-button {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: none !important;
  transition: all 0.22s ease;
  border-radius: 0 !important;
  font-weight: 600;
}

.accordion-custom-tech .accordion-button:not(.collapsed) {
  background: #F8FAFC;
  color: var(--xpertos-red);
}

.accordion-custom-tech .accordion-button:focus {
  box-shadow: none !important;
}

.accordion-custom-tech .accordion-button::after {
  background-size: 0.95rem;
  transition: transform 0.25s ease;
}

.tech-icon-circle-sm {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.accordion-button:not(.collapsed) .tech-icon-circle-sm {
  transform: scale(1.08);
}

.tech-accordion-title {
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

@media (max-width: 575.98px) {
  .tech-icon-circle-sm {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 1.05rem;
  }

  .tech-accordion-title {
    font-size: 0.88rem;
  }
}

.tech-integration-card {
  background: #FFFFFF;
  border: 1px solid var(--xpertos-gray-border);
  border-radius: 1.15rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.tech-integration-card:hover {
  transform: translateY(-5px);
  border-color: var(--xpertos-red);
  box-shadow: 0 14px 32px rgba(220, 38, 38, 0.12);
}

.tech-icon-circle {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-integration-card:hover .tech-icon-circle {
  transform: scale(1.1) rotate(2deg);
}

.tech-tag-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Recruitment / Postulate Section - Clean White Container with Shaded Border */
.postulate-hero-box {
  background: #FFFFFF;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  color: var(--xpertos-dark);
  border: 1px solid var(--xpertos-gray-border);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.08);
}

.postulate-contract-img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  max-height: 380px;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--xpertos-gray-border);
  display: block;
}

.postulate-benefit-card {
  background: #FFFFFF;
  border: 1px solid var(--xpertos-gray-border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  transition: all 0.2s ease;
}

.postulate-benefit-card:hover {
  border-color: var(--xpertos-red);
  box-shadow: var(--xpertos-shadow-md);
}

postulate-component {
  display: block;
  width: 100%;
}

/* ===============================================================
   Stacking Cards Effect for Postulate Section
   =============================================================== */
/* Ajuste para cubrimiento total sin bordes asomados */
.stacking-cards-container {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding-bottom: 100px;
}

.stacking-card {
  position: sticky;
  top: 80px;
  /* Misma altura fija para todas las tarjetas */
  width: 100%;
  margin-bottom: 0;
  /* ELIMINADO: evita desplazamientos verticales entre capas */
  background-color: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
  overflow: hidden;
}

/* Forzar que cada tarjeta se fije una sobre otra sin desfase */
.stacking-card-1 {
  z-index: 1;
  margin-bottom: 400px;
}

/* Da espacio de scroll al contenedor */
.stacking-card-2 {
  z-index: 2;
  margin-bottom: 400px;
}

.stacking-card-3 {
  z-index: 3;
  margin-bottom: 400px;
}

.stacking-card-4 {
  z-index: 4;
  margin-bottom: 400px;
}

.stacking-card-5 {
  z-index: 5;
  margin-bottom: 400px;
}

.stacking-card-6 {
  z-index: 6;
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .stacking-cards-container {
    padding-bottom: 5rem;
  }

  .stacking-card {
    padding: 1.5rem 1.25rem;
    margin-bottom: 2.25rem;
  }

  .stacking-card-1 {
    top: 70px;
  }

  .stacking-card-2 {
    top: 88px;
  }

  .stacking-card-3 {
    top: 106px;
  }

  .stacking-card-4 {
    top: 124px;
  }

  .stacking-card-5 {
    top: 142px;
  }

  .stacking-card-6 {
    top: 160px;
  }
}

.scrollspy-example::-webkit-scrollbar {
  width: 6px;
}

.scrollspy-example::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 4px;
}

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

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

/* Pulse animation for CTA */
@keyframes softPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(220, 38, 38, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.pulse-cta {
  animation: softPulse 2.4s infinite;
}

/* 3 Botones de WhatsApp RRHH en Postulación */
.postulate-wa-btn {
  background: #FFFFFF;
  border: 1.5px solid #25D366;
  color: #15803D;
  font-weight: 600;
  font-size: 0.86rem;
  border-radius: 50rem;
  padding: 0.55rem 1rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.postulate-wa-btn:hover {
  background: #25D366;
  border-color: #25D366;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.32);
}

.postulate-wa-btn i {
  font-size: 1.1rem;
  color: #25D366;
  transition: color 0.2s ease;
}

.postulate-wa-btn:hover i {
  color: #FFFFFF !important;
}

/* ==========================================================================
   SUBSECCIÓN: BENEFICIOS PARA EL TRABAJADOR (ALLBAY & ALLCASH)
   ========================================================================== */
.worker-benefit-card {
  background: #FFFFFF;
  border-radius: 1.35rem;
  padding: 2.25rem 2rem;
  border: 1.5px solid #E5E5E5;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* ALLBAY - Color Púrpura Corporativo */
.card-allbay {
  border-color: #E9D5FF;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF5FF 100%);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.07);
}

.card-allbay:hover {
  transform: translateY(-6px);
  border-color: #7C3AED;
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.18);
}

.icon-box-allbay {
  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.32);
  transition: transform 0.3s ease;
}

.card-allbay:hover .icon-box-allbay {
  transform: scale(1.08) rotate(3deg);
}

.badge-allbay {
  background: #EDE9FE;
  color: #6D28D9;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.4rem 0.85rem;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #DDD6FE;
}

.tag-pill-allbay {
  background: #FFFFFF;
  border: 1px solid #E9D5FF;
  color: #6D28D9;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 4px rgba(124, 58, 237, 0.05);
}

.btn-allbay {
  background: #7C3AED;
  color: #FFFFFF !important;
  border: 1px solid #7C3AED;
  font-weight: 600;
  border-radius: 50rem;
  padding: 0.8rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.25);
  margin-top: auto;
}

.btn-allbay:hover {
  background: #6D28D9;
  border-color: #6D28D9;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.38);
}

/* ALLCASH - Color Verde Claro Corporativo */
.card-allcash {
  border-color: #A7F3D0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.07);
}

.card-allcash:hover {
  transform: translateY(-6px);
  border-color: #10B981;
  box-shadow: 0 18px 40px rgba(16, 185, 129, 0.18);
}

.icon-box-allcash {
  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.32);
  transition: transform 0.3s ease;
}

.card-allcash:hover .icon-box-allcash {
  transform: scale(1.08) rotate(-3deg);
}

.badge-allcash {
  background: #D1FAE5;
  color: #065F46;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.4rem 0.85rem;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #A7F3D0;
}

.tag-pill-allcash {
  background: #FFFFFF;
  border: 1px solid #A7F3D0;
  color: #065F46;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.05);
}

.btn-allcash {
  background: #10B981;
  color: #FFFFFF !important;
  border: 1px solid #10B981;
  font-weight: 600;
  border-radius: 50rem;
  padding: 0.8rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
  margin-top: auto;
}

.btn-allcash:hover {
  background: #059669;
  border-color: #059669;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.38);
}

/* Feature item inside benefit cards */
.worker-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  color: #374151;
}

.worker-feature-item i {
  margin-top: 0.2rem;
  font-size: 0.95rem;
}

.payroll-highlight-box {
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.payroll-highlight-allbay {
  background: rgba(124, 58, 237, 0.08);
  border: 1px dashed #C4B5FD;
  color: #5B21B6;
}

.payroll-highlight-allcash {
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed #6EE7B7;
  color: #047857;
}

/* ==========================================================================
   CHATBOT COMPONENT - FLOATING WIDGET
   ========================================================================== */
.chatbot-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

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

.chatbot-toggle-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--xpertos-red);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.chatbot-toggle-btn:hover {
  transform: scale(1.08);
  background: var(--xpertos-red-hover);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.45);
}

.chatbot-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #10B981;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

.chatbot-window {
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: #FFFFFF;
  border-radius: 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--xpertos-gray-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  visibility: hidden;
}

.chatbot-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

.chatbot-header {
  background: var(--xpertos-black);
  color: #FFFFFF;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--xpertos-red);
}

.chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--xpertos-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #FFFFFF;
}

.chatbot-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  background: var(--xpertos-gray-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble-bot {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 1rem 1rem 1rem 0.25rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--xpertos-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  max-width: 90%;
  line-height: 1.5;
}

.chat-bubble-user {
  background: var(--xpertos-red);
  color: #FFFFFF;
  border-radius: 1rem 1rem 0.25rem 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  align-self: flex-end;
  max-width: 85%;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
}

.quick-reply-btn {
  background: #FFFFFF;
  border: 1.5px solid #E5E5E5;
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--xpertos-black);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.quick-reply-btn:hover {
  border-color: var(--xpertos-red);
  background: var(--xpertos-red-subtle);
  color: var(--xpertos-red);
  transform: translateX(4px);
}

.quick-reply-btn i {
  color: var(--xpertos-red);
  font-size: 1rem;
}

.quick-reply-wa-btn {
  background: #25D366;
  color: #FFFFFF !important;
  border: none;
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

.quick-reply-wa-btn:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
}

.back-menu-btn {
  background: transparent;
  border: none;
  color: var(--xpertos-gray-medium);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  transition: color 0.2s ease;
}

.back-menu-btn:hover {
  color: var(--xpertos-red);
  text-decoration: underline;
}

/* Chatbot B2B Flow & Customized Message Cards */
.chat-preview-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-left: 4px solid var(--xpertos-red);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chat-service-card-btn {
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.chat-service-card-btn:hover {
  border-color: var(--xpertos-red);
  background: var(--xpertos-red-subtle);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.12);
}

.chat-badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
}

.chat-input-field {
  width: 100%;
  border: 1px solid #D1D5DB;
  border-radius: 0.5rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  color: var(--xpertos-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input-field:focus {
  outline: none;
  border-color: var(--xpertos-red);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}


/* Footer & Legal Modals - Pure Deep Black */
.footer-xpertos {
  background-color: var(--xpertos-black);
  color: #A3A3A3;
  border-top: 1px solid #1F1F1F;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
}

.footer-link {
  color: #A3A3A3;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.92rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-link:hover {
  color: #FFFFFF;
}

.social-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #D4D4D4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 1.1rem;
}

.social-circle-btn:hover {
  background: var(--xpertos-red);
  color: #FFFFFF;
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .hero-wrapper {
    min-height: auto;
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
  }

  .chatbot-widget-container {
    bottom: 16px;
    right: 16px;
  }

  .chatbot-window {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    right: 0;
    bottom: 74px;
    height: 480px;
    max-height: calc(100vh - 100px);
  }

  .service-filter-btn {
    font-size: 0.86rem;
    padding: 0.55rem 1.15rem;
    width: 100%;
    max-width: 100%;
  }

  .card-service {
    padding: 1.5rem 1.25rem;
  }

  .worker-benefit-card {
    padding: 1.5rem 1.25rem;
  }

  .postulate-hero-box {
    padding: 1.5rem 1rem;
  }

  .postulate-contract-img {
    min-height: 220px;
    max-height: 280px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .service-filter-btn {
    width: auto;
  }
}