/* ==========================================================================
   HEALTHY WORKUP — PROGRAMA DE BIENESTAR INTEGRAL HERO (Usando un poco de Glassmorfismo)
   ========================================================================== */

:root {
  /* Paleta Healthy Workup exacta (Cyan corporativo de la muestra y del sistema) */
  --hw-cyan: #51bed5;
  --hw-cyan-deep: #0b7c93;
  --hw-cyan-hover: #076274;
  --hw-navy: #011e41;
  --hw-text: #2f3640;
  --hw-text-muted: #576574;

  /* Tokens de Apple Glassmorphism */
  --hw-glass-bg: rgba(255, 255, 255, 0.72);
  --hw-glass-bg-hover: rgba(255, 255, 255, 0.88);
  --hw-glass-border: rgba(255, 255, 255, 0.85);
  --hw-glass-border-soft: rgba(81, 190, 213, 0.25);
  --hw-glass-shadow: 0 20px 40px -15px rgba(1, 30, 65, 0.08), inset 0 1px 2px 0 rgba(255, 255, 255, 0.95);
  --hw-glass-shadow-hover: 0 24px 50px -12px rgba(81, 190, 213, 0.28), inset 0 1px 2px 0 #ffffff;
}

/* --------------------------------------------------------------------------
   1. Contenedor Principal Panorámico 
   -------------------------------------------------------------------------- */

/* Wrapper compartido que agrupa Hero + Slider con un solo fondo de video */
.hw-video-bg-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hw-bienestar-hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 120px 0 50px;
  background-color: transparent;
}

@media (min-width: 1400px) {
  .hw-bienestar-hero {
    min-height: 540px;
    padding: 130px 0 55px;
  }
}

/* --------------------------------------------------------------------------
   2. Video de Fondo 21:9 + Capa Difuminada y Blanca (Apple Frosted Mist)
   -------------------------------------------------------------------------- */
.hw-bienestar-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hw-bienestar-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate3d(-50%, -50%, 0) scale(1.08);
  object-fit: cover;
  filter: blur(10px) brightness(1.05) saturate(1.2);
  -webkit-filter: blur(10px) brightness(1.05) saturate(1.2);
  opacity: 0.88;
  will-change: transform;
  pointer-events: none;
}

/* Capa blanca difuminada superior estilo Apple */
.hw-bienestar-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(240, 249, 253, 0.72) 40%,
    rgba(255, 255, 255, 0.82) 75%,
    rgba(255, 255, 255, 0.92) 100%
  );
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. Wrapper de Contenido Expansivo (Widescreen Container)
   -------------------------------------------------------------------------- */
.hw-bienestar-content-wrapper {
  position: relative;
  z-index: 5;
  width: 95%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   4. Columna Izquierda: Glass Content
   -------------------------------------------------------------------------- */
.hw-glass-hero-main {
  position: relative;
  z-index: 3;
}

/* Badges estilo Apple Glass Pill */
.hw-glass-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hw-glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--hw-glass-border);
  box-shadow: 0 4px 15px rgba(1, 30, 65, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--hw-navy);
  letter-spacing: 0.2px;
  transform: translateZ(0);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hw-glass-badge:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  border-color: var(--hw-cyan);
  box-shadow: 0 6px 20px rgba(81, 190, 213, 0.25), inset 0 1px 1px #ffffff;
}

.hw-glass-badge i {
  font-size: 0.95rem;
  color: var(--hw-cyan-deep);
}

.hw-glass-badge i.bi-star-fill {
  color: #f59e0b; /* Amber */
}

/* Título de la sección */
.hw-bienestar-title {
  font-family: var(--heading-font, "Montserrat", sans-serif);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--hw-navy);
  margin: 18px 0 16px 0;
  text-transform: uppercase;
}

.hw-bienestar-highlight {
  color: var(--hw-cyan-deep);
  background: linear-gradient(135deg, #0b7c93 0%, #51bed5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Descripción y Subtítulo */
.hw-bienestar-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--hw-text);
  max-width: 680px;
  margin-bottom: 24px;
  font-weight: 400;
}

