/* ==========================================================================
   SOLUCIONES HOSPITALARIAS — REVIEWS UNIVERSE VORTEX (EXACT REFERENCE REPLICA)
   Versión: 2.0 (Tangential Orbital Galaxy, 3D Multi-layer Depth & Dark Canvas)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. LIENZO CÓSMICO PROFUNDO & ATMÓSFERA
   -------------------------------------------------------------------------- */
.reviews-section {
  position: relative;
  width: 100%;
  min-height: clamp(680px, 92vh, 940px);
  padding: clamp(3rem, 6vh, 5rem) 0;
  background: radial-gradient(circle at 50% 50%, #0c274c 0%, #071c38 35%, #041022 70%, #020813 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  z-index: 5;
  cursor: grab;
}

.reviews-section:active {
  cursor: grabbing;
}

/* Polvo Estelar & Resplandores Celestiales */
.reviews-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.reviews-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 900px);
  height: min(90vw, 900px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 182, 255, 0.15) 0%, rgba(0, 74, 173, 0.08) 45%, transparent 75%);
  filter: blur(60px);
}

.reviews-cloud-veil-left {
  position: absolute;
  bottom: -15%;
  left: -20%;
  width: 60vw;
  height: 50vh;
  background: radial-gradient(ellipse at center, rgba(56, 182, 255, 0.08) 0%, rgba(0, 74, 173, 0.03) 50%, transparent 75%);
  filter: blur(50px);
}

.reviews-cloud-veil-right {
  position: absolute;
  top: -15%;
  right: -20%;
  width: 55vw;
  height: 50vh;
  background: radial-gradient(ellipse at center, rgba(56, 182, 255, 0.07) 0%, rgba(0, 74, 173, 0.02) 50%, transparent 75%);
  filter: blur(50px);
}

/* --------------------------------------------------------------------------
   02. ESCENARIO DEL VÓRTICE ORBITAL
   -------------------------------------------------------------------------- */
.reviews-stage-container {
  position: relative;
  width: 100%;
  max-width: var(--container-max-w);
  margin: 0 auto;
  padding: 0 var(--space-4);
  height: clamp(560px, 80vh, 780px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   03. NÚCLEO CENTRAL FLOTANTE (MINIMALIST EYE OF THE VORTEX)
   -------------------------------------------------------------------------- */
.reviews-central-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92%, 520px);
  text-align: center;
  z-index: 15;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  /* Sin fondo opaco pesado: texto puro flotando en el ojo del universo */
  background: transparent;
  border: none;
  box-shadow: none;
}

