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

/* Variables */
:root {
    --primary-color: black;
    --accent-color-gold: #50432F;  
    --accent-color-red: #B22222; /*#E53935; /* Firebrick Red  #B22222 */
    --accent-color-blue: #505568; /*#1E293B; #505568;*/
    --accent-color-navbar: #1E90FF;
    --background-color: #f8f8f8; 
    --accent-color-lightgray: #f8f8f8; /* #f8f8f8;*/
    --accent-color-gray: #ECECEC; /*#f1f1f1;/* #e8e8e8;*/
    --accent-color-header: #FF4C4C;
}

/* General Styles */
body {
    width: 100%;
    background-color: var(--background-color);
    color: black;
    /*font-family:  "Noto Sans", "Noto Sans Fallback", sans-serif;*/
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;  
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Topbar Navigation */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: white;
    color: black;
    display: flex;
    align-items: center;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}
.logo-navbar {
  height: 40px;
  width: auto;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: black;
    text-decoration: none;
    font-weight: bold; 
    padding: 1rem 0.5rem;
    transition: color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    border-radius: 5px;
    color: var(--accent-color-gold);
}

.nav-link::before,
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color-red);
    opacity: 0;
    transition: top 0.3s ease, bottom 0.3s ease, opacity 0.3s ease;;
}

.nav-link::before {
    top: 10%;
}

.nav-link::after {
    bottom: 10%;
}

.nav-link:hover::before {
    top: 25%;
    opacity: 1;
}

.nav-link:hover::after {
    bottom: 25%;
    opacity: 1;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
}
.menu-toggle span {
    background: black;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
  }

  .topbar {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    padding-bottom: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 1rem;
  }

  .topbar.open .nav-list {
    display: flex;
  }

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

  .logo-navbar {
    height: 40px;
    width: auto;
    object-fit: contain;
  }
}

/* Main Content */
.main-content {
    margin: 0 auto;
    margin-top: 70px;
    padding: 0;
/*    font-family:  "Noto Sans", "Noto Sans Fallback", sans-serif;*/
    font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}

.section-header {
    width: 100%;
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    margin: 0;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--accent-color-header);
    background-color: var(--accent-color-blue);
}

.garantia-section {
    padding: 4rem 2rem;
    background-color: var(--accent-color-lightgray);
    color: #000;
}

.garantia-section p,
.garantia-section ul {
    font-size: 1.1rem;
    line-height: 1.6;
}

.garantia-section ul {
    padding-left: 1.5rem;
}

.garantia-contenido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.garantia-texto {
    flex: 1;
    min-width: 300px;
}

.garantia-carrusel {
    flex: 1;
    overflow: hidden;
    max-width: 100%;
    position: relative;
    border-radius: 8px;
}

.carrusel {
    max-width: 500px;
    position: relative;
}

.carrusel-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.carrusel-image.active {
    position: relative;
    opacity: 1;
}

.footer {
    background-color: var(--accent-color-blue); /* o cualquier color */
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

.botones-sociales {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.boton-social img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.boton-social img:hover {
    transform: scale(1.25);
}

@media (max-width: 768px) {
  .garantia-contenido {
    flex-direction: column;
    align-items: center;
  }

  .garantia-carrusel {
    max-width: 100%;
  }

  .carrusel-image {
    height: auto;
    max-height: 250px;
  }

  .section-header {
    font-size: 2rem;
    padding: 1rem;
  }
}

.motores-texto-centrado {
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
  font-size: 1.2rem;
  line-height: 1.6;
}

.motores-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem auto;
  max-width: 1000px;
  padding: 0 2rem;
}

.motores-galeria img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.3s;  
}

.titulo-seccion {
  text-align: center;         /* Centra el texto horizontalmente */
  color: var(--accent-color-header); /*#E53935;             /* Rojo moderno (puedes usar cualquier otro código) */
  font-size: 2rem;            /* Tamaño del texto (ajustable) */
  margin-bottom: 2rem;        /* Espacio debajo del título */
  font-weight: 700;           /* Texto más grueso para destacarlo */
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.imagen-con-titulo {
  text-align: center;
}

.titulo-imagen {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}


/* Contenedor con animación */
.animada {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

/* Retrasos opcionales para efecto en cascada */
.imagen-con-titulo:nth-child(1) { animation-delay: 0.2s; }
.imagen-con-titulo:nth-child(2) { animation-delay: 0.4s; }
/* ... */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.imagen-con-titulo {
  text-align: center;
}

.titulo-imagen {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #333;
}

@media (max-width: 768px) {
  .motores-galeria {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    padding: 0 1rem;
    gap: 1rem;
  }

  .motores-texto-centrado {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .titulo-seccion {
    font-size: 1.5rem;
    margin: 1rem 0;
    padding: 0 1rem;
  }

  .imagen-con-titulo img {
    height: 150px;
  }

  .titulo-imagen {
    font-size: 0.9rem;
  }

  .section-header {
    font-size: 1.8rem;
    padding: 1rem 0.5rem;
    height: auto;
  }
    .imagen-con-titulo video {
      height: 150px;
    }
}

.imagen-con-titulo video {
  width: 100%;
  height: 200px;           /* Ajusta este valor según lo que necesites */
  object-fit: cover;       /* Recorta el video para que se vea uniforme */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.motor-carrusel {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.motor-slider {
  position: relative;
  width: 100%;
  height: 200px;
}

.motor-img {
  width: 100%;
  height: 200px;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  opacity: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);    
  transition: opacity 1s ease-in-out;
  border-radius: 10px;

}

.motor-img.active {
  opacity: 1;
  z-index: 1;
}


@media (max-width: 768px) {
  .motor-slider {
    height: 160px;
  }

  .motor-img {
    height: 160px;
  }

  .motor-carrusel {
    margin-bottom: 1rem;
  }

  .titulo-imagen {
    font-size: 0.85rem;
    margin-top: 0.3rem;
  }

  .motores-galeria {
    grid-template-columns: 1fr 1fr;
    padding: 0 1rem;
    gap: 0.8rem;
  }

  .imagen-con-titulo img,
  .motor-img {
    height: 160px;
  }
}

