/* ==========================================================================
   HEALTHY WORKUP - HERO SLIDER CARDS
   ========================================================================== */

:root {
  --hw-primary-navy: #011E41;
  --hw-accent-cyan: #51bed5;
  --hw-dark-cyan: #0b7c93;
}

/* --------------------------------------------------------------------------
   Slider Section Wrapper
   -------------------------------------------------------------------------- */
.hw-slider-section {
  position: relative;
  width: 100%;
  padding: 30px 0 50px;
}

.hw-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 420px;
  margin: 0 auto;
  border-radius: 26px;
  overflow: hidden;
  background: #f0f4f8;
  box-shadow: 0 30px 60px rgba(1, 30, 65, 0.18);
  touch-action: pan-y;
}

/* --------------------------------------------------------------------------
   Slide
   -------------------------------------------------------------------------- */
.hw-slide {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
}

.hw-slide-item {
  width: 220px;
  height: 300px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 22px;
  box-shadow: 0 30px 60px rgba(1, 30, 65, 0.5);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    left 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    top 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    width 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    height 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
  overflow: hidden;
}

/* 1st item: previous (blurred background) */
.hw-slide .hw-slide-item:nth-child(1) {
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  filter: blur(3px) brightness(0.6);
}

/* 2nd item: active card (full size, sharp) */
.hw-slide .hw-slide-item:nth-child(2) {
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  filter: none;
}

/* Gradient overlay on active card */
.hw-slide .hw-slide-item:nth-child(2)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
      rgba(1, 30, 65, 0.85) 0%,
      rgba(1, 30, 65, 0.42) 50%,
      transparent 100%);
  border-radius: 26px;
}

/* Thumbnail cards to the right (Both 2 other sections previewable) */
.hw-slide .hw-slide-item:nth-child(3) {
  left: calc(50% + 20px);
  cursor: pointer;
}

.hw-slide .hw-slide-item:nth-child(4) {
  left: calc(50% + 260px);
  cursor: pointer;
}

.hw-slide .hw-slide-item:nth-child(n+5) {
  left: calc(50% + 500px);
  opacity: 0;
  pointer-events: none;
}

/* Hover effects on thumbnail cards */
.hw-slide .hw-slide-item:nth-child(3):hover,
.hw-slide .hw-slide-item:nth-child(4):hover {
  transform: translateY(-53%) scale(1.04);
  box-shadow: 0 35px 75px rgba(1, 30, 65, 0.65), 0 0 28px rgba(81, 190, 213, 0.45);
  border: 1.5px solid rgba(81, 190, 213, 0.75);
}

/* --------------------------------------------------------------------------
   Logo Badge on top-right of preview cards
   -------------------------------------------------------------------------- */
