/* Corrección general de scroll horizontal */
html, body {
  overflow-x: hidden;
}

/* Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #333;
}

/* HEADER */
header {
  background: linear-gradient(to right, #ff4081, #ffca28, #00e5ff, #7c4dff);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

html {
  scroll-behavior: smooth;
}

.menu-fijo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 2rem;
  background: linear-gradient(to right, #ff416c, #ffb347, #00f2fe, #7a00ff);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.menu-fijo .container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-content {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.logo-navbar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

nav a {
  margin: 0 1rem;
  color: black;
  font-weight: bold;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* HERO */
.hero {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.hero-img {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: #222;
  margin: 0.5rem 0;
  font-family: 'Poppins', sans-serif;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 2rem;
}

/* BIENVENIDA */
.seccion-bienvenida {
  background: linear-gradient(to right, #fff6f9, #e3f9ff);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin: 2rem auto;
  max-width: 1100px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  color: #444;
  line-height: 1.7;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.seccion-bienvenida.show {
  opacity: 1;
  transform: translateX(0);
}

.seccion-bienvenida h2 {
  font-size: 2.2rem;
  color: #f06292;
  margin-bottom: 1rem;
  text-align: center;
}

.seccion-bienvenida h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  color: #00897b;
}

.seccion-bienvenida p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.seccion-bienvenida ul {
  margin-left: 1.5rem;
  list-style: disc;
  padding-left: 1rem;
}

.seccion-bienvenida li {
  margin-bottom: 0.6rem;
}

/* CARRUSELES */
.carrusel-productos, .carrusel-marcas {
  padding: 3rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.carrusel-marcas h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.slider, .slider-marcas {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.slide, .marca {
  min-width: 200px;
  flex: 0 0 auto;
  scroll-snap-align: center;
  background: #fafafa;
  border-radius: 10px;
  padding: 10px;
}

.marca {
  width: 140px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.slide img, .marca img {
  max-height: 500px;
  max-width: 100%;
  object-fit: contain;
}

/* TEXTO MARCAS */
.texto-marcas {
  background-color: #fff9fb;
  border-left: 6px solid #f06292;
  padding: 1.5rem 2rem;
  margin: 1rem auto 2.5rem;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  color: #444;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.texto-marcas.show {
  opacity: 1;
  transform: translateY(0);
}

/* NOVEDADES */
.novedades {
  padding: 60px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

.grid-novedades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.novedad img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.novedad p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-top: 1rem;
}

/* CONTACTO */
.seccion-contacto {
  padding: 40px 20px;
  background: #ffffff;
}

.contacto-contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
}

.info-contacto {
  flex: 1;
  min-width: 280px;
}

.info-contacto h2 {
  margin-bottom: 16px;
}

.info-contacto a {
  text-decoration: none;
  color: #d72683;
  font-weight: bold;
}

.mapa-contacto {
  flex: 2;
  min-width: 300px;
}

.mapa iframe {
  border: 0;
  width: 100%;
  height: 300px;
}

/* FOOTER */
footer {
  background: linear-gradient(to right, #ff4081, #ffca28, #00e5ff, #7c4dff);
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: bold;
  color: black;
}

/* ANIMACIONES */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }

  .fade-in.show {
    opacity: 1;
    transform: none;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-fijo nav a {
    font-size: 0.9rem;
  }

  .banner-dos-columnas {
    grid-template-columns: 1fr;
    height: auto;
  }

  .columna-izquierda, .columna-derecha {
    padding: 30px 20px;
  }
}

