/* UnDosTres AR - Custom Styles */

/* Variables CSS */
:root {
  --primary-color: #1a2b5c;
  --secondary-color: #2563eb;
  --success-color: #16a34a;
  --warning-color: #eab308;
  --info-color: #06b6d4;
  --danger-color: #dc2626;
  --light-color: #f8fafc;
  --dark-color: #1e293b;
  --text-muted: #64748b;
  --border-radius: 12px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #ffffff;
}

/* Navigation */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  transition: var(--transition);
  border-radius: 8px;
  margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--secondary-color) !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menus */
.dropdown-menu {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--light-color);
  color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff" fill-opacity="0.05" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-stats {
  padding: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Service Cards */
.service-card {
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card .card {
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: none;
}

.service-card:hover .card {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
}

/* Buttons */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0f1a3a 0%, #1d4ed8 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color) 0%, #15803d 100%);
  color: white;
}

.btn-success:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: white;
  transform: translateY(-2px);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-color) 0%, #ca8a04 100%);
  color: white;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
  color: white;
  transform: translateY(-2px);
}

.btn-info {
  background: linear-gradient(135deg, var(--info-color) 0%, #0891b2 100%);
  color: white;
}

.btn-info:hover {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
  border-color: white;
  transform: translateY(-2px);
}

/* Badges */
.badge {
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

/* Cards */
.card {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--light-color);
  font-weight: 600;
}

/* Forms */
.form-control,
.form-select {
  border-radius: var(--border-radius);
  border: 2px solid #e2e8f0;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-color) 0%, #0f172a 100%);
}

footer h5,
footer h6 {
  color: white;
}

footer .text-light-50 {
  color: rgba(255, 255, 255, 0.7) !important;
}

footer a.text-light-50:hover {
  color: rgba(255, 255, 255, 0.9) !important;
  transition: var(--transition);
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.bg-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

.bg-light {
  background-color: var(--light-color) !important;
}

.shadow-sm {
  box-shadow: var(--box-shadow) !important;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* Loading Animation */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section .display-4 {
    font-size: 2.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .stat-card h3 {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .service-icon i {
    font-size: 2rem !important;
  }
}

@media (max-width: 576px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-section .display-4 {
    font-size: 2rem;
  }
  
  .certification-badges .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  
  .d-flex.flex-wrap.gap-3 {
    flex-direction: column;
  }
  
  .d-flex.flex-wrap.gap-3 .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-muted: #94a3b8;
    --border-color: #334155;
  }
}

/* Print Styles */
@media print {
  .navbar,
  footer,
  .btn,
  .hero-section {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .container {
    width: 100% !important;
    max-width: none !important;
  }
}