/* ===================================
   BASE STYLES - TIPOGRAFÍA RESPONSIVE
   =================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* BASE FLUIDA: Escala entre 14px (móvil) y 18px (desktop) */
html {
  font-size: clamp(14px, 1.5vw, 18px);
}

html * {
  font-family: 'Arial Bold', sans-serif;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: 'Arial Bold' sans-serif;
  background-color: #0a0a1a;
  color: #70DAD2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  /* Hereda del html (14-18px) */
}

/* ===================================
   DASHBOARD CONTAINER
   =================================== */
#dashboard-container {
  position: relative;
  width: 90vw;
  height: 90vh;
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid #70DAD2;
  box-shadow: 0 0 20px #0B8383;
  display: flex;
  justify-content: center;
  align-items: center;
}

#globeCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===================================
   ADMIN: BOTÓN (+) FLOTANTE
   Fijo arriba a la derecha, a la izquierda del logo #logo-top-right
   y por encima de los widgets del dashboard (logos van a z-index 2000).
   =================================== */
.admin-plus-btn {
  position: fixed;
  top: 16px;
  /* A la izquierda del logo derecho: ancho del logo + separación */
  right: calc(clamp(70px, 10vh, 120px) + 24px);
  z-index: 2100;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  border: 1px solid #70DAD2;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(112, 218, 210, 0.5);
  transition: box-shadow 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
}

.admin-plus-btn:hover {
  background-color: #6f90b1;
  box-shadow: 0 0 22px rgba(112, 218, 210, 0.85);
  transform: translateY(-1px);
}

.admin-plus-btn i {
  font-size: 1.4rem;
  line-height: 1;
}

.admin-plus-btn .admin-plus-sign {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  margin-top: -2px;
}

/* ===================================
   ADMIN: WIDGET MODAL DE ALTA DE USUARIO
   =================================== */
.create-user-widget-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(3, 8, 20, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.create-user-widget {
  width: min(1200px, 95vw);
  height: min(860px, 92vh);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(160deg, #0f2027, #10222c 60%, #14293a);
  border: 1px solid #70DAD2;
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(112, 218, 210, 0.35);
  color: #e7f6f5;
}

.create-user-widget .cuw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(112, 218, 210, 0.25);
}

.create-user-widget .cuw-header h5 {
  margin: 0;
  font-size: 1.15rem;
  color: #70DAD2;
  display: flex;
  align-items: center;
}

.create-user-widget .cuw-close {
  background: none;
  border: none;
  color: #cfe9e7;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
}

.create-user-widget .cuw-close:hover {
  color: #ffffff;
}

.create-user-widget .cuw-body {
  padding: 20px 22px;
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
}

.create-user-widget .cuw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.create-user-widget .cuw-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.create-user-widget .cuw-field label {
  font-size: 0.82rem;
  color: #9fc7c3;
}

.create-user-widget .cuw-field input,
.create-user-widget .cuw-field select,
.create-user-widget .cuw-field textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(112, 218, 210, 0.35);
  border-radius: 8px;
  padding: 9px 12px;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  resize: vertical;
}

.create-user-widget .cuw-subtitle {
  margin: 20px 0 12px;
  color: #70DAD2;
  font-size: 0.95rem;
  border-top: 1px solid rgba(112, 218, 210, 0.2);
  padding-top: 14px;
}

.create-user-widget .cuw-field input:focus,
.create-user-widget .cuw-field select:focus,
.create-user-widget .cuw-field textarea:focus {
  border-color: #70DAD2;
  box-shadow: 0 0 0 2px rgba(112, 218, 210, 0.25);
}

.create-user-widget .cuw-field select option {
  background: #10222c;
  color: #ffffff;
}

.create-user-widget .cuw-alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.create-user-widget .cuw-alert-error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.6);
  color: #ffb3ba;
}

.create-user-widget .cuw-alert-success {
  background: rgba(40, 167, 69, 0.15);
  border: 1px solid rgba(40, 167, 69, 0.6);
  color: #b6f2c6;
}

.create-user-widget .cuw-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid rgba(112, 218, 210, 0.25);
}

.create-user-widget .cuw-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
}

