/* ═══════════════════════════════════════════════
   MUNDO REPUESTOS — Mobile-First CSS
   ═══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --red-primary: #C41E24;
  --red-dark: #9B1B20;
  --red-light: #EF4444;
  --dark: #1a1a1a;
  --dark-soft: #2d2d2d;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --gray-900: #212529;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .3s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}
a { color: var(--red-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--red-dark); }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; }

/* ── Container ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.text-center { text-align: center; }
.hide-mobile { display: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-primary { background: var(--red-primary); color: var(--white); border-color: var(--red-primary); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-wa { background: #25D366; color: var(--white); border-color: #25D366; }
.btn-wa:hover { background: #1ebe5a; border-color: #1ebe5a; color: var(--white); }
.btn-outline { background: transparent; border-color: var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--red-primary); color: var(--red-primary); }
.btn-white { background: var(--white); color: var(--red-primary); }
.btn-white:hover { background: var(--gray-100); color: var(--red-dark); }

/* ── Section ── */
.section { padding: 48px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark .section-badge { background: rgba(196,30,36,0.2); color: var(--red-light); }
.section-red { background: linear-gradient(135deg, var(--red-primary), var(--red-dark)); color: var(--white); padding: 40px 0; }
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(196,30,36,0.08);
  color: var(--red-primary);
  font-weight: 600;
  font-size: 13px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.section-dark .section-title { color: var(--white); }
.section-subtitle {
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 14px;
}

/* ── Header ── */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: var(--transition); }
.header.scrolled { box-shadow: var(--shadow-md); }
.header-top {
  background: var(--dark);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  padding: 6px 0;
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-top-info { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.header-top-info span { display: flex; align-items: center; gap: 4px; }
.header-top-info a { color: inherit; }
.header-top svg { flex-shrink: 0; }
.header-main {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  padding: 10px 0;
}
.header.scrolled .header-main { padding: 8px 0; }
.header-main .container { display: flex; justify-content: space-between; align-items: center; }
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-900);
}
.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--red-primary);
  color: var(--white);
  border-radius: 8px;
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.nav-menu {
  position: fixed;
  top: 0; right: -300px;
  width: 280px; height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 80px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: right .35s ease;
  z-index: 999;
}
.nav-menu.active { right: 0; }
.nav-menu li a {
  display: block;
  padding: 12px 0;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--gray-100);
}
.nav-menu li:last-child a { border-bottom: none; margin-top: 12px; text-align: center; }
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.nav-overlay.active { opacity: 1; pointer-events: all; }

/* ── Hero ── */
.hero {
  padding: 120px 0 48px;
  background: linear-gradient(135deg, rgba(26,26,26,0.92) 0%, rgba(44,10,10,0.88) 100%), url('images/hero-bg.png') center/cover no-repeat;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-content { margin-bottom: 32px; }
.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero h1 span { color: var(--red-light); }
.hero-sub { color: rgba(255,255,255,.8); font-size: 14px; margin-bottom: 20px; }
.hero-btns { display: flex; flex-direction: column; gap: 10px; }
.hero-search {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
}
.hero-search h3 { font-size: 14px; margin-bottom: 14px; color: rgba(255,255,255,.9); }
.hero-search-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
.hero-search select,
.hero-search input {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
.hero-search select option { color: var(--dark); background: var(--white); }
.hero-search input::placeholder { color: rgba(255,255,255,.5); }
.hero-search-btn { width: 100%; }

/* ── Catalog ── */
.catalog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.catalog-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
}
.catalog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--gray-900); }
.catalog-img { aspect-ratio: 1; overflow: hidden; background: var(--gray-50); }
.catalog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.catalog-card:hover .catalog-img img { transform: scale(1.05); }
.catalog-info { padding: 12px; }
.catalog-info h3 { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.catalog-info p { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }
.catalog-cta {
  display: inline-block;
  padding: 6px 14px;
  background: var(--red-primary);
  color: var(--white);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Brands ── */
.brands-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.brand-card img { width: 56px; height: 56px; object-fit: contain; }
.brand-name { font-weight: 600; font-size: 13px; color: var(--gray-700); }
.brands-note { font-size: 11px; color: var(--gray-500); margin-top: 16px; line-height: 1.5; }

/* ── Benefits ── */
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.benefit-card {
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: rgba(196,30,36,0.08);
  border-radius: 10px;
  color: var(--red-primary);
  margin-bottom: 10px;
}
.benefit-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.benefit-card p { font-size: 12px; color: var(--gray-500); line-height: 1.5; }

/* ── Steps ── */
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.step-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
}
.step-number {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-primary);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  border-radius: 50%;
  margin: 0 auto 10px;
}
.step-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 12px; color: rgba(255,255,255,.7); }

