/* ========================================
   HERO CODE CON FONDO DE CONSTELACIÓN
   ======================================== */

/* ========================================
   FIX SCROLL HORIZONTAL - RESPONSIVE
   ======================================== */

/* Prevenir scroll horizontal global */
html {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  position: relative;
}

/* Hero section - sin overflow */
.hero-code {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
}

/* Canvas constelación */
#constellation-canvas {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Background */
.hero-background {
  max-width: 100% !important;
  overflow: hidden !important;
}

.hero-shapes {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Contenedores Bootstrap */
.hero-code .container,
.hero-code .container-xl {
  max-width: 100% !important;
  overflow: hidden !important;
  padding-left: 15px;
  padding-right: 15px;
}

.hero-code .row {
  margin-left: -15px;
  margin-right: -15px;
  max-width: calc(100% + 30px);
}

/* ======================================== */


/* Hero con fondo azul profundo y constelación */
.hero-code {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Fondo azul profundo sólido */
  background: #0a1a3c;
  padding: 120px 0 80px;
}

/* Canvas para las constelaciones */
#constellation-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Fondo con formas animadas sutiles */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: morphShape 25s ease-in-out infinite;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #1a3a5c, #2c5282);
  top: -20%;
  left: -15%;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #0d2847, #1a3a5c);
  bottom: -20%;
  right: -10%;
  animation-delay: 8s;
}

.shape-3 {
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, #0a1f3d, #1a3a5c);
  top: 40%;
  right: 10%;
  animation-delay: 15s;
}

@keyframes morphShape {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 50%;
  }
  25% {
    transform: translate(80px, -60px) rotate(90deg) scale(1.2);
    border-radius: 40% 60% 70% 30%;
  }
  50% {
    transform: translate(-50px, 80px) rotate(180deg) scale(0.9);
    border-radius: 60% 40% 30% 70%;
  }
  75% {
    transform: translate(60px, 50px) rotate(270deg) scale(1.1);
    border-radius: 30% 70% 60% 40%;
  }
}

/* Contenido del hero */
.hero-content {
  position: relative;
  z-index: 2;
}

