/* ==========================================================================
   TRABAJO LIGERO — SISTEMA DE DISEÑO Y ESTILOS COMERCIALES
   ========================================================================== */

/* Variables del Sistema de Diseño */
:root {
  --bg: #050505;
  --card: #0b0b0b;
  --card-hover: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(108, 255, 143, 0.25);
  --white: #f5f5f5;
  --muted: #9ca3af;
  --green: #00FFE6;
  --green-glow: rgba(108, 255, 143, 0.4);
  --cyan: #55f6ff; /* Cian eléctrico */
  --cyan-glow: rgba(85, 246, 255, 0.25);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y Estilos Globales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Cuadrícula y Efectos de Fondo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(108, 255, 143, 0.08), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(85, 246, 255, 0.06), transparent 40%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.7), transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.7), transparent 85%);
  z-index: -1;
  pointer-events: none;
}

/* Contenedor Común */
.container {
  width: min(1200px, 90%);
  margin: auto;
}

/* Sistema de Partículas */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--green);
  border-radius: 50%;
  opacity: 0.3;
  animation: particlesUp 15s linear infinite;
}

@keyframes particlesUp {
  0% {
    transform: translateY(100vh) scale(0.5);
    opacity: 0;
  }
  20% {
    opacity: 0.4;
  }
  80% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-20vh) scale(1);
    opacity: 0;
  }
}

/* NAVEGACIÓN (NAVBAR) */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 92%);
  height: 62px;
  z-index: 999;
  padding: 14px 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 10, 0.65);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 
    width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    top 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}

nav.scrolled {
  top: 10px;
  padding: 10px 24px;
  background: rgba(5, 5, 5, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ESTADO MINIMIZADO (PÍLDORA COMPACTA ESTILO IPHONE, GRIS TRANSPARENTE, SIN LOGO) */
nav.minimized {
  width: 60px;
  height: 10px; /* Ultra slim pill */
  border-radius: 99px;
  padding: 0;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.15); /* Translucent light gray */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  top: 15px;
  cursor: pointer;
}

/* Área de activación de hover invisible extendida para fácil acceso (iPhone UX) */
nav.minimized::before {
  content: '';
  position: absolute;
  inset: -15px 0; /* Aumenta el hitbox vertical en 30px */
  border-radius: 99px;
  z-index: -1;
}

/* HOVER PARA EXPANDIR EN DESKTOP Y MÓVIL */
nav.minimized:hover {
  width: min(1200px, 92%);
  height: 62px;
  border-radius: 20px;
  padding: 14px 28px;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.96);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  overflow: visible;
}

.logo {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -1px;
  text-decoration: none;
  color: var(--white);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.logo-img {
  height: 42px;
  width: auto;
  margin-right: 12px;
  object-fit: contain;
  transition: var(--transition);
}

/* Ocultar logotipo al minimizar */
nav.minimized .logo-img {
  display: none !important;
  opacity: 0;
}

nav.minimized:hover .logo-img {
  display: block !important;
  opacity: 1;
}

.logo-full {
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.logo-short {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo-short span {
  color: var(--green);
  text-shadow: 0 0 15px var(--green-glow);
}

.logo-full span {
  color: var(--green);
  text-shadow: 0 0 15px var(--green-glow);
}

/* Ocultar Logos en estado minimizado (sin logos) */
nav.minimized .logo-full,
nav.minimized .logo-short {
  display: none !important;
  opacity: 0;
}

/* Mostrar Logo Completo al expandir */
nav.minimized:hover .logo-full {
  display: block !important;
  opacity: 1;
}

/* Ocultar contenidos de navegación por defecto al minimizar */
nav.minimized .nav-links,
nav.minimized > .btn,
nav.minimized .menu-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Restaurar contenidos en hover (DESKTOP) */
@media (min-width: 769px) {
  nav.minimized:hover .nav-links,
  nav.minimized:hover > .btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
  }
}

/* Restaurar menú hamburguesa en hover (MOBILE) */
@media (max-width: 768px) {
  nav.minimized:hover .menu-toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: relative;
    width: auto;
    height: auto;
    overflow: visible;
  }
  
  nav.minimized:hover .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: fixed;
    width: 90%;
    height: auto;
    overflow: visible;
  }
}

.nav-links {
  display: flex;
  gap: 32px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

/* Botones */
.btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: #000;
  box-shadow: 0 0 25px var(--green-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px var(--green-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Menú Móvil Hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition);
}

/* SECCIÓN HÉROE (HERO) */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(108, 255, 143, 0.15);
  background: rgba(108, 255, 143, 0.04);
  color: var(--green);
  margin-bottom: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(108, 255, 143, 0.2);
}

h1 {
  font-size: 4.8rem;
  line-height: 1.05;
  letter-spacing: -3px;
  margin-bottom: 24px;
  font-weight: 800;
}

