/**
 * IA CONSULTING RD — Estilos Principales & Sistema Liquid Glass
 * =====================================================================
 */

@import url('variables.css');
@import url('animations.css');

/* --- RESET Y BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- AMBIENTE DE FONDO LÍQUIDO (IOS 27 LIQUID ORBS) --- */
.ambient-liquid-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  filter: blur(90px);
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}

.ambient-orb-1 {
  top: -15%;
  left: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--primary-light) 0%, rgba(6, 182, 212, 0.4) 40%, transparent 75%);
}

.ambient-orb-2 {
  top: 30%;
  right: -15%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, var(--accent-light) 0%, rgba(139, 92, 246, 0.35) 45%, transparent 75%);
}

.ambient-orb-3 {
  bottom: -20%;
  left: 20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #0284C7 0%, rgba(16, 185, 129, 0.25) 50%, transparent 75%);
}

/* Capa de ruido y malla sutil para textura de cristal */
.ambient-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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;
  pointer-events: none;
  z-index: 1;
}

/* Canvas interactivo de partículas / red neuronal */
#network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: auto;
  z-index: 2;
}

/* --- CONTENEDORES Y ESTRUCTURA --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}

section {
  padding: 100px 0;
  position: relative;
  z-index: 3;
}

/* --- CLASES NUCLEARES LIQUID GLASS (IOS 27) --- */
.liquid-glass-panel {
  background: var(--liquid-glass-card);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  border: var(--liquid-border);
  box-shadow: 
    var(--liquid-specular-top),
    var(--liquid-specular-ambient),
    var(--liquid-shadow-drop);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--transition-smooth);
}

.liquid-glass-panel:hover {
  background: var(--liquid-glass-card-hover);
  border: var(--liquid-border-hover);
  box-shadow: 
    var(--liquid-specular-top),
    var(--glow-primary),
    0 25px 60px -15px rgba(0, 0, 0, 0.85);
  transform: translateY(-4px);
}

/* Squircle ultrarrefinado para botones e insignias */
.liquid-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-contrast);
  letter-spacing: 0.02em;
}

/* --- TIPOGRAFÍA Y ENCABEZADOS DE SECCIÓN --- */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 18px;
}

.gradient-text {
  background: var(--gradient-neon-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- BOTONES LIQUID GLASS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-smooth);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #FFFFFF;
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 25px -4px rgba(6, 182, 212, 0.5),
    0 4px 15px -2px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  background: var(--gradient-brand-glow);
  box-shadow: 
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.6),
    0 12px 35px -2px rgba(6, 182, 212, 0.7),
    0 6px 25px 0 rgba(139, 92, 246, 0.6);
  transform: translateY(-2px) scale(1.02);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 25px -5px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

/* Scrollbar Futurista */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--accent-light) 100%);
}

/* Responsive queries */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.1rem;
  }
  section {
    padding: 70px 0;
  }
}
