@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600&display=swap');

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}


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

body {
  font-family: 'Arial', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden; /* ✅ Evita scroll horizontal */
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #1f1f29;
  padding: 15px 20px; /* 🔁 REDUCIDO de 30px a 20px */
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.logo {
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
}

/* Menu links en escritorio */
.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 4px;
}

.nav-links li a:hover {
  background: #e60000;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}



/* Menú hamburguesa */

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  background: transparent; /* ✅ Limpieza visual */
}

.menu-toggle .line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.menu-toggle.open .line1 {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .line2 {
  opacity: 0;
}

.menu-toggle.open .line3 {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Container genérico */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
              url('img/car.jpeg') no-repeat center center/cover;
  color: #fff;
  padding: 120px 20px 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  max-width: 500px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.cta-button {
  background: #e60000;
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #cc0000;
}

/* Service */

.services-section {
  padding: 60px 20px;
  background: #d5d2c1;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 🔁 fuerza dos columnas */
  gap: 30px;
  margin-top: 30px;
}

.service-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out; /* Suave al hacer scroll */
}

/* Entrada desde la izquierda */
.from-left {
  transform: translateX(-50px);
}

/* Entrada desde la derecha */
.from-right {
  transform: translateX(50px);
}

/* Cuando es visible (se aplica vía JS) */
.service-card.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.service-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  height: auto;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #e60000;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Hover separado para escritorio */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Por qué elegirnos */
.why-choose-us {
  padding: 60px 20px;
  background: #d5d2c1;
  text-align: center;
}

.why-intro {
  font-size: 1.05rem;
  color: #555;
  max-width: 700px;
  margin: 15px auto 30px;
  line-height: 1.6;
  text-align: center;
}

/* Testimonios */
.choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.choose-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.star-rating {
  margin: 8px 0;
  font-size: 1.5rem;
  color: #f5c518; /* amarillo tipo IMDb / Google */
}


.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.choose-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.choose-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}


/* Efecto de zoom en trajetas */

.benefits-grid .choose-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
}

.benefits-grid .choose-card:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* iconos */
.choose-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  border-radius: 50%;
  object-fit: cover;
}

.choose-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #e60000;
}

.choose-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Premios y garantias */

.award-card {
  background-image: url('img/awards.jpeg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.guarantee-card {
  background-image: url('img/guarantee3.jpeg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.award-card,
.guarantee-card {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.award-card::before,
.guarantee-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4); /* oscurece el fondo */
  z-index: 1;
}

.award-card h3,
.award-card p,
.guarantee-card h3,
.guarantee-card p {
  position: relative;
  z-index: 2;
color:#fff;
}

.award-card,
.guarantee-card {
  position: relative;
  overflow: hidden;
}


/* Imagen del producto */

.product-image-section {
  padding: 60px 20px;
  background: #d5d2c1;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.product-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image img {
  clip-path: circle(50% at center);
  transition: clip-path 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.product-image img:hover {
  clip-path: ellipse(60% 50% at center);
  transform: scale(1.03);
}


/* Texto de producto */
.product-info h2 {
  font-size: 2rem;
  color: #e60000;
  margin-bottom: 15px;
}

.product-info p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-info ul {
  list-style: disc inside;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.5;
  padding-left: 0;
}

.icon-list li i {
  margin-right: 10px;
  color: #e60000;
}


/* Llamado a la acción */

.cta-section {
  padding: 60px 20px;
  background: #222;
  color: #fff;
  text-align: center;
}

.cta-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.cta-button {
  position: relative;
  background: #cc8a4d;
  color: #fff;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.3s ease;}

.cta-button:hover {
  background: #cc0000;
}

/* Animación tipo pulso */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.5);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 15px rgba(230, 0, 0, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(230, 0, 0, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}


/* Sobre nosotros */

.about-section {
  padding: 60px 20px;
  background: #d5d2c1;
  color: #333;
}

.about-section .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #e60000;
}

.about-section p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

/* Animación de inicio */

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 1s ease-out forwards;
}

/* Pie de página */

.site-footer {
  background: #1f1f29;
  color: #fff;
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 20px;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #e60000;
}

.footer-contact,
.footer-social {
  flex: 1 1 300px;
}

.contact-info p {
  margin: 5px 0;
}

.footer-social {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  justify-content: flex-end;
}

.social-icons a {
  color: #fff;
  font-size: 1.3rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #e60000;
  transform: scale(1.2);
}

/* Pie de derechos */
.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

/* Marquesina */

.brand-stripe {
  background: #d5d2c1;
  color: #3d82ab;
  padding: 30px 0;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
}

.brand-stripe h3 {
  color: #e60000;
  font-size: 1.3rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.marquee-double {
  background: #d5d2c1;
  padding: 20px 0;
}

.marquee-container {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: fit-content;
  animation: scroll-left 20s linear infinite;
}

.marquee-track.reverse {
  animation: scroll-right 20s linear infinite;
}

.marquee-logos {
  display: flex;
}

.marquee-logos img {
  height: 64px;
  margin: 0 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.marquee-logos img:hover {
  transform: scale(1.1);
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0%   { transform: translateX(0); }
  100% { transform: translateX(50%); }
}



/* Responsive / Mobile */

@media (max-width: 768px) {
 
   body {
   overflow-x: hidden;
   }

  .nav-container {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
  }

  .menu-toggle .line {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    transition: 0.3s ease;
  }

  .menu-toggle.open .line1 {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.open .line2 {
    opacity: 0;
  }

  .menu-toggle.open .line3 {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    margin-top: 10px;
    padding-left: 0;
    box-sizing: border-box;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 10px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 20px 60px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .services-grid,
  .choose-grid {
    grid-template-columns: 1fr;
  }

  .product-image-section img {
    width: 100%;
    height: auto;
  }

  .product-grid {
  grid-template-columns: 1fr;
  text-align: center;
 }

.product-info ul {
  text-align: left;
  margin: 0 auto;
  max-width: 90%;
 }

.footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social,
  .social-icons {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .footer-column.spacer {
    display: none;
  }
}