/* Título */
.hero-title {
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 30px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.title-line-1 {
  display: block;
  color: #ffffff;
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.title-line-2 {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, #e0f2ff 50%, #bae6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInLeft 0.8s ease-out 0.4s both, gradientShift 5s ease infinite;
  background-size: 200% 200%;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Descripción */
.hero-description {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  min-height: 80px;
  animation: fadeIn 0.8s ease-out 0.6s both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.typing-text {
  display: inline;
}

.cursor {
  display: none !important; /* Ocultar cursor completamente */
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ========================================
   EDITOR DE CÓDIGO SUPER ANIMADO
   ======================================== */

.code-editor-wrapper {
  position: relative;
  z-index: 2;
  animation: fadeInRight 1s ease-out;
}

/* Vista de código */
.code-window {
  background: rgba(20, 30, 48, 0.95);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  min-height: 400px; /* Altura fija para mantener estático */
  max-height: 400px; /* Altura máxima fija */
  /* Sin animaciones ni transiciones - completamente estático */
}

.code-editor-wrapper:hover .code-window {
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
}

/* Header del editor */
.window-header {
  background: rgba(15, 23, 42, 0.95);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-buttons {
  display: flex;
  gap: 8px;
}

.window-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-close {
  background: #ff5f57;
  animation: breathe 2s ease-in-out infinite;
}

.btn-minimize {
  background: #ffbd2e;
  animation: breathe 2s ease-in-out 0.3s infinite;
}

.btn-maximize {
  background: #28ca42;
  animation: breathe 2s ease-in-out 0.6s infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.9); }
}

.window-buttons span:hover {
  transform: scale(1.3);
  box-shadow: 0 0 15px currentColor;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-family: 'Courier New', monospace;
}

.window-title i {
  color: #6bb8e8;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.window-actions i {
  color: #6bb8e8;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse 2s ease-in-out infinite;
}

.window-actions i:hover {
  color: #4A90C4;
  transform: scale(1.3) rotate(360deg);
}

/* Contenido del código con animaciones */
.code-content {
  display: flex;
  padding: 20px 0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.8;
  min-height: 250px; /* Altura fija para evitar crecimiento */
  max-height: 250px; /* Altura máxima fija */
  overflow: hidden; /* Ocultar scrollbar visible */
}

.line-numbers {
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
  user-select: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.line-num {
  display: block;
  transition: all 0.3s ease;
  animation: lineGlow 8s ease-in-out infinite;
  animation-delay: calc(var(--line-index, 0) * 0.5s);
}

.code-window:hover .line-num {
  color: rgba(107, 184, 232, 0.8);
}

@keyframes lineGlow {
  0%, 90%, 100% { 
    color: rgba(255, 255, 255, 0.4);
    text-shadow: none;
  }
  95% { 
    color: #6bb8e8;
    text-shadow: 0 0 10px #6bb8e8;
  }
}

.code-lines {
  flex: 1;
  padding: 0 20px;
  overflow-y: auto; /* Scroll interno */
  overflow-x: hidden; /* Sin scroll horizontal */
  /* Ocultar scrollbar pero mantener funcionalidad */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE y Edge */
}

/* Ocultar scrollbar en Chrome, Safari y Opera */
.code-lines::-webkit-scrollbar {
  display: none;
}

.code-lines pre {
  margin: 0;
}

.code-lines code {
  color: #e2e8f0;
}

/* Colores de sintaxis */
.keyword { color: #ff79c6; font-weight: 600; }
.string { color: #50fa7b; }
.function { color: #8be9fd; }
.comment { color: #6272a4; font-style: italic; }
.number { color: #bd93f9; }
.operator { color: #ff79c6; }
.variable { color: #f1fa8c; }
.tag { color: #ff79c6; }
.attr { color: #50fa7b; }
.value { color: #f1fa8c; }

/* Indicador de escritura */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-family: 'Courier New', monospace;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: pulse 2s ease-in-out infinite;
}

.typing-indicator i {
  color: #6bb8e8;
  font-size: 16px;
}

.dots {
  display: flex;
  gap: 4px;
}

.dots span {
  animation: dotPulse 1.4s ease-in-out infinite;
}

.dots span:nth-child(1) { animation-delay: 0s; }
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}

/* Vista Web Preview */
.web-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: all 0.5s ease;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.code-editor-wrapper:hover .web-preview {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Browser Header */
.browser-header {
  background: #f0f0f0;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
}

.browser-buttons {
  display: flex;
  gap: 8px;
}

.browser-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
}

.browser-buttons span:nth-child(1) { background: #ff5f57; }
.browser-buttons span:nth-child(2) { background: #ffbd2e; }
.browser-buttons span:nth-child(3) { background: #28ca42; }

.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 6px 15px;
  border-radius: 8px;
  margin: 0 15px;
  font-size: 12px;
  color: #666;
  font-family: 'Courier New', monospace;
  border: 1px solid #ddd;
}

.browser-url i {
  color: #28ca42;
}

.browser-actions i {
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.browser-actions i:hover {
  color: #333;
  transform: rotate(360deg);
}

/* Web Content */
.web-content {
  padding: 40px 30px 50px; /* Más padding abajo para los íconos */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: calc(100% - 50px); /* Altura exacta menos el header */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Cambiar a flex-start para evitar cortes */
  align-items: center;
  text-align: center;
  overflow-y: auto; /* Scroll si es necesario */
  overflow-x: hidden;
  /* Ocultar scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE y Edge */
}

/* Ocultar scrollbar en Chrome, Safari y Opera */
.web-content::-webkit-scrollbar {
  display: none;
}

.web-content .hero-description h2 {
  font-size: 28px; /* Reducir de 32px a 28px */
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px; /* Reducir de 15px a 10px */
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.web-content .hero-description p {
  font-size: 15px; /* Reducir de 16px a 15px */
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px; /* Reducir de 30px a 20px */
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.web-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 25px; /* Reducir de 40px a 25px */
}

.web-btn {
  padding: 12px 30px;
  border-radius: 25px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.web-btn:not(.outline) {
  background: #ffffff;
  color: #667eea;
}

.web-btn.outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.web-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.web-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 500px;
}

.feature-box {
  background: rgba(255, 255, 255, 0.15);
  padding: 15px 10px; /* Reducir padding */
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.feature-box:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.feature-box i {
  font-size: 24px; /* Reducir de 28px a 24px */
  color: #ffffff;
  margin-bottom: 5px; /* Reducir margen */
  display: block;
}

.feature-box span {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* Hover hint */
.hover-hint {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  animation: bounceHint 2s ease-in-out infinite;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.code-editor-wrapper:hover .hover-hint {
  opacity: 0;
}

.hover-hint i {
  font-size: 16px;
  color: #6bb8e8;
}

@keyframes bounceHint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeInUp 0.8s ease-out 1.5s both;
}

.mouse-wrapper {
  position: relative;
}

.mouse {
  width: 28px;
  height: 45px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  position: relative;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.wheel {
  width: 4px;
  height: 10px;
  background: #ffffff;
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-out infinite;
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    top: 10px;
  }
  100% {
    opacity: 0;
    top: 25px;
  }
}

.scroll-down span {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Animaciones generales */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 991px) {
  .hero-code {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: 60px;
  }

  .code-editor-wrapper {
    margin-top: 50px;
  }

  .hover-hint {
    bottom: -40px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .hero-code {
    padding: 80px 0 40px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-description {
    font-size: 18px;
  }

  .code-content {
    font-size: 12px;
  }

  .web-content .hero-description h2 {
    font-size: 22px;
  }

  .web-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hover-hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
  }
}

/* ========================================
   ANIMACIONES DE ENTRADA MEJORADAS
   ======================================== */

/* Animación de las líneas de código apareciendo progresivamente */
.code-line {
  opacity: 0;
  animation: lineAppear 0.4s ease-out forwards;
}

.code-line:nth-child(1) { animation-delay: 0.8s; }
.code-line:nth-child(2) { animation-delay: 0.9s; }
.code-line:nth-child(3) { animation-delay: 1.0s; }
.code-line:nth-child(4) { animation-delay: 1.1s; }
.code-line:nth-child(5) { animation-delay: 1.2s; }
.code-line:nth-child(6) { animation-delay: 1.3s; }
.code-line:nth-child(7) { animation-delay: 1.4s; }
.code-line:nth-child(8) { animation-delay: 1.5s; }
.code-line:nth-child(9) { animation-delay: 1.6s; }
.code-line:nth-child(10) { animation-delay: 1.7s; }
.code-line:nth-child(11) { animation-delay: 1.8s; }
.code-line:nth-child(12) { animation-delay: 1.9s; }

@keyframes lineAppear {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Números de línea apareciendo */
.line-num {
  opacity: 0;
  animation: numberAppear 0.3s ease-out forwards;
}

.line-num:nth-child(1) { animation-delay: 0.8s; }
.line-num:nth-child(2) { animation-delay: 0.9s; }
.line-num:nth-child(3) { animation-delay: 1.0s; }
.line-num:nth-child(4) { animation-delay: 1.1s; }
.line-num:nth-child(5) { animation-delay: 1.2s; }
.line-num:nth-child(6) { animation-delay: 1.3s; }
.line-num:nth-child(7) { animation-delay: 1.4s; }
.line-num:nth-child(8) { animation-delay: 1.5s; }
.line-num:nth-child(9) { animation-delay: 1.6s; }
.line-num:nth-child(10) { animation-delay: 1.7s; }
.line-num:nth-child(11) { animation-delay: 1.8s; }
.line-num:nth-child(12) { animation-delay: 1.9s; }

@keyframes numberAppear {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botones del header del código animados */
.window-buttons span {
  opacity: 0;
  animation: buttonPop 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.btn-close { animation-delay: 0.5s; }
.btn-minimize { animation-delay: 0.6s; }
.btn-maximize { animation-delay: 0.7s; }

@keyframes buttonPop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(180deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Título del archivo animado */
.window-title {
  opacity: 0;
  animation: titleSlide 0.8s ease-out 0.6s forwards;
}

@keyframes titleSlide {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Botón play animado */
.window-actions i {
  opacity: 0;
  animation: playBounce 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.7s forwards;
}

@keyframes playBounce {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  60% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Hint animado con rebote */
.hover-hint {
  opacity: 0;
  animation: hintBounceIn 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) 2.5s forwards;
}

@keyframes hintBounceIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0);
  }
  60% {
    transform: translateX(-50%) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}
/* ========================================
   FIX RESPONSIVE PARA MÓVILES
   Corrige el problema del viewport en index.html
   ======================================== */

/* Prevenir overflow horizontal en móviles */
@media (max-width: 1279px) {
  .hero-code {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .hero-background,
  #constellation-canvas {
    max-width: 100vw;
  }
  
  /* Reducir tamaño de formas decorativas en tablets */
  .shape-1 {
    width: 400px;
    height: 400px;
  }
  
  .shape-2 {
    width: 350px;
    height: 350px;
  }
  
  .shape-3 {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  /* Hacer las formas más pequeñas en móviles */
  .shape-1 {
    width: 250px;
    height: 250px;
  }
  
  .shape-2 {
    width: 200px;
    height: 200px;
  }
  
  .shape-3 {
    width: 180px;
    height: 180px;
  }
  
  /* Asegurar que el container no cause overflow */
  .hero-code .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Reducir más el título en móviles pequeños */
  .hero-title {
    font-size: 40px !important;
  }
  
  /* Ajustar el editor de código */
  .code-editor-wrapper {
    max-width: 100%;
  }
  
  .code-window,
  .web-preview {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  /* Para móviles muy pequeños */
  .hero-title {
    font-size: 32px !important;
    line-height: 1.2;
  }
  
  .title-line-1,
  .title-line-2 {
    display: block;
  }
  
  .hero-description {
    font-size: 14px !important;
  }
  
  /* Ocultar formas decorativas en móviles muy pequeños */
  .shape {
    opacity: 0.08;
  }
  
  /* Reducir padding del hero */
  .hero-code {
    padding: 100px 0 40px !important;
  }
}

/* Fix para evitar que el canvas cause scroll horizontal */
#constellation-canvas {
  max-width: 100vw !important;
  overflow: hidden;
}

/* Asegurar que ningún elemento cause overflow */
.hero-code * {
  max-width: 100%;
}

/* Excepciones para elementos que necesitan ancho específico */
.window-buttons span,
.browser-buttons span,
.btn-close,
.btn-minimize,
.btn-maximize {
  max-width: none;
}

/* ========================================
   MEDIA QUERIES ADICIONALES - FORMAS
   Para eliminar scroll horizontal
   ======================================== */

@media (max-width: 991px) {
  .hero-code .container,
  .hero-code .container-xl {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* Reducir formas en tablets */
  .shape-1 {
    width: 400px !important;
    height: 400px !important;
  }
  
  .shape-2 {
    width: 350px !important;
    height: 350px !important;
  }
  
  .shape-3 {
    width: 300px !important;
    height: 300px !important;
  }
}

@media (max-width: 768px) {
  .hero-code {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .hero-code .container,
  .hero-code .container-xl {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Reducir más las formas en móviles */
  .shape-1 {
    width: 200px !important;
    height: 200px !important;
  }
  
  .shape-2 {
    width: 180px !important;
    height: 180px !important;
  }
  
  .shape-3 {
    width: 150px !important;
    height: 150px !important;
  }
}

@media (max-width: 480px) {
  /* Ocultar formas en móviles muy pequeños */
  .shape {
    display: none !important;
  }
  
  .hero-code {
    padding: 100px 0 40px !important;
  }
}

/* ======================================== */