* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -ms-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -ms-content-zooming: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  background-color: #000;
  color: #fff;
}

a, a:hover, a:active, a:visited {
  text-decoration: none;
  color: inherit;
}

#pano {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#titleBar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0; /* Expandir a todo el ancho */
  height: 40px;
  text-align: center;
}

.mobile #titleBar {
  height: 50px;
}

/* If there is a fullscreen button the title bar must make space for it */
body.fullscreen-enabled #titleBar {
  right: 40px; /* Solo espacio para fullscreen button */
}

body.fullscreen-enabled.mobile #titleBar {
  right: 50px;
}

/* Ya no necesitamos espacio para sceneListToggle */
body.multiple-scenes #titleBar {
  left: 0; /* Comienza desde el borde izquierdo */
}

body.multiple-scenes.mobile #titleBar {
  left: 0;
}

#titleBar .sceneName {
  width: 100%;
  height: 100%;
  line-height: 30px;
  padding: 5px;
  padding-left: 50px; /* Espacio para el botón de tour (si existe) */
  background-color: rgb(58,68,84);
  background-color: rgba(58,68,84,0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.mobile #titleBar .sceneName {
  line-height: 40px;
  padding-left: 60px; /* Espacio mayor en mobile */
}

#fullscreenToggle {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgb(103,115,131);
  background-color: rgba(103,115,131,0.8);
}

.mobile #fullscreenToggle {
  width: 50px;
  height: 50px;
}

body.fullscreen-enabled #fullscreenToggle {
  display: block;
}

#fullscreenToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

.mobile #fullscreenToggle .icon {
  top: 10px;
  right: 10px;
}

#fullscreenToggle .icon.on {
  display: none;
}

#fullscreenToggle .icon.off {
  display: block;
}

#fullscreenToggle.enabled .icon.on {
  display: block;
}

#fullscreenToggle.enabled .icon.off {
  display: none;
}

#autorotateToggle {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgb(103,115,131);
  background-color: rgba(103,115,131,0.8);
}

.mobile #autorotateToggle {
  width: 50px;
  height: 50px;
}

/* If there is a fullscreen button, autorotate must placed a bit to the left */
body.fullscreen-enabled #autorotateToggle {
  right: 40px;
}

body.fullscreen-enabled.mobile #autorotateToggle {
  right: 50px;
}

#autorotateToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

.mobile #autorotateToggle .icon {
  top: 10px;
  right: 10px;
}

#autorotateToggle .icon.on {
  display: none;
}

#autorotateToggle .icon.off {
  display: block;
}

#autorotateToggle.enabled .icon.on {
  display: block;
}

#autorotateToggle.enabled .icon.off {
  display: none;
}

#sceneListToggle {
  display: none; /* Ocultar botón de lista de escenas */
}

.mobile #sceneListToggle {
  width: 50px;
  height: 50px;
}

#sceneListToggle .text {
  position: absolute;
  top: 5px;
  left: 15px;
  width: 100%;
  line-height: 30px;
}

#sceneListToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

.mobile #sceneListToggle .icon {
  top: 10px;
  right: 10px;
}

#sceneListToggle .icon.on {
  display: none;
}

#sceneListToggle .icon.off {
  display: block;
}

#sceneListToggle.enabled .icon.on {
  display: block;
}

#sceneListToggle.enabled .icon.off {
  display: none;
}

/* Botón de cambio de tour */
#tourSelectorButton {
  position: absolute;
  top: 0;
  left: 0; /* Ahora en la esquina izquierda */
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: rgb(213, 0, 128);
  background: linear-gradient(135deg, #d50080 0%, #650755 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
  z-index: 1001; /* Por encima del titleBar */
  border-radius: 0 0 8px 0; /* Esquina redondeada inferior derecha */
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

#tourSelectorButton.hidden {
  display: none !important;
}

#tourSelectorButton:hover {
  background: linear-gradient(135deg, #f9a720, #e66419);
  transform: scale(1.05);
  box-shadow: 2px 2px 12px rgba(249, 167, 32, 0.5);
}

.mobile #tourSelectorButton {
  width: 50px;
  height: 50px;
}

/* Indicador de tour */
#tourIndicator {
  position: fixed;
  top: 10px;
  left: 50px; /* Ajustado a la nueva posición del botón */
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 13px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mobile #tourIndicator {
  top: 55px;
  left: 10px;
  font-size: 11px;
  padding: 6px 12px;
}

/* Menú flotante de tours */
.tours-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  transition: transform 0.3s ease;
  transform: translateY(calc(100% - 20px)); /* Collapsed por defecto */
}

.tours-menu.expanded {
  transform: translateY(0);
}

.tours-menu.hidden {
  display: none; /* Ocultar completamente si no hay tours */
}