.create-user-widget .cuw-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.create-user-widget .cuw-btn-secondary {
  background: transparent;
  border-color: rgba(112, 218, 210, 0.5);
  color: #cfe9e7;
}

.create-user-widget .cuw-btn-primary {
  background: linear-gradient(135deg, #0B8383, #70DAD2);
  color: #062024;
}

.create-user-widget .cuw-btn-primary:hover:not(:disabled) {
  box-shadow: 0 0 18px rgba(112, 218, 210, 0.7);
}

@media (max-width: 600px) {
  .create-user-widget .cuw-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Pestañas del widget --- */
.create-user-widget .cuw-tabs {
  display: flex;
  gap: 6px;
}

.create-user-widget .cuw-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
  color: #9fc7c3;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.create-user-widget .cuw-tab:hover {
  color: #cfe9e7;
}

.create-user-widget .cuw-tab.active {
  color: #062024;
  background: linear-gradient(135deg, #0B8383, #70DAD2);
}

/* --- Campo a ancho completo --- */
.create-user-widget .cuw-field-full {
  grid-column: 1 / -1;
}

/* --- Pestaña de proyectos --- */
.create-user-widget .cuw-projects {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 18px;
  /* Rellena todo el alto disponible del cuerpo del modal */
  height: 100%;
  min-height: 0;
}

.create-user-widget .cuw-projects-list {
  border: 1px solid rgba(112, 218, 210, 0.25);
  border-radius: 10px;
  padding: 8px;
  /* Scroll propio de la lista, sin cortar contenido */
  overflow: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* El panel de la derecha (detalle o formulario) también con su propio scroll */
.create-user-widget .cuw-project-form {
  overflow: auto;
  min-height: 0;
  padding-right: 4px;
}

.create-user-widget .cuw-projects-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  font-size: 0.82rem;
  color: #9fc7c3;
  padding: 4px 6px 10px;
  position: sticky;
  top: 0;
  background: #10222c;
  z-index: 1;
}

.create-user-widget .cuw-projects-list-header > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.create-user-widget .cuw-projects-list-header > div {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.create-user-widget .cuw-btn-mini {
  background: transparent;
  border: 1px solid rgba(112, 218, 210, 0.5);
  color: #cfe9e7;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.78rem;
  cursor: pointer;
}

.create-user-widget .cuw-btn-mini:hover {
  border-color: #70DAD2;
  color: #ffffff;
}

.create-user-widget .cuw-project-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  cursor: pointer;
  color: #e7f6f5;
}

.create-user-widget .cuw-project-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.create-user-widget .cuw-project-thumb {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f9d99;
  font-size: 1.1rem;
}

.create-user-widget .cuw-project-thumb.is-empty,
.create-user-widget .cuw-project-thumb img[style*="display: none"] + i {
  color: #6f9d99;
}

.create-user-widget .cuw-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Image upload (project form) ---- */
.create-user-widget .cuw-image-upload {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.create-user-widget .cuw-image-preview {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(112, 218, 210, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f9d99;
  font-size: 0.75rem;
}

.create-user-widget .cuw-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.create-user-widget .cuw-image-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.create-user-widget .cuw-file-label {
  cursor: pointer;
  text-align: center;
}

.create-user-widget .cuw-file-label input {
  display: none;
}

/* ---- Detail view image + header ---- */
.create-user-widget .cuw-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.create-user-widget .cuw-detail-image {
  width: 100%;
  max-height: 180px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.create-user-widget .cuw-detail-image img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

.create-user-widget .cuw-btn-sm {
  padding: 4px 10px;
  font-size: 0.78rem;
}

.create-user-widget .cuw-detail-actions {
  display: flex;
  gap: 8px;
}

.create-user-widget .cuw-btn-danger {
  background: rgba(255, 77, 77, 0.12);
  border-color: rgba(255, 77, 77, 0.6);
  color: #ff8080;
}

.create-user-widget .cuw-btn-danger:hover {
  background: rgba(255, 77, 77, 0.22);
  color: #ff6b6b;
}

.create-user-widget .cuw-project-item:hover {
  background: rgba(112, 218, 210, 0.12);
}

.create-user-widget .cuw-project-item.active {
  border-color: #70DAD2;
  background: rgba(112, 218, 210, 0.18);
}

.create-user-widget .cuw-project-name {
  font-weight: bold;
  font-size: 0.9rem;
}

.create-user-widget .cuw-project-client {
  font-size: 0.78rem;
  color: #9fc7c3;
}

/* Proyecto oculto del mapa: se atenúa en el listado para distinguirlo de los visibles. */
.create-user-widget .cuw-project-item.cuw-project-hidden {
  opacity: 0.55;
}

.create-user-widget .cuw-project-item.cuw-project-hidden .cuw-project-thumb {
  filter: grayscale(1);
}

.create-user-widget .cuw-hidden-badge {
  margin-left: 6px;
  color: #e6b800;
  font-size: 0.9em;
  vertical-align: -1px;
}

.create-user-widget .cuw-empty {
  padding: 12px 6px;
  font-size: 0.85rem;
  color: #9fc7c3;
}

.create-user-widget .cuw-project-form h6 {
  margin: 0 0 12px;
  color: #70DAD2;
  font-size: 1rem;
}

.create-user-widget .cuw-hint {
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #9fc7c3;
}

/* Casillas de fases/soluciones del panel del proyecto (solo admin) */
.create-user-widget .cuw-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 4px 0;
}

.create-user-widget .cuw-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #d7ecea;
  cursor: pointer;
  white-space: nowrap;
}

.create-user-widget .cuw-check input {
  accent-color: #70DAD2;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.create-user-widget .cuw-detail {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(112, 218, 210, 0.12);
  font-size: 0.88rem;
}

.create-user-widget .cuw-detail span {
  color: #9fc7c3;
}

.create-user-widget .cuw-detail b {
  color: #e7f6f5;
  text-align: right;
}

.create-user-widget .cuw-detail-block {
  flex-direction: column;
}

.create-user-widget .cuw-detail-block p {
  margin: 4px 0 0;
  color: #cfe9e7;
  line-height: 1.4;
  text-align: left;
}

@media (max-width: 600px) {
  .create-user-widget .cuw-projects {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   LOGIN SCREEN (aislamiento total)
   Cubre todo el viewport con fondo opaco y por encima de cualquier
   widget/panel del dashboard, para que nada se vea por detrás del login.
   =================================== */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background-color: #0a0a1a;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================
   LOGO HEADER
   =================================== */
.logo-header {
  width: 240px;
  margin: 0;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 100;
}

/* ===================================
   INFO PANEL
   =================================== */
#info-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Flexible fitting width */
  width: fit-content;
  min-width: 280px;
  max-width: 95vw;
  transform: translate(0%, 0%);
  /* Restore original position */
  padding: 15px;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  border: 1px solid #70DAD2;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 230, 230, 0.3);
  z-index: 10;
}

#info-panel h1 {
  color: #00ffff;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  /* Significantly reduced */
  margin-top: 0;
  margin-bottom: 0.6rem;
}

#info-panel p {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  /* Significantly reduced */
  line-height: 1.4;
}

/* Centrado en el globo */
.info-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(0%, 0%);
  right: auto;
}

/* Esquina superior derecha */
.info-top-right {
  position: absolute;
  top: 20px;
  right: 20px;
  left: auto;
  transform: none;
}

/* ===================================
   PROJECT BUTTONS
   =================================== */
#projectButtons {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.project-button {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 25px;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  /* Significantly increased */
  box-shadow: 0 0 15px #00ffff;
  transition: background-color 0.3s ease;
}