h1 span {
  color: var(--green);
  text-shadow: 0 0 35px var(--green-glow);
  position: relative;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 40px;
}

.hero .buttons {
  display: flex;
  gap: 16px;
}

/* Dashboard Mockup (Hero Derecha) */
.dashboard-mockup {
  position: relative;
  height: 520px;
  width: 100%;
}

.glass-card {
  position: absolute;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
}

.card1 {
  width: 360px;
  right: 0;
  top: 40px;
  padding: 24px;
  animation: floatCard 6s ease-in-out infinite;
}

.card2 {
  width: 280px;
  left: 10px;
  top: 180px;
  padding: 20px;
  animation: floatCard 8s ease-in-out infinite;
  animation-delay: 1s;
}

.card3 {
  width: 220px;
  right: 60px;
  bottom: 20px;
  padding: 18px;
  animation: floatCard 7s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-16px);
  }
}

.card-title {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
}

.card2 .card-title::after {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.metric {
  font-size: 2.4rem;
  font-weight: 800;
  margin-top: 12px;
  color: var(--green);
  letter-spacing: -1px;
}

.card2 .metric {
  color: var(--cyan);
}

.indicator-bar {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  margin-top: 16px;
  overflow: hidden;
}

.indicator-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), transparent);
  border-radius: 99px;
  width: 85%;
}

.card2 .indicator-fill {
  background: linear-gradient(90deg, var(--cyan), transparent);
  width: 94%;
}

