#proyectos {
  width: 100%;
  height: 1000px;
  padding: 100px 50px 50px;
  overflow: hidden;
  position: relative;
  display: flex;
  background-size: cover;
  background-position: center;
  background-image: none !important; /* Quitar fondo de fotografía */
}

.circle-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.central-item {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

/* items ocultos por defecto */
#item1, #item2, #item3, #item4, #item5, #item6 {
  display: none;
}

/* clases para mostrar */
.mostrarItem1 { display: block; }
.mostrarItem2 { display: block; }
.mostrarItem3 { display: block; }
.mostrarItem4 { display: block; }
.mostrarItem5 { display: block; }
.mostrarItem6 { display: block; }

/* Contenedor de carrusel */
.container-proyectos {
  position: absolute;
  top: 260px;        /* más abajo para quedar bajo el submenu */
  bottom: 20px;      /* hasta cerca del footer */
  left: 0;
  width: 150px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow-y: auto;
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

/* Proyecto */
.proyecto {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 6px 0 0;
  border-radius: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: border 0.2s, background 0.2s, color 0.2s;
}

/* Proyecto imagen */
.proyecto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: none;
  background: #181c29;
}

/* Selector de número de proyecto (sidebar) - estilo igual a Hotspot menu */
.proyecto-numero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: #181c29;
  border-radius: 12px;
  border: none;
  transition: color 0.2s, background 0.2s, border 0.2s;
}

/* Proyecto activo: igual que .Hotspot.active */
.proyecto.proyecto-activo {
  border: 2px solid var(--color-primary);
  background: transparent;
}

/* Estado activo y hover del número de proyecto */
.proyecto.proyecto-activo .proyecto-numero,
.proyecto-numero:focus,
.proyecto-numero:hover {
  color: var(--color-primary);
  background: transparent;
  border: 2px solid var(--color-primary);
}

/* Efecto hover sobre proyectos inactivos */
.proyecto:not(.proyecto-activo):hover .proyecto-numero {
  color: var(--color-primary);
  background: transparent;
  border: 2px solid var(--color-primary);
}

/* Proyectos inactivos */
.proyecto:not(.proyecto-activo) .proyecto-numero {
  color: #fff;
  background: #181c29;
  border: none;
}

/* Info */
.project-info {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(260px + 20px); /* Ajustar según la posición de los botones de selección */
  bottom: 20px; /* Espaciado desde el borde inferior */
  left: 200px; /* Espaciado desde el borde izquierdo */
  right: 20px; /* Espaciado desde el borde derecho */
  padding: 20px;
  padding-left: 20px;
  padding-right: 20px;
  background: rgba(34, 114, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(9.2px);
  gap: 20px;
  overflow: auto; /* Permitir scroll si el contenido excede el espacio */
}

/* Contenido de texto */
.project-info .text-content {
  flex: none;
  padding-bottom: 10px;
}

/* Contenedor del slider */
.media-slider {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Slides internas */
.media-slider .slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.media-slider .slide {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}

/* Flechas navegación */
.media-slider .prev,
.media-slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}
.media-slider .prev { left: 10px; }
.media-slider .next { right: 10px; }

/* Remove default list decorations in proyectos section */
#proyectos ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#proyectos ul li {
  list-style: none;
}

/* Submenu horizontal with equal spacing and responsive vertical scroll */
.hotspot-menu-container {
  margin-bottom: 1.5rem;
}
.hotspot-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  backdrop-filter: none;
  border: none;
  padding: 0.5rem 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hotspot-menu li {
  list-style: none;
  margin: 0 0.75rem;
  flex: 1;
  text-align: center;
}

/* Hotspot color adjustment */
.hotspot-menu .Hotspot {
  background: none;
  border: none;
  color: var(--light); /* Always white */
  font-weight: 600;
}

/* Hotspot hover effect removed */
.hotspot-menu .Hotspot:hover {
  color: var(--light); /* No color change */
}

