/* === ESTILO GENERAL === */
body {
  background-color: #f8f9fa;
  color: #333;
  font-family: 'Poppins', sans-serif;
}

footer {
  background-color: #fff;
  color: #666;
}

/* === NAVBAR === */
/* === NAVBAR SOBRE BANNER === */
.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* fondo oscuro translúcido */
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
  color: white !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover {
  text-decoration: underline;
}

/* Cambios al hacer scroll */
.navbar-scroll {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.navbar-scroll .navbar-brand,
.navbar-scroll .nav-link {
  color: #333 !important;
}

/* === BOTÓN HAMBURGUESA === */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-scroll .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.5);
}

.navbar-scroll .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280,0,0,1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Animación suave al desplegar menú */
.navbar-collapse {
  transition: max-height 0.3s ease;
}

/* === BOTÓN HAMBURGUESA === */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: border-color 0.3s ease;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Hamburguesa oscura al hacer scroll */
.navbar-scroll .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.5);
}

.navbar-scroll .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280,0,0,1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-scroll {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.navbar-scroll .nav-link,
.navbar-scroll .navbar-brand {
  color: #333 !important;
}

/* === ANIMACIÓN SUAVE PARA COLLAPSE === */
.navbar-collapse {
  transition: max-height 0.3s ease;
}

/* === BANNER CAROUSEL === */
.banner-slide {
  height: 90vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.banner-contenido {
  background: rgba(0, 0, 0, 0.4);
  padding: 2rem 3rem;
  border-radius: 16px;
  max-width: 90%;
}

/* === TARJETAS DE PRODUCTOS === */
.card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  object-fit: cover;
  height: 300px;
}

.card-title {
  font-weight: 600;
  font-size: 1.1rem;
}

/* === BOTONES === */
.btn-outline-dark {
  border-radius: 25px;
  font-weight: 500;
}

/* === FORMULARIOS === */
form select,
form input {
  border-radius: 10px;
}

/* Transición de navbar al hacer scroll */
.navbar-scroll {
  background-color: white !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.navbar-scroll .nav-link,
.navbar-scroll .navbar-brand {
  color: #333 !important;
}

.banner-verano {
  background-image: url("../img/banners/banner-verano.jpg");
  background-size: cover;
  background-position: center;
  min-height: 90vh;
  position: relative;
}

.banner-invierno {
  background-image: url("../img/banners/banner-invierno.jpg");
  background-size: cover;
  background-position: center;
  min-height: 90vh;
  position: relative;
}

.banner-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.banner-contenido {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 2rem 3rem;
  border-radius: 16px;
  max-width: 90%;
  backdrop-filter: blur(2px);
}

.banner-slide {
  height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.logo-tienda {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff !important;
  text-shadow: 1px 1px 2px #00000040;
}

/* Estilo del buscador sobre el banner */
.contenedor-busqueda {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 20px; /* reducido desde 20px 30px */
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  max-width: 800px;
  width: 90%;
  text-align: center;
  z-index: 5;
  animation: fadeInUp 1s ease-out;
}

.contenedor-busqueda h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Asegurar que el banner lo contenga correctamente */
.banner-verano,
.banner-invierno {
  position: relative;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.contenedor-busqueda {
  animation: fadeInUp 1s ease-out;
}
