/* ========================================
   MRCOM SOLUCIONES - ESTILOS OPTIMIZADOS v2.0
   ======================================== */

/* === VARIABLES CSS === */
:root {
  /* Brand Colors */
  --color-primary: #FF8000;
  --color-primary-hover: #e67300;
  --color-secundary: #2c3e50;
  --color-accent: #2980b9;

  /* Neutral Colors */
  --color-dark: #1a1a1a;
  --color-gray-dark: #333333;
  --color-gray-medium: #666666;
  --color-gray-light: #f4f4f4;
  --color-white: #ffffff;

  /* Backgrounds */
  --bg-body: #f8f9fa;
  --bg-card: #ffffff;
  --bg-dark: #111111;
  --bg-gradient-hero: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
  --bg-gradient-accent: linear-gradient(135deg, #FF8000 0%, #FF6600 100%);

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Spacing */
  --section-padding: 5rem 2rem;
  --container-width: 1200px;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--color-gray-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === UTILITIES === */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.text-gradient {
  background: var(--bg-gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--bg-gradient-accent);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(255, 128, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 128, 0, 0.4);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-dark);
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  border-color: var(--color-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pop {
  background: rgba(255, 128, 0, 0.1);
  color: var(--color-primary);
}

/* === HEADER === */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--color-dark);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--color-gray-medium);
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-dark);
}

/* === HERO SECTION === */
.hero {
  padding: 8rem 0 6rem;
  background: var(--bg-gradient-hero);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 128, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === FEATURES / TRUST BADGES === */
.features-strip {
  background: var(--color-white);
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.feature-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--color-gray-medium);
}

/* === SECTIONS GENERAL === */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* === SERVICES PACKAGES === */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.package-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid #eee;
  padding: 2.5rem;
  transition: var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.package-card.featured {
  border: 2px solid var(--color-primary);
  background: linear-gradient(to bottom, #fff, #fff8f0);
}

.package-card.featured::before {
  content: 'MÁS POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.package-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 128, 0, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.package-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.package-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.package-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-gray-medium);
}

.package-features {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.package-features li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-gray-medium);
  font-size: 0.95rem;
}

.package-features li i {
  color: #27ae60;
  font-size: 0.9rem;
}

/* === HARDWARE / PRODUCTS === */
.products-section {
  background: var(--bg-dark);
  color: var(--color-white);
}

.products-section .section-title {
  color: var(--color-white);
}

.products-section .section-subtitle {
  color: var(--color-primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-category-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-category-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.category-image {
  height: 200px;
  background: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.2);
}

.category-content {
  padding: 1.5rem;
}

.category-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.category-desc {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.link-arrow {
  color: var(--color-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* === CONTACT === */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--color-white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-list {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 128, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.1);
}

/* === FOOTER === */
footer {
  background: var(--bg-dark);
  color: #888;
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--color-white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: var(--transition-normal);
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .hero {
    padding: 6rem 0 4rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}