/* ==========================================================================
   HEALTHY WORKUP - ORBITAL SERVICES CAROUSEL 
   ========================================================================== */

:root {
  --oc-primary: #011E41;
  --oc-cyan: #51bed5;
  --oc-dark-cyan: #0b7c93;
  --oc-rotate-speed: 40;
  --oc-easing: linear;
  --oc-count: 6;
  --oc-radius: 330px;
  --oc-card-w: 235px;
}

/* ---------- Seccion ---------- */
.hw-orbital-section {
  width: 100%;
  background: linear-gradient(160deg, #f4fafd 0%, #e8f6fb 55%, #f0f8fc 100%);
  padding: 65px 0 52px;
  position: relative;
  overflow: hidden;
}

.hw-orbital-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(81, 190, 213, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hw-orbital-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(11, 124, 147, 0.09) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- Encabezado ---------- */
.hw-orbital-header {
  text-align: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}

.hw-orbital-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 20px;
  border-radius: 50px;
  background: rgba(81, 190, 213, 0.15);
  border: 1px solid rgba(81, 190, 213, 0.35);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--oc-dark-cyan);
  margin-bottom: 0;
}

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

.hw-orbital-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--oc-primary);
  margin-top: 0;
  margin-bottom: 10px;
  letter-spacing: 2px;
  line-height: 1.1;
  background: linear-gradient(135deg, #011E41 0%, #0b7c93 50%, #51bed5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 14px rgba(81, 190, 213, 0.35));
}

.hw-orbital-header h2 .hw-oc-accent {
  color: var(--oc-cyan);
  -webkit-text-fill-color: var(--oc-cyan);
  filter: drop-shadow(0 2px 8px rgba(81, 190, 213, 0.4));
}

/* ---------- Centrado ---------- */
.hw-orbital-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 2;
}

.hw-orbital-carousel-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ================================================================
   PANEL DE INFORMACION AMPLIADO Y CONTORNEADO (Card lateral izquierda)
   Aprovecha el espacio disponible en la izquierda y respeta
   el contorno circular del corazon central con un corte curvado.
   ================================================================ */

.hw-oc-panel-wrapper {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%) translateX(-24px);
  width: 444px;
  height: 830px;
  max-height: 90%;
  z-index: 12;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.38s;
  will-change: transform, opacity;
  filter: drop-shadow(0 24px 50px rgba(1, 30, 65, 0.18)) drop-shadow(0 0 28px rgba(81, 190, 213, 0.25));
}

.hw-oc-panel-wrapper.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.hw-oc-detail-panel {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  clip-path: path('M 24 0 H 420 A 24 24 0 0 1 444 24 V 289.4 A 126 126 0 0 0 444 540.6 V 806 A 24 24 0 0 1 420 830 H 24 A 24 24 0 0 1 0 806 V 24 A 24 24 0 0 1 24 0 Z');
  clip-path: url(#hw-oc-card-clip);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Borde vectorial SVG superpuesto */
.hw-oc-card-border-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

/* Boton de cierre superior derecho */
.hw-oc-detail-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(1, 30, 65, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(81, 190, 213, 0.45);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: all 0.25s ease;
  padding: 0;
}

.hw-oc-detail-close:hover {
  background: var(--oc-cyan);
  color: #011E41;
  transform: rotate(90deg) scale(1.08);
}

/* Tarjeta individual de servicio */
.hw-oc-detail-card {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(81, 190, 213, 0.45) transparent;
}

.hw-oc-detail-card.is-active {
  display: flex;
  animation: ocCardFadeSlide 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ocCardFadeSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.hw-oc-detail-card::-webkit-scrollbar {
  width: 5px;
}

.hw-oc-detail-card::-webkit-scrollbar-thumb {
  background: rgba(81, 190, 213, 0.45);
  border-radius: 10px;
}

.hw-oc-detail-card::-webkit-scrollbar-thumb:hover {
  background: var(--oc-cyan);
}

/* Cabecera multimedia amplia */
.hw-oc-card-media-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  flex-shrink: 0;
  overflow: hidden;
  background: #011E41;
}

.hw-oc-card-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hw-oc-panel-wrapper:hover .hw-oc-card-main-img {
  transform: scale(1.05);
}

.hw-oc-card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 30, 65, 0.18) 0%, rgba(1, 30, 65, 0.76) 100%);
}