.project-button:hover {
  background-color: #6f90b1;
}

.icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.badge {
  background-color: #f8f8f8;
  color: #2c3e50;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: clamp(0.75rem, 1vw + 0.5rem, 0.875rem);
  /* 12-14px */
}

#popup {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===================================
   ROUND CYBER BUTTON (Overview & Filters)
   =================================== */
.round-cyber-btn {
  position: fixed;
  top: 50%;
  left: 32px;
  z-index: 1200;
  width: 68px;
  height: 68px;
  background: radial-gradient(circle, #70dad2 74%, #5c80bf 100%);
  border: none;
  border-radius: 50%;
  color: #0f2027;
  font-size: clamp(1.5rem, 2vw + 0.5rem, 1.75rem);
  /* 24-28px */
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 28px #70dad2, 0 1px 12px rgba(92, 128, 191, 0.5);
  transition: box-shadow 0.3s ease, transform 0.2s ease, filter 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.round-cyber-btn:hover {
  box-shadow: 0 0 40px #70dad2, 0 2px 18px rgba(92, 128, 191, 0.8);
  transform: scale(1.05);
  filter: brightness(1.15);
}

.round-cyber-btn:active {
  transform: scale(0.95);
}

.round-cyber-btn svg {
  display: block;
}




/* === Diseño interno === */
.drones-panel h2 {
  color: #80f8f0;
  text-align: center;
  margin-bottom: 15px;
  font-size: 18px;
  letter-spacing: 0.8px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.drones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.drones-data-large {
  font-size: 24px;
  color: #bffeff;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
  white-space: nowrap;
}

.drones-unit-metric {
  font-size: 15px;
  opacity: 0.8;
  margin-left: 2px;
}

.drones-desc-large {
  font-size: 12px;
  color: #a4f5f0;
  opacity: 0.85;
  margin-top: 4px;
}



/* === BOTÓN DE INFO NEÓN, FIJO ARRIBA IQUIERDA === */
.drones-panel,
#tech-laser-scanner .drones-panel,
#tech-live-site .drones-panel,
#tech-ar .drones-panel,
#tech-cobots .drones-panel,
#tech-robots .drones-panel,
#tech-digital-twin .drones-panel,
#tech-scaffolding .drones-panel {
  position: relative;
  /* necesario para posicionar el botón dentro */
}

.info-btn {
  position: absolute;
  top: 2px;
  /* Adjusted to move higher */
  left: 6px;
  width: 32px;
  /* Increased from 28px */
  height: 32px;
  /* Increased from 28px */
  border-radius: 50%;
  border: 2px solid #70dad2;
  /* Increased from 1.8px */
  color: #70dad2;
  font-family: 'Arial Bold', sans-serif;
  font-size: 1.1rem;
  /* Increased from 0.95rem */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  text-shadow: 0 0 6px #70dad2aa;
  box-shadow: 0 0 6px #70dad244, inset 0 0 8px #70dad211;
  transition: all 0.25s ease;
  user-select: none;
  z-index: 10;
  animation: softGlow 3s ease-in-out infinite;
}

.info-btn:hover {
  color: #0b8383;
  border-color: #00ffff;
  box-shadow:
    0 0 8px #00ffffaa,
    0 0 14px #5c80bf77,
    inset 0 0 8px #00ffff33;
  transform: scale(1.12);
}

.info-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 6px #00ffff88 inset;
}

@keyframes softGlow {

  0%,
  100% {
    box-shadow: 0 0 8px #70dad255, inset 0 0 8px #70dad211;
  }

  50% {
    box-shadow: 0 0 14px #70dad288, inset 0 0 10px #70dad233;
  }
}

/* === PANEL DE INFORMACIÓN INTERNO === */
.info-global-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  max-height: 85vh;
  background: linear-gradient(135deg, rgba(15, 32, 39, 0.96), rgba(32, 58, 67, 0.96), rgba(44, 83, 100, 0.98));
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.1);
  display: none;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #70dad2 transparent;
  border: 1px solid #70dad288;
  border-radius: 18px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
  font-family: 'Arial Bold', sans-serif;
}