.card-details {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.card-details strong {
  color: var(--white);
}

/* SECCIONES COMUNES */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.section-header h2 span {
  color: var(--green);
}

.section-header p {
  color: var(--muted);
  max-width: 650px;
  margin: auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* SECCIÓN: DEMO INTERACTIVA (WHATSAPP SIMULATOR) */
.demo-section {
  background: radial-gradient(circle at 50% 50%, rgba(108, 255, 143, 0.02), transparent 60%);
}

.demo-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 50px;
}

.demo-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.demo-info p {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 1rem;
  line-height: 1.8;
}

/* Controles de Sugerencias */
.prompt-chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prompt-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prompt-btn:hover,
.prompt-btn.active {
  background: rgba(108, 255, 143, 0.04);
  border-color: rgba(108, 255, 143, 0.3);
  transform: translateX(5px);
}

.prompt-btn.active {
  border-color: var(--green);
  box-shadow: 0 0 15px rgba(108, 255, 143, 0.1);
}

.prompt-btn span.arrow {
  color: var(--green);
  opacity: 0;
  transition: var(--transition);
  transform: translateX(-10px);
}

.prompt-btn:hover span.arrow,
.prompt-btn.active span.arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Carrusel de Teléfonos WhatsApp */
.phone-carousel-viewport {
  width: 350px;
  height: 600px;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  margin: auto;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-carousel-track {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-carousel-track .phone-frame {
  width: 33.333%;
  height: 100%;
  flex-shrink: 0;
  margin: 0;
  box-shadow: none;
  border: 10px solid #1a1a1a;
}

.phone-frame {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: #080808;
}

/* Altavoz y Cámara Frontal */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 20px;
  background: #1a1a1a;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

/* Cabecera Chat */
.chat-header {
  padding: 24px 16px 12px 16px;
  background: rgba(15, 15, 15, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #000;
  font-weight: 700;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  padding: 3px;
  background: rgba(10, 10, 10, 0.95);
}

.chat-user-info {
  flex: 1;
}

.chat-user-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
}

.chat-status {
  font-size: 0.65rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-status::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
}

/* Historial del Chat */
.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: radial-gradient(circle at center, #0c0d0c 0%, #050505 100%);
  scrollbar-width: none;
}

.chat-messages::-webkit-scrollbar {
  display: none;
}

/* Burbujas de Mensaje */
.message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  line-height: 1.4;
  animation: messageIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes messageIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.bot {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--white);
  align-self: flex-start;
  border-top-left-radius: 4px;
}

.message.user {
  background: var(--green);
  color: #000;
  align-self: flex-end;
  border-top-right-radius: 4px;
  font-weight: 500;
}

/* Estado de Escribiendo */
.typing-indicator {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 10px 16px;
  border-radius: 16px;
  border-top-left-radius: 4px;
  display: none;
  gap: 4px;
  align-items: center;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: typingDot 1.4s infinite both;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Entrada de Chat Falsa */
.chat-footer {
  padding: 12px;
  background: rgba(10, 10, 10, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
}

.chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  cursor: pointer;
}

.chat-input-disabled {
  width: 100%;
  padding: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

/* SECCIÓN: SERVICIOS Y EMPLEADOS IA */
.services-section {
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  background: rgba(108, 255, 143, 0.05);
  filter: blur(50px);
  top: -40px;
  right: -40px;
  transition: var(--transition);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  background: var(--card-hover);
  box-shadow: 0 15px 40px rgba(108, 255, 143, 0.08);
}

.service-card:hover::before {
  background: rgba(108, 255, 143, 0.08);
  filter: blur(40px);
}

.service-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 24px;
  transition: var(--transition);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.service-card:hover img {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 0 12px var(--green-glow));
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(85, 246, 255, 0.2);
  background: rgba(85, 246, 255, 0.04);
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* Detalle Automatizaciones Adicionales */
.extra-services-block {
  margin-top: 80px;
  padding: 60px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  border-radius: 32px;
}

.extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.extra-info h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.extra-info p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.extra-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.extra-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.extra-check {
  font-size: 1.1rem;
  color: var(--green);
  line-height: 1;
}

.extra-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.extra-content p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* SECCIÓN: MÉTRICAS Y RESULTADOS */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
}

.metric-card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
}

.metric-card h3 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 8px;
  letter-spacing: -2px;
  text-shadow: 0 0 25px rgba(108, 255, 143, 0.2);
}

.metric-card p {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}


/* SECCIÓN: PREGUNTAS FRECUENTES (FAQ ACORDEÓN) */
.faq-container {
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-item.active {
  border-color: var(--border-hover);
  background: var(--card-hover);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-trigger span.icon {
  font-size: 1.2rem;
  color: var(--green);
  transition: var(--transition);
}

.faq-item.active .faq-trigger span.icon {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content p {
  padding: 0 24px 24px 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* SECCIÓN: LLAMADO A LA ACCIÓN (CTA FINAL) */
.cta-container {
  background: linear-gradient(135deg, rgba(108, 255, 143, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-container::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: rgba(108, 255, 143, 0.1);
  filter: blur(100px);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-container h2 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.cta-container p {
  color: var(--muted);
  max-width: 600px;
  margin: auto;
  margin-bottom: 40px;
  font-size: 1.1rem;
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

.cta-container .buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

/* PIE DE PÁGINA (FOOTER) */
footer {
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 20px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--green);
}

/* ==========================================================================
   SECCIÓN DE INTEGRACIÓN DE IAS (VENTANAS FLOTANTES GLASSMORPHIC)
   ========================================================================== */

.integrations-section {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(85, 246, 255, 0.02), transparent 70%);
  overflow: hidden;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 40px;
  perspective: 1000px;
}

/* Glass floating window cards */
.integration-card {
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition);
}

/* Float Animation with different durations/delays for realism */
#ai-deepseek {
  animation: floatCard 8s ease-in-out infinite;
}

#ai-chatgpt {
  animation: floatCard 7s ease-in-out infinite;
  animation-delay: 1.5s;
}

#ai-claude {
  animation: floatCard 9s ease-in-out infinite;
  animation-delay: 0.5s;
}

#ai-gemini {
  animation: floatCard 7.5s ease-in-out infinite;
  animation-delay: 2.2s;
}

#ai-grok {
  animation: floatCard 8.5s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* Hover style: glowing borders + slightly increased float lift */
.integration-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(108, 255, 143, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

/* Window Top Bar (OS Interface) */
.window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.window-dots .dot.red { background: #ff5f56; }
.window-dots .dot.yellow { background: #ffbd2e; }
.window-dots .dot.green { background: #27c93f; }

.window-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* Brand Logo Styling */
.brand-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: var(--transition);
}

.integration-card:hover .brand-logo-wrapper {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.05);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 6px;
}

/* Integration Meta and Tags */
.integration-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  text-shadow: 0 0 10px rgba(0, 255, 230, 0.2);
  letter-spacing: 0.5px;
}



.integration-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.integration-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN: LO QUE HACEMOS POR TU NEGOCIO
   ========================================================================== */

.what-we-do-section {
  position: relative;
  background: radial-gradient(circle at 30% 20%, rgba(108, 255, 143, 0.01), transparent 50%);
}

.what-we-do-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 50px;
}

.what-we-do-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  padding: 36px 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.what-we-do-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(108, 255, 143, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transform: translateY(-6px);
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 20px;
}

.pillar-header img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transition: var(--transition);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.what-we-do-card:hover .pillar-header img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px var(--green-glow));
}

.pillar-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
}

.pillar-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pillar-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.item-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--green);
}

#pillar-operaciones .item-dot {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

#pillar-informacion .item-dot {
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7;
}

.item-content strong {
  display: block;
  font-size: 0.98rem;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.4;
}

.item-content p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN: CICLO DE IMPLEMENTACIÓN (TIMELINE)
   ========================================================================== */

.timeline-section {
  position: relative;
  background: radial-gradient(circle at 10% 50%, rgba(108, 255, 143, 0.01), transparent 50%);
}

