* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1E2D24;
  color: #E6E6E6;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

header {
  background: linear-gradient(135deg, #121A14 0%, #1E2D24 100%);
  padding: 1rem 2rem;
  text-align: center;
  border-bottom: 2px solid #00FF9D;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  transition: all 0.4s ease;
  max-height: 500px;
  overflow: hidden;
}

/* ✅ Contenedor para logo + título */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ✅ Navegación del header */
.header-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: #E6E6E6;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #00FF9D;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #00FF9D;
}

.nav-link:hover::before {
  width: 80%;
}

.nav-link.active {
  color: #00FF9D;
  background: rgba(0, 255, 157, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}

.nav-link.active::before {
  width: 80%;
}

/* ✅ Estilos del logo */
.header-logo {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(0, 255, 157, 0.4));
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.header-logo:hover {
  filter: drop-shadow(0 0 20px rgba(0, 255, 157, 0.6));
  transform: scale(1.05);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* ✅ Contenedor para logo + título */
.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* ✅ Estilos del logo */
.header-logo {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(0, 255, 157, 0.4));
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.header-logo:hover {
  filter: drop-shadow(0 0 20px rgba(0, 255, 157, 0.6));
  transform: scale(1.05);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

header.hidden {
  max-height: 0;
  padding: 0 2rem;
  border-bottom-width: 0;
  opacity: 0;
  transform: translateY(-20px);
}

@font-face {
  font-family: "DarkFuture";
  src: url("../assets/fonts/Dark Future Italic.woff2") format("woff2"),
       url("../assets/fonts/Dark Future Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

header h1 {
  font-family: 'DarkFuture';
  font-size: 3rem;
  font-weight: normal;
  letter-spacing: 15px;
  text-transform: uppercase;
  color: #00FF9D;
  text-shadow:
    0 0 8px rgba(0, 255, 157, 0.6),
    0 0 16px rgba(0, 255, 157, 0.5),
    0 0 32px rgba(0, 255, 157, 0.4),
    0 0 48px rgba(0, 255, 157, 0.3);
  transform: skewX(-10deg);
}

h2 {
  font-family: 'DarkFuture';
  color: #00FF9D;
  margin-bottom: 1rem;
  letter-spacing: 10px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
  overflow: hidden;
  min-height: 0;
  transition: all 0.4s ease;
}

main.expanded {
  flex: 1;
  min-height: calc(100vh - 3rem);
}

#threejs-container {
  background-color: #121A14;
  border-radius: 12px;
  border: 2px solid #2E3D34;
  overflow: hidden;
  position: relative;
  flex: 1;
  min-height: 300px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.model-controls {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.model-btn {
  background-color: rgba(60, 179, 113, 0.95);
  color: #E6E6E6;
  border: 2px solid #00FF9D;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.model-btn:hover {
  background-color: #00FF9D;
  color: #121A14;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 255, 157, 0.4);
}

.model-btn:active {
  transform: translateY(0);
}

.model-btn.delete-btn {
  background-color: rgba(198, 40, 40, 0.95);
  border-color: #FF6B6B;
}

.model-btn.delete-btn:hover {
  background-color: #FF6B6B;
  color: #121A14;
}

#scene {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#scene:active {
  cursor: grabbing;
}

.loading-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #00FF9D;
  font-size: 1.2rem;
  text-align: center;
  z-index: 10;
  background-color: rgba(18, 26, 20, 0.95);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid #2E3D34;
  display: none;
  pointer-events: none;
}

.loading-message.show {
  display: block;
}

.sensor-hotspot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #00FF9D;
  border-radius: 50%;
  border: 2px solid #E6E6E6;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
  animation: pulse 2s infinite;
  z-index: 10;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.sensor-hotspot:hover {
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.8);
}

#sensor-panel {
  background: linear-gradient(135deg, #1E2D24 0%, #2E3D34 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid #2E3D34;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  max-height: 100%;
}

.sensor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.sensor {
  background-color: #121A14;
  padding: 1.5rem;
  border-radius: 10px;
  border: 2px solid #2E3D34;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sensor:hover {
  border-color: #00FF9D;
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 255, 157, 0.2);
}

.sensor.active {
  border-color: #00FF9D;
  background-color: #1E2D24;
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

.sensor.alert {
  border-color: #F2C94C;
  animation: alertBlink 1.5s infinite;
}

@keyframes alertBlink {
  0%, 100% {
    box-shadow: 0 0 10px rgba(242, 201, 76, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(242, 201, 76, 0.6);
  }
}

.sensor h3 {
  font-size: 1.1rem;
  color: #00FF9D;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sensor-icon {
  width: 24px;
  height: 24px;
  fill: #00FF9D;
}

.sensor p {
  font-size: 1.8rem;
  font-weight: bold;
  color: #E6E6E6;
  margin: 0.5rem 0;
}

.sensor-description {
  font-size: 0.9rem;
  color: #A8B2A0;
  margin-top: 0.5rem;
}

.sensor-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  background-color: #3CB371;
  color: #E6E6E6;
}

.sensor-status.warning {
  background-color: #F2C94C;
  color: #121A14;
}

.controls {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

button {
  background-color: #3CB371;
  color: #E6E6E6;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-weight: 500;
}

button:hover {
  background-color: #00FF9D;
  color: #121A14;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 255, 157, 0.3);
}

button:active {
  transform: translateY(0);
}

.delete-btn {
  background-color: #C62828;
  color: #E6E6E6;
}

.delete-btn:hover {
  background-color: #FF6B6B;
  color: #121A14;
}

footer {
  background-color: #121A14;
  padding: 0.75rem;
  text-align: center;
  border-top: 2px solid #2E3D34;
  color: #A8B2A0;
  font-size: 0.85rem;
  flex-shrink: 0;
  position: relative;
}

.scroll-indicator {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  animation: bounce 2s infinite;
  cursor: pointer;
  background-color: rgba(0, 255, 157, 0.2);
  border: 2px solid #00FF9D;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  background-color: rgba(0, 255, 157, 0.4);
  transform: translateX(-50%) scale(1.1);
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@media (min-width: 768px) {
  main {
    flex-direction: row;
    padding: 1rem;
    gap: 1rem;
  }

  #threejs-container {
    flex: 1;
    min-height: 400px;
  }

  #sensor-panel {
    flex: 1;
    max-width: none;
  }

  .sensor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
  }

  .sensor {
    background-color: #121A14;
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid #2E3D34;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .sensor h3 {
    font-size: 0.95rem;
    color: #00FF9D;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .sensor-icon {
    width: 20px;
    height: 20px;
    fill: #00FF9D;
  }

  .sensor p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #E6E6E6;
    margin: 0.4rem 0;
  }

  .sensor-description {
    font-size: 0.85rem;
    color: #A8B2A0;
    margin-top: 0.4rem;
  }

  .sensor-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 0.4rem;
    background-color: #3CB371;
    color: #E6E6E6;
  }

  header h1 {
    font-size: 6rem;
  }

  .header-logo {
    height: 80px;
  }
}

