:root {
  --primary-blue: #0066ff;
  --electric-blue: #0052cc;
  --dark-blue: #003d99;
  --light-blue: #f0f7ff;
  --accent-yellow: #ffd700;
  --gradient-primary: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  --gradient-secondary: linear-gradient(135deg, #003d99 0%, #0066ff 100%);
  --shadow-sm: 0 2px 10px rgba(0, 102, 255, 0.1);
  --shadow-md: 0 8px 25px rgba(0, 102, 255, 0.15);
  --shadow-lg: 0 15px 35px rgba(0, 102, 255, 0.2);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 120px;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 3px;
}

/* Header Styles */
.top-bar {
  background: var(--gradient-primary);
  color: white;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
}

.main-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 30px 0;
  border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

.main-header.scrolled {
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo-container img {
  height: 90px;
  width: auto;
  transition: var(--transition);
  filter: drop-shadow(0 6px 12px rgba(0, 102, 255, 0.3));
  transform: scale(1);
}

.logo-container img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 8px 16px rgba(0, 102, 255, 0.4));
}

.brand-text h1 {
  font-size: 38px;
  font-weight: 900;
  color: var(--primary-blue);
  margin: 0;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 102, 255, 0.1);
}

.brand-text p {
  font-size: 16px;
  color: #666;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

/* Navigation */
.navbar-nav .nav-link {
  font-weight: 600;
  color: #333 !important;
  margin: 0 10px;
  padding: 12px 20px !important;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 16px;
}

.navbar-nav .nav-link:hover {
  background: var(--light-blue);
  color: var(--primary-blue) !important;
  transform: translateY(-1px);
}

/* Botones mejorados */
.btn-primary-custom {
  background: var(--gradient-primary);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-secondary-custom {
  background: white;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-size: 14px;
}

.btn-secondary-custom:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

.btn-cta {
  background: var(--accent-yellow);
  color: #333;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  transition: var(--transition);
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta:hover {
  background: #ffed4e;
  transform: translateY(-1px);
  color: #333;
  box-shadow: var(--shadow-sm);
}

/* Botón Carpeta Empresarial */
.btn-empresa-custom {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-empresa-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
  color: white;
  background: linear-gradient(135deg, #ff7849 0%, #f7a142 100%);
}

.btn-empresa-custom i {
  font-size: 18px;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.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="rgba(255,255,255,0.03)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-right: 40px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  color: white;
  line-height: 1.2;
  margin-bottom: 32px;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.hero-image:hover {
  transform: scale(1.02);
}

.floating-badge {
  position: absolute;
  bottom: -15px;
  left: -15px;
  background: var(--accent-yellow);
  color: #333;
  padding: 16px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  font-weight: 700;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Section */
.features-section {
  background: var(--light-blue);
}

.feature-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 102, 255, 0.1);
  height: 100%;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: white;
  box-shadow: var(--shadow-sm);
}

/* Products Section */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: white;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  font-size: 14px;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.product-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  height: 100%;
  border: 1px solid rgba(0, 102, 255, 0.1);
}

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

.product-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-blue);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.product-content {
  padding: 20px;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.product-description {
  color: #666;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-blue);
}

#productCarousel .carousel-item img {
  width: 100%;
  height: 500px; 
  object-fit: cover;
}


/* Company Section */
.company-section {
  background: var(--gradient-secondary);
  color: white;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-yellow);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Contact Section */
.contact-section {
  background: var(--light-blue);
}

.contact-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(0, 102, 255, 0.1);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 20px;
  color: white;
}

/* Form Styles */
.contact-form {
  background: white;
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 102, 255, 0.1);
  height: 100%;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.15);
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  font-size: 14px;
}

/* Map */
.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  min-height: 500px;
  border: 1px solid rgba(0, 102, 255, 0.1);
  background: white;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.map-container h3 {
  margin-bottom: 20px;
  text-align: center;
}

.map-container iframe {
  width: 100%;
  flex: 1;
  border: none;
  border-radius: 8px;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 60px 0 24px;
}

.footer-content {
  border-bottom: 1px solid #444;
  padding-bottom: 40px;
  margin-bottom: 24px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.footer-subtitle {
  color: #ccc;
  margin-bottom: 16px;
  font-size: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent-yellow);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  font-size: 14px;
}

.social-link:hover {
  background: var(--accent-yellow);
  color: #333;
  transform: translateY(-2px);
}

/* Modal */
.modal-content {
  border-radius: var(--border-radius);
  border: none;
  overflow: hidden;
}

.modal-header {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 1000;
  font-size: 24px;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  color: white;
  box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
  .top-bar {
    padding: 6px 0;
    font-size: 13px;
  }

  .main-header {
    padding: 20px 0;
  }

  .main-header.scrolled {
    padding: 15px 0;
  }

  .logo-container {
    gap: 15px;
  }

  .logo-container img {
    height: 70px;
  }

  .brand-text h1 {
    font-size: 28px;
  }

  .brand-text p {
    font-size: 14px;
  }

  .navbar-nav .nav-link {
    padding: 10px 16px !important;
    font-size: 15px;
    margin: 0 5px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .hero-section {
    padding: 40px 0;
  }

  .hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-buttons .btn-primary-custom,
  .hero-buttons .btn-secondary-custom {
    flex: 1;
    min-width: 140px;
    justify-content: center;
    font-size: 13px;
    padding: 10px 16px;
  }

  .btn-empresa-custom {
    font-size: 14px;
    padding: 12px 24px;
    letter-spacing: 0.5px;
  }

  .whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 20px;
    z-index: 9999;
  }

  .section-title {
    font-size: 2rem;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-container {
    min-height: 300px;
    margin-bottom: 30px;
  }

  body {
    overflow-x: hidden;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading States */
.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success/Error Messages */
.alert-custom {
  border-radius: var(--border-radius);
  padding: 16px;
  margin-top: 16px;
  border: none;
  font-size: 14px;
}

.alert-success-custom {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.alert-error-custom {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
}