.hw-oc-card-badge-num {
  position: absolute;
  top: 14px;
  left: 16px;
  background: rgba(1, 30, 65, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(81, 190, 213, 0.45);
  color: #51bed5;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  z-index: 5;
}

/* Pastilla circular de icono */
.hw-oc-card-icon-pill {
  position: absolute;
  bottom: 12px;
  right: 24px;
  width: 64px;
  height: 64px;
  background: #ffffff;
  border: 2.5px solid #51bed5;
  border-radius: 50%;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(1, 30, 65, 0.28);
  transition: transform 0.35s ease;
  z-index: 5;
}

.hw-oc-card-icon-pill img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hw-oc-panel-wrapper:hover .hw-oc-card-icon-pill {
  transform: scale(1.08) rotate(5deg);
}

/* Cuerpo de la card */
.hw-oc-card-content {
  padding: 22px 28px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

/* Zona de texto adaptada al arco curvado */
.hw-oc-card-text-zone {
  max-width: 305px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hw-oc-card-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(81, 190, 213, 0.14);
  border: 1px solid rgba(81, 190, 213, 0.4);
  color: var(--oc-dark-cyan);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  width: fit-content;
}

.hw-oc-card-tag-pill i {
  color: var(--oc-cyan);
  font-size: 0.95rem;
}

.hw-oc-card-svg-wrap {
  display: flex;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 2px;
}

.hw-oc-card-svg-wrap img {
  max-height: 48px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(81, 190, 213, 0.18));
}

.hw-oc-card-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--oc-primary);
  text-transform: uppercase;
  letter-spacing: -0.2px;
  line-height: 1.25;
  margin: 2px 0 0 0;
}

.hw-oc-card-paragraph {
  font-size: 0.96rem;
  line-height: 1.62;
  color: #334155;
  margin: 0;
  font-weight: 450;
}

.hw-oc-card-bullets {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hw-oc-card-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #1e293b;
  line-height: 1.45;
  font-weight: 500;
}

.hw-oc-card-bullets li i {
  color: var(--oc-cyan);
  font-size: 1.05rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Acciones / Botones (ampliados y destacados) */
.hw-oc-card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1.5px solid rgba(81, 190, 213, 0.25);
  max-width: 390px;
}

.hw-oc-btn-contact {
  flex: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--oc-primary) 0%, var(--oc-dark-cyan) 100%);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.28s ease;
  box-shadow: 0 6px 18px rgba(1, 30, 65, 0.25);
  white-space: nowrap;
}

.hw-oc-btn-contact i {
  font-size: 1.05rem;
}

