/* Estilos inmersivos para la página de IA - Efecto WOW */

body.ia-page {
  background: #0a0f18;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* El fondo interactivo */
#particles-js {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 0;
  background-color: #0a0f18;
}

/* Contenedor principal sin snap para fluidez de WOW.js */
.snap-container {
  position: relative;
  z-index: 1;
  width: 100vw;
  overflow-x: hidden;
}

/* Cada "sección" ocupa toda la pantalla pero permite scroll normal */
.snap-section {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 120px 20px;
  flex-direction: column;
  /* Transparencia para dejar ver las partículas */
  background: transparent;
}

/* Tipografía de Alto Impacto */
.ia-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 0 60px rgba(120, 238, 147, 0.3);
}

.ia-title span.neon {
  color: #78EE93;
  text-shadow: 0 0 20px rgba(120, 238, 147, 0.5), 0 0 60px rgba(120, 238, 147, 0.3);
}

.ia-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: #D1D5DB;
  font-weight: 300;
  text-align: center;
  max-width: 800px;
  line-height: 1.6;
}

/* Cajas de cristal muy sutiles */
.glass-box-ia {
  background: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 4rem;
  max-width: 900px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Indicador de scroll */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #78EE93;
  font-size: 2rem;
  animation: bounce 2s infinite;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
}

/* Ajustes menú superior para que flote encima de todo */
#header {
  background: rgba(10, 15, 24, 0.8) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

#footer {
  position: relative;
  z-index: 10;
}

/* Layouts Bento & Split */
.ia-content-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
  width: 100%;
}

.bento-item {
  background: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-item:hover {
  transform: translateY(-5px);
  border-color: rgba(120, 238, 147, 0.4);
  box-shadow: 0 10px 30px rgba(120, 238, 147, 0.1);
  background: rgba(17, 24, 39, 0.6);
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(120,238,147,0.1), transparent);
  transform: skewX(-25deg);
  transition: all 0.75s;
}

.bento-item:hover::before {
  left: 200%;
}

.bento-main {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-icon {
  font-size: 3rem;
  color: #78EE93;
  margin-bottom: 1rem;
}

.bento-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.bento-main .bento-title {
  font-size: 2.5rem;
}

.bento-text {
  font-family: 'Inter', sans-serif;
  color: #D1D5DB;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Split Screen */
.split-layout {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: 100%;
}

.split-text {
  flex: 1;
}

.split-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.split-visual img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.feature-list li {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  color: #D1D5DB;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.feature-list li i {
  color: #78EE93;
  font-size: 1.5rem;
  margin-right: 1rem;
  margin-top: 2px;
}

/* Section specific padding for the new layouts */
.snap-section.content-section {
  padding-top: 80px; /* For header */
}

/* Tarjetas de Proyectos con imagen de fondo */
.project-card {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(10,15,24,0.95) 0%, rgba(10,15,24,0.6) 100%);
  z-index: 1;
  transition: all 0.5s;
}

.project-card:hover::before {
  background: linear-gradient(to top, rgba(10,15,24,0.95) 0%, rgba(120,238,147,0.4) 100%);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(120,238,147,0.2);
  border-color: rgba(120, 238, 147, 0.6);
}

.project-card-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Responsive */
@media (max-width: 991px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-main {
    grid-column: span 1;
    grid-row: span 1;
  }
  .split-layout {
    flex-direction: column;
  }
  .ia-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }
  .snap-section {
    height: auto;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 40px;
  }
}