/* Hotspot styling */
.Hotspot {
  background: var(--glass-bg);
  backdrop-filter: blur(9.2px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--light); /* Always white */
}

/* Ajustar las imágenes de la sección de proyectos a un slicer de 200px x 200px con separación de 5px */
.project-info .media-content img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin: 5px;
}

/* Elimina el selector de idioma global redundante, ya que ahora está integrado en el header como dropdown */

/* Selector de idioma tipo Hotspot en la esquina inferior derecha solo para index */
#lang-switcher-index.lang-switcher-hotspot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
#lang-switcher-index .Hotspot.lang-option {
  min-width: 32px;
  min-height: 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1rem;
  border-radius: 6px;
  border: 2px solid var(--color-primary);
  background: var(--glass-bg);
  color: var(--color-light);
  font-weight: 700;
  margin-bottom: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  transition: background 0.2s, color 0.2s, border 0.2s;
  display: flex;
}
#lang-switcher-index .Hotspot.lang-option.active,
#lang-switcher-index .Hotspot.lang-option:focus,
#lang-switcher-index .Hotspot.lang-option:hover {
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
}
@media (max-width: 768px) {
  #lang-switcher-index.lang-switcher-hotspot {
    right: 8px;
    bottom: 8px;
    gap: 4px;
  }
  #lang-switcher-index .Hotspot.lang-option {
    min-width: 28px;
    min-height: 28px;
    width: 28px;
    height: 28px;
    font-size: 0.95em;
    border-radius: 5px;
  }
}

@media (max-width: 768px) {
  #proyectos {
    padding: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
  }
  .header {
    width: 100%;
    margin-bottom: 10px;
  }
  .titulo-proyectos {
    width: 100%;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 16px;
    margin-top: 10px;
    letter-spacing: 1px;
  }
  .hotspot-menu-container {
    width: 100%;
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
  }
  .hotspot-menu {
    width: 100%;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    padding: 0 8px;
  }
  .container-proyectos {
    position: static !important;
    margin-top: 20px;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 0;
  }
  .container-proyectos .proyecto {
    width: 44px;
    height: 44px;
    font-size: 15px;
    margin: 0 8px 0 8px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .project-info {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: auto;
    margin: 20px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 16px;
    background: rgba(34, 114, 255, 0.12);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(9.2px);
    gap: 20px;
    overflow: auto;
    display: flex;
    flex-direction: column;
  }
  .container-proyectos {
    overflow-y: visible !important;
    max-height: none;
  }
}

/* Título de proyectos para todas las vistas */
.titulo-proyectos {
  width: 100%;
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  margin-top: 0;
  letter-spacing: 1px;
}

@media (min-width: 769px) {
  #proyectos {
    padding: 50px;
  }
  .hotspot-menu {
    flex-direction: row;
    gap: 20px;
  }
  .container-proyectos {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .proyecto {
    
    margin: 20px;
  }
  .project-info {
    left: 200px;
    right: 50px; /* Igual que el padding de la sección #proyectos */
    padding-left: 20px;
    padding-right: 50px;
  }
}

/* Ocultar sección de fondo de proyectos */
.proyectos-section {
  display: none !important;
}

/* Ajustar estilos para ocultar barras de desplazamiento en todos los navegadores */
.container-proyectos {
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer y Edge */
}

.container-proyectos::-webkit-scrollbar {
  display: none; /* Chrome, Safari y Opera */
}

/* Estilos de depuración */
.container-proyectos, #lista-proyectos {
  /* Quitar fondo y borde de depuración */
  background: none !important;
  border: none !important;
  min-width: unset !important;
  min-height: unset !important;
  z-index: unset;
}
.proyecto {
  /* Quitar fondo y borde de depuración */
  background: none !important;
  border: none !important;
  margin: 10px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #111 !important;
  font-size: 1rem !important;
  z-index: 10001;
}