.tours-menu-toggle {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 50px;
  background: linear-gradient(135deg, #d50080 0%, #650755 100%);
  border: none;
  border-radius: 12px 12px 0 0;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 -2px 10px rgba(217, 70, 239, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tours-menu-toggle:hover {
  background: linear-gradient(135deg, #f9a720 0%, #e66419 100%);
  box-shadow: 0 -4px 15px rgba(249, 167, 32, 0.4);
}

.tours-menu-toggle i {
  transition: transform 0.3s ease;
}

.tours-menu.expanded .tours-menu-toggle i {
  transform: rotate(180deg);
}

.tours-menu-container {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.tours-menu-scroll {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 5px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.tours-menu-scroll::-webkit-scrollbar {
  height: 8px;
}

.tours-menu-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.tours-menu-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #d50080 0%, #650755 100%);
  border-radius: 4px;
}

.tours-menu-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #f9a720 0%, #e66419 100%);
}

/* Footer compacto dentro del tours-menu */
.tours-menu-footer {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(213, 0, 128, 0.3);
}

.footer-compact-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

.footer-compact-col {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-compact-col strong {
  color: white;
  font-weight: 600;
}

.footer-compact-col i {
  color: #d50080;
  font-size: 12px;
}

.footer-compact-col a {
  color: #f9a720;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-compact-col a:hover {
  color: #e66419;
  text-decoration: underline;
}

.footer-compact-col .separator {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 3px;
}

/* Responsive para footer compacto */
@media (max-width: 1024px) {
  .footer-compact-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .footer-compact-col {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .tours-menu-footer {
    margin-top: 10px;
    padding-top: 8px;
  }
  
  .footer-compact-content {
    font-size: 10px;
  }
  
  .footer-compact-col i {
    font-size: 10px;
  }
}

.tour-card-mini {
  flex: 0 0 280px;
  background: linear-gradient(135deg, rgba(213, 0, 128, 0.15) 0%, rgba(101, 7, 85, 0.15) 100%);
  border: 2px solid rgba(213, 0, 128, 0.3);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tour-card-mini:hover {
  border-color: #d50080;
  background: linear-gradient(135deg, rgba(213, 0, 128, 0.25) 0%, rgba(101, 7, 85, 0.25) 100%);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(213, 0, 128, 0.4);
}

.tour-card-mini.active {
  border-color: #d50080;
  background: linear-gradient(135deg, rgba(213, 0, 128, 0.3) 0%, rgba(101, 7, 85, 0.3) 100%);
  box-shadow: 0 0 20px rgba(213, 0, 128, 0.5);
}

.tour-card-mini-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tour-card-mini-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #d50080 0%, #650755 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.tour-card-mini-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: white;
}

.tour-card-mini-scenes {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 5px;
}

.tour-card-mini-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .tour-card-mini {
    flex: 0 0 240px;
    padding: 12px;
  }
  
  .tours-menu-container {
    padding: 15px;
  }
  
  .tours-menu-toggle {
    width: 50px;
    height: 45px;
    top: -45px;
  }
}

#sceneList {
  display: none; /* Ocultar lista de escenas, ya no es necesaria */
}

.mobile #sceneList {
  padding-top: 50px;
}

#sceneList .scenes {
  width: 100%;
  background-color: rgb(58,68,84);
  background-color: rgba(58,68,84,0.8);
}

.mobile #sceneList {
  width: 100%;
  height: 100%;
  left: -100%;
}

.mobile #sceneList.enabled {
  margin-left: 100%;
}

.mobile #sceneList .scenes {
  height: 100%;
}

#sceneList.enabled {
  margin-left: 220px;
}

#sceneList .scene {
  display: block;
  width: 100%;
  height: 30px;
}

.mobile #sceneList .scene {
  height: 40px;
}

#sceneList .scene .text {
  width: 100%;
  height: 100%;
  padding: 0 15px;
  line-height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile #sceneList .scene .text {
  line-height: 40px;
}

.no-touch #sceneList .scene:hover {
  background-color: rgb(103,115,131);
  background-color: rgba(103,115,131,0.8);
}

#sceneList .scene.current {
  background-color: rgb(103,115,131);
  background-color: rgba(103,115,131,0.8);
}

/* Hide scene list when only a single scene exists */
body.single-scene #sceneList, body.single-scene #sceneListToggle {
  display: none;
}

/* Link hotspot */

