/* ============================================
   DISTRIBUCIONES MARI - Custom Styles
   Industrial Premium Theme
   ============================================ */

:root {
  --yellow: #F5A623;
  --yellow-dark: #D4910E;
  --yellow-light: #FFF3D6;
  --black: #0A0A0A;
  --gray-900: #141414;
  --gray-800: #1F1F1F;
  --gray-700: #2A2A2A;
  --gray-600: #3A3A3A;
  --gray-400: #888888;
  --gray-300: #B0B0B0;
  --gray-100: #F0F0F0;
  --white: #FFFFFF;
  --red: #E53E3E;
  --green: #38A169;
}

/* === BASE === */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-600); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--yellow); }

/* === NOISE TEXTURE OVERLAY === */
.noise-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* === DIAGONAL STRIPE PATTERN === */
.stripe-pattern {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(245,166,35,0.04) 10px,
    rgba(245,166,35,0.04) 20px
  );
}

/* === HERO === */
.hero-gradient {
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-800) 40%, var(--gray-700) 100%);
  position: relative;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
  z-index: 2;
}

/* === ANIMATED GRID BACKGROUND === */
.grid-bg {
  background-image: 
    linear-gradient(rgba(245,166,35,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* === NAVIGATION === */
.nav-main {
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-main.scrolled {
  background: rgba(10, 10, 10, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--gray-300);
  transition: color 0.3s ease;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-link:hover, .nav-link.active {
  color: var(--yellow);
}

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

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

/* === MOBILE MENU === */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* === BUTTONS === */
.btn-primary {
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid var(--yellow);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245,166,35,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.3);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--gray-900);
  color: var(--white);
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid var(--gray-900);
  text-decoration: none;
}

.btn-dark:hover {
  background: var(--gray-700);
  border-color: var(--gray-700);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  text-decoration: none;
  border: none;
}

.btn-whatsapp:hover {
  background: #1FAF55;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,211,102,0.3);
}

/* === CARDS === */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: var(--yellow);
}

.card:hover::before {
  transform: scaleX(1);
}

/* === PRODUCT CARDS === */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border-color: var(--yellow);
}

.product-card .product-img {
  height: 200px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-300));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.product-card .product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.05));
}

/* === CATEGORY FILTER === */
.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--gray-100);
  border-radius: 50px;
  background: var(--white);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--yellow);
  color: var(--yellow-dark);
}

.filter-btn.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

/* === SECTION TITLES === */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--yellow);
}

.section-title {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  color: var(--gray-900);
  letter-spacing: 0.01em;
}

/* === ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* stagger children */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .fade-up:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .fade-up:nth-child(6) { transition-delay: 0.3s; }

/* === WHATSAPP FLOAT === */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* === FOOTER === */
.footer {
  background: var(--black);
  color: var(--gray-400);
}

.footer a {
  color: var(--gray-400);
  transition: color 0.3s ease;
  text-decoration: none;
}

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

/* === STATS COUNTER === */
.stat-number {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: var(--yellow);
}

/* === TESTIMONIALS === */
.testimonial-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  border-left: 4px solid var(--yellow);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* === FAQ ACCORDION === */
.faq-item {
  border-bottom: 1px solid var(--gray-100);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.3s ease;
}

.faq-question:hover { color: var(--yellow-dark); }

.faq-question .faq-icon {
  transition: transform 0.3s ease;
  font-size: 1.5rem;
  color: var(--yellow);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--gray-600);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

/* === FORM === */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-100);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--white);
  color: var(--gray-900);
}

.form-input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* === COVERAGE MAP DOTS === */
.coverage-dot {
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border-radius: 50%;
  display: inline-block;
  animation: blink 2s infinite;
  box-shadow: 0 0 8px rgba(245,166,35,0.5);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* === PROCESS STEPS === */
.step-line {
  width: 2px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
}

/* === PLACEHOLDER IMAGES === */
.placeholder-img {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-300) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 2.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-gradient::after {
    height: 60px;
  }
  
  .btn-primary, .btn-secondary, .btn-dark {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* === LOADING SPINNER === */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-100);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* === HONEYPOT === */
.ohnohoney {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}