.reviews-hub-slides-wrapper {
  position: relative;
  min-height: 120px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews-hub-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.reviews-hub-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.reviews-hub-slide.leaving {
  opacity: 0;
  transform: translateY(-18px) scale(0.96);
}

.reviews-hub-title {
  font-family: var(--font-ui);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.reviews-hub-subtitle {
  font-family: var(--font-ui);
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0;
  max-width: 440px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   04. ANILLO ORBITAL DE TARJETAS TANGENCIALES (GALAXY TILES)
   -------------------------------------------------------------------------- */
.reviews-orbital-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Tarjeta Cuadrada en Órbita (Exacta a la referencia visual) */
.review-vortex-tile {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(165px, 15vw, 210px);
  aspect-ratio: 1 / 1;
  padding: clamp(1rem, 1.4vw, 1.35rem);
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 
    0 18px 45px -8px rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
  pointer-events: auto;
  cursor: pointer;
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Icono de Comillas en la Esquina */
.review-tile-quote-icon {
  width: 22px;
  height: 20px;
  color: var(--color-brand-cyan);
  opacity: 0.9;
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
}

.review-tile-quote-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Texto de la Reseña dentro del Cuadro */
.review-tile-text {
  font-family: var(--font-ui);
  font-size: clamp(0.78rem, 0.9vw, 0.865rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-brand-blue-deep);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}

/* Indicador sutil de verificación */
.review-tile-verified {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-blue);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.review-tile-verified-dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background-color: var(--color-brand-cyan);
}

/* --------------------------------------------------------------------------
   05. TARJETAS SECUNDARIAS DE PARALLAX (INNER & OUTER ECHO TILES)
   -------------------------------------------------------------------------- */
.review-vortex-tile.is-inner {
  width: clamp(100px, 9vw, 130px);
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  filter: blur(1.2px);
  pointer-events: none;
}

.review-vortex-tile.is-inner .review-tile-text {
  font-size: 0.65rem;
  -webkit-line-clamp: 3;
}

/* --------------------------------------------------------------------------
   06. HOVER / FOCUS: ENDEREZADO A 0° & SPOTLIGHT GLOW
   -------------------------------------------------------------------------- */
.review-vortex-tile:hover,
.review-vortex-tile.is-hovered {
  background: #FFFFFF;
  border-color: var(--color-brand-cyan);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(56, 182, 255, 0.55),
    0 0 0 2px var(--color-brand-cyan);
  z-index: 250 !important;
}

.review-vortex-tile:hover .review-tile-quote-icon,
.review-vortex-tile.is-hovered .review-tile-quote-icon {
  color: var(--color-brand-blue);
  transform: scale(1.15);
  transition: transform var(--duration-fast) var(--ease-natural);
}

/* --------------------------------------------------------------------------
   07. CONTROLES MINIMALISTAS INFERIORES & NOTA
   -------------------------------------------------------------------------- */
.reviews-bottom-cluster {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.reviews-nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.reviews-control-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--duration-fast) var(--ease-natural);
  cursor: pointer;
}

.reviews-control-btn:hover {
  background: var(--color-brand-cyan);
  border-color: var(--color-brand-cyan);
  color: var(--color-brand-blue-deep);
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(56, 182, 255, 0.4);
}

.reviews-control-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.reviews-pause-toggle {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: all var(--duration-fast) var(--ease-natural);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reviews-pause-toggle:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   08. SPOTLIGHT MODAL (LECTURA COMPLETA AL HACER CLICK EN MÓVIL/DESKTOP)
   -------------------------------------------------------------------------- */
.review-spotlight-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 13, 27, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-spotlight-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.review-spotlight-card {
  background: #FFFFFF;
  border-radius: 28px;
  padding: clamp(1.8rem, 4vw, 2.5rem);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(56, 182, 255, 0.3);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.review-spotlight-modal.is-open .review-spotlight-card {
  transform: scale(1) translateY(0);
}

.review-spotlight-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 74, 173, 0.08);
  color: var(--color-brand-blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-natural);
}

.review-spotlight-close:hover {
  background: var(--color-brand-blue-deep);
  color: #FFFFFF;
}

.review-spotlight-quote-icon {
  width: 36px;
  height: 30px;
  color: var(--color-brand-cyan);
  margin-bottom: 1rem;
}

.review-spotlight-quote-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.review-spotlight-text {
  font-family: var(--font-ui);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-brand-blue-deep);
  margin: 0;
}

/* --------------------------------------------------------------------------
   09. RESPONSIVE PRECISION
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .reviews-section {
    min-height: clamp(620px, 86vh, 800px);
  }
  .reviews-stage-container {
    height: clamp(500px, 72vh, 640px);
  }
  .review-vortex-tile {
    width: clamp(140px, 18vw, 175px);
    padding: 0.95rem;
    border-radius: 16px;
  }
  .reviews-hub-title {
    font-size: clamp(1.4rem, 4vw, 1.9rem);
  }
}

@media (max-width: 640px) {
  .reviews-section {
    min-height: 600px;
    padding: 3rem 0;
  }
  .reviews-stage-container {
    height: 520px;
  }
  .reviews-central-hub {
    width: 88%;
  }
  .reviews-hub-title {
    font-size: 1.35rem;
  }
  .reviews-hub-subtitle {
    font-size: 0.8125rem;
  }
  .review-vortex-tile {
    width: 128px;
    padding: 0.75rem;
    border-radius: 14px;
  }
  .review-tile-text {
    font-size: 0.72rem;
    line-height: 1.35;
    -webkit-line-clamp: 4;
  }
  .review-vortex-tile.is-inner {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-vortex-tile {
    transition: none !important;
  }
  .reviews-hub-slide {
    transition: opacity 0.3s ease !important;
    transform: none !important;
  }
}