.link-hotspot {
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  opacity: 0.9;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.no-touch .link-hotspot:hover {
  opacity: 1;
}

.mobile .link-hotspot {
  width: 70px;
  height: 70px;
}

.link-hotspot-icon {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.link-hotspot-tooltip {
  position: absolute;
  left: 100%;
  top: 14px; /* ( 60 - (16 + 2*8) ) / 2 */

  margin-left: 3px;

  font-size: 16px;

  max-width: 300px;

  padding: 8px 10px;

  border-radius: 5px;

  background-color: rgb(58,68,84);
  background-color: rgba(58,68,84,0.8);

  color: #fff;

  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;

  cursor: pointer;

  opacity: 0;

  -ms-transform: translateX(-8px);
  -webkit-transform: translateX(-8px);
  transform: translateX(-8px);

  -webkit-transition: -ms-transform 0.3s,
                      -webkit-transform 0.3s,
                      transform 0.3s,
                      opacity 0.3s;
  transition: -ms-transform 0.3s,
              -webkit-transform 0.3s,
              transform 0.3s,
              opacity 0.3s;
}

.mobile .link-hotspot {
  top: 19px; /* ( 70 - (16 + 2*8) ) / 2 */
}

.no-touch .link-hotspot:hover .link-hotspot-tooltip {
  opacity: 1;
  -ms-transform: translateX(0);
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

/* Prevent tooltip from triggering */
.link-hotspot-tooltip {
  pointer-events: none;
}
.no-touch .link-hotspot:hover .link-hotspot-tooltip {
  pointer-events: all;
}

/* Fallback mode without pointer-events (IE8-10) */
.tooltip-fallback .link-hotspot-tooltip {
  display: none;
}
.no-touch .tooltip-fallback .link-hotspot:hover .link-hotspot-tooltip {
  display: block;
}

/* =========================================
   INFO HOTSPOT - Bootstrap Card Style
   ========================================= */

.info-hotspot {
  width: 50px;
  height: 50px;
  margin-left: -25px;
  margin-top: -25px;
  cursor: pointer;
  z-index: 100;
  position: relative;
}

/* Ícono del hotspot */
.info-hotspot-icon {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d50080 0%, #650755 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(213, 0, 128, 0.4);
  transition: all 0.3s ease;
}

.info-hotspot:hover .info-hotspot-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(213, 0, 128, 0.6);
}

/* Card estilo Bootstrap */
.info-hotspot-card {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  max-width: 90vw;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-20px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
  z-index: 1000;
}

.info-hotspot.visible .info-hotspot-card {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: all;
}

/* Header de la card */
.info-card-header {
  background: linear-gradient(135deg, #d50080 0%, #650755 100%);
  color: white;
  padding: 15px 20px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  flex: 1;
  padding-right: 10px;
}

.info-card-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  flex-shrink: 0;
}

.info-card-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
  box-shadow: 0 2px 8px rgba(217, 70, 239, 0.3);
}

/* Body de la card */
.info-card-body {
  padding: 0;
  max-height: 400px;
  overflow-y: auto;
}

/* Imagen opcional */
.info-card-image {
  width: 100%;
  overflow: hidden;
}

.info-card-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 200px;
}

/* Texto */
.info-card-text {
  padding: 20px;
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
  user-select: text;
  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
}

.info-card-text p {
  margin: 0 0 10px 0;
}

.info-card-text p:last-child {
  margin-bottom: 0;
}

/* Scrollbar personalizado */
.info-card-body::-webkit-scrollbar {
  width: 6px;
}

.info-card-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.info-card-body::-webkit-scrollbar-thumb {
  background: #d50080;
  border-radius: 3px;
}

.info-card-body::-webkit-scrollbar-thumb:hover {
  background: #650755;
}

/* Responsive para info-hotspot */
@media (max-width: 768px) {
  .info-hotspot {
    width: 45px !important;
    height: 45px !important;
    margin-left: -22.5px !important;
    margin-top: -22.5px !important;
  }
  
  .info-hotspot-icon {
    font-size: 20px !important;
  }
  
  .info-hotspot-card {
    width: 280px;
    top: 55px;
  }
  
  .info-card-header {
    padding: 12px 15px;
  }
  
  .info-card-title {
    font-size: 16px;
  }
  
  .info-card-close {
    width: 28px;
    height: 28px;
    font-size: 20px;
  }
  
  .info-card-text {
    padding: 15px;
    font-size: 13px;
  }
  
  .info-card-image img {
    max-height: 150px;
  }
}

@media (max-width: 480px) {
  .info-hotspot {
    width: 40px !important;
    height: 40px !important;
    margin-left: -20px !important;
    margin-top: -20px !important;
  }
  
  .info-hotspot-icon {
    font-size: 18px !important;
  }
  
  .info-hotspot-card {
    width: 260px;
  }
  
  .info-card-body {
    max-height: 300px;
  }
}

/* View control buttons */

.viewControlButton {
  display: none;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgb(103,115,131);
  background-color: rgba(103,115,131,0.8);
}

body.view-control-buttons .viewControlButton {
  display: block;
}

/* Hide controls when width is too small */
@media (max-width: 600px) {
  body.view-control-buttons .viewControlButton {
    display: none;
  }
}

.viewControlButton .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

/* Center is at margin-left: -20px */
.viewControlButton-1 {
  margin-left: -145px;
}
.viewControlButton-2 {
  margin-left: -95px;
}
.viewControlButton-3 {
  margin-left: -45px;
}
.viewControlButton-4 {
  margin-left: 5px;
}
.viewControlButton-5 {
  margin-left: 55px;
}
.viewControlButton-6 {
  margin-left: 105px;
}