.info-global-panel.active {
  display: block !important;
  transform: translate(-50%, -50%);
}

.info-global-content {
  padding: 20px;
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  text-align: justify;
}

/* === TITULOS Y SECCIONES === */
.tech-title {
  font-size: clamp(1.24rem, 3vw, 1.85rem);
  font-weight: bold;
  color: #39c0b8;

  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-align: center;
}

.tech-section {
  margin-bottom: 16px;
}

.tech-section-title {
  font-size: 1.08rem;
  color: #39c0b8;
  font-weight: 600;
  margin-bottom: 5px;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.tech-content {
  font-size: clamp(0.93rem, 1vw, 1.09rem);
  color: #e2f5f5;
  line-height: 1.27;
}

/* === BOTONES DE PROYECTOS TODOS DEL MISMO TAMAÑO, TRANSPARENTES CON BORDE === */
.tech-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 12px;
  margin-top: 10px;
}

.tech-project-btn {
  background: transparent;
  color: #39c0b8;
  font-weight: bold;
  padding: 14px 0;
  border: 2px solid #39c0b8;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  width: 140px;
  height: 50px;
  /* todos del mismo alto */
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-project-btn:hover {
  background: rgba(57, 192, 184, 0.15);
  color: #00ffff;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(57, 192, 184, 0.4);
}

/* === CONTENEDOR DE TARJETAS DE PROYECTOS === */
.tech-project-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.tech-project-link a.tech-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  border: 1px solid rgba(0, 255, 255, 0.35);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.25);
  color: #e8f7ff;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-project-link a.tech-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 28px rgba(0, 255, 255, 0.45);
}