/* Subtítulo de alta jerarquía y diseño corporativo */
.hw-bienestar-subtitle {
  font-family: var(--heading-font, "Montserrat", sans-serif);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: 0.035em;
  color: var(--hw-navy);
  max-width: 620px;
  margin-bottom: 24px;
  text-transform: uppercase;
  display: block;
}

.hw-bienestar-subtitle-highlight {
  color: var(--hw-cyan-deep);
  background: linear-gradient(135deg, #0b7c93 0%, #3caec8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  display: inline;
}

/* Fila de acciones horizontales: Botones + Teléfono */
.hw-bienestar-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* Botón Principal Cyan Corporativo */
.hw-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0b7c93 0%, #46bad2 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(81, 190, 213, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
}

.hw-btn-primary:hover {
  background: linear-gradient(135deg, #076274 0%, #36adc7 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(81, 190, 213, 0.55);
  color: #ffffff !important;
}

.hw-btn-primary i {
  transition: transform 0.25s ease;
}

.hw-btn-primary:hover i {
  transform: translateX(4px);
}

/* Botón Glass "Ver Video" */
.hw-btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--hw-glass-border);
  color: var(--hw-navy) !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(1, 30, 65, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
}

.hw-btn-glass i {
  color: var(--hw-cyan-deep);
  font-size: 1.15rem;
  transition: transform 0.25s ease;
}

.hw-btn-glass:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  color: var(--hw-cyan-deep) !important;
  border-color: var(--hw-cyan);
  box-shadow: 0 10px 25px rgba(81, 190, 213, 0.25), inset 0 1px 1px #ffffff;
}

.hw-btn-glass:hover i {
  color: var(--hw-cyan);
  transform: scale(1.15);
}

/* Cápsula de Teléfono Apple Glass */
.hw-glass-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 18px 7px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--hw-glass-border);
  box-shadow: 0 8px 24px rgba(1, 30, 65, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hw-glass-phone-pill:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  border-color: var(--hw-cyan);
  box-shadow: 0 12px 30px rgba(81, 190, 213, 0.25), inset 0 1px 1px #ffffff;
}

.hw-phone-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b7c93 0%, #51bed5 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(81, 190, 213, 0.45);
  transition: transform 0.25s ease;
}

.hw-glass-phone-pill:hover .hw-phone-icon-wrap {
  transform: rotate(15deg) scale(1.05);
}

.hw-phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hw-phone-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--hw-cyan-deep);
  letter-spacing: 0.5px;
}

.hw-phone-number {
  font-size: 0.925rem;
  color: var(--hw-navy);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   5. Columna Derecha
   -------------------------------------------------------------------------- */
.hw-glass-bento-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 3;
}

/* Tarjeta Bento Genérica */
.hw-bento-card {
  position: relative;
  background: var(--hw-glass-bg);
  border: 1px solid var(--hw-glass-border);
  border-radius: 24px;
  box-shadow: var(--hw-glass-shadow);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.hw-bento-card:hover {
  background: var(--hw-glass-bg-hover);
  border-color: rgba(81, 190, 213, 0.45);
  transform: translateY(-4px);
  box-shadow: var(--hw-glass-shadow-hover);
}

/* Card 1: Rating Superior */
.hw-bento-rating-card {
  padding: 22px 26px;
}

.hw-bento-card-bg-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(81, 190, 213, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hw-stars-row {
  display: flex;
  gap: 4px;
  color: #f59e0b; /* Amber Gold */
  font-size: 1.05rem;
}

.hw-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hw-cyan-deep);
  background: rgba(81, 190, 213, 0.12);
  border: 1px solid rgba(81, 190, 213, 0.28);
  padding: 3px 10px;
  border-radius: 9999px;
}

.hw-rating-score {
  font-family: var(--heading-font, "Montserrat", sans-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--hw-navy);
  letter-spacing: -0.02em;
}

.hw-rating-meta {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--hw-text-muted);
}

.hw-rating-subtext {
  font-size: 0.85rem;
  color: var(--hw-text);
  margin-top: 4px;
  font-weight: 500;
}

