/*
Theme Name: MyAIConnect
Theme URI: https://myaiconnect.com
Author: MyAIConnect Team
Author URI: https://myaiconnect.com
Description: Tema WordPress para MyAIConnect - Soluciones de IA y Automatización
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myaiconnect
Tags: one-column, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   MyAIConnect Design System
   Dark theme with electric blue accents
   ============================================ */

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

/* CSS Variables - Design System */
:root {
  /* Core dark theme */
  --background: hsl(222, 13%, 9%);
  --foreground: hsl(210, 40%, 98%);
  
  /* Surface colors */
  --card: hsl(222, 13%, 11%);
  --card-foreground: hsl(210, 40%, 98%);
  --card-elevated: hsl(222, 13%, 14%);
  
  /* Brand colors - Electric blue palette */
  --primary: hsl(213, 100%, 50%);
  --primary-foreground: hsl(210, 40%, 98%);
  --primary-glow: hsl(213, 100%, 65%);
  --primary-dark: hsl(213, 100%, 35%);
  
  --secondary: hsl(222, 13%, 16%);
  --secondary-foreground: hsl(210, 40%, 90%);
  
  --accent: hsl(213, 100%, 50%);
  --accent-foreground: hsl(210, 40%, 98%);
  --accent-muted: hsl(213, 50%, 25%);
  
  /* Neutral colors */
  --muted: hsl(222, 13%, 14%);
  --muted-foreground: hsl(215, 20.2%, 65.1%);
  
  --border: hsl(222, 13%, 20%);
  --input: hsl(222, 13%, 16%);
  
  /* Shadows and effects */
  --shadow-glow: 0 0 40px hsla(213, 100%, 50%, 0.3);
  --shadow-card: 0 10px 30px -5px hsla(222, 13%, 5%, 0.5);
  --shadow-elevated: 0 20px 40px -10px hsla(222, 13%, 5%, 0.8);
  
  --radius: 0.75rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-glow);
}

/* Utility Classes */
.gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
}

.gradient-hero {
  background: linear-gradient(135deg, var(--background) 0%, var(--card-elevated) 100%);
}

.gradient-card {
  background: linear-gradient(135deg, var(--card) 0%, var(--card-elevated) 100%);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

.shadow-elevated {
  box-shadow: var(--shadow-elevated);
}

.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-spring {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-glow));
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px hsla(213, 100%, 50%, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  border-color: hsla(213, 100%, 50%, 0.3);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

/* Header */
header.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: hsla(222, 13%, 9%, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foreground);
}

.logo img {
  width: 40px;
  height: 40px;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary);
}

/* Sections */
section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--background) 0%, var(--card-elevated) 100%);
}

.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  animation: pulse 4s ease-in-out infinite;
}

.hero-section::before {
  top: 10%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: var(--primary);
}

.hero-section::after {
  bottom: 10%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: var(--accent);
  animation-delay: 2s;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1000px;
}

.hero-title {
  background: linear-gradient(to right, var(--foreground), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-stat::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.pricing-card.featured::before {
  content: 'Más Popular';
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-glow));
  color: white;
  padding: 0.25rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Footer */
footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 6rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

footer a:hover {
  color: var(--primary);
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

.whatsapp-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #25D366;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.4;
  animation: pulse 2s ease-in-out infinite;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  
  .services-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .hero-section {
    min-height: auto;
    padding: 8rem 0 4rem;
  }
}

/* Form Styles */
input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(213, 100%, 50%, 0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-group {
  margin-bottom: 1.5rem;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 2rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: hsla(213, 100%, 50%, 0.1);
}

/* Icons - Using Unicode symbols as fallback */
.icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
}

.icon-check::before { content: '✓'; }
.icon-arrow::before { content: '→'; }
.icon-sparkles::before { content: '✨'; }
.icon-phone::before { content: '📞'; }
.icon-mail::before { content: '✉️'; }