/* ICONO DENTRO DE LA TARJETA */
.tech-project-link a img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}

/* TEXTO DENTRO DE LA TARJETA */
.tech-project-link a div {
  display: flex;
  flex-direction: column;
}

.tech-project-link a div div:first-child {
  font-weight: 800;
  font-size: 16px;
  color: #9fdcff;
}

.tech-project-link a div div:last-child {
  font-size: 13px;
  color: #cfe9ff;
  opacity: 0.85;
}

/* === PANEL DE INFORMACIÓN INTERNO === */
.info-global-panel {
  margin-top: 15px;
  width: 100%;
  max-width: 1100px;
  background: linear-gradient(135deg, rgba(15, 32, 39, 0.93), rgba(32, 58, 67, 0.93), rgba(44, 83, 100, 0.95));
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  display: none;
  overflow-y: auto;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-10px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: fixed;
  z-index: 9999;
}



.info-global-panel.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.info-global-content {
  padding: 20px;
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  text-align: justify;
}

/* === TITULOS Y SECCIONES === */
.tech-title {
  font-size: clamp(1.24rem, 3vw, 1.85rem);
  font-weight: bold;
  color: #39c0b8;

  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-align: center;
}

.tech-section {
  margin-bottom: 16px;
}

.tech-section-title {
  font-size: 1.08rem;
  color: #39c0b8;
  font-weight: 600;
  margin-bottom: 5px;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.tech-content {
  font-size: clamp(0.93rem, 1vw, 1.09rem);
  color: #e2f5f5;
  line-height: 1.27;
}

/* === BOTONES DE PROYECTOS TODOS DEL MISMO TAMAÑO, TRANSPARENTES CON BORDE === */
.tech-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 12px;
  margin-top: 10px;
}

.tech-project-btn {
  background: transparent;
  color: #39c0b8;
  font-weight: bold;
  padding: 14px 0;
  border: 2px solid #39c0b8;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  width: 140px;
  height: 50px;
  /* todos del mismo alto */
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-project-btn:hover {
  background: rgba(57, 192, 184, 0.15);
  color: #00ffff;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(57, 192, 184, 0.4);
}

/* === CONTENEDOR DE TARJETAS DE PROYECTOS === */
.tech-project-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.tech-project-link a.tech-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  border: 1px solid rgba(0, 255, 255, 0.35);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.25);
  color: #e8f7ff;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-project-link a.tech-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 28px rgba(0, 255, 255, 0.45);
}

/* ICONO DENTRO DE LA TARJETA */
.tech-project-link a img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}

/* TEXTO DENTRO DE LA TARJETA */
.tech-project-link a div {
  display: flex;
  flex-direction: column;
}

.tech-project-link a div div:first-child {
  font-weight: 800;
  font-size: 16px;
  color: #9fdcff;
}

.tech-project-link a div div:last-child {
  font-size: 13px;
  color: #cfe9ff;
  opacity: 0.85;
}

/* ===================================
   INFO PANEL BUTTONS & ACTIVE STATE
   =================================== */
.info-panel-btn {
  width: 100%;
  white-space: nowrap;
  padding: 8px 12px;
  border: 1px solid #00ffff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #00ffff;
  font-family: 'Arial Bold', sans-serif;
  font-weight: bold;
  font-size: 14px;
  text-align: left;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, background 0.3s ease;
  cursor: pointer;
  pointer-events: auto !important;
  z-index: 2000;
  position: relative;
}