@media (min-width: 1200px) {
  main {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
  }
}

.tooltip {
  position: absolute;
  background-color: rgba(18, 26, 20, 0.95);
  color: #E6E6E6;
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid #00FF9D;
  pointer-events: none;
  z-index: 100;
  max-width: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: none;
}

.tooltip.show {
  display: block;
}

.tooltip h4 {
  color: #00FF9D;
  margin-bottom: 0.5rem;
}

.tooltip p {
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.notification-container {
  position: fixed;
  top: 5rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
}

.notification {
  background: linear-gradient(135deg, #1E2D24 0%, #121A14 100%);
  border: 2px solid #00FF9D;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 255, 157, 0.3);
  animation: slideInRight 0.4s ease-out;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}

.notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #00FF9D;
}

.notification.success::before {
  background: #00FF9D;
}

.notification.error::before {
  background: #FF6B6B;
  animation: pulse-red 1s infinite;
}

.notification.warning::before {
  background: #F2C94C;
}

.notification.info::before {
  background: #4A9EFF;
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.notification-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.notification-text {
  flex: 1;
}

.notification-title {
  color: #00FF9D;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.notification.error .notification-title {
  color: #FF6B6B;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.notification.warning .notification-title {
  color: #F2C94C;
  text-shadow: 0 0 10px rgba(242, 201, 76, 0.5);
}

.notification.info .notification-title {
  color: #4A9EFF;
  text-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

.notification-message {
  color: #A8B2A0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.notification-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: #A8B2A0;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #E6E6E6;
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #00FF9D;
  width: 100%;
  transform-origin: left;
  animation: progressBar 5s linear;
}

.notification.error .notification-progress {
  background: #FF6B6B;
}

.notification.warning .notification-progress {
  background: #F2C94C;
}

.notification.info .notification-progress {
  background: #4A9EFF;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

@keyframes progressBar {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes pulse-red {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: linear-gradient(135deg, #1E2D24 0%, #121A14 100%);
  border: 2px solid #00FF9D;
  border-radius: 16px;
  padding: 2rem;
  max-width: 450px;
  width: 90%;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 255, 157, 0.3);
  animation: scaleIn 0.3s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-icon {
  font-size: 2.5rem;
  color: #F2C94C;
  text-shadow: 0 0 20px rgba(242, 201, 76, 0.6);
}

.modal-title {
  color: #00FF9D;
  font-size: 1.3rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.modal-message {
  color: #E6E6E6;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.modal-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.modal-btn-confirm {
  background-color: #C62828;
  color: #E6E6E6;
  border-color: #FF6B6B;
}

.modal-btn-confirm:hover {
  background-color: #FF6B6B;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.modal-btn-cancel {
  background-color: #2E3D34;
  color: #E6E6E6;
  border-color: #3CB371;
}

.modal-btn-cancel:hover {
  background-color: #3CB371;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(60, 179, 113, 0.4);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.zoom-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.zoom-btn {
  width: 38px;
  height: 38px;
  background-color: rgba(30, 45, 36, 0.95);
  color: #00FF9D;
  border: 2px solid #00FF9D;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  padding: 0;
  line-height: 1;
}

.zoom-btn:hover {
  background-color: #00FF9D;
  color: #121A14;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 255, 157, 0.5);
}

.zoom-btn:active {
  transform: scale(0.95);
}

.zoom-indicator {
  position: absolute;
  top: 1rem;
  right: 6rem;
  z-index: 20;
  background-color: rgba(30, 45, 36, 0.95);
  color: #00FF9D;
  border: 2px solid #00FF9D;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.zoom-indicator.show {
  opacity: 1;
}

.fullscreen-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 20;
}

.fullscreen-btn {
  width: 42px;
  height: 42px;
  background-color: rgba(30, 45, 36, 0.95);
  color: #00FF9D;
  border: 2px solid #00FF9D;
  border-radius: 8px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  padding: 0;
}

.fullscreen-btn:hover {
  background-color: #00FF9D;
  color: #121A14;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 255, 157, 0.5);
}

.fullscreen-btn:active {
  transform: scale(0.95);
}

#threejs-container.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  border-radius: 0;
  border: none;
}

body.fullscreen-active header,
body.fullscreen-active #sensor-panel,
body.fullscreen-active footer {
  display: none;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #121A14;
  border-left: 2px solid #2E3D34;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00FF9D 0%, #3CB371 100%);
  border-radius: 6px;
  border: 2px solid #121A14;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #3CB371 0%, #00FF9D 100%);
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.5);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #00FF9D #121A14;
}

.about-main {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  background: #1E2D24;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 0;
}

.about-nav {
  background: linear-gradient(135deg, #121A14 0%, #1E2D24 100%);
  border-bottom: 2px solid #2E3D34;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.about-nav-link {
  color: #A8B2A0;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 2px solid #2E3D34;
  background: rgba(30, 45, 36, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-icon {
  font-size: 1rem;
}

.about-nav-link:hover {
  color: #00FF9D;
  background: rgba(0, 255, 157, 0.1);
  border-color: #00FF9D;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.about-box {
  background: linear-gradient(135deg, #1E2D24 0%, #2E3D34 100%);
  border-radius: 12px;
  border: 2px solid #2E3D34;
  overflow: visible;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  scroll-margin-top: 150px;
  flex-shrink: 0;
}

.about-box:hover {
  border-color: #00FF9D;
  box-shadow: 0 8px 24px rgba(0, 255, 157, 0.2);
  transform: translateY(-2px);
}

.box-header {
  background: linear-gradient(135deg, #121A14 0%, #1E2D24 100%);
  padding: 1.5rem 2rem;
  border-bottom: 2px solid #00FF9D;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.box-icon {
  font-size: 2.5rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(0, 255, 157, 0.4));
}

.box-header h2 {
  font-family: 'DarkFuture';
  font-size: 2rem;
  color: #00FF9D;
  letter-spacing: 8px;
  margin: 0;
  text-shadow: 
    0 0 10px rgba(0, 255, 157, 0.6),
    0 0 20px rgba(0, 255, 157, 0.4);
}

.box-content {
  padding: 2.5rem;
  background: rgba(18, 26, 20, 0.4);
}

.box-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #E6E6E6;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.box-content strong {
  color: #00FF9D;
  text-shadow: 0 0 5px rgba(0, 255, 157, 0.3);
}

.highlight-box {
  background: rgba(0, 255, 157, 0.08);
  border-left: 4px solid #00FF9D;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.6;
  color: #E6E6E6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.vision-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.mini-card {
  background: linear-gradient(135deg, #121A14 0%, #1E2D24 100%);
  border: 2px solid #2E3D34;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.mini-card:hover {
  border-color: #00FF9D;
  transform: translateY(-5px);
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 255, 157, 0.2);
}

.mini-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px rgba(0, 255, 157, 0.3));
}

.mini-card h3 {
  color: #00FF9D;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(0, 255, 157, 0.4);
}

.mini-card p {
  font-size: 0.95rem;
  color: #E6E6E6;
  margin: 0;
  text-align: left;
}

/* Objetivos */
.objectives-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.objective-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #121A14 0%, #1E2D24 100%);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid #2E3D34;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.objective-row:hover {
  border-color: #00FF9D;
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(0, 255, 157, 0.2);
  transform: translateY(-2px);
}

.objective-number {
  font-family: 'DarkFuture';
  font-size: 3rem;
  color: #00FF9D;
  text-shadow: 
    0 0 10px rgba(0, 255, 157, 0.6),
    0 0 20px rgba(0, 255, 157, 0.4);
  min-width: 80px;
  flex-shrink: 0;
  line-height: 1;
}

.objective-text h3 {
  color: #00FF9D;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 8px rgba(0, 255, 157, 0.4);
}

.objective-text p {
  font-size: 1rem;
  color: #E6E6E6;
  margin: 0;
  text-align: left;
}

/* Tecnologías */
.tech-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tech-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, #121A14 0%, #1E2D24 100%);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid #2E3D34;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.tech-row:hover {
  border-color: #00FF9D;
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(0, 255, 157, 0.2);
  transform: translateY(-2px);
}

.tech-label {
  color: #00FF9D;
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 255, 157, 0.4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-description {
  color: #E6E6E6;
  font-size: 1rem;
  line-height: 1.6;
}

.team-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.team-member {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(135deg, #121A14 0%, #1E2D24 100%);
  padding: 2.5rem;
  border-radius: 12px;
  border: 2px solid #2E3D34;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.team-member:hover {
  border-color: #00FF9D;
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 255, 157, 0.2);
  transform: translateY(-2px);
}

.member-avatar {
  width: 120px;
  height: 120px;
  min-width: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00FF9D 0%, #3CB371 100%);
  color: #121A14;
  font-size: 2.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 20px rgba(0, 255, 157, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

.member-info h3 {
  color: #00FF9D;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
}

.member-role {
  color: #A8B2A0;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.member-description {
  font-size: 1rem;
  color: #E6E6E6;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.project-info {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.08) 0%, rgba(0, 255, 157, 0.05) 100%);
  border: 2px solid #00FF9D;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(0, 255, 157, 0.1);
}

.project-info p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 2;
  color: #E6E6E6;
  text-align: left;
}

.project-info strong {
  color: #00FF9D;
  text-shadow: 0 0 5px rgba(0, 255, 157, 0.3);
}

@media (max-width: 768px) {
  .about-main {
    padding: 1rem;
    gap: 1rem;
  }

  .about-nav {
    padding: 0.8rem 1rem;
    gap: 0.5rem;
  }

  .about-nav-link {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .nav-icon {
    font-size: 0.9rem;
  }

  .box-header {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .box-icon {
    font-size: 2rem;
  }

  .box-header h2 {
    font-size: 1.5rem;
    letter-spacing: 3px;
  }

  .box-content {
    padding: 1.5rem;
  }

  .vision-cards {
    grid-template-columns: 1fr;
  }

  .objective-row {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .objective-number {
    font-size: 2.5rem;
    min-width: auto;
  }

  .tech-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .tech-label {
    font-size: 1rem;
  }

  .team-member {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .member-avatar {
    width: 100px;
    height: 100px;
    min-width: 100px;
    font-size: 2rem;
  }

  .member-info h3 {
    font-size: 1.5rem;
  }

  .member-info h3,
  .member-description,
  .project-info p {
    text-align: center;
  }
}

/* ========================================
   SISTEMA DE NOTIFICACIONES DE ALERTAS
======================================== */

/* Header del panel de sensores con campana */
.sensor-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.sensor-panel-header h2 {
  margin: 0;
}

/* Botón de campana */
.notification-bell {
  position: relative;
  background: linear-gradient(135deg, #1E2D24 0%, #2E3D34 100%);
  border: 2px solid #00FF9D;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.notification-bell:hover {
  background: #00FF9D;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 255, 157, 0.4);
}

.notification-bell:active {
  transform: scale(0.95);
}

/* Badge de contador */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #FF6B6B;
  color: #FFF;
  border-radius: 12px;
  min-width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Panel desplegable de notificaciones */
.notification-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 400px;
  max-width: calc(100vw - 40px);
  max-height: 600px;
  background: linear-gradient(135deg, #1E2D24 0%, #121A14 100%);
  border: 2px solid #00FF9D;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 157, 0.2);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s ease;
}

.notification-panel.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.notification-panel-header {
  padding: 1rem 1.5rem;
  border-bottom: 2px solid #2E3D34;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-panel-header h3 {
  color: #00FF9D;
  margin: 0;
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.notification-close-btn {
  background: transparent;
  border: none;
  color: #A8B2A0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.notification-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #E6E6E6;
}

.notification-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

/* Item de alerta en el panel */
.alert-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin: 0.5rem 0;
  background: rgba(30, 45, 36, 0.3);
  border: 2px solid #2E3D34;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.alert-item:hover {
  background: rgba(30, 45, 36, 0.5);
  border-color: #00FF9D;
}

.alert-item.unread {
  background: rgba(0, 255, 157, 0.05);
  border-color: #00FF9D;
}

.alert-item.alert-high {
  border-left: 4px solid #FF6B6B;
}

.alert-item.alert-low {
  border-left: 4px solid #F2C94C;
}

.alert-item.alert-critical {
  border-left: 4px solid #C62828;
  background: rgba(198, 40, 40, 0.05);
  animation: criticalPulse 2s infinite;
}

@keyframes criticalPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(198, 40, 40, 0.4);
  }
  50% {
    box-shadow: 0 0 15px rgba(198, 40, 40, 0.6);
  }
}

.alert-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
  min-width: 0;
}

.alert-title {
  color: #00FF9D;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.alert-message {
  color: #E6E6E6;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.alert-message strong {
  color: #00FF9D;
}

.alert-time {
  color: #A8B2A0;
  font-size: 0.75rem;
}

.unread-indicator {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #00FF9D;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

/* Estado vacío */
.notification-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: #A8B2A0;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.notification-empty p {
  margin: 0;
  font-size: 1rem;
}

/* Footer del panel */
.notification-panel-footer {
  padding: 1rem;
  border-top: 2px solid #2E3D34;
  text-align: center;
}

.view-all-link {
  color: #00FF9D;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.view-all-link:hover {
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.8);
  transform: translateX(5px);
}

/* ========================================
   PÁGINA DE HISTORIAL COMPLETO
======================================== */

.notifications-main {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  overflow-y: auto;
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #00FF9D;
}

.notifications-header h2 {
  font-family: 'DarkFuture';
  color: #00FF9D;
  letter-spacing: 8px;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.mark-all-btn {
  background: linear-gradient(135deg, #1E2D24 0%, #2E3D34 100%);
  color: #00FF9D;
  border: 2px solid #00FF9D;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mark-all-btn:hover {
  background: #00FF9D;
  color: #121A14;
  box-shadow: 0 4px 12px rgba(0, 255, 157, 0.4);
}

/* Filtros */
.filters-container {
  background: linear-gradient(135deg, #1E2D24 0%, #2E3D34 100%);
  border: 2px solid #2E3D34;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 150px;
}

.filter-group label {
  color: #00FF9D;
  font-size: 0.9rem;
  font-weight: 600;
}

.filter-select {
  background: #121A14;
  color: #E6E6E6;
  border: 2px solid #2E3D34;
  padding: 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:hover,
.filter-select:focus {
  border-color: #00FF9D;
  outline: none;
}

.clear-filters-btn {
  background: rgba(198, 40, 40, 0.8);
  color: #E6E6E6;
  border: 2px solid #FF6B6B;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-end;
}

.clear-filters-btn:hover {
  background: #FF6B6B;
  color: #121A14;
}

/* Estadísticas */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, #1E2D24 0%, #2E3D34 100%);
  border: 2px solid #2E3D34;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: #00FF9D;
  box-shadow: 0 4px 12px rgba(0, 255, 157, 0.2);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #00FF9D;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #A8B2A0;
  font-size: 0.9rem;
}

/* Contenedor de alertas */
.alerts-container {
  background: linear-gradient(135deg, #1E2D24 0%, #2E3D34 100%);
  border: 2px solid #2E3D34;
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 400px;
  margin-bottom: 2rem;
}

.alert-item-full {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: #121A14;
  border: 2px solid #2E3D34;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.alert-item-full:hover {
  border-color: #00FF9D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 157, 0.2);
}

.alert-item-full.unread {
  border-color: #00FF9D;
  background: rgba(0, 255, 157, 0.05);
}

.alert-item-full.alert-high {
  border-left: 6px solid #FF6B6B;
}

.alert-item-full.alert-low {
  border-left: 6px solid #F2C94C;
}

.alert-item-full.alert-critical {
  border-left: 6px solid #C62828;
  background: rgba(198, 40, 40, 0.05);
  animation: criticalPulse 2s infinite;
}

.alert-icon-full {
  font-size: 3rem;
  flex-shrink: 0;
}

.alert-content-full {
  flex: 1;
}

.alert-header-full {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.alert-sensor-name {
  color: #00FF9D;
  font-weight: 700;
  font-size: 1.2rem;
}

.alert-timestamp {
  color: #A8B2A0;
  font-size: 0.85rem;
}

.alert-value {
  color: #E6E6E6;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.alert-value strong {
  color: #00FF9D;
  font-size: 1.2rem;
}

.alert-message-full {
  color: #E6E6E6;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.alert-full-date {
  color: #A8B2A0;
  font-size: 0.8rem;
}

.unread-indicator-full {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #00FF9D;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.8);
}

/* Estados vacíos/cargando */
.alerts-loading,
.alerts-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #A8B2A0;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #2E3D34;
  border-top-color: #00FF9D;
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.alerts-empty h3 {
  color: #00FF9D;
  margin-bottom: 0.5rem;
}

/* Paginación */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination-btn {
  background: linear-gradient(135deg, #1E2D24 0%, #2E3D34 100%);
  color: #E6E6E6;
  border: 2px solid #2E3D34;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  min-width: 40px;
}

.pagination-btn:hover:not(.disabled) {
  border-color: #00FF9D;
  color: #00FF9D;
}

.pagination-btn.active {
  background: #00FF9D;
  color: #121A14;
  border-color: #00FF9D;
}

.pagination-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-ellipsis {
  color: #A8B2A0;
  padding: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .notification-panel {
    width: calc(100vw - 20px);
    right: 10px;
    top: 70px;
  }

  .notifications-main {
    padding: 1rem;
  }

  .notifications-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .filters-container {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .alert-item-full {
    flex-direction: column;
    gap: 1rem;
  }

  .alert-icon-full {
    font-size: 2rem;
  }

  .pagination {
    flex-wrap: wrap;
  }
}