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

:root {
  --blue: #1a3a6b;
  --blue-light: #1e75bc;
  --red: #e63946;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --text: #222;
  --nav-h: 88px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: var(--text); overflow-x: hidden; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.logo { height: 68px; width: auto; }
nav a {
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.08em;
  color: var(--blue); text-decoration: none;
  transition: color .2s;
}
nav a:hover { color: var(--blue-light); }
.sep { color: #ccc; margin: 0 12px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--blue); border-radius: 2px; transition: all .3s; }

/* ===== HERO ===== */
.hero {
  position: relative; width: 100%;
  min-height: 540px; height: 100vh; max-height: 700px;
  display: flex; align-items: center;
  margin-top: var(--nav-h); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center right;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,20,50,0.78) 0%, rgba(10,20,50,0.45) 55%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 580px; padding: 0 48px;
}
.hero-content h1 {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--white); letter-spacing: 0.04em; line-height: 1.2;
  text-transform: uppercase; margin-bottom: 16px;
}
.hero-content p {
  color: rgba(255,255,255,0.88); font-size: 0.95rem; line-height: 1.7;
  max-width: 380px; margin-bottom: 28px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 0.9rem; letter-spacing: 0.1em; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.btn-red { background: var(--red); color: var(--white); }
.btn-wa { background: #25d366; color: var(--white); }
.btn-large { font-size: 1.05rem; padding: 16px 36px; }
.wa-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== SECTION TITLE ===== */
.section-title {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 2rem); letter-spacing: 0.08em;
  text-align: center; margin-bottom: 40px;
}
.section-title.blue { color: var(--blue-light); }

/* ===== MARCAS ===== */
.marcas-section {
  padding: 60px 24px;
  background: var(--white);
}
.marcas-grid {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 40px 60px;
  max-width: 900px; margin: 0 auto;
}
.marcas-grid img { max-height: 60px; max-width: 160px; object-fit: contain; filter: grayscale(10%); }

/* ===== ELEGIRNOS ===== */
.elegirnos {
  position: relative; padding: 80px 24px;
  overflow: hidden;
}
.elegirnos-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.elegirnos-overlay {
  position: absolute; inset: 0;
  background: rgba(5, 10, 30, 0.75);
}
.elegirnos-content { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; text-align: center; }
.elegirnos-content h2 {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--white);
  letter-spacing: 0.06em; margin-bottom: 48px;
}
.razones-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.razon { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.check-icon svg { width: 54px; height: 54px; }
.razon h3 {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 0.85rem; color: var(--white); letter-spacing: 0.06em; text-transform: uppercase;
}
.razon p { font-size: 0.82rem; color: rgba(255,255,255,0.8); line-height: 1.6; }

/* ===== SERVICIOS ===== */
.servicios {
  position: relative; background: var(--blue);
}
.servicios-content {
  position: relative; z-index: 1;
  min-height: 400px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 80px 48px;
  max-width: 600px;
  background: linear-gradient(to right, rgba(5,15,50,0.92) 0%, rgba(5,15,50,0.7) 70%, transparent 100%);
}
.servicios::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(10,20,60,0.75) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 38px,
      rgba(255,255,255,0.03) 38px,
      rgba(255,255,255,0.03) 40px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 38px,
      rgba(255,255,255,0.03) 38px,
      rgba(255,255,255,0.03) 40px
    ),
    radial-gradient(ellipse at 80% 50%, rgba(230,57,70,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(30,117,188,0.2) 0%, transparent 50%),
    linear-gradient(180deg, #0a0f1e 0%, #0d1b3e 50%, #080c18 100%);
}
.servicios::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(230,57,70,0.12) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(30,117,188,0.15) 0%, transparent 35%);
  pointer-events: none;
}
.servicios-content h2 {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 2rem); color: var(--white);
  letter-spacing: 0.05em; line-height: 1.2; text-transform: uppercase;
  margin-bottom: 16px;
}
.servicios-content p { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-bottom: 28px; }
.servicios-marcas {
  position: relative; z-index: 1;
  padding: 60px 24px; background: var(--white);
}

/* ===== PRODUCTOS ===== */
.productos-section { background: var(--gray-light); }
.productos-hero {
  position: relative; min-height: 320px;
  display: flex; align-items: center;
  background: url('images/productos/frenos.png') center/cover no-repeat;
  overflow: hidden;
}
.productos-hero-overlay {
  position: absolute; inset: 0;
  background: rgba(5,10,30,0.72);
}
.productos-hero-text {
  position: relative; z-index: 1;
  max-width: 600px; padding: 60px 48px;
}
.productos-hero-text h2 {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem); color: var(--white);
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px;
}
.productos-hero-text p { color: rgba(255,255,255,0.85); font-size: 0.9rem; }

.categorias-wrapper { padding: 60px 24px 80px; max-width: 1200px; margin: 0 auto; }

