html, body {
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

:root {
  --bg: #0c1014;
  --card-bg: #161b22;
  --accent: #00e0fe;
  --accent-glow: 0 0 12px #00e0fe88;
  --accent-outline: #00e0fe;
  --white: #fff;
  --gray: #b1b6be;
  --input-bg: #181d23;
  --font-main: 'Inter', Arial, sans-serif;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.navbar {
 
  width: 100%;
  background: rgba(12,16,20,0.98);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2.2rem;
  box-shadow: 0 2px 12px #0004;
  left: 0;
}

.navbar__logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
}
.navbar__logo--accent {
  color: var(--accent);
}
.navbar__menu {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar__link {
  font-weight: 600;
  font-size: 1rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.17s;
}
.navbar__link:hover,
.navbar__link:focus {
  color: var(--accent);
  background: #19202a;
}

.navbar__link.active {
  background: var(--accent);
  color: var(--bg) !important;
}
.navbar__checkbox { display: none; }
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 34px;
  height: 32px;
  justify-content: center;
}
.navbar__hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: var(--accent-glow);
  transition: .3s;
}

@media (max-width: 950px) {
  .navbar {
    padding: 0.6rem 1.1rem;
  }
  .navbar__hamburger { display: flex; }
  .navbar__menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: #161b22ee;
    width: 100vw;
    flex-direction: column;
    gap: 1.6rem;
    align-items: center;
    padding: 2rem 0;
    transform: translateY(-120%);
    transition: 0.32s;
    box-shadow: 0 4px 12px #0008;
    z-index: 99;
  }
  .navbar__checkbox:checked ~ .navbar__menu {
    transform: translateY(0);
  }
}

/* ==== HERO SUPERPUESTO ==== */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 3.5rem 3vw 2rem 3vw;
  overflow: hidden;
}

/* Imagen de fondo centrada y con max-width */
.hero__bg {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  max-width: 1920px;
  min-width: 300px;
  background: url('assets/images/motor.jpg') center/cover no-repeat;
  filter: blur(2.0px) brightness(0.65);
  opacity: 0.65;
  pointer-events: none;
  z-index: 1;
}

.hero__img {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 550px;
  color: #fff;
  text-shadow: 0 2px 16px #0008;
  width: 100%;
}

.hero__title {
  font-size: 2.9rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.1rem;
}
.hero__title--accent {
  color: var(--accent);
  text-shadow: var(--accent-glow);
}
.hero__subtitle {
  font-size: 1.18rem;
  color: var(--gray);
  margin-bottom: 1.9rem;
}
.hero__actions {
  display: flex;
  gap: 1.3rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 950px) {
  .hero {
    min-height: unset;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 1.5rem 1vw 1rem 1vw;
    gap: 0.5rem;
  }
  .hero__bg {
    width: 100vw;
    max-width: 1100px;
    min-width: 250px;
    left: 50%;
    top: 0;
    height: 100%;
    transform: translateX(-50%);
    filter: blur(2.0px) brightness(0.65);
    opacity: 0.62;
    background: url('assets/images/motor.jpg') center/cover no-repeat;
    position: absolute;
    z-index: 1;
    pointer-events: none;
  }
  .hero__img {
    display: none;
  }
  .hero__content {
    position: relative;
    z-index: 2;
    max-width: 99vw;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    text-shadow: 0 3px 14px #000a;
    width: 100%;
  }
  .hero__actions {
    justify-content: center;
    margin-bottom: 0.5rem;
  }
}