.hw-oc-btn-contact:hover {
  background: linear-gradient(135deg, var(--oc-dark-cyan) 0%, var(--oc-cyan) 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(81, 190, 213, 0.42);
}

.hw-oc-btn-more {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 20px;
  border-radius: 50px;
  background: rgba(81, 190, 213, 0.14);
  border: 1.5px solid rgba(81, 190, 213, 0.42);
  color: var(--oc-dark-cyan);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.28s ease;
  white-space: nowrap;
}

.hw-oc-btn-more i {
  font-size: 1.05rem;
}

.hw-oc-btn-more:hover {
  background: var(--oc-cyan);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(81, 190, 213, 0.35);
}

/* ================================================================
   AREA ORBITAL - contenedor cuadrado
   ================================================================ */

.hw-oc-void {
  position: relative;
  width: calc(var(--oc-radius) * 2 + var(--oc-card-w) + 40px);
  height: calc(var(--oc-radius) * 2 + var(--oc-card-w) + 40px);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.hw-oc-void.is-dragging {
  cursor: grabbing !important;
}

.hw-oc-void.is-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* El panel lateral de detalle mantiene su interacción habitual */
.hw-oc-panel-wrapper,
.hw-oc-detail-panel {
  cursor: default;
  user-select: auto;
  -webkit-user-select: auto;
  touch-action: auto;
}

.hw-oc-detail-close,
.hw-oc-btn-contact,
.hw-oc-btn-more {
  cursor: pointer !important;
}

/* hw-oc-crop ya no recorta nada */
.hw-oc-crop {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Lista base */
.hw-oc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Cuando el modo interactivo por script está activo */
.hw-oc-js-ready .hw-oc-item {
  animation: none !important;
  transition: none !important;
  will-change: transform;
}

/* Pausa en hover para fallback CSS puro */
.hw-oc-list:hover .hw-oc-item,
.hw-oc-list:hover .hw-oc-card {
  animation-play-state: paused;
}

/*
  Tecnica orbital real:
    - Cada .hw-oc-item se centra en el punto (50%,50%) del contenedor
    - El keyframe hw-orbit lo rota alrededor de ese punto
      y translateX(radio) desplaza la card hacia afuera
    - La card contra-rota para mantenerse siempre de pie
*/
.hw-oc-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--oc-card-w);
  margin-left: calc(var(--oc-card-w) / -2);
  margin-top: calc(var(--oc-card-w) / -2);
  transform-origin: center center;
  will-change: transform;
  animation: hw-orbit calc(var(--oc-rotate-speed) * 1s) var(--oc-easing) infinite;
  cursor: pointer;
}

/* Delays escalonados */
.hw-oc-item:nth-child(1) {
  animation-delay: calc(var(--oc-rotate-speed) / var(--oc-count) * 0 * -1s);
}

.hw-oc-item:nth-child(2) {
  animation-delay: calc(var(--oc-rotate-speed) / var(--oc-count) * 1 * -1s);
}

.hw-oc-item:nth-child(3) {
  animation-delay: calc(var(--oc-rotate-speed) / var(--oc-count) * 2 * -1s);
}

.hw-oc-item:nth-child(4) {
  animation-delay: calc(var(--oc-rotate-speed) / var(--oc-count) * 3 * -1s);
}

.hw-oc-item:nth-child(5) {
  animation-delay: calc(var(--oc-rotate-speed) / var(--oc-count) * 4 * -1s);
}

.hw-oc-item:nth-child(6) {
  animation-delay: calc(var(--oc-rotate-speed) / var(--oc-count) * 5 * -1s);
}

@keyframes hw-orbit {
  from {
    transform: rotate(0deg) translateX(var(--oc-radius)) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(var(--oc-radius)) rotate(-360deg);
  }
}

/* Tarjeta flotante */
.hw-oc-card {
  width: var(--oc-card-w);
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid rgba(81, 190, 213, 0.28);
  box-shadow: 0 6px 20px rgba(1, 30, 65, 0.09), 0 10px 28px rgba(81, 190, 213, 0.12);
  border-radius: 16px;
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: grab;
}

.hw-oc-card:active {
  cursor: grabbing;
}

.hw-oc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--oc-cyan), var(--oc-dark-cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hw-oc-card:hover::before,
.hw-oc-card.is-selected::before {
  opacity: 1;
}

.hw-oc-card:hover,
.hw-oc-card.is-selected {
  border-color: var(--oc-cyan);
  box-shadow: 0 10px 28px rgba(81, 190, 213, 0.36);
}

.hw-oc-card-num {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--oc-cyan);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hw-oc-card-title {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.32;
  color: var(--oc-primary);
  display: block;
  margin-bottom: 7px;
}

.hw-oc-card-desc {
  font-size: 0.82rem;
  line-height: 1.52;
  color: #5a6a80;
  display: block;
}

/* Elementos específicos de móvil ocultos en escritorio */
.hw-oc-item.is-clone {
  display: none;
}

.hw-oc-card-arrow {
  display: none;
}

.hw-oc-mobile-heart-badge {
  display: none;
}

/* Circulos decorativos centrados */
.hw-oc-center-circle {
  position: absolute;
  width: 220px;
  aspect-ratio: 1/1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  box-shadow:
    0 20px 42px -16px rgba(1, 30, 65, 0.22),
    0 35px 70px -10px rgba(81, 190, 213, 0.22);
  border-radius: 50%;
  border: 2.5px solid rgba(81, 190, 213, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  overflow: visible;
}

/* Logo latiendo — latido cardiaco (lub-dub) con filter glow sincronizado */
.hw-oc-center-logo {
  width: 125px;
  height: 125px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  transform-origin: center center;
  /* will-change: transform — promueve a capa GPU para transform */
  will-change: transform;
  animation: oc-cardiacBeat 1.8s ease-in-out infinite;
}

/* Ondas concentricas expansivas — sincronizadas con el latido */
.hw-oc-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 175px;
  height: 175px;
  margin-top: -87.5px;
  margin-left: -87.5px;
  border-radius: 50%;
  border: 2px solid rgba(41, 167, 225, 0.85);
  box-shadow: 0 0 28px rgba(41, 167, 225, 0.35), inset 0 0 14px rgba(41, 167, 225, 0.16);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  animation: oc-wavePulse 1.8s cubic-bezier(0.15, 0.75, 0.3, 1) infinite;
}

.hw-oc-wave-1 {
  animation-delay: 0s;
}

.hw-oc-wave-2 {
  animation-delay: 0.42s;
}

.hw-oc-wave-3 {
  animation-delay: 0.84s;
}

.hw-oc-wave-4 {
  animation-delay: 1.26s;
}

/* Resplandor suave detras del logo */
.hw-oc-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 195px;
  height: 195px;
  margin-top: -97.5px;
  margin-left: -97.5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 167, 225, 0.38) 0%, rgba(41, 167, 225, 0) 70%);
  animation: oc-glowPulse 1.8s ease-in-out infinite;
  pointer-events: none;
}