.hw-slide-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(1, 30, 65, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(81, 190, 213, 0.55);
  color: var(--hw-accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 8;
  box-shadow: 0 6px 16px rgba(1, 30, 65, 0.4);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.hw-slide-item:hover .hw-slide-card-badge {
  background: var(--hw-accent-cyan);
  color: var(--hw-primary-navy);
  border-color: #ffffff;
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 0 18px rgba(81, 190, 213, 0.85);
}

/* Vibración realista de teléfono (estilo llamada / notificación) */
.hw-slide-card-badge .bi-phone-fill,
.hw-phone-vibrate {
  display: inline-block;
  transform-origin: center center;
  animation: hwPhoneVibrate 2.4s ease-in-out infinite;
  will-change: transform;
}

@keyframes hwPhoneVibrate {
  0% {
    transform: rotate(0deg) scale(1);
  }

  2%,
  6%,
  10%,
  14% {
    transform: rotate(-12deg) scale(1.08);
  }

  4%,
  8%,
  12%,
  16% {
    transform: rotate(12deg) scale(1.08);
  }

  18% {
    transform: rotate(-6deg) scale(1.04);
  }

  20% {
    transform: rotate(6deg) scale(1.04);
  }

  22% {
    transform: rotate(0deg) scale(1);
  }

  /* Pausa breve entre pulsos */
  32% {
    transform: rotate(0deg) scale(1);
  }

  /* Segundo zumbido */
  34%,
  38%,
  42%,
  46% {
    transform: rotate(-12deg) scale(1.08);
  }

  36%,
  40%,
  44%,
  48% {
    transform: rotate(12deg) scale(1.08);
  }

  50% {
    transform: rotate(-6deg) scale(1.04);
  }

  52% {
    transform: rotate(6deg) scale(1.04);
  }

  54% {
    transform: rotate(0deg) scale(1);
  }

  /* Pausa de reposo hasta el siguiente ciclo de vibración */
  100% {
    transform: rotate(0deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {

  .hw-slide-card-badge .bi-phone-fill,
  .hw-phone-vibrate {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Title label on bottom of preview cards
   -------------------------------------------------------------------------- */
.hw-slide-thumb-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  padding: 7px 12px;
  background: rgba(1, 30, 65, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(81, 190, 213, 0.4);
  border-radius: 50px;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: center;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(1, 30, 65, 0.35);
}

.hw-slide-item:hover .hw-slide-thumb-label {
  background: rgba(81, 190, 213, 0.95);
  color: var(--hw-primary-navy);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(81, 190, 213, 0.45);
}

/* Hide card badge and thumb label on the full active slide and blurred slide */
.hw-slide .hw-slide-item:nth-child(1) .hw-slide-card-badge,
.hw-slide .hw-slide-item:nth-child(2) .hw-slide-card-badge,
.hw-slide .hw-slide-item:nth-child(1) .hw-slide-thumb-label,
.hw-slide .hw-slide-item:nth-child(2) .hw-slide-thumb-label {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Slide Content (visible only on active/2nd card)
   -------------------------------------------------------------------------- */
.hw-slide-content {
  position: absolute;
  top: 50%;
  left: 58px;
  width: 370px;
  transform: translateY(-50%);
  color: #fff;
  z-index: 10;
  display: none;
}

.hw-slide .hw-slide-item:nth-child(2) .hw-slide-content {
  display: block;
}

/* Logo pill (clean badge without white square image) */
.hw-slide-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(81, 190, 213, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 6px 16px;
  margin-bottom: 18px;
  opacity: 0;
  animation: hw-slide-in 0.75s ease forwards 0.05s;
}

.hw-slide-logo-pill img {
  display: none !important;
  /* Removed white square as requested */
}

.hw-slide-category-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--hw-accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Title */
.hw-slide-title {
  font-family: 'Outfit', 'Montserrat', sans-serif;
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  opacity: 0;
  animation: hw-slide-in 0.75s ease forwards 0.22s;
}

/* Description */
.hw-slide-desc {
  font-size: 0.95rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.87);
  margin-bottom: 28px;
  max-width: 330px;
  opacity: 0;
  animation: hw-slide-in 0.75s ease forwards 0.38s;
}

/* CTA Button */
.hw-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.17);
  border: 1.5px solid rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 700;
  font-size: 0.87rem;
  padding: 11px 26px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  opacity: 0;
  animation: hw-slide-in 0.75s ease forwards 0.52s;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
}

.hw-slide-btn:hover {
  background: var(--hw-accent-cyan);
  border-color: var(--hw-accent-cyan);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(81, 190, 213, 0.45);
}

.hw-slide-btn i {
  font-size: 0.95rem;
}

/* Slide-in keyframe */
@keyframes hw-slide-in {
  from {
    opacity: 0;
    transform: translateY(38px);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* --------------------------------------------------------------------------
   Navigation Buttons & Integrated Controls
   -------------------------------------------------------------------------- */
.hw-slider-controls {
  position: absolute;
  bottom: 24px;
  left: 58px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.hw-slider-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(81, 190, 213, 0.45);
  background: rgba(1, 30, 65, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.28s ease;
  box-shadow: 0 4px 14px rgba(1, 30, 65, 0.35);
  outline: none;
  padding: 0;
}

.hw-slider-arrow:hover {
  background: var(--hw-accent-cyan);
  border-color: #ffffff;
  color: var(--hw-primary-navy);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(81, 190, 213, 0.55);
}

.hw-slider-arrow:active {
  transform: scale(0.95);
}

.hw-slider-nav {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 20px;
}

.hw-slider-nav button {
  width: 46px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid rgba(1, 30, 65, 0.22);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  color: var(--hw-primary-navy);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.28s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(1, 30, 65, 0.1);
}

.hw-slider-nav button:hover {
  background: var(--hw-primary-navy);
  border-color: var(--hw-primary-navy);
  color: #fff;
  transform: scale(1.08);
}

.hw-slider-nav button:active {
  transform: scale(1.01);
}

/* --------------------------------------------------------------------------
   MODALS — Diseño Unificado & Estilo Healthy Workup (#009DC4)
   -------------------------------------------------------------------------- */
.hw-expand-modal .modal-dialog {
  max-width: 980px;
  margin: 1.75rem auto;
}

.hw-expand-modal.modal-xl .modal-dialog {
  max-width: 1080px;
}

.hw-expand-modal .modal-content {
  border: 1.5px solid rgba(0, 157, 196, 0.25);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 25px 70px rgba(1, 30, 65, 0.22);
  overflow: hidden;
  font-family: 'Outfit', sans-serif;
  position: relative;
}

/* Modal Header Compartido y Homogéneo */
.hw-expand-modal .modal-header {
  background: linear-gradient(135deg, #f8fcfe 0%, #edf8fb 100%);
  border-bottom: 1px solid rgba(0, 157, 196, 0.18);
  padding: 22px 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hw-expand-modal .modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #009DC4 0%, #38bdf8 50%, #007a99 100%);
}

.hw-modal-header-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hw-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #009DC4;
  background: rgba(0, 157, 196, 0.10);
  border: 1px solid rgba(0, 157, 196, 0.28);
  padding: 5px 14px;
  border-radius: 50px;
  width: fit-content;
}

.hw-modal-badge i {
  color: #009DC4;
  font-size: 0.95rem;
}

.hw-expand-modal .modal-title {
  font-family: 'Outfit', 'Montserrat', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--hw-primary-navy);
  letter-spacing: -0.3px;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Botón de Cerrar Unificado */
.hw-expand-modal .btn-close {
  background-color: #ffffff !important;
  border: 1.5px solid rgba(0, 157, 196, 0.25) !important;
  border-radius: 50% !important;
  padding: 10px !important;
  opacity: 0.85;
  box-shadow: 0 3px 10px rgba(1, 30, 65, 0.08);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.hw-expand-modal .btn-close:hover {
  opacity: 1;
  border-color: #009DC4 !important;
  background-color: #f0faff !important;
  transform: rotate(90deg) scale(1.05);
}

/* Modal Body */
.hw-expand-modal .modal-body {
  padding: 28px 32px;
  max-height: calc(85vh - 150px);
  overflow-y: auto;
}

/* Descripción Principal (Lead Description Box) */
.hw-modal-lead-desc {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #2d3748;
  background: linear-gradient(135deg, #f7fbfd 0%, #edf7fb 100%);
  padding: 18px 24px;
  border-radius: 14px;
  border: 1px solid rgba(0, 157, 196, 0.16);
  border-left: 5px solid #009DC4;
  margin-bottom: 24px;
  font-weight: 500;
}

.hw-modal-lead-desc strong {
  color: var(--hw-primary-navy);
  font-weight: 700;
}

/* Banners de Imagen dentro del Modal */
.hw-modal-main-banner {
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 157, 196, 0.22);
  box-shadow: 0 10px 28px rgba(1, 30, 65, 0.08);
  background: #f0f4f8;
  position: relative;
}

.hw-modal-main-banner img {
  border-radius: 16px;
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.hw-modal-main-banner:hover img {
  transform: scale(1.01);
}

/* Compatibilidad con Hero Banner Strip (si es requerido) */
.hw-modal-hero-banner {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.hw-modal-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hw-modal-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(1, 30, 65, 0.25) 0%,
      rgba(1, 30, 65, 0.78) 100%);
}

.hw-modal-hero-overlay {
  position: absolute;
  bottom: 22px;
  left: 28px;
  z-index: 2;
  color: #fff;
}

.hw-modal-hero-overlay .hw-modal-badge {
  color: #ffffff;
  background: rgba(0, 157, 196, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
}

.hw-modal-hero-overlay .hw-modal-badge i {
  color: #ffffff;
}

.hw-modal-hero-overlay .hw-modal-hero-title {
  font-family: 'Outfit', 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  margin: 0;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

/* Modal Footer Compartido */
.hw-expand-modal .modal-footer {
  border-top: 1px solid rgba(0, 157, 196, 0.18);
  padding: 16px 30px;
  background: #f8fcfe;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hw-modal-actions-right {
  display: flex;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Buttons Generales (Preservados exactamente para el resto del sitio)
   -------------------------------------------------------------------------- */
.hw-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--hw-accent-cyan) 0%, var(--hw-dark-cyan) 100%);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  box-shadow: 0 6px 18px rgba(81, 190, 213, .35);
  transition: all 0.3s ease;
  text-decoration: none;
}

.hw-btn-primary:hover {
  background: linear-gradient(135deg, var(--hw-dark-cyan) 0%, var(--hw-primary-navy) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(81, 190, 213, .45);
}

.hw-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--hw-dark-cyan);
  border: 1.5px solid var(--hw-accent-cyan);
  padding: 9px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hw-btn-outline:hover {
  background: rgba(81, 190, 213, .12);
  color: var(--hw-primary-navy);
  border-color: var(--hw-dark-cyan);
}

/* Botones específicos y exclusivos para los modales (#009DC4) */
.hw-expand-modal .hw-btn-primary {
  background: linear-gradient(135deg, #009DC4 0%, #011E41 100%);
  color: #ffffff !important;
  padding: 10px 24px;
  box-shadow: 0 6px 18px rgba(0, 157, 196, 0.35);
}

.hw-expand-modal .hw-btn-primary:hover {
  background: linear-gradient(135deg, #0087a8 0%, #01142c 100%);
  box-shadow: 0 10px 24px rgba(0, 157, 196, 0.45);
}

.hw-expand-modal .hw-btn-outline {
  background: #ffffff;
  color: #009DC4;
  border: 1.5px solid #009DC4;
  padding: 9px 22px;
}

.hw-expand-modal .hw-btn-outline:hover {
  background: rgba(0, 157, 196, 0.10);
  color: var(--hw-primary-navy);
  border-color: #009DC4;
}

/* --------------------------------------------------------------------------
   Modal Inner: NUESTRO COMPROMISO (Armonizado con #009DC4 y Navy)
   -------------------------------------------------------------------------- */
.hw-compromiso-modal-body {
  background: linear-gradient(180deg, #f8fcfe 0%, #edf7fb 100%);
  padding: 28px 32px;
}

.hw-compromiso-header {
  text-align: center;
  margin-bottom: 28px;
}

.hw-compromiso-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #009DC4;
  background: rgba(0, 157, 196, 0.10);
  border: 1px solid rgba(0, 157, 196, 0.25);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.hw-compromiso-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--hw-primary-navy);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hw-compromiso-subtitle {
  font-size: 0.98rem;
  color: #4a6a80;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

.hw-compromiso-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.hw-compromiso-pillar {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 157, 196, 0.20);
  box-shadow: 0 8px 24px rgba(1, 30, 65, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background: #ffffff;
}

.hw-compromiso-pillar:hover {
  transform: translateY(-6px);
  border-color: #009DC4;
  box-shadow: 0 16px 36px rgba(0, 157, 196, 0.22);
}

.hw-cp-header {
  background: linear-gradient(135deg, #011E41 0%, #004b66 65%, #009DC4 100%);
  color: #ffffff;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.hw-cp-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #009DC4;
  color: #009DC4;
  font-size: 1.25rem;
  font-weight: 800;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.hw-compromiso-pillar:hover .hw-cp-plus {
  background: #009DC4;
  color: #ffffff;
  border-color: #ffffff;
  transform: rotate(90deg);
}

.hw-cp-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.hw-cp-body {
  background: #ffffff;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 20px;
  text-align: center;
  gap: 14px;
}

.hw-cp-body p {
  font-size: 0.86rem;
  color: #3d5168;
  line-height: 1.55;
  margin: 0;
}

.hw-cp-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(0, 157, 196, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #009DC4;
  font-size: 1.35rem;
  background: rgba(0, 157, 196, 0.08);
  transition: all 0.3s ease;
}

.hw-compromiso-pillar:hover .hw-cp-icon {
  background: #009DC4;
  color: #ffffff;
  border-color: #009DC4;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 157, 196, 0.35);
}

/* --------------------------------------------------------------------------
   Modal Inner: HEALTHY WORKUP MOBILE (Armonizado con #009DC4 y Navy)
   -------------------------------------------------------------------------- */
.hw-mobile-showcase {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
}

.hw-mobile-phone-frame {
  flex: 0 0 250px;
  max-width: 250px;
  background: linear-gradient(145deg, #011E41 0%, #002b40 100%);
  padding: 12px;
  border-radius: 36px;
  box-shadow: 0 16px 36px rgba(1, 30, 65, 0.22), 0 0 24px rgba(0, 157, 196, 0.22);
  border: 3px solid #009DC4;
  text-align: center;
}

.hw-mobile-phone-frame .phone-notch {
  width: 80px;
  height: 13px;
  background: #011E41;
  border-radius: 0 0 10px 10px;
  margin: 0 auto 8px;
}

.hw-mobile-phone-frame img.gif-preview {
  width: 100%;
  border-radius: 22px;
  display: block;
}

.hw-mobile-details {
  flex: 1;
}

.hw-mobile-heading {
  color: var(--hw-primary-navy);
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', 'Montserrat', sans-serif;
}

.hw-mobile-heading::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 22px;
  background: #009DC4;
  border-radius: 4px;
}

.hw-mobile-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hw-mobile-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: #2d3748;
  line-height: 1.55;
  background: #ffffff;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 157, 196, 0.16);
  box-shadow: 0 3px 10px rgba(1, 30, 65, 0.04);
  transition: all 0.25s ease;
}

.hw-mobile-feature-list li:hover {
  border-color: #009DC4;
  background: #f8fcfe;
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(0, 157, 196, 0.12);
}

.hw-mobile-feature-list li i {
  color: #009DC4;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.hw-mobile-feature-list li span strong {
  color: var(--hw-primary-navy);
}

.hw-mobile-link-box {
  background: linear-gradient(135deg, rgba(0, 157, 196, 0.08) 0%, rgba(0, 157, 196, 0.02) 100%);
  border: 1.5px solid rgba(0, 157, 196, 0.35);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.25s ease;
}

.hw-mobile-link-box:hover {
  border-color: #009DC4;
  background: rgba(0, 157, 196, 0.12);
  box-shadow: 0 6px 18px rgba(0, 157, 196, 0.15);
}

.hw-mobile-link-box a.hw-link-app {
  color: #009DC4;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hw-mobile-link-box a.hw-link-app:hover {
  color: #007a99;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* 1. Monitores ultrawide y pantallas grandes (>= 1400px) */
@media (min-width: 1400px) {
  .hw-slider-wrapper {
    max-width: min(1320px, 85vw);
    height: clamp(430px, 26vw, 480px);
  }

  .hw-slide-item {
    width: clamp(220px, 14vw, 250px);
    height: clamp(300px, 20vw, 340px);
  }

  .hw-slide .hw-slide-item:nth-child(4) {
    left: calc(50% + clamp(260px, 16vw, 290px));
  }

  .hw-slide-content {
    left: clamp(60px, 5vw, 85px);
    width: clamp(400px, 28vw, 460px);
  }

  .hw-slide-title {
    font-size: clamp(2.3rem, 2vw, 2.75rem);
  }

  .hw-slider-controls {
    left: clamp(60px, 5vw, 85px);
  }
}

/* 2. Laptops estándar y pantallas medianas (992px a 1399px) */
@media (min-width: 992px) and (max-width: 1399px) {
  .hw-slider-wrapper {
    height: 410px;
  }

  .hw-slide-content {
    left: 45px;
    width: 350px;
  }

  .hw-slide-title {
    font-size: 2.15rem;
  }

  .hw-slide-desc {
    font-size: 0.92rem;
  }

  .hw-slide-item {
    width: 210px;
    height: 290px;
  }

  .hw-slide .hw-slide-item:nth-child(3) {
    left: calc(50% + 15px);
  }

  .hw-slide .hw-slide-item:nth-child(4) {
    left: calc(50% + 245px);
  }

  .hw-slider-controls {
    left: 45px;
  }
}

/* 3. Tablets en orientación vertical (768px a 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .hw-slider-wrapper {
    height: 375px;
    border-radius: 22px;
  }

  .hw-slide-content {
    top: 50%;
    transform: translateY(-50%);
    left: 28px;
    width: clamp(240px, 34vw, 290px);
  }

  .hw-slide-title {
    font-size: clamp(1.45rem, 2.3vw, 1.8rem);
  }

  .hw-slide-desc {
    font-size: 0.84rem;
    line-height: 1.48;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hw-slide-item {
    width: clamp(145px, 19vw, 170px);
    height: clamp(215px, 27vw, 250px);
  }

  .hw-slide .hw-slide-item:nth-child(3) {
    left: calc(50% + 10px);
    display: block;
  }

  .hw-slide .hw-slide-item:nth-child(4) {
    left: calc(50% + clamp(165px, 21vw, 190px));
    display: block;
  }

  .hw-slider-controls {
    bottom: 20px;
    left: 28px;
  }

  .hw-compromiso-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 4. Dispositivos móviles apaisados / Phablets (576px a 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .hw-hero-slider-container {
    padding: 24px 0 35px !important;
  }

  .hw-slider-section {
    padding: 10px 0 20px;
  }

  .hw-slider-wrapper {
    height: 360px;
    border-radius: 20px;
  }

  .hw-slide .hw-slide-item:nth-child(2)::after {
    background: linear-gradient(100deg,
        rgba(1, 30, 65, 0.94) 0%,
        rgba(1, 30, 65, 0.75) 55%,
        rgba(1, 30, 65, 0.35) 100%);
    border-radius: 20px;
  }

  .hw-slide-content {
    top: 50%;
    transform: translateY(-50%);
    left: 24px;
    width: clamp(225px, 42vw, 280px);
  }

  .hw-slide-title {
    font-size: clamp(1.3rem, 3.2vw, 1.55rem);
    margin-bottom: 8px;
  }

  .hw-slide-desc {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hw-slide-btn {
    padding: 8px 18px;
    font-size: 0.82rem;
    max-width: fit-content;
  }

  .hw-slide .hw-slide-item:nth-child(3),
  .hw-slide .hw-slide-item:nth-child(4) {
    display: block;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 16px;
    width: clamp(110px, 18vw, 130px);
    height: clamp(165px, 26vw, 200px);
    box-shadow: 0 16px 36px rgba(1, 30, 65, 0.5), 0 0 0 1.5px rgba(81, 190, 213, 0.45);
  }

  .hw-slide .hw-slide-item:nth-child(3) {
    left: calc(50% + 10px);
  }

  .hw-slide .hw-slide-item:nth-child(4) {
    left: calc(50% + clamp(128px, 20vw, 150px));
  }

  .hw-slide .hw-slide-item:nth-child(n+5) {
    left: 100%;
    opacity: 0;
    pointer-events: none;
    display: none;
  }

  .hw-slide-card-badge {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    top: 8px;
    right: 8px;
  }

  .hw-slide-thumb-label {
    font-size: 0.64rem;
    padding: 4px 6px;
    bottom: 8px;
    left: 8px;
    right: 8px;
  }

  .hw-slider-controls {
    bottom: 16px;
    left: 24px;
    gap: 8px;
  }

  .hw-slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
}

/* 5. Dispositivos móviles en modo retrato (<= 575px) */
@media (max-width: 575px) {
  .hw-hero-slider-container {
    padding: 16px 0 25px !important;
  }

  .hw-slider-section {
    padding: 0;
  }

  .hw-slider-wrapper {
    height: 485px;
    border-radius: 20px;
  }

  /* Overlay vertical continuo para máxima legibilidad sobre cualquier imagen */
  .hw-slide .hw-slide-item:nth-child(2)::after {
    background: linear-gradient(180deg,
        rgba(1, 30, 65, 0.94) 0%,
        rgba(1, 30, 65, 0.83) 42%,
        rgba(1, 30, 65, 0.72) 68%,
        rgba(1, 30, 65, 0.95) 100%);
    border-radius: 20px;
  }

  /* Contenido activo ubicado en la zona superior */
  .hw-slide-content {
    top: 20px;
    left: 18px;
    right: 18px;
    width: auto;
    max-width: 100%;
    transform: none;
  }

  .hw-slide-logo-pill {
    padding: 5px 14px;
    margin-bottom: 10px;
  }

  .hw-slide-category-tag {
    font-size: 0.7rem;
    letter-spacing: 0.8px;
  }

  .hw-slide-title {
    font-size: clamp(1.3rem, 5.8vw, 1.7rem);
    line-height: 1.15;
    margin-bottom: 8px;
    word-break: break-word;
  }

  .hw-slide-desc {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: clamp(0.8rem, 3.4vw, 0.88rem);
    line-height: 1.48;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 14px;
    max-width: 100%;
  }

  .hw-slide-btn {
    padding: 9px 18px;
    font-size: 0.82rem;
    gap: 7px;
    max-width: fit-content;
    white-space: nowrap;
  }

  /* Tarjetas de previsualización (Item 3 y 4) visibles y alineadas en la base */
  .hw-slide .hw-slide-item:nth-child(3),
  .hw-slide .hw-slide-item:nth-child(4) {
    display: block;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(1, 30, 65, 0.6), 0 0 0 1.5px rgba(81, 190, 213, 0.5);
    cursor: pointer;
  }

  .hw-slide .hw-slide-item:nth-child(4) {
    width: clamp(92px, 26vw, 112px);
    height: clamp(120px, 31vw, 142px);
    top: calc(100% - clamp(134px, 34vw, 156px));
    left: calc(100% - clamp(106px, 29vw, 126px));
  }

  .hw-slide .hw-slide-item:nth-child(3) {
    width: clamp(92px, 26vw, 112px);
    height: clamp(120px, 31vw, 142px);
    top: calc(100% - clamp(134px, 34vw, 156px));
    left: calc(100% - clamp(208px, 57vw, 248px));
  }

  .hw-slide .hw-slide-item:nth-child(n+5) {
    left: 100%;
    opacity: 0;
    pointer-events: none;
    display: none;
  }

  .hw-slide-card-badge {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    top: 7px;
    right: 7px;
    border-width: 1px;
  }

  .hw-slide-thumb-label {
    font-size: 0.6rem;
    padding: 4px 6px;
    bottom: 7px;
    left: 7px;
    right: 7px;
    letter-spacing: 0.2px;
  }

  /* Controles de navegación en la esquina inferior izquierda */
  .hw-slider-controls {
    bottom: 16px;
    left: 18px;
    gap: 8px;
  }

  .hw-slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
}

/* 6. Pantallas muy extra pequeñas (<= 360px: Galaxy Fold, iPhone SE 1st gen, etc.) */
@media (max-width: 360px) {
  .hw-hero-slider-container {
    padding: 12px 0 20px !important;
  }

  .hw-slider-wrapper {
    height: 460px;
    border-radius: 16px;
  }

  .hw-slide .hw-slide-item:nth-child(2)::after {
    border-radius: 16px;
  }

  .hw-slide-content {
    top: 14px;
    left: 12px;
    right: 12px;
  }

  .hw-slide-logo-pill {
    padding: 4px 10px;
    margin-bottom: 8px;
  }

  .hw-slide-category-tag {
    font-size: 0.65rem;
  }

  .hw-slide-title {
    font-size: 1.18rem;
    line-height: 1.15;
    margin-bottom: 6px;
  }

  .hw-slide-desc {
    font-size: 0.76rem;
    line-height: 1.4;
    -webkit-line-clamp: 3;
    margin-bottom: 10px;
  }

  .hw-slide-btn {
    padding: 7px 14px;
    font-size: 0.76rem;
    gap: 5px;
  }

  .hw-slide .hw-slide-item:nth-child(4) {
    width: 78px;
    height: 105px;
    top: calc(100% - 117px);
    left: calc(100% - 88px);
    border-radius: 10px;
  }

  .hw-slide .hw-slide-item:nth-child(3) {
    width: 78px;
    height: 105px;
    top: calc(100% - 117px);
    left: calc(100% - 172px);
    border-radius: 10px;
  }

  .hw-slide-card-badge {
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
    top: 5px;
    right: 5px;
  }

  .hw-slide-thumb-label {
    font-size: 0.52rem;
    padding: 3px 4px;
    bottom: 5px;
    left: 5px;
    right: 5px;
  }

  .hw-slider-controls {
    bottom: 12px;
    left: 12px;
    gap: 6px;
  }

  .hw-slider-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
  }
}

/* Modales y elementos complementarios en móviles */
@media (max-width: 991px) {
  .hw-compromiso-pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .hw-expand-modal .modal-header {
    padding: 16px 20px;
  }

  .hw-expand-modal .modal-title {
    font-size: 1.22rem;
  }

  .hw-mobile-showcase {
    flex-direction: column;
    align-items: center;
  }

  .hw-mobile-phone-frame {
    max-width: 220px;
  }

  .hw-mobile-link-box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hw-expand-modal .modal-body {
    max-height: calc(85vh - 150px);
    padding: 18px 20px;
  }

  .hw-expand-modal .modal-footer {
    padding: 14px 20px;
    flex-direction: column;
    gap: 10px;
  }

  .hw-modal-actions-right {
    width: 100%;
  }

  .hw-modal-actions-right a,
  .hw-modal-actions-right button {
    flex: 1;
    justify-content: center;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hw-compromiso-pillars {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}