/* ==== VENTAJAS ==== */
.ventajas {
  background: transparent;
  padding: 2.6rem 1vw 1.2rem 1vw;
  display: flex;
  justify-content: center;
}
.ventajas__container {
  display: flex;
  gap: 2rem;
  width: 100%;
  max-width: 1040px;
  justify-content: center;
  flex-wrap: wrap;
}
.ventaja-card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 0 18px #00e0fe13;
  padding: 1.7rem 1.2rem 1.4rem 1.2rem;
  min-width: 210px;
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ventaja-card__icon {
  width: 84px;
  height: 84px;
  margin-bottom: 0.7rem;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 16px #00e0fe55);
  transition: transform 0.18s;
}
.ventaja-card__icon:hover {
  transform: scale(1.08);
}
.ventaja-card__title {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.ventaja-card__desc {
  font-size: 0.99rem;
  color: var(--gray);
  text-align: center;
}
@media (max-width: 600px) {
  .ventaja-card__icon {
    width: 64px;
    height: 64px;
  }
}

/* ==== PRODUCTOS ==== */
.productos {
  background: transparent;
  padding: 2.4rem 0 2.3rem 0;
  text-align: center;
}
.productos__title {
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 2rem;
}
.productos__cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.producto-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 0 16px #00e0fe0f;
  padding: 1.6rem 1.2rem 1.3rem 1.2rem;
  min-width: 220px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.2rem;
}
.producto-card__img {
  width: 128px;
  height: 128px;
  margin-bottom: 1.1rem;
  object-fit: contain;
  filter: drop-shadow(0 0 14px #00e0fe28);
  transition: transform 0.18s;
}
.producto-card__img:hover {
  transform: scale(1.09);
}
@media (max-width: 600px) {
  .producto-card__img {
    width: 92px;
    height: 92px;
  }
  .producto-card {
    min-width: 145px;
    max-width: 200px;
    padding: 1.1rem 0.6rem 1.2rem 0.6rem;
  }
}
.producto-card__name {
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.productos__catalogo {
  margin: 1rem auto 0.2rem auto;
  display: block;
  max-width: 330px;
}

/* ==== BOTONES ==== */
.btn {
  border-radius: 7px;
  font-weight: 700;
  border: none;
  font-size: 1.04rem;
  padding: 0.65rem 1.3rem;
  cursor: pointer;
  transition: background .19s, color .19s, border .19s;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--accent-glow);
}
.btn--primary:hover, .btn--primary:focus {
  background: var(--white);
  color: var(--accent);
}
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent-outline);
}
.btn--outline:hover, .btn--outline:focus {
  background: var(--accent);
  color: var(--bg);
  border: 2px solid var(--accent);
}

/* ==== TESTIMONIOS ==== */
.testimonios__cards {
  display: flex;
  gap: 2.2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.testimonio-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 0 15px #00e0fe18;
  min-width: 270px;
  max-width: 410px;
  width: 100%;
  margin-bottom: 1rem;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem 1.2rem 1.4rem 1.2rem;
}
.testimonio-card__desc {
  font-size: 1.08rem;
  color: var(--white);
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  min-height: 60px;
}
.testimonio-card__author {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 0.3rem;
}
.testimonio-card__name {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
}
@media (max-width: 600px) {
  .testimonios__cards {
    flex-direction: column;
    gap: 1.2rem;
  }
  .testimonio-card {
    min-width: 92vw;
    max-width: 99vw;
    padding: 1.1rem 0.5rem 1.2rem 0.5rem;
  }
}

/* ==== CONTACTO ==== */
.contacto {
  background: transparent;
  padding: 2.3rem 0 2.2rem 0;
  text-align: center;
}
.contacto__title {
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 1.3rem;
}
.contacto__form {
  max-width: 390px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contacto__input {
  background: var(--input-bg);
  border: 1.5px solid #22282f;
  border-radius: 6px;
  color: var(--white);
  font-size: 1rem;
  padding: 1rem;
  transition: border 0.15s;
   resize: none; 
}
.contacto__input:focus {
  border: 1.5px solid var(--accent);
  outline: none;
}

/* ==== FOOTER ==== */
.footer {
  background: #12161a;
  color: var(--gray);
  padding: 1.2rem 0;
  text-align: center;
  font-size: 1rem;
}

/* ==== WhatsApp botón flotante ==== */
.whatsapp-float {
  position: fixed;
  right: 24px;

  z-index: 200;
  background: transparent;
  border-radius: 50%;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  /* No green background, only icon! */
}
.whatsapp-float img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}



/* ==== RESPONSIVE CARDS, WRAPPERS, ETC ==== */
.ventajas__container,
.productos__cards,
.testimonios__cards {
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 950px) {
  .ventajas__container,
  .productos__cards,
  .testimonios__cards {
    flex-direction: column;
    align-items: center;
  }
  .navbar__menu { top: 54px; }
}