/* ================================================================
   Keyframes del latido cardiaco (lub-dub)
   — transform + filter drop-shadow sincronizados al ritmo
   Optimización: filter animado solo en keyframes clave (14%, 42%)
   para minimizar repaint. El resto hereda el valor inicial.
   ================================================================ */
@keyframes oc-cardiacBeat {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 8px 18px rgba(41, 167, 225, 0.32));
  }

  14% {
    transform: scale(1.2);
    filter: drop-shadow(0 14px 30px rgba(41, 167, 225, 0.65));
  }

  28% {
    transform: scale(1.04);
    filter: drop-shadow(0 8px 20px rgba(41, 167, 225, 0.35));
  }

  42% {
    transform: scale(1.26);
    filter: drop-shadow(0 18px 38px rgba(41, 167, 225, 0.75));
  }

  70% {
    transform: scale(0.97);
    filter: drop-shadow(0 8px 18px rgba(41, 167, 225, 0.3));
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0 8px 18px rgba(41, 167, 225, 0.32));
  }
}

/* Ondas expansivas al ritmo del latido — expansión más amplia y vívida */
@keyframes oc-wavePulse {
  0% {
    transform: scale(0.6);
    opacity: 0.92;
    border-color: rgba(41, 167, 225, 0.9);
  }

  35% {
    opacity: 0.58;
    border-color: rgba(41, 167, 225, 0.55);
  }

  75% {
    opacity: 0.12;
    border-color: rgba(41, 167, 225, 0.18);
  }

  100% {
    transform: scale(2.9);
    opacity: 0;
    border-color: rgba(41, 167, 225, 0);
  }
}

/* Resplandor pulsante — más intenso en los picos del latido */
@keyframes oc-glowPulse {

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

  14% {
    transform: scale(1.3);
    opacity: 0.68;
  }

  42% {
    transform: scale(1.55);
    opacity: 0.82;
  }

  70% {
    transform: scale(0.95);
    opacity: 0.4;
  }
}

/* Animación de brillo para el título del carousel orbital */
@keyframes orbitalTitleGlow {
  0% {
    filter: drop-shadow(0 4px 12px rgba(81, 190, 213, 0.25));
  }

  100% {
    filter: drop-shadow(0 6px 20px rgba(81, 190, 213, 0.5));
  }
}