/* ── Testimonials ── */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 14px; text-align: left; }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.testimonial-stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-text { font-size: 14px; color: var(--gray-700); line-height: 1.6; margin-bottom: 14px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 12px; color: var(--gray-500); }

/* ── FAQ ── */
.faq-list { max-width: 700px; margin: 0 auto; text-align: left; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.faq-question {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-900);
  text-align: left;
}
.faq-icon { font-size: 20px; color: var(--red-primary); transition: var(--transition); font-weight: 300; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer-inner { padding: 0 16px 14px; font-size: 13px; color: var(--gray-700); line-height: 1.7; }

/* ── CTA Final ── */
.cta-final h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

/* ── Contact ── */
.contact-grid { max-width: 600px; margin: 0 auto; }
.contact-info-list { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
.contact-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--gray-50);
  padding: 16px;
  border-radius: var(--radius-sm);
}
.contact-info-icon { color: var(--red-primary); flex-shrink: 0; margin-top: 2px; }
.contact-info-item h4 { font-size: 14px; margin-bottom: 2px; }
.contact-info-item p { font-size: 13px; color: var(--gray-500); }
.contact-info-item a { color: var(--red-primary); }

/* ── Footer ── */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 40px 0 20px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-brand { margin-bottom: 0; }
.footer .logo { color: var(--white); margin-bottom: 12px; }
.footer .logo-icon { background: var(--red-primary); }
.footer h4 { color: var(--white); font-size: 15px; margin-bottom: 12px; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: rgba(255,255,255,.6); }
.footer ul li a:hover { color: var(--white); }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--white);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--red-primary); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.footer-legal { font-size: 10px; color: rgba(255,255,255,.3); margin-top: 14px; text-align: center; line-height: 1.5; }

/* ── Floating ── */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 16px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 900;
  animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,.6); }
}
#back-to-top {
  position: fixed;
  bottom: 84px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 899;
  box-shadow: var(--shadow-sm);
  color: var(--gray-700);
  transition: var(--transition);
}
#back-to-top.show { display: flex; }

/* ── Animations ── */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════
   TABLET (480px+)
   ═══════════════════════════════════════════════ */
@media (min-width: 480px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════════════════════════════════════════
   DESKTOP (768px+)
   ═══════════════════════════════════════════════ */
@media (min-width: 768px) {
  body { font-size: 16px; }
  .container { padding: 0 24px; }
  .hide-mobile { display: inline-flex; }
  .section { padding: 64px 0; }
  .section-title { font-size: 2.2rem; }
  .section-subtitle { font-size: 16px; }
  .hero { padding: 160px 0 80px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-sub { font-size: 16px; }
  .hero-btns { flex-direction: row; }
  .hero-search-grid { grid-template-columns: 1fr 1fr; }

  /* Nav desktop */
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }
  .nav-menu li a {
    padding: 8px 12px;
    border-bottom: none;
    font-size: 14px;
    white-space: nowrap;
  }
  .nav-menu li:last-child a { margin-top: 0; }
  .nav-overlay { display: none; }

  .catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .catalog-info h3 { font-size: 17px; }
  .catalog-info p { font-size: 13px; }
  .brands-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .brand-card img { width: 70px; height: 70px; }
  .benefits-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .benefit-card h3 { font-size: 15px; }
  .benefit-card p { font-size: 13px; }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .contact-info-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .cta-final h2 { font-size: 2rem; }
}

/* ═══════════════════════════════════════════════
   LARGE DESKTOP (1024px+)
   ═══════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .hero-search-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-search-btn { width: auto; }
}