/* ==== SCROLLBAR COLOR OPCIONAL ==== */
body, .productos__cards, .ventajas__container {
  scrollbar-color: var(--accent) #10141a;
  scrollbar-width: thin;
}

@media (max-width: 600px) {
  .productos__cards {
    gap: 1.5rem;
    padding: 0 0.4rem;
  }
  .producto-card {
    min-width: 94vw !important;
    max-width: 97vw !important;
    padding: 1.4rem 0.6rem 1.2rem 0.6rem;
    margin: 0 auto;
    border-radius: 18px;
  }
  .whatsapp-float img {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 900px) {
  .productos__cards {
    gap: 3.2rem;
  }
  .producto-card {
    min-width: 260px;
    max-width: 290px;
    padding: 2.3rem 1.4rem 2rem 1.4rem;
    box-shadow: 0 0 38px #00e0fe22, 0 4px 32px #000a;
    transition: transform 0.16s, box-shadow 0.16s;
    position: relative;
    z-index: 1;
  }
  .producto-card:hover {
    transform: scale(1.06) translateY(-9px);
    box-shadow: 0 0 60px #00e0fe55, 0 10px 44px #000e;
    z-index: 2;
  }
  .producto-card__img {
    width: 120px;
    height: 120px;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 0 28px #00e0fe39);
  }
  .producto-card__name {
    font-size: 1.23rem;
    font-weight: 900;
    margin-bottom: 1.05rem;
    letter-spacing: 0.01em;
  }
  .btn--primary {
    font-size: 1.12rem;
    padding: 0.85rem 2.1rem;
  }
}


.about {
  background: #181a239a;  /* <--- ahora más transparente */
  padding: 2.8rem 0 1.6rem 0;
  text-align: center;
 
  border-radius: 0 0 30px 30px;
    box-shadow: 0 8px 40px #00e0fe14, 0 2px 16px #0008;

}

.about__title {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 0.7rem;
}

.about__underline {
  width: 72px;
  height: 4px;
  margin: 0 auto 1.1rem auto;
  background: linear-gradient(90deg, #00e0fe 40%, #25d366 80%);
  border-radius: 3px;
  opacity: 0.88;
}

.about__desc {
  color: rgba(177, 182, 190, 0.842);  /* var(--gray) en rgba */
  font-size: 1.11rem;
  max-width: 590px;
  margin: 0 auto;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.producto-card,
.testimonio-card,
.about {
  opacity: 0;
  transform: translateY(50px) scale(0.97);
  transition: opacity 0.7s, transform 0.7s cubic-bezier(.45,1.5,.42,1);
}
.producto-card.fadein-animate,
.testimonio-card.fadein-animate,
.about.fadein-animate {
  opacity: 1;
  transform: translateY(0) scale(1.03);
}

#particles-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100%;
  z-index: 2; /* ENTRE la imagen y el texto */
  pointer-events: none; /* No bloquea clicks */
}
.hero__bg    { z-index: 1 !important; }
.hero__content { z-index: 3 !important; position: relative; }
.hero { position: relative; }


/* ==== FOOTER MODERNO Y RESPONSIVE ==== */
.footer {
  display: flex;
  justify-content: center;   /* Centra todo horizontalmente */
  align-items: center;
  padding: 1.2rem 3vw;
  background: #12161a;
  color: var(--gray);
  font-size: 1rem;
  position: relative;
}

.footer__text {
  flex: 0 1 auto;
  text-align: center;
  margin: 0 auto;           /* Centra el texto */
  width: auto;
}

.footer__admin-link {
  position: absolute;
  right: 3vw;
  color: var(--accent);
  font-weight: 400;
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.2s;
  white-space: nowrap;
  cursor: pointer;
}

.footer__admin-link:hover,
.footer__admin-link:focus {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 650px) {
  .footer {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 1.2rem 4vw;
    position: relative;
  }
  .footer__admin-link {
    position: static;
    margin-top: 8px;
    right: auto;
  }
}