/* Anillo interior */
.hw-oc-second-circle {
  position: absolute;
  width: 440px;
  height: 440px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(81, 190, 213, 0.05);
  border: 1px solid rgba(81, 190, 213, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

/* Anillo orbital punteado (marca la pista) */
.hw-oc-last-circle {
  position: absolute;
  width: calc(var(--oc-radius) * 2);
  height: calc(var(--oc-radius) * 2);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 1.5px dashed rgba(81, 190, 213, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

/* Mascara - degradado izquierdo que oculta las cards al pasar por detras */
.hw-oc-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  /* Glow cyan en el borde central + fondo solido hacia la izquierda */
  background:
    radial-gradient(ellipse 55% 55% at 100% 50%,
      rgba(81, 190, 213, 0.14) 0%,
      rgba(81, 190, 213, 0.06) 45%,
      transparent 70%),
    linear-gradient(to right,
      #eaf5fb 0%,
      #eaf5fb 30%,
      rgba(234, 245, 251, 0.85) 70%,
      rgba(234, 245, 251, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

/* ================================================================
   Responsive — Carrusel mediano (992px – 1199px)
   Los tamaños del carrusel se reducen para cualquier pantalla en
   este rango. El panel lateral escalado solo se aplica desde 1101px.
   ================================================================ */
@media (max-width: 1199px) and (min-width: 992px) {
  :root {
    --oc-radius: 275px;
    --oc-card-w: 205px;
  }

  .hw-oc-center-circle {
    width: 180px;
  }

  .hw-oc-center-logo {
    width: 100px;
    height: 100px;
  }

  .hw-oc-second-circle {
    width: 360px;
    height: 360px;
  }

  .hw-oc-wave {
    width: 140px;
    height: 140px;
    margin-top: -70px;
    margin-left: -70px;
  }

  .hw-oc-glow-bg {
    width: 155px;
    height: 155px;
    margin-top: -77px;
    margin-left: -77px;
  }

  .hw-oc-card-title {
    font-size: 0.92rem;
  }

  .hw-oc-card-desc {
    font-size: 0.76rem;
  }
}

/* Panel lateral escalado solo para 1101px – 1199px
   (por debajo de 1101px el panel pasa a ser modal centrado) */
@media (max-width: 1199px) and (min-width: 1101px) {

  /* Escalamiento proporcional del panel lateral */
  .hw-oc-panel-wrapper {
    left: 4px;
    height: 830px;
    max-height: none;
    transform: translateY(-50%) translateX(-20px) scale(0.84);
    transform-origin: left center;
  }

  .hw-oc-panel-wrapper.is-active {
    transform: translateY(-50%) translateX(0) scale(0.84);
  }
}

@media (min-width: 1400px) {
  .hw-orbital-section {
    padding: 75px 0 60px;
  }

  .hw-orbital-centered {
    max-width: 1400px;
    margin: 0 auto;
  }
}

/* ================================================================
   PANTALLAS PEQUEÑAS DE PC / ZOOM ALTO (769px – 1100px)
   En este rango el panel lateral no tiene espacio suficiente, por
   lo que se convierte en un modal centrado estilo dialog.
   ================================================================ */
@media (max-width: 1100px) and (min-width: 769px) {

  /* Evitar que content-visibility o contain en la sección atrapen el position:fixed del modal */
  #services,
  .hw-orbital-section {
    content-visibility: visible !important;
    contain: none !important;
  }

  /* Panel: overlay modal centrado */
  .hw-oc-panel-wrapper {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 16px !important;
    transform: none !important;
    background: rgba(1, 30, 65, 0.65) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 99990 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    filter: none !important;
  }

  .hw-oc-panel-wrapper.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Contenedor de la card: dialog centrado con borde redondeado */
  .hw-oc-detail-panel {
    clip-path: none !important;
    -webkit-clip-path: none !important;
    border-radius: 20px !important;
    border: 1.5px solid rgba(81, 190, 213, 0.5) !important;
    width: 100% !important;
    max-width: 540px !important;
    max-height: 82vh !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    box-shadow: 0 30px 80px rgba(1, 30, 65, 0.4), 0 0 40px rgba(81, 190, 213, 0.18) !important;
    transform: scale(0.94) translateY(14px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hw-oc-panel-wrapper.is-active .hw-oc-detail-panel {
    transform: scale(1) translateY(0) !important;
  }

  /* Ocultar el borde SVG con curva personalizada */
  .hw-oc-card-border-svg {
    display: none !important;
  }

  /* Botón de cierre: posición dentro de la card */
  .hw-oc-detail-close {
    position: absolute !important;
    top: 14px !important;
    right: 16px !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(1, 30, 65, 0.88) !important;
    color: #ffffff !important;
    font-size: 1.5rem !important;
    z-index: 100000 !important;
    cursor: pointer !important;
  }

  /* Ajustar imagen de cabecera */
  .hw-oc-card-media-wrap {
    height: 190px !important;
  }

  /* Texto sin restricción de ancho por arco */
  .hw-oc-card-text-zone {
    max-width: 100% !important;
  }

  .hw-oc-card-actions {
    max-width: 100% !important;
  }
}

/* ================================================================
   TABLETS (769px – 991px)  — mantiene comportamiento propio
   ================================================================ */
@media (max-width: 991px) and (min-width: 769px) {
  :root {
    --oc-radius: 205px;
    --oc-card-w: 185px;
  }

  .hw-orbital-section {
    padding: 55px 0 45px;
  }

  .hw-oc-center-circle {
    width: 160px;
  }

  .hw-oc-center-logo {
    width: 90px;
    height: 90px;
  }

  .hw-oc-second-circle {
    width: 300px;
    height: 300px;
  }

  .hw-oc-wave {
    width: 130px;
    height: 130px;
    margin-top: -65px;
    margin-left: -65px;
  }

  .hw-oc-glow-bg {
    width: 140px;
    height: 140px;
    margin-top: -70px;
    margin-left: -70px;
  }

  .hw-oc-card-title {
    font-size: 0.88rem;
  }

  .hw-oc-card-desc {
    font-size: 0.74rem;
  }

  /* En tablets se desactiva el clip curvo y pasa abajo */
  .hw-oc-panel-wrapper {
    position: relative;
    left: auto;
    top: auto;
    transform: translateY(16px);
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 25px auto 0 auto;
    max-height: none;
    z-index: 10;
    display: none;
    filter: drop-shadow(0 15px 35px rgba(1, 30, 65, 0.12));
  }

  .hw-oc-panel-wrapper.is-active {
    display: flex;
    transform: translateY(0);
  }

  .hw-oc-detail-panel {
    clip-path: none;
    border-radius: 24px;
    border: 2px solid rgba(81, 190, 213, 0.45);
    height: auto;
  }

  .hw-oc-card-border-svg {
    display: none;
  }

  .hw-oc-card-media-wrap {
    height: 180px;
  }

  .hw-oc-card-text-zone {
    max-width: 100%;
  }

  .hw-oc-card-actions {
    max-width: 100%;
  }
}

/* ================================================================
   REDESIGNO EXCLUSIVO PARA TELÉFONOS (max-width: 768px)
   - Lado izquierdo: Corazón latiendo con ondas y brillo
   - Lado derecho: Cascada vertical de tarjetas en movimiento descendente continuo
   - Clic en tarjeta: Abre la ficha completa del servicio en modal nativo
   ================================================================ */
@media (max-width: 768px) {
  .hw-orbital-section {
    padding: 45px 0 32px !important;
  }

  .hw-orbital-header {
    margin-bottom: 16px !important;
  }

  .hw-orbital-header h2 {
    font-size: 1.7rem !important;
    margin-bottom: 6px !important;
  }

  .hw-orbital-badge {
    padding: 5px 14px !important;
    font-size: 0.74rem !important;
  }

  .hw-orbital-centered {
    gap: 0 !important;
    width: 100% !important;
  }

  .hw-orbital-carousel-center {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Contenedor principal móvil: dividido en zona izquierda (corazón) y derecha (carrusel vertical) */
  .hw-oc-void {
    width: 100% !important;
    max-width: 500px !important;
    height: 420px !important;
    margin: 0 auto !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(240, 248, 252, 0.85) 100%) !important;
    border: 1.5px solid rgba(81, 190, 213, 0.28) !important;
    box-shadow: 0 12px 36px rgba(1, 30, 65, 0.06), 0 0 24px rgba(81, 190, 213, 0.12) !important;
    touch-action: pan-y !important;
    cursor: default !important;
  }

  /* Ocultar elementos exclusivos de órbita circular de escritorio */
  .hw-oc-last-circle,
  .hw-oc-second-circle,
  .hw-oc-mask {
    display: none !important;
  }

  /* ---------------- ZONA IZQUIERDA: CORAZÓN LATIENDO ---------------- */
  .hw-oc-center-circle {
    position: absolute !important;
    left: 20% !important;
    top: 45% !important;
    transform: translate(-50%, -50%) !important;
    width: 102px !important;
    height: 102px !important;
    z-index: 5 !important;
    border-radius: 50% !important;
    border: 2px solid rgba(81, 190, 213, 0.4) !important;
    background: #ffffff !important;
    box-shadow: 0 10px 28px rgba(1, 30, 65, 0.14), 0 0 22px rgba(81, 190, 213, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hw-oc-center-logo {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    animation: oc-cardiacBeat 1.8s ease-in-out infinite !important;
  }

  .hw-oc-wave {
    width: 90px !important;
    height: 90px !important;
    margin-top: -45px !important;
    margin-left: -45px !important;
  }

  .hw-oc-glow-bg {
    width: 100px !important;
    height: 100px !important;
    margin-top: -50px !important;
    margin-left: -50px !important;
  }

  /* Etiqueta interactiva debajo del corazón */
  .hw-oc-mobile-heart-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    position: absolute !important;
    left: 20% !important;
    bottom: 22px !important;
    transform: translateX(-50%) !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: var(--oc-dark-cyan) !important;
    background: rgba(81, 190, 213, 0.16) !important;
    border: 1px solid rgba(81, 190, 213, 0.4) !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    z-index: 6 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 12px rgba(1, 30, 65, 0.05) !important;
    backdrop-filter: blur(4px) !important;
  }

  .hw-oc-mobile-heart-badge i {
    color: var(--oc-cyan) !important;
    font-size: 0.8rem !important;
    animation: oc-badge-beat 1.6s ease infinite !important;
  }

  /* ---------------- ZONA DERECHA: CARRUSEL EN CASCADA DESCENDENTE ---------------- */
  .hw-oc-crop {
    position: absolute !important;
    left: 40% !important;
    right: 8px !important;
    top: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    height: 100% !important;
    overflow: hidden !important;
    mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%) !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%) !important;
    z-index: 3 !important;
    touch-action: pan-y !important;
  }

  .hw-oc-list {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 14px 6px !important;
    margin: 0 !important;
    list-style: none !important;
    will-change: transform !important;
  }

  .hw-oc-item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    width: 100% !important;
    transform: none !important;
    animation: none !important;
  }

  .hw-oc-item.is-clone {
    display: block !important;
  }

  /* Tarjetas móviles compactas y elegantes */
  .hw-oc-card {
    width: 100% !important;
    padding: 11px 14px !important;
    min-height: 64px !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(81, 190, 213, 0.32) !important;
    box-shadow: 0 4px 14px rgba(1, 30, 65, 0.08), 0 1px 4px rgba(81, 190, 213, 0.12) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
  }

  .hw-oc-card:active {
    transform: scale(0.97) !important;
    border-color: var(--oc-cyan) !important;
    box-shadow: 0 2px 10px rgba(81, 190, 213, 0.35) !important;
  }

  .hw-oc-card-num {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    color: var(--oc-cyan) !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    margin-bottom: 2px !important;
  }

  .hw-oc-card-title {
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: var(--oc-primary) !important;
    margin: 0 !important;
    padding-right: 28px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* Ocultar el texto largo descriptivo en el carrusel de móvil */
  .hw-oc-card-desc {
    display: none !important;
  }

  /* Flecha interactiva a la derecha de cada tarjeta */
  .hw-oc-card-arrow {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: rgba(81, 190, 213, 0.12) !important;
    color: var(--oc-dark-cyan) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    transition: all 0.2s ease !important;
  }

  .hw-oc-card:active .hw-oc-card-arrow {
    background: var(--oc-cyan) !important;
    color: #ffffff !important;
    transform: translateY(-50%) translateX(2px) !important;
  }

  /* ---------------- MODAL / BOTTOM-SHEET PARA SERVICIO COMPLETO ---------------- */
  .hw-oc-panel-wrapper {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    background: rgba(1, 30, 65, 0.72) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    filter: none !important;
  }

  .hw-oc-panel-wrapper.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .hw-oc-detail-panel {
    clip-path: none !important;
    -webkit-clip-path: none !important;
    border-radius: 26px 26px 0 0 !important;
    border: 1.5px solid rgba(81, 190, 213, 0.45) !important;
    border-bottom: none !important;
    width: 100% !important;
    max-width: 520px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: #ffffff !important;
    box-shadow: 0 -15px 40px rgba(1, 30, 65, 0.35) !important;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hw-oc-panel-wrapper.is-active .hw-oc-detail-panel {
    transform: translateY(0);
  }

  .hw-oc-card-border-svg {
    display: none !important;
  }

  /* Botón de cierre en modal móvil */
  .hw-oc-detail-close {
    position: fixed !important;
    top: 18px !important;
    right: 18px !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1.5px solid rgba(81, 190, 213, 0.45) !important;
    color: #011E41 !important;
    font-size: 1.6rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(1, 30, 65, 0.25) !important;
    z-index: 100000 !important;
    cursor: pointer !important;
  }

  .hw-oc-card-media-wrap {
    height: 180px !important;
  }

  .hw-oc-card-content {
    padding: 18px 20px 24px !important;
  }

  .hw-oc-card-text-zone {
    max-width: 100% !important;
  }

  .hw-oc-card-heading {
    font-size: 1.25rem !important;
  }

  .hw-oc-card-paragraph {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
  }

  .hw-oc-card-bullets li {
    font-size: 0.86rem !important;
  }

  .hw-oc-card-actions {
    max-width: 100% !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 18px !important;
    padding-top: 14px !important;
  }

  .hw-oc-btn-contact,
  .hw-oc-btn-more {
    width: 100% !important;
    padding: 12px 18px !important;
    font-size: 0.9rem !important;
  }
}

/* Teléfonos ultracompactos (menos de 380px) */
@media (max-width: 380px) {
  .hw-oc-center-circle {
    left: 18% !important;
    width: 88px !important;
    height: 88px !important;
  }

  .hw-oc-center-logo {
    width: 52px !important;
    height: 52px !important;
  }

  .hw-oc-wave {
    width: 78px !important;
    height: 78px !important;
    margin-top: -39px !important;
    margin-left: -39px !important;
  }

  .hw-oc-glow-bg {
    width: 88px !important;
    height: 88px !important;
    margin-top: -44px !important;
    margin-left: -44px !important;
  }

  .hw-oc-mobile-heart-badge {
    left: 18% !important;
    font-size: 0.62rem !important;
    padding: 3px 8px !important;
  }

  .hw-oc-crop {
    left: 36% !important;
  }

  .hw-oc-card {
    padding: 9px 10px !important;
  }

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

/* Microanimación de latido para el icono del badge móvil */
@keyframes oc-badge-beat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.22);
  }
}

/* ==========================================================
   ACCESIBILIDAD & RENDIMIENTO: Reducir movimiento
   ========================================================== */
@media (prefers-reduced-motion: reduce) {

  .hw-oc-item,
  .hw-oc-center-logo,
  .hw-oc-wave,
  .hw-oc-glow-bg {
    animation: none !important;
    transition: none !important;
  }

  /* Desactivar backdrop-filter costoso en dispositivos que lo soliciten */
  .hw-oc-detail-panel,
  .hw-oc-panel-wrapper {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ==========================================================
   Ajuste de escala por viewport (zoom / laptops de poca altura)
   ========================================================== */
@media (min-width: 1101px) {
  .hw-orbital-carousel-center { overflow: visible; }
  .hw-oc-void { transform-origin: top center; }
  /* El clip-path/borde SVG mide 830px fijos: el panel no debe encogerse */
  .hw-oc-panel-wrapper { max-height: none; }
}