.info-panel-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
  transform: scale(1.02);
}

.active-btn {
  background: rgba(0, 255, 255, 0.2) !important;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.8) !important;
  filter: brightness(1.3);
  border-color: #ffffff !important;
  transform: scale(1.02);
}

#panel-proyecto {
  display: flex;
  flex-direction: column;
}

#panel-header {
  flex-grow: 1;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
  /* or use bg-gray-50 */
}

::-webkit-scrollbar-thumb {
  background-color: #23816039;
  border: 1px solid #00ffff59;
  border-left: 0px;
  /* Tailwind's gray-300 */
  border-radius: 9999px;
  /* rounded-full */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
  /* Tailwind's gray-400 */
}

#techdock-bar {
  min-height: 60px;
  flex-wrap: nowrap;
}

#techdock-bar .logo {
  display: none;
  width: 100px;
}

#techdock-bar .logo img {
  width: 100px;
  margin: 0px;
  position: absolute;
  top: -32px;
  left: 0;
}

.techdock-bar-menus {
  display: flex;
  gap: 4px;
}

#techdock-bar .menu-togler {
  display: none;
}

#techdock-bar .menu-togler .techdock-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* Glbal Icon Button */
.globe-icon-btn {
  position: fixed;
  top: 50%;
  left: clamp(8px, 1.5vw, 54px);
  /*transform: translateY(-50%);*/
  z-index: 1200;
  width: clamp(38px, 5vw + 1rem, 64px);
  height: clamp(38px, 5vw + 1rem, 64px);
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s;
}

