/* ========================================
   grupot - Mercurio ERP
   Bootstrap Studio Compatible Styles
   Paleta: Slate Premium
   Slogan: "Hacemos que sea simple"
   ======================================== */

/* Variables - Slate Premium Palette */

:root {
  --primary: #0F172A;
  --primary-dark: #1E293B;
  --primary-medium: #334155;
  --primary-light: #E2E8F0;
  --secondary: #F8FAFC;
  --accent-blue: #3B82F6;
  --accent-emerald: #10B981;
  --text-dark: #0F172A;
  --text-medium: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-gray: #F1F5F9;
  --border-color: #E2E8F0;
}

/* Base Styles */

* {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  color: var(--text-dark);
  line-height: 1.6;
}

/* Primary Color Overrides */

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.2);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background-color: transparent;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

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

/* Text Gradient - Subtle Slate Gradient */

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-medium) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid var(--border-color);
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.logo-icon:hover {
  transform: rotate(-5deg) scale(1.05);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.15);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.2s ease;
  position: relative;
}

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

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

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

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 50%, #F1F5F9 100%);
  z-index: -1;
}

.hero-bg::before, .hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.hero-bg::before {
  width: 20rem;
  height: 20rem;
  background: var(--primary-medium);
  top: 5rem;
  right: 2rem;
}

.hero-bg::after {
  width: 28rem;
  height: 28rem;
  background: #CBD5E1;
  bottom: 2rem;
  left: 2rem;
  animation-delay: 4s;
}

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

.badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease;
  border: 1px solid var(--border-color);
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  animation: fadeInUp 0.8s ease 0.2s both;
  letter-spacing: -0.03em;
}

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

.hero-subtitle {
  font-size: 3rem;
  font-weight: 800;
  /*color: var(--text-dark);*/
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.3s both;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.8s ease 0.4s both;
  line-height: 1.7;
}

.hero-buttons {
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
  padding: 5rem 0;
  background: white;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.about-text {
  font-size: 1.125rem;
  color: var(--text-medium);
  line-height: 1.8;
}

.feature-item .feature-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-light);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
  background: var(--primary);
  color: white;
}

.about-card-wrapper {
  position: relative;
}

.about-card-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #94A3B8 0%, #CBD5E1 100%);
  border-radius: 1.5rem;
  transform: rotate(3deg);
  transition: transform 0.3s ease;
}

.about-card-wrapper:hover::before {
  transform: rotate(0deg);
}

.about-card {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 1.5rem;
  padding: 3rem;
  color: white;
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.about-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-card p {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
}

.facturacion-banner {
  margin-top: 4rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
  border-radius: 1rem;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.facturacion-banner:hover {
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.facturacion-banner h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.facturacion-banner p {
  color: var(--text-medium);
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section {
  padding: 5rem 0;
  background: var(--bg-light);
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08);
  border-color: var(--primary-light);
  transform: translateY(-5px);
}

.feature-icon-bg {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-bg {
  transform: scale(1.1);
}

.feature-icon-bg.amber {
  background: #FFFBEB;
  color: #F59E0B;
}

.feature-icon-bg.slate {
  background: var(--primary-light);
  color: var(--primary);
}

.feature-icon-bg.emerald {
  background: #ECFDF5;
  color: #10B981;
}

.feature-icon-bg.blue {
  background: #EFF6FF;
  color: #3B82F6;
}

.arrow-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.feature-card:hover .arrow-icon {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(5px);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */

.products-section {
  padding: 5rem 0;
  background: white;
}

.product-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  border-color: var(--primary-light);
}

.product-card.featured {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
}

.product-card.featured:hover {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: #FBBF24;
  color: #92400E;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  letter-spacing: 0.05em;
}

.product-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--primary-light);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.product-card:hover .product-icon {
  transform: scale(1.1) rotate(5deg);
}

.product-card.featured .product-icon {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.product-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.product-card.featured h3 {
  color: white;
}

.product-card p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.product-card.featured p {
  color: rgba(255, 255, 255, 0.9);
}

.product-price {
  margin-bottom: 1.5rem;
}

.product-price .price {
  font-size: 1.875rem;
  font-weight: 800;
  display: block;
  letter-spacing: -0.02em;
}

.product-price .price-detail {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.product-card.featured .price-detail {
  color: rgba(255, 255, 255, 0.8);
}

.product-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-medium);
  transition: all 0.2s ease;
}

.product-features li:hover {
  transform: translateX(5px);
}

.product-card.featured .product-features li {
  color: rgba(255, 255, 255, 0.95);
}

.product-features li i {
  color: var(--primary);
  font-size: 1rem;
}

.product-card.featured .product-features li i {
  color: rgba(255, 255, 255, 0.9);
}

.product-card .btn {
  padding: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
}

.product-card.featured .btn-light {
  color: var(--primary);
  font-weight: 600;
}

.product-card.featured .btn-light:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   TEAM SECTION
   ======================================== */

.team-section {
  padding: 5rem 0;
  background: var(--bg-light);
}

.team-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.team-card:hover {
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
  transform: translateY(-5px);
  border-color: var(--primary-light);
}

.team-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.team-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.15);
  transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
  transform: scale(1.05);
}

.team-avatar.blue {
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
}

.team-avatar.slate {
  background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary) 100%);
}

.team-avatar.emerald {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
}

.team-badge {
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.875rem;
  border: 2px solid white;
}

.team-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.team-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.team-email:hover {
  color: var(--primary-dark);
  gap: 0.75rem;
}

.gratitude-box {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
  border-radius: 1rem;
  padding: 3rem;
  display: inline-block;
  max-width: 600px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.gratitude-box:hover {
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transform: scale(1.02);
}

.gratitude-box h3 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.gratitude-box p {
  color: var(--text-medium);
  line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--primary);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact i {
  color: rgba(255, 255, 255, 0.9);
  width: 1.25rem;
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: white;
}

.footer h5 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
}

.footer-bottom span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-bottom i {
  color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 991.98px) {
  .hero-section {
    padding: 8rem 0 4rem;
  }
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .hero-subtitle {
    font-size: 2rem;
  }
}

@media (max-width: 991.98px) {
  .hero-stats {
    gap: 2rem;
  }
}

@media (max-width: 991.98px) {
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 991.98px) {
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .hero-buttons .btn:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.bg-slate {
  background-color: var(--primary);
}

.bg-slate-light {
  background-color: var(--primary-light);
}

.text-slate {
  color: var(--primary);
}

.border-slate {
  border-color: var(--primary);
}

