/* ===== NAVBAR ===== */
.bg-azul {
  background-color: #010393 !important; /* Azul más oscuro */
}

.navbar .nav-link {
  color: white !important;
  font-weight: 500;
  margin-right: 1rem;
  transition: color 0.3s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ff1a1a !important; /* Rojo corporativo */
}

.btn-cart {
  background-color: #001699;
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  position: relative;
  transition: background 0.3s;
}

.btn-cart:hover {
  background-color: #001366;
}

.hero {
    position: relative;
    background: url('../images/hero-background.jpg') center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Capa azul con transparencia */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 22, 153, 0.9);
    /* Azul oscuro con transparencia */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

.hero h1 {
    font-weight: 800;
    font-size: 3rem;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.btn-explorar {
    background-color: #ff1a1a;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: background 0.3s;
}

.btn-explorar:hover {
    background-color: #e60000;
    color: white;
}

.btn-contacto {
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s;
    margin-left: 1rem;
}

.btn-contacto:hover {
    background-color: white;
    color: #001699;
}

/* Encabezados de sección */
.section-title {
    font-weight: bold;
    color: #010192;
    text-align: center;
    position: relative;
    margin: 3rem 0 0;
}

.sb::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #F90405;
    margin: 8px auto 0;
    border-radius: 2px;
}

.categories-section {
  background-color: #ffffff;
  color: #001f8a;
}

.section-title {
  font-weight: 700;
  font-size: 2.3rem;
  color: #001f8a;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 50px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.category-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 15px;
  padding: 25px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-color: #e30613; /* rojo El Molinero */
}

.icon-box {
  background-color: rgba(0, 31, 138, 0.1);
  color: #001f8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 15px;
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.category-card h4 {
  font-weight: 700;
  color: #001f8a;
  margin-bottom: 8px;
}

.category-card p {
  color: #6c757d;
  margin: 0;
}


.btn-buy {
    background-color: #F90405;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.btn-buy:hover {
    background-color: #c90304;
}

.product-image-details {
    border: 1px solid #afafb0;
    border-radius: 8px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #F90405;
    transform: scale(1.05);
}

.btn-primary {
    background-color: #010192;
    border: none;
}

.btn-primary:hover {
    background-color: #F90405;
}

.price-now {
    color: #F90405;
    font-size: 1.8rem;
    font-weight: bold;
}

.price-old {
    color: gray;
    text-decoration: line-through;
}

.features-section {
    padding: 20px 0;
    border-radius: 8px;
    margin-top: 20px;
}

.feature-box {
    text-align: center;
}

.feature-box i {
    font-size: 40px;
    color: #010192;
    margin-bottom: 10px;
}

.feature-box p {
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Marcas */
.brands img {
    max-width: 220px;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brands img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Navbar */
.navbar-nav .nav-item .nav-link,
.dropdown-item {
    color: #010192;
    font-weight: 500;
}

.navbar-nav .nav-item .nav-link:hover,
.dropdown-item:hover {
    color: #F90405;
}

/* Footer */
.footer {
    background-color: #010192;
    font-size: 0.95rem;
}

.footer-top {
    background-color: rgba(255, 255, 255, 0.05);
}

.footer-title {
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #F90405;
}

.footer-icon {
    color: #fff;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.footer-icon:hover {
    color: #F90405;
}

.footer-bottom {
    background-color: #01019258;
    font-size: 0.9rem;
    color: #fff;
}