/* ==============================================
   AM DIGITAL SOLUTIONS - PROFESSIONAL STYLES
   Modern, Clean, Corporate Digital Agency Design
   ============================================== */

:root {
  /* Professional Color Palette */
  --primary-blue: #1E40AF;
  --primary-blue-dark: #0A2540;
  --primary-blue-light: #3B82F6;
  
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0F172A;
  
  --accent-green: #10B981;
  --accent-orange: #F59E0B;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --section-padding: 5rem;
  --container-max-width: 1280px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-normal);
  color: var(--gray-900);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

/* Professional Header */
.professional-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.professional-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-image {
  height: 2.5rem;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

.logo-divider {
  height: 2rem;
  width: 1px;
  background: var(--gray-300);
}

.logo-text {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
  display: none;
}

@media (min-width: 768px) {
  .logo-text {
    display: block;
  }
}

/* Navigation Menu */
.nav-menu {
  display: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary-blue);
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  background: var(--primary-blue-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-menu-button {
  display: block;
  padding: 0.5rem;
  color: var(--gray-700);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
}

@media (min-width: 1024px) {
  .mobile-menu-button {
    display: none;
  }
}

/* Hero Section - Professional */
.hero-professional {
  padding-top: 8rem;
  padding-bottom: 6rem;
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
  position: relative;
  overflow: hidden;
}

.hero-professional::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(30, 64, 175, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  border: 1px solid var(--gray-200);
}

.hero-title {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--primary-blue-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: var(--gray-700);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-300);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: var(--gray-50);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Trust Signals */
.trust-signals {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.trust-item i {
  color: var(--accent-green);
  font-size: 1.125rem;
}

/* Professional Sections */
.section-professional {
  padding: var(--section-padding) 1.5rem;
}

.section-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-block;
  background: var(--gray-100);
  color: var(--primary-blue);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-professional {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.card-professional:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-blue));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.card-description {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.card-link {
  color: var(--primary-blue);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.card-link:hover {
  gap: 0.75rem;
}

/* Utility Classes */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease forwards;
}

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

/* Responsive Utilities */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Media query for stats grid - force single row on desktop, stack on mobile */
@media (max-width: 1024px) {
  /* Para tablets, mantener 2 columnas */
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  /* Para móviles, stack en 1 columna */
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}
