/* ==========================================================================
   iStratium.com - Estilos Corporativos de IA para Ingeniería e Industria
   Estética: Industrial Tech Premium B2B (Deep Navy, Electric Cyan, Safety Yellow)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary: #060B14;
  --bg-secondary: #0B132B;
  --bg-tertiary: #111D3D;
  --bg-card: rgba(11, 19, 43, 0.75);
  --bg-card-hover: rgba(17, 29, 61, 0.9);

  --accent-cyan: #00F0FF;
  --accent-cyan-glow: rgba(0, 240, 255, 0.25);
  --accent-blue: #2563EB;
  --accent-blue-light: #38BDF8;
  
  --accent-yellow: #FFD000;
  --accent-yellow-hover: #F5C000;
  --accent-yellow-glow: rgba(255, 208, 0, 0.35);

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-tech: rgba(0, 240, 255, 0.2);
  --border-active: rgba(0, 240, 255, 0.5);

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 100% 40%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Tipografía y Acentos */
h1, h2, h3, h4, .font-heading {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-main);
}

.font-mono {
  font-family: var(--font-mono);
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #FFFFFF 20%, #38BDF8 60%, #00F0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #FFFFFF 20%, #FDE047 70%, #FFD000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan {
  color: var(--accent-cyan);
}

.text-yellow {
  color: var(--accent-yellow);
}

/* Contenedores */
.container-custom {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Badges & Tags */
.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 9999px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.badge-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-yellow);
  background: rgba(255, 208, 0, 0.1);
  border: 1px solid rgba(255, 208, 0, 0.35);
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* Botones Premium */
.btn-primary-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #060B14 !important;
  background-color: var(--accent-yellow);
  border: 1px solid #FFE043;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px var(--accent-yellow-glow);
}

.btn-primary-yellow:hover {
  background-color: var(--accent-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 208, 0, 0.45);
}

.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(11, 19, 43, 0.6);
  border: 1px solid var(--border-tech);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.btn-secondary-outline:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--accent-cyan);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Tarjetas y Paneles Glassmorphism */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.glass-panel:hover {
  border-color: var(--border-tech);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.08);
}

.glass-panel-active {
  border-color: var(--border-active);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 240, 255, 0.15);
}

/* Navbar */
.navbar-blur {
  background: rgba(6, 11, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

/* Simulador UI y Chat */
.chat-window {
  background: #09101F;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 240, 255, 0.12);
}

.chat-header {
  background: #0D162B;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chat-bubble-user {
  align-self: flex-end;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px 12px 2px 12px;
  padding: 0.875rem 1.125rem;
  max-width: 85%;
  color: #F8FAFC;
  font-size: 0.9375rem;
}

.chat-bubble-ai {
  align-self: flex-start;
  background: #0F1A33;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px 12px 12px 2px;
  padding: 1.125rem 1.25rem;
  max-width: 95%;
  color: #E2E8F0;
  font-size: 0.9375rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.625rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  color: #CBD5E1;
  transition: all 0.2s ease;
  text-decoration: none;
}

.source-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
}

/* Acordeón FAQ */
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-card);
  transition: all 0.2s ease;
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--border-tech);
  background: rgba(11, 19, 43, 0.92);
}

.faq-summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.05rem;
  color: #F8FAFC;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-content {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Inputs Formulario */
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(11, 19, 43, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #F8FAFC;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
  background: rgba(17, 29, 61, 0.95);
}

.form-select option {
  background-color: #0B132B;
  color: #F8FAFC;
}

/* Pipeline Grid */
.pipeline-step-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .chat-bubble-user {
    max-width: 95%;
  }
  .chat-bubble-ai {
    max-width: 100%;
  }
}