/* Fila de 3 Estadísticas Horizontales */
.hw-bento-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Tarjeta Individual de Estadística */
.hw-bento-stat-card {
  padding: 18px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hw-stat-icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(81, 190, 213, 0.12);
  border: 1px solid rgba(81, 190, 213, 0.28);
  color: var(--hw-cyan-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.hw-bento-stat-card:hover .hw-stat-icon-pill {
  background: linear-gradient(135deg, #0b7c93 0%, #51bed5 100%);
  color: #ffffff;
  transform: scale(1.1);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(81, 190, 213, 0.45);
}

.hw-stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  line-height: 1;
  margin-bottom: 4px;
}

.hw-stat-num {
  font-family: var(--heading-font, "Montserrat", sans-serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--hw-navy);
  letter-spacing: -0.02em;
}

.hw-stat-plus {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--hw-cyan);
  margin-left: 2px;
}

.hw-stat-label {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--hw-text-muted);
  line-height: 1.25;
  margin: 0;
}

/* --------------------------------------------------------------------------
   6. Sección del Slider Posterior — fondo transparente para continuar el video
   -------------------------------------------------------------------------- */
.hw-hero-slider-container {
  position: relative;
  width: 100%;
  background: transparent;
  padding: 40px 0 60px;
}

/* El overlay del video se extiende automáticamente cubriendo el wrapper entero */
.hw-slider-over-video {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   7. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .hw-bienestar-title {
    font-size: 2.35rem;
  }
  .hw-bento-rating-card {
    padding: 18px 20px;
  }
  .hw-stat-num {
    font-size: 1.6rem;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .hw-bento-stats-row {
    gap: 8px;
  }
  .hw-bento-stat-card {
    padding: 14px 8px;
  }
  .hw-stat-label {
    font-size: 0.72rem;
  }
  .hw-bienestar-actions-row {
    gap: 10px;
  }
  .hw-btn-primary {
    padding: 11px 20px;
    font-size: 0.9rem;
  }
  .hw-btn-glass {
    padding: 11px 18px;
    font-size: 0.9rem;
  }
  .hw-glass-phone-pill {
    padding: 6px 14px 6px 7px;
  }
}

@media (min-width: 1440px) {
  .hw-bienestar-title {
    font-size: clamp(2.85rem, 2.5vw + 0.5rem, 3.8rem);
  }
  .hw-bienestar-desc {
    font-size: 1.15rem;
    max-width: 760px;
  }
  .hw-bienestar-content-wrapper {
    max-width: 1560px;
  }
}

@media (min-width: 1920px) {
  .hw-bienestar-hero {
    min-height: 580px;
    padding: 140px 0 65px;
  }
}

@media (max-width: 991px) {
  .hw-bienestar-hero {
    min-height: auto;
    padding: 110px 0 45px;
  }
  .hw-glass-hero-main {
    margin-bottom: 24px;
    text-align: center;
  }
  .hw-glass-badges-row {
    justify-content: center;
  }
  .hw-bienestar-desc,
  .hw-bienestar-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hw-bienestar-actions-row {
    justify-content: center;
  }
  .hw-bento-rating-card {
    text-align: center;
  }
  .hw-bento-rating-card .d-flex.align-items-baseline {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .hw-bienestar-hero {
    padding: 95px 0 35px;
  }
  .hw-bienestar-title {
    font-size: 1.85rem;
  }
  .hw-bienestar-desc {
    font-size: 0.95rem;
  }
  .hw-bienestar-subtitle {
    font-size: 1.02rem;
    line-height: 1.42;
  }
  .hw-bienestar-actions-row {
    flex-direction: column;
    width: 100%;
  }
  .hw-btn-primary,
  .hw-btn-glass,
  .hw-glass-phone-pill {
    width: 100%;
    justify-content: center;
  }
  .hw-bento-stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hw-bento-stat-card {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 12px 18px;
    text-align: left;
  }
  .hw-stat-icon-pill {
    margin-bottom: 0;
  }
  .hw-stat-number-wrap {
    margin-bottom: 0;
  }
}