/* =========================================
   CUSTOM HOTSPOTS - YouTube & Social Hub
   ========================================= */

/* YouTube Hotspot */
.youtube-hotspot {
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  cursor: pointer;
  z-index: 100;
}

.youtube-hotspot-icon {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f9a720, #e66419);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(249, 167, 32, 0.4);
  transition: all 0.3s ease;
}

.youtube-hotspot:hover .youtube-hotspot-icon {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

.mobile .youtube-hotspot {
  width: 70px;
  height: 70px;
  margin-left: -35px;
  margin-top: -35px;
}

/* Modal de YouTube */
.youtube-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.youtube-modal.visible {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.youtube-modal-wrapper {
  width: 90%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: auto;
}

.youtube-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.youtube-modal .modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 300;
}

.youtube-modal .modal-close {
  background: #f9a720;
  border: none;
  color: white;
  font-size: 32px;
  line-height: 1;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtube-modal .modal-close:hover {
  background: #e66419;
  transform: rotate(90deg);
}

.youtube-modal .modal-video-container {
  width: 100%;
  background: #000;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.youtube-modal .youtube-iframe {
  width: 100%;
  height: 500px;
  border-radius: 5px;
}

.youtube-modal .modal-description {
  color: #ccc;
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 768px) {
  .youtube-modal {
    padding: 10px;
  }
  
  .youtube-modal-wrapper {
    width: 95%;
    gap: 10px;
  }
  
  .youtube-modal .modal-video-container {
    padding: 10px;
    border-radius: 8px;
  }
  
  .youtube-modal .youtube-iframe {
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 200px;
  }
  
  .youtube-modal .modal-header h2 {
    font-size: 16px;
  }
  
  .youtube-modal .modal-close {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }
  
  .youtube-modal .modal-description {
    font-size: 13px;
    margin-top: 10px;
  }
}

/* Para pantallas muy pequeñas */
@media (max-width: 400px) {
  .youtube-modal {
    padding: 5px;
  }
  
  .youtube-modal-wrapper {
    width: 98%;
    gap: 8px;
  }
  
  .youtube-modal .modal-video-container {
    padding: 8px;
    border-radius: 6px;
  }
  
  .youtube-modal .modal-header h2 {
    font-size: 14px;
  }
  
  .youtube-modal .modal-close {
    width: 35px;
    height: 35px;
    font-size: 24px;
  }
}

/* =========================================
   YOUTUBE TV HOTSPOT - Televisor embebido
   ========================================= */

.youtube-tv-hotspot {
  /* Tamaño reducido para simular que está al fondo de la pared */
  width: 200px !important;
  height: 125px !important;
  margin-left: -100px !important;
  margin-top: -62.5px !important;
  z-index: 100;
}

.tv-container {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 1000px;
  transform-origin: center center;
  /* Animación de respiración sutil */
  animation: tv-breathe 4s ease-in-out infinite;
  /* Transición suave al cambiar estado */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Al hacer hover sobre el TV - crece y se ilumina */
.youtube-tv-hotspot:hover .tv-container {
  transform: scale(1) !important;
  filter: brightness(1) contrast(1) !important;
  animation: none !important;
}

.tv-frame {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 
    0 5px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 3px rgba(255, 255, 255, 0.1),
    inset 0 -1px 3px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: all 0.3s ease;
}

/* Efecto adicional en el marco del TV al hacer hover */
.youtube-tv-hotspot:hover .tv-frame {
  box-shadow: 
    0 8px 35px rgba(0, 0, 0, 0.65),
    0 0 20px rgba(100, 150, 255, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5);
  transform: scale(1.05);
}

.tv-screen {
  width: 100%;
  height: calc(100% - 30px);
  background: #000;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

/* Overlay con botón play */
.youtube-tv-hotspot {
  cursor: pointer !important;
}

.tv-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.tv-play-overlay:hover .tv-play-button {
  transform: scale(1.2);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
}

.tv-title {
  color: white;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  padding: 0 10px;
}

.tv-play-button {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #ff0000, #cc0000);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(255, 0, 0, 0.5);
  animation: pulse-play 2s infinite;
}

.tv-play-button i {
  margin-left: 4px;
}

@keyframes pulse-play {
  0%, 100% {
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
  }
  50% {
    box-shadow: 0 5px 30px rgba(255, 0, 0, 0.8);
  }
}

/* Animación sutil de "respiración" para el TV */
@keyframes tv-breathe {
  0%, 100% {
    transform: scale(0.8);
    filter: brightness(0.92) contrast(1.08);
  }
  50% {
    transform: scale(0.82);
    filter: brightness(0.94) contrast(1.06);
  }
}

/* Aplicar animación de respiración al contenedor */
.tv-container {
  animation: tv-breathe 4s ease-in-out infinite;
}

/* Pausar animación al hacer hover */
.youtube-tv-hotspot:hover .tv-container {
  animation: none !important;
}

/* Iframe de YouTube dentro del TV */
.tv-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

/* Controles del TV */
.tv-controls {
  position: absolute;
  bottom: 5px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* LED indicador */
.tv-led {
  width: 5px;
  height: 5px;
  background: #444;
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.tv-frame.tv-on .tv-led {
  background: #00ff00;
  box-shadow: 0 0 6px rgba(0, 255, 0, 0.8);
  animation: blink-led 2s infinite;
}

@keyframes blink-led {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Botón de stop */
.tv-stop-button {
  width: 18px;
  height: 18px;
  background: rgba(255, 0, 0, 0.8);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 9px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tv-stop-button:hover {
  background: rgba(255, 0, 0, 1);
  transform: scale(1.15);
}

/* Efecto de encendido del TV */
.tv-frame.tv-on {
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(100, 150, 255, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.15);
}

/* ===== TAMAÑOS PREDEFINIDOS DE TV ===== */

/* TV pequeño - muy al fondo */
.youtube-tv-hotspot.tv-small {
  width: 150px;
  height: 94px;
  margin-left: -75px;
  margin-top: -47px;
  transform: scale(0.7);
}

/* TV mediano - al fondo de la pared (default: 200x125 sin clase adicional) */

/* TV grande - más cerca */
.youtube-tv-hotspot.tv-large {
  width: 300px;
  height: 188px;
  margin-left: -150px;
  margin-top: -94px;
  transform: scale(0.9);
}

/* TV extra grande - muy cerca */
.youtube-tv-hotspot.tv-xlarge {
  width: 400px;
  height: 250px;
  margin-left: -200px;
  margin-top: -125px;
  transform: scale(1);
}

/* Responsive para mobile */
.mobile .youtube-tv-hotspot {
  width: 180px !important;
  height: 113px !important;
  margin-left: -90px !important;
  margin-top: -56.5px !important;
}

.mobile .tv-container {
  transform: scale(0.85);
}

.mobile .tv-title {
  font-size: 10px;
  margin-bottom: 8px;
}

.mobile .tv-play-button {
  width: 38px;
  height: 38px;
  font-size: 16px;
}

/* Efecto hover más pronunciado en mobile (toque) */
.mobile .youtube-tv-hotspot:active .tv-container {
  transform: scale(1.05) !important;
}

.mobile .youtube-tv-hotspot:active .tv-frame {
  transform: scale(1.08);
}

/* =========================================
   PDF VIEWER HOTSPOT
   ========================================= */

.pdf-hotspot {
  width: 30px;
  height: 40px;
  margin-left: -30px;
  margin-top: -40px;
  cursor: pointer;
  z-index: 100;
  border-radius: 8px;
  overflow: visible;
  position: relative;
  /* Marco externo para contraste */
  padding: 3px;
  background: linear-gradient(135deg, #d50080 0%, #650755 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 4px 20px rgba(213, 0, 128, 0.5);
}

/* Imagen de portada del PDF */
.pdf-hotspot::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: inherit;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pdf-hotspot.has-cover::before {
  background-image: var(--cover-image);
}

/* Animación de hover: agranda el hotspot completo */
.pdf-hotspot:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 1), 0 8px 35px rgba(213, 0, 128, 0.8);
}

.pdf-hotspot:hover::before {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Hotspot sin portada (fallback con ícono) */
.pdf-hotspot:not(.has-cover) {
  width: 50px;
  height: 50px;
  margin-left: -25px;
  margin-top: -25px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.pdf-hotspot:not(.has-cover)::before {
  display: none;
}

.pdf-icon {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d50080 0%, #650755 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(213, 0, 128, 0.4);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

/* Ocultar el ícono cuando hay portada */
.pdf-hotspot.has-cover .pdf-icon {
  display: none;
}

.pdf-hotspot:not(.has-cover):hover .pdf-icon {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.6);
}

.pdf-icon i {
  font-size: 28px;
  color: white;
  z-index: 1;
  transition: transform 0.3s ease;
}

.pdf-hotspot:not(.has-cover):hover .pdf-icon i {
  transform: scale(1.2);
}

.pdf-label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(147, 51, 234, 0.95);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pdf-hotspot:hover .pdf-label {
  opacity: 1;
  bottom: -30px;
}

/* Modal de Preview al hacer hover */
.pdf-preview-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 320px;
  max-width: 90vw;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.pdf-hotspot:hover .pdf-preview-modal {
  opacity: 1;
  visibility: visible;
  transform: translate(-130%, -50%) scale(1);
}

.pdf-preview-header {
  background: linear-gradient(135deg, #d50080 0%, #650755 100%);
  padding: 15px 20px;
  color: white;
}

.pdf-preview-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-preview-title i {
  font-size: 20px;
}

.pdf-preview-image {
  width: 100%;
  height: 400px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f5f5f5;
  position: relative;
}

.pdf-preview-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.pdf-preview-footer {
  padding: 15px 20px;
  background: #f8f9fa;
  text-align: center;
  color: #666;
  font-size: 13px;
}

.pdf-preview-footer i {
  color: #d50080;
  margin-right: 5px;
}

/* Sin portada - mostrar ícono grande */
.pdf-hotspot:not(.has-cover) .pdf-preview-image {
  background: linear-gradient(135deg, #d50080 0%, #650755 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.3);
}

/* Responsive para preview modal */
@media (max-width: 768px) {
  .pdf-preview-modal {
    width: 280px;
  }
  
  .pdf-preview-image {
    height: 350px;
  }
  
  .pdf-preview-header {
    padding: 12px 15px;
  }
  
  .pdf-preview-title {
    font-size: 14px;
  }
  
  .pdf-preview-footer {
    padding: 12px 15px;
    font-size: 12px;
  }
}

/* Modal PDF */
.pdf-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.pdf-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-modal-content {
  width: 90%;
  height: 90%;
  max-width: 1200px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.pdf-modal-header {
  background: linear-gradient(135deg, #d50080 0%, #650755 100%);
  color: white;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pdf-modal-title {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdf-modal-title i {
  font-size: 24px;
}

.pdf-modal-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}

.pdf-modal-close:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.pdf-modal-body {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #525252;
}

.pdf-viewer-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #525252;
}

.pdf-loading-text {
  color: #6b7280;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .pdf-modal-content {
    width: 95%;
    height: 95%;
    border-radius: 8px;
  }
  
  .pdf-modal-header {
    padding: 15px 20px;
  }
  
  .pdf-modal-title {
    font-size: 16px;
  }
  
  .pdf-modal-title i {
    font-size: 20px;
  }
  
  .pdf-actions {
    flex-direction: column;
    padding: 10px;
    gap: 8px;
  }
  
  .pdf-action-btn {
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* =========================================
   SOCIAL HUB HOTSPOT
   ========================================= */

.social-hub-hotspot {
  width: 80px;
  height: 80px;
  margin-left: -40px;
  margin-top: -40px;
  cursor: pointer;
  z-index: 100;
  position: relative;
}

.social-hub-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f472b6 0%, #db2777 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 4px 20px rgba(244, 114, 182, 0.5);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  z-index: 2;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.social-hub-hotspot:hover .social-hub-avatar,
.social-hub-hotspot.active .social-hub-avatar {
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 8px 30px rgba(244, 114, 182, 0.8);
}

/* Contenedor de redes sociales */
.social-hub-networks {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.social-hub-hotspot.active .social-hub-networks,
.social-hub-hotspot.hover .social-hub-networks {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Enlaces de redes sociales */
.social-hub-link {
  position: absolute;
  width: 45px;
  height: 45px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

/* Posiciones circulares alrededor del avatar */
.social-hub-link[data-index="0"] {
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%) scale(0);
}

.social-hub-link[data-index="1"] {
  top: 15%;
  right: 0;
  transform: translate(50%, -50%) scale(0);
}

.social-hub-link[data-index="2"] {
  right: 0;
  top: 50%;
  transform: translate(100%, -50%) scale(0);
}

.social-hub-link[data-index="3"] {
  bottom: 15%;
  right: 0;
  transform: translate(50%, 50%) scale(0);
}

.social-hub-link[data-index="4"] {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%) scale(0);
}

.social-hub-link[data-index="5"] {
  bottom: 15%;
  left: 0;
  transform: translate(-50%, 50%) scale(0);
}

.social-hub-link[data-index="6"] {
  left: 0;
  top: 50%;
  transform: translate(-100%, -50%) scale(0);
}

.social-hub-link[data-index="7"] {
  top: 15%;
  left: 0;
  transform: translate(-50%, -50%) scale(0);
}

/* Animación de aparición */
.social-hub-hotspot.active .social-hub-link[data-index="0"],
.social-hub-hotspot.hover .social-hub-link[data-index="0"] {
  transform: translate(-50%, -100%) scale(1);
  transition-delay: 0.05s;
}

.social-hub-hotspot.active .social-hub-link[data-index="1"],
.social-hub-hotspot.hover .social-hub-link[data-index="1"] {
  transform: translate(50%, -50%) scale(1);
  transition-delay: 0.1s;
}

.social-hub-hotspot.active .social-hub-link[data-index="2"],
.social-hub-hotspot.hover .social-hub-link[data-index="2"] {
  transform: translate(100%, -50%) scale(1);
  transition-delay: 0.15s;
}

.social-hub-hotspot.active .social-hub-link[data-index="3"],
.social-hub-hotspot.hover .social-hub-link[data-index="3"] {
  transform: translate(50%, 50%) scale(1);
  transition-delay: 0.2s;
}

.social-hub-hotspot.active .social-hub-link[data-index="4"],
.social-hub-hotspot.hover .social-hub-link[data-index="4"] {
  transform: translate(-50%, 100%) scale(1);
  transition-delay: 0.25s;
}

.social-hub-hotspot.active .social-hub-link[data-index="5"],
.social-hub-hotspot.hover .social-hub-link[data-index="5"] {
  transform: translate(-50%, 50%) scale(1);
  transition-delay: 0.3s;
}

.social-hub-hotspot.active .social-hub-link[data-index="6"],
.social-hub-hotspot.hover .social-hub-link[data-index="6"] {
  transform: translate(-100%, -50%) scale(1);
  transition-delay: 0.35s;
}

.social-hub-hotspot.active .social-hub-link[data-index="7"],
.social-hub-hotspot.hover .social-hub-link[data-index="7"] {
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.4s;
}

/* Íconos de redes sociales */
.social-hub-icon {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 2px solid #f0f0f0;
}

/* Font Awesome icons dentro del círculo */
.social-hub-icon i {
  font-size: 20px;
  line-height: 1;
}

.social-hub-link:hover .social-hub-icon {
  transform: scale(1.2) rotate(15deg);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Colores específicos por red social */
.social-hub-link[data-network="facebook"] .social-hub-icon {
  background: linear-gradient(135deg, #3b5998, #2d4373);
  color: white;
}

.social-hub-link[data-network="twitter"] .social-hub-icon,
.social-hub-link[data-network="x"] .social-hub-icon {
  background: linear-gradient(135deg, #1da1f2, #0c85d0);
  color: white;
}

.social-hub-link[data-network="instagram"] .social-hub-icon {
  background: linear-gradient(135deg, #e1306c, #c13584, #833ab4);
  color: white;
}

.social-hub-link[data-network="linkedin"] .social-hub-icon {
  background: linear-gradient(135deg, #0077b5, #005582);
  color: white;
}

.social-hub-link[data-network="youtube"] .social-hub-icon {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
}

.social-hub-link[data-network="tiktok"] .social-hub-icon {
  background: linear-gradient(135deg, #000000, #fe2c55);
  color: white;
}

.social-hub-link[data-network="whatsapp"] .social-hub-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
}

.social-hub-link[data-network="telegram"] .social-hub-icon {
  background: linear-gradient(135deg, #0088cc, #006699);
  color: white;
}

.social-hub-link[data-network="github"] .social-hub-icon {
  background: linear-gradient(135deg, #333, #181717);
  color: white;
}

.social-hub-link[data-network="email"] .social-hub-icon {
  background: linear-gradient(135deg, #ea4335, #c5221f);
  color: white;
}

.social-hub-link[data-network="web"] .social-hub-icon {
  background: linear-gradient(135deg, #4285f4, #1a73e8);
  color: white;
}

.social-hub-link[data-network="phone"] .social-hub-icon {
  background: linear-gradient(135deg, #3472a8, #0f8abe);
  color: white;
}

/* Tooltip del social hub */
.social-hub-tooltip {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.social-hub-hotspot:hover .social-hub-tooltip {
  opacity: 1;
}

/* Responsive para mobile - mantener tamaño consistente en vertical y horizontal */
.mobile .social-hub-hotspot {
  width: 60px !important;
  height: 60px !important;
  margin-left: -30px !important;
  margin-top: -30px !important;
}

.mobile .social-hub-avatar {
  width: 60px !important;
  height: 60px !important;
  font-size: 30px !important;
}

.mobile .social-hub-networks {
  width: 180px !important;
  height: 180px !important;
}

.mobile .social-hub-link {
  width: 40px !important;
  height: 40px !important;
}

.mobile .social-hub-icon {
  font-size: 16px !important;
}

.mobile .social-hub-icon i {
  font-size: 16px !important;
}

/* Animación de pulso para llamar la atención */
@keyframes social-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
  }
  50% {
    box-shadow: 0 4px 30px rgba(102, 126, 234, 0.8);
  }
}

.social-hub-avatar {
  animation: social-pulse 2s infinite;
}

/* =========================================
   RESPONSIVE - HOTSPOTS EN MOBILE
   Opción 1: Reducción Moderada (-25%)
   ========================================= */

/* Tablets y móviles medianos (hasta 768px) */
@media (max-width: 768px) {
  
  /* YouTube Hotspot */
  .youtube-hotspot {
    width: 45px !important;
    height: 45px !important;
    margin-left: -22.5px !important;
    margin-top: -22.5px !important;
  }
  
  .youtube-hotspot-icon {
    font-size: 18px !important;
  }
  
  /* PDF Hotspot con portada */
  .pdf-hotspot.has-cover {
    width: 60px !important;
    height: 82px !important;
    margin-left: -30px !important;
    margin-top: -41px !important;
  }
  
  .pdf-hotspot.has-cover .pdf-icon {
    width: 24px !important;
    height: 24px !important;
    bottom: 3px !important;
    right: 3px !important;
  }
  
  .pdf-hotspot.has-cover .pdf-icon i {
    font-size: 12px !important;
  }
  
  /* PDF Hotspot sin portada */
  .pdf-hotspot:not(.has-cover) {
    width: 45px !important;
    height: 45px !important;
    margin-left: -22.5px !important;
    margin-top: -22.5px !important;
  }
  
  .pdf-hotspot:not(.has-cover) .pdf-icon i {
    font-size: 24px !important;
  }
  
  .pdf-label {
    font-size: 10px;
    padding: 3px 8px;
    bottom: -20px;
  }
  
  .pdf-hotspot:hover .pdf-label {
    bottom: -22px;
  }
  
  /* Social Hub Hotspot */
  .social-hub-hotspot {
    width: 60px !important;
    height: 60px !important;
    margin-left: -30px !important;
    margin-top: -30px !important;
  }
  
  .social-hub-avatar {
    width: 60px !important;
    height: 60px !important;
    font-size: 30px !important;
  }
  
  .social-hub-networks {
    width: 180px !important;
    height: 180px !important;
  }
  
  .social-hub-link {
    width: 40px !important;
    height: 40px !important;
  }
  
  .social-hub-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }
  
  .social-hub-icon i {
    font-size: 16px !important;
  }
  
  .social-hub-tooltip {
    font-size: 11px;
    padding: 4px 8px;
    bottom: -22px;
  }
}

/* Smartphones pequeños (hasta 480px) */
@media (max-width: 480px) {
  
  /* YouTube Hotspot */
  .youtube-hotspot {
    width: 40px !important;
    height: 40px !important;
    margin-left: -20px !important;
    margin-top: -20px !important;
  }
  
  .youtube-hotspot-icon {
    font-size: 16px !important;
  }
  
  /* PDF Hotspot con portada */
  .pdf-hotspot.has-cover {
    width: 50px !important;
    height: 69px !important;
    margin-left: -25px !important;
    margin-top: -34.5px !important;
  }
  
  .pdf-hotspot.has-cover .pdf-icon {
    width: 20px !important;
    height: 20px !important;
    bottom: 2px !important;
    right: 2px !important;
  }
  
  .pdf-hotspot.has-cover .pdf-icon i {
    font-size: 10px !important;
  }
  
  /* PDF Hotspot sin portada */
  .pdf-hotspot:not(.has-cover) {
    width: 40px !important;
    height: 40px !important;
    margin-left: -20px !important;
    margin-top: -20px !important;
  }
  
  .pdf-hotspot:not(.has-cover) .pdf-icon i {
    font-size: 20px !important;
  }
  
  .pdf-label {
    font-size: 9px;
    padding: 2px 6px;
  }
  
  /* Social Hub Hotspot */
  .social-hub-hotspot {
    width: 50px !important;
    height: 50px !important;
    margin-left: -25px !important;
    margin-top: -25px !important;
  }
  
  .social-hub-avatar {
    width: 50px !important;
    height: 50px !important;
    font-size: 25px !important;
  }
  
  .social-hub-networks {
    width: 150px !important;
    height: 150px !important;
  }
  
  .social-hub-link {
    width: 35px !important;
    height: 35px !important;
  }
  
  .social-hub-icon {
    width: 35px !important;
    height: 35px !important;
    font-size: 14px !important;
  }
  
  .social-hub-icon i {
    font-size: 14px !important;
  }
  
  .social-hub-tooltip {
    font-size: 10px;
    padding: 3px 6px;
  }
}

/* ========================================
   ESTILOS DE ACCESIBILIDAD
   ======================================== */

/* Skip link - Aparece al recibir foco con teclado */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #d50080;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  z-index: 10000;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #f9a720;
  outline-offset: 2px;
}

/* Foco visible para navegación por teclado */
button:focus-visible,
a:focus-visible,
.scene:focus-visible {
  outline: 3px solid #f9a720;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(249, 167, 32, 0.3);
}

/* Foco visible específico para botones de control */
#autorotateToggle:focus-visible,
#fullscreenToggle:focus-visible,
#sceneListToggle:focus-visible,
#tourSelectorButton:focus-visible,
.viewControlButton:focus-visible {
  outline: 3px solid #f9a720;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(249, 167, 32, 0.4);
}

/* Mejorar contraste de la lista de escenas en hover */
.scene:hover {
  background-color: rgba(213, 0, 128, 0.3);
}

.scene.current {
  font-weight: 600;
}

/* Mejorar contraste del menú de tours */
.tours-menu-toggle:focus-visible {
  outline: 3px solid #f9a720;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(249, 167, 32, 0.3);
}

/* Mejoras para dispositivos táctiles - tamaño mínimo 44x44px */
@media (hover: none) and (pointer: coarse) {
  button,
  a.scene,
  .viewControlButton,
  .tour-card,
  .all-tours-button {
    min-width: 44px;
    min-height: 44px;
  }
  
  .tour-button {
    min-height: 44px;
    padding: 14px 26px;
  }
}