/* Category tabs */
.cat-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  margin-bottom: 48px;
}
.cat-tab {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--white); border: 2px solid transparent;
  border-radius: 12px; padding: 16px 20px;
  cursor: pointer; transition: border-color .2s, transform .2s;
  min-width: 110px;
}
.cat-tab img { width: 56px; height: 56px; object-fit: contain; }
.cat-tab span {
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.05em;
  color: var(--blue); text-align: center; text-transform: uppercase;
  line-height: 1.3;
}
.cat-tab:hover { border-color: var(--blue-light); transform: translateY(-3px); }
.cat-tab.active { border-color: var(--blue-light); background: #eef5fc; }

/* Products grid */
.productos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px;
}
.producto-card {
  background: var(--white); border-radius: 10px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex; flex-direction: column; align-items: center;
  padding: 20px; gap: 14px;
  transition: transform .2s, box-shadow .2s;
}
.producto-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.14); }
.producto-card.hidden { display: none; }
.producto-img-wrap {
  width: 100%; height: 300px;
  display: flex; align-items: center; justify-content: center;
  background: #f0f4f8; border-radius: 8px; overflow: hidden;
}
.producto-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.producto-card h3 { display: none; }

/* ===== CONTACTO ===== */
.contacto-section { background: var(--white); }
.contacto-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #0d2d6b 100%);
  padding: 80px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.contacto-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/><circle cx="80" cy="80" r="60" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="1"/></svg>') center/cover;
}
.contacto-hero h2 {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem); color: var(--white);
  letter-spacing: 0.15em; position: relative;
}
.contacto-hero h2 span { color: #f9c74f; }

.contacto-body { max-width: 760px; margin: 0 auto; padding: 60px 24px; text-align: center; }
.contacto-intro { font-size: 0.95rem; color: #444; line-height: 1.8; margin-bottom: 8px; }
.contacto-cta { font-size: 1rem; margin-bottom: 48px; }

.contacto-info { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; text-align: left; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-icon { width: 24px; height: 24px; color: var(--blue-light); flex-shrink: 0; margin-top: 2px; }
.info-item div { display: flex; flex-direction: column; gap: 4px; }
.info-item strong { font-size: 0.9rem; color: var(--blue); }
.info-item span { font-size: 0.88rem; color: #555; line-height: 1.6; }

/* ===== FOOTER ===== */
.footer { background: var(--blue); color: var(--white); padding: 48px 24px 0; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 2fr 1fr; gap: 40px;
  padding-bottom: 40px;
}
.footer-logo img { max-width: 150px; filter: brightness(10); }
.footer-menu, .footer-contact, .footer-social { display: flex; flex-direction: column; gap: 8px; }
.footer-menu h4, .footer-contact h4 {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 1rem; letter-spacing: 0.06em; margin-bottom: 6px;
  color: rgba(255,255,255,0.7);
}
.footer-menu a {
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  font-size: 0.9rem; color: var(--white); text-decoration: none;
  letter-spacing: 0.05em; transition: color .2s;
}
.footer-menu a:hover { color: var(--blue-light); }
.footer-contact p { font-size: 0.82rem; line-height: 1.7; color: rgba(255,255,255,0.85); }
.footer-social { flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: flex-start; padding-top: 4px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: background .2s;
}
.footer-social a:hover { background: var(--blue-light); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 16px 0; text-align: center;
  display: flex; justify-content: space-between;
  max-width: 1100px; margin: 0 auto;
  font-size: 0.78rem; color: rgba(255,255,255,0.6);
}

/* ===== WHATSAPP FLOTANTE ===== */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.65); }
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .razones-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  #nav-menu {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: center;
    padding: 20px; gap: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  #nav-menu.open { display: flex; }
  .sep { display: none; }
  .hero-content { padding: 0 24px; }
  .servicios-content { padding: 60px 24px; max-width: 100%; background: rgba(5,15,50,0.85); }
  .productos-hero-text { padding: 48px 24px; }
  .razones-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 4px; }
}

/* ===== MODAL ANTI-ESTAFAS ===== */
.evita-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.evita-modal-overlay.hidden { display: none; }
.evita-modal-box {
  position: relative; max-width: 560px; width: 100%;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.evita-modal-box img { display: block; width: 100%; height: auto; }
.evita-close {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.6); border: none; cursor: pointer;
  color: #fff; font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.evita-close:hover { background: var(--red); }

/* ===== CONTACTO FORM ===== */
.contacto-form-wrap {
  margin-top: 48px; text-align: left;
  border-top: 1px solid #e8edf3; padding-top: 40px;
}
.form-title {
  font-family: 'Rajdhani', sans-serif; font-size: 1.05rem;
  color: var(--blue); letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 28px;
  text-align: center; line-height: 1.5;
}
.form-title strong { color: var(--blue-light); }
.form-group {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 0.88rem; font-weight: 600; color: var(--blue);
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid #ccd6e0; border-radius: 6px;
  font-family: 'Open Sans', sans-serif; font-size: 0.9rem;
  color: var(--text); background: #fff;
  transition: border-color .2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue-light);
}
.form-submit { display: block; margin: 0 auto; padding: 14px 40px; font-size: 1rem; }

@media (max-width: 480px) {
  .hero { max-height: 600px; }
  .hero-content h1 { font-size: 1.4rem; }
  .razones-grid { grid-template-columns: 1fr; }
  .cat-tabs { gap: 10px; }
  .cat-tab { min-width: 90px; padding: 12px 14px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-social { flex-direction: row; }
}
