/* ============================================ */
/* MENÚ 3D - VERSIÓN FULLSCREEN */
/* ============================================ */

/* Botón hamburguesa */
.menu-toggle-3d {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 9999 !important;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(160, 240, 255, 0.4);
  background: rgba(0, 10, 25, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(0, 190, 255, 0.2);
  transition: 0.2s;
}

.menu-toggle-3d span {
  width: 28px;
  height: 2.5px;
  border-radius: 999px;
  background: #c8fbff;
  box-shadow: 0 0 8px rgba(0, 220, 255, 0.5);
  display: block;
}

/* Overlay - cubre toda la pantalla */
.wheel-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(2, 6, 23, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 10000 !important;
}

.wheel-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Panel del menú - OCUPA TODA LA PANTALLA */
.wheel-menu-panel {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  transform: translateX(100%) !important;
  background: linear-gradient(135deg, rgba(9, 16, 36, 0.98), rgba(7, 13, 30, 0.98)) !important;
  backdrop-filter: blur(20px) !important;
  border-radius: 0 !important;
  padding: 20px !important;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1) !important;
  z-index: 10010 !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.wheel-menu-panel.active {
  transform: translateX(0) !important;
}

/* Header del menú */
.wheel-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(145, 235, 255, 0.2);
}

.wheel-menu-title {
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(210, 250, 255, 0.9);
  font-weight: bold;
}

/* Botón de cerrar - grande y visible */
.wheel-close {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(145, 235, 255, 0.3) !important;
  color: #dffcff !important;
  font-size: 2rem !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.wheel-close:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.05);
}

/* Wrapper del carrusel - ocupa más espacio */
.wheel-wrapper {
  position: relative;
  flex: 1;
  min-height: 400px;
  margin: 40px 0;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(145, 235, 255, 0.1);
  perspective: 1200px;
}

/* Flechas de navegación */
.wheel-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(145, 235, 255, 0.2);
  color: #dffcff;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 12;
  transition: all 0.2s ease;
}

.wheel-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-50%) scale(1.05);
}

.wheel-arrow-up {
  top: 30px;
}

.wheel-arrow-down {
  bottom: 30px;
}

/* Zonas hover */
.wheel-hover-top,
.wheel-hover-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 30%;
  z-index: 6;
}

.wheel-hover-top {
  top: 0;
}

.wheel-hover-bottom {
  bottom: 0;
}

/* Efectos fade */
.wheel-fade-top,
.wheel-fade-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 4;
  pointer-events: none;
}

.wheel-fade-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(7, 13, 30, 0.95), rgba(7, 13, 30, 0));
}

.wheel-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(7, 13, 30, 0.95), rgba(7, 13, 30, 0));
}

/* Línea central */
.wheel-center-line {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  height: 90px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.12));
  border: 1px solid rgba(145, 235, 255, 0.2);
  z-index: 1;
  pointer-events: none;
}

/* Items del carrusel */
.wheel-items {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.wheel-item {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  text-align: center;
  transform-origin: center center;
  user-select: none;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
  padding: 12px 20px;
}

.wheel-item-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  max-width: 85%;
  margin-inline: auto;
  padding: 15px 25px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  color: rgba(222, 247, 255, 0.86);
  transition: all 0.2s ease;
}

.wheel-item.active .wheel-item-content {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.2));
  border: 1px solid rgba(120, 220, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
  backdrop-filter: blur(8px);
}

.wheel-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(32, 211, 255, 0.3));
}

.wheel-item.active .wheel-icon {
  opacity: 1;
  transform: scale(1.1);
}

.wheel-label {
  display: inline;
}

/* Sección seleccionada */
.wheel-selected {
  text-align: center;
  padding: 20px;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(145, 235, 255, 0.1);
}

.wheel-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.wheel-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Botón CTA */
.wheel-cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  margin-top: 10px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  background: linear-gradient(90deg, #00cfff, #7c3aed);
  box-shadow: 0 10px 28px rgba(0, 120, 255, 0.3);
  transition: transform 0.2s ease;
}

.wheel-cta:hover {
  transform: translateY(-2px);
}

/* Hint */
.wheel-hint {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Ocultar botón hamburguesa cuando el menú está abierto */
.wheel-menu-panel.active ~ .menu-toggle-3d,
.wheel-overlay.active ~ .menu-toggle-3d,
body.menu-open .menu-toggle-3d {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .wheel-menu-title {
    font-size: 1rem;
  }
  
  .wheel-close {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.8rem !important;
  }
  
  .wheel-item-content {
    padding: 12px 20px;
    font-size: 1rem;
    gap: 12px;
  }
  
  .wheel-icon {
    width: 32px;
    height: 32px;
  }
  
  .wheel-title {
    font-size: 1rem;
  }
  
  .wheel-desc {
    font-size: 0.85rem;
  }
  
  .wheel-arrow {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* FIX FINAL MENU 3D - OCULTO POR DEFECTO */
.wheel-overlay {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.wheel-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.wheel-menu-panel {
  position: fixed !important;
  top: 50% !important;
  right: 24px !important;
  left: auto !important;
  bottom: auto !important;
  width: min(92vw, 380px) !important;
  height: auto !important;
  max-height: calc(100dvh - 32px) !important;
  transform: translateY(-50%) translateX(130%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 10010 !important;
  transition: transform .35s ease, opacity .25s ease, visibility .25s ease !important;
}

.wheel-menu-panel.active {
  transform: translateY(-50%) translateX(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (max-width: 768px) {
  .wheel-menu-panel {
    right: 10px !important;
    width: min(94vw, 360px) !important;
  }
}