.globe-icon-btn svg {
  width: clamp(38px, 5vw + 1rem, 62px);
  height: clamp(38px, 5vw + 1rem, 62px);
  filter: drop-shadow(0 0 8px #70dad288);
  transition: filter 0.16s, transform 0.16s;
  pointer-events: none;
}

.globe-icon-btn:hover,
.globe-icon-btn:focus {
  transform: scale(1.18);
}

.globe-icon-btn:hover svg,
.globe-icon-btn:focus svg {
  filter: drop-shadow(0 0 16px #70dad2cc);
}


.tech-content-with-image {
  display: flex;

  align-items: stretch;

  gap: 20px;
  margin-bottom: 20px;
}


/* Contenedor de la imagen: define el tamaño y la forma */
.tech-image-wrapper {
  flex-shrink: 0;
  width: 700px;
  /* ANCHO: Aumentado para mayor visibilidad */
  height: auto;
  /* ALTO: Aumentado proporcionalmente */
  overflow: hidden;

  /* Esquinas redondeadas y sin contorno */
  border-radius: 8px;
  /* Esquinas redondeadas suaves (8px) */
  border: none;
  /* Asegura que no haya un contorno visible */

  /* Para la animación 'bop' */
  transition: transform 0.3s ease-in-out;
  /* Transición para el efecto hover (opcional) */

  /* Para centrar la imagen dentro del wrapper */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* La imagen en sí: se ajusta para llenar el contenedor */
.tech-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Recorta si es necesario para cubrir el área sin distorsionar */
  display: block;
}

/* Contenedor de la descripción: ocupa el espacio restante a la derecha */
.tech-description-wrapper {
  flex-grow: 1;
  /* Crece para ocupar el espacio restante */
  font-size: 24px;
  /* Aumentado tamaño texto */
  padding-right: 20px;
  /* Margen derecho para evitar corte */
  font-weight: 500;
}

.tech-description-wrapper ul li {
  font-size: 24px;
  margin-bottom: 8px;
}


/* 1. Definición de la animación 'bop-pulse' */
@keyframes bop-pulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }

  30% {
    /* El punto más alto del "salto" */
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  100% {
    /* Vuelve a la posición inicial */
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
}

/* 2. Aplicación de la animación a la clase añadida desde JS */
.tech-info-panel.bop-on-load {
  /* Ejecuta la animación una vez (0.5 segundos) y mantiene el estado final */
  animation: bop-pulse 0.5s ease-out forwards;
}

/* Base del panel (opcional) */
.tech-info-panel {
  transition: all 0.3s ease;
  /* Transición base para otros cambios */
}

/* Estilo para la lista de 6 puntos */
.tech-points-list {
  margin-top: 0;
  padding-left: 60px;
  /* Espacio para las viñetas */
  list-style-type: disc;

  /* CLAVE: Divide la lista en dos columnas (3 en cada una) */
  column-count: 2;
  column-gap: 25px;
  /* Espacio entre las columnas */
}

/* Estilo para cada punto de la lista */
.tech-points-list li {
  padding: 15px;
  width: 250px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

/* Twin Box Container - Base (Row Layout for Center Info Panel) */
.twin-box-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 15px;
  margin-top: 10px;
  width: 100%;
}

/* Vertical Modifier (Column Layout for Project Detail Panel) */
.twin-box-container.vertical {
  flex-direction: column;
  justify-content: flex-start;
}

/* Holographic Twin Core */
.twin-holo-wrapper {
  margin-top: 10px;
  width: 100%;
  height: 100px;
  background: rgba(0, 255, 255, 0.02);
  border: 1px solid rgba(0, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 255, 255, 0.05);
  perspective: 1000px;
}

/* 3D Cube Container */
.holo-cube-container {
  position: relative;
  width: 80px;
  height: 80px;
  transform-style: preserve-3d;
  animation: rotateCube 8s infinite linear;
}

/* Cube Faces */
.cube-face {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(0, 255, 255, 0.6);
  background: rgba(0, 255, 255, 0.05);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.cube-face.front {
  transform: translateZ(40px);
}

.cube-face.back {
  transform: rotateY(180deg) translateZ(40px);
}

.cube-face.right {
  transform: rotateY(90deg) translateZ(40px);
}

.cube-face.left {
  transform: rotateY(-90deg) translateZ(40px);
}

.cube-face.top {
  transform: rotateX(90deg) translateZ(40px);
}

.cube-face.bottom {
  transform: rotateX(-90deg) translateZ(40px);
}

/* Cube Edges */
.cube-edge {
  position: absolute;
  background: rgba(0, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

/* Pulsing Core */
.holo-core {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #00ffff;
  border-radius: 50%;
  box-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff;
  animation: pulse-core 1.5s ease-in-out infinite;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes rotateCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }

  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

@keyframes pulse-core {
  0% {
    box-shadow: 0 0 15px #00ffff;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    box-shadow: 0 0 30px #00ffff, 0 0 50px #00ffff;
    transform: translate(-50%, -50%) scale(1.2);
  }

  100% {
    box-shadow: 0 0 15px #00ffff;
    transform: translate(-50%, -50%) scale(1);
  }
}

.holo-label {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 10px;
  color: #00ffff;
  letter-spacing: 2px;
  opacity: 0.7;
  font-family: monospace;
}

.twin-box {
  flex: 1;
  background: rgba(0, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 6px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.1);
  transition: transform 0.2s ease;
}

.twin-box:hover {
  transform: translateY(-5px);
  background: rgba(0, 255, 255, 0.08);
  border-color: rgba(0, 255, 255, 0.6);
}

.twin-box-title {
  color: #00ffff;
  font-size: 0.72rem;
  /* Nano title */
  font-weight: bold;
  margin-bottom: 4px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  padding-bottom: 3px;
  text-align: center;
}

.twin-box-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.twin-box-list li {
  color: #e2f5f5;
  font-size: 0.6rem;
  /* Nano text */
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  gap: 6px;
  line-height: 1.25;
  white-space: normal;
}

.twin-box-list li::before {
  content: '•';
  color: #FFC000;
  font-weight: bold;
  flex-shrink: 0;
  /* No absolute positioning needed for flex layout */
}

/* ===================================
   FIXED PAGE LOGOS
   =================================== */
#logo-top-left {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(70px, 10vh, 120px);
  height: auto;
  z-index: 2000;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

#logo-top-right {
  position: fixed;
  top: 0;
  right: 0;
  width: clamp(70px, 10vh, 120px);
  height: auto;
  z-index: 2000;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}