.timeline-container {
  position: relative;
  margin-top: 60px;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  top: 42px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan), #a855f7, transparent);
  opacity: 0.3;
  z-index: 1;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  z-index: 2;
  position: relative;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.step-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--green);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 3;
  box-shadow: 
    0 0 15px rgba(108, 255, 143, 0.3),
    inset 0 0 10px rgba(108, 255, 143, 0.2);
}

.timeline-step:nth-child(2) .step-number {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 
    0 0 15px rgba(85, 246, 255, 0.3),
    inset 0 0 10px rgba(85, 246, 255, 0.2);
}

.timeline-step:nth-child(3) .step-number {
  border-color: #ff8c3a;
  color: #ff8c3a;
  box-shadow: 
    0 0 15px rgba(255, 140, 58, 0.3),
    inset 0 0 10px rgba(255, 140, 58, 0.2);
}

.timeline-step:nth-child(4) .step-number {
  border-color: #a855f7;
  color: #a855f7;
  box-shadow: 
    0 0 15px rgba(168, 85, 247, 0.3),
    inset 0 0 10px rgba(168, 85, 247, 0.2);
}

.step-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px;
  transition: var(--transition);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  height: 100%;
}

.timeline-step:hover .step-card {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
}

.timeline-step:nth-child(2):hover .step-card {
  border-color: var(--cyan);
}
.timeline-step:nth-child(3):hover .step-card {
  border-color: #ff8c3a;
}
.timeline-step:nth-child(4):hover .step-card {
  border-color: #a855f7;
}

.step-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN: ¿QUÉ OBTIENES AL TRABAJAR CON NOSOTROS? (BENEFICIOS)
   ========================================================================== */

.benefits-section {
  position: relative;
  background: radial-gradient(circle at 80% 80%, rgba(85, 246, 255, 0.01), transparent 50%);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 50px;
}

.benefit-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.benefit-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-6px);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.benefit-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.benefit-icon-wrapper img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.benefit-icon-wrapper.red-grad {
  background: linear-gradient(135deg, #ff5f56, #ff8c3a);
}

.benefit-icon-wrapper.green-grad {
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.benefit-icon-wrapper.purple-grad {
  background: linear-gradient(135deg, #a855f7, #55f6ff);
}

.benefit-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.benefit-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================================
   DISEÑO RESPONSIVO (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  h1 {
    font-size: 3.8rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero .buttons {
    justify-content: center;
  }
  
  .dashboard-mockup {
    height: 480px;
    max-width: 500px;
    margin: auto;
  }
  
  .card1 {
    width: 320px;
  }
  
  .card2 {
    width: 250px;
    top: 150px;
  }
  
  .card3 {
    width: 200px;
    right: 30px;
  }
  
  .demo-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .demo-info {
    text-align: center;
  }
  
  .prompt-chips {
    max-width: 500px;
    margin: auto;
  }
  
  .extra-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
  
  .integrations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .integrations-grid .integration-card:last-child {
    grid-column: span 2;
  }
  
  .what-we-do-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .timeline-line {
    display: none;
  }
  
  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .timeline-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
  
  .step-card {
    width: 100%;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
    overflow: visible !important;
  }
  
  .nav-links {
    position: fixed;
    top: 100px;
    left: 5%;
    width: 90%;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid var(--border);
    border-radius: 20px;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .menu-toggle {
    display: flex;
  }
  
  /* Animación hamburguesa */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Ocultar botón nav en móvil y meterlo al menú flotante si es necesario,
     pero en este caso dejaremos que se alinee con el toggle */
  nav .btn {
    display: none; /* Se oculta de la barra superior */
  }
  
  .nav-links .btn-mobile {
    display: inline-flex !important;
    width: 100%;
    margin-top: 10px;
  }
  
  h1 {
    font-size: 2.8rem;
    letter-spacing: -1.5px;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .extra-services-block {
    padding: 30px;
  }
  
  .cta-container h2 {
    font-size: 2.2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .integrations-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .integrations-grid .integration-card:last-child {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .dashboard-mockup {
    display: none; /* Se oculta mockup estático complejo en pantallas muy pequeñas */
  }
  
  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 40px;
  }
  
  .phone-carousel-viewport {
    width: 100%;
    max-width: 320px;
    height: 520px;
  }
  
  .phone-carousel-track .phone-frame {
    width: 33.333%;
    max-width: 320px;
    height: 100%;
  }
  
  .phone-frame {
    width: 100%;
    max-width: 320px;
    height: 520px;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero .buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-container .buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .timeline-step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .step-card {
    padding: 20px 16px;
  }
  .benefit-card {
    padding: 30px 20px;
  }
  .what-we-do-card {
    padding: 24px 20px;
  }
}
