/* =============================================== */
/* ESTILOS GENERALES Y FUENTE */
/* =============================================== */
body {
  font-family: 'Montserrat', sans-serif;
  padding-bottom: 50px; /* Espacio para la barra verde inferior */
}

/* =============================================== */
/* BARRA VERDE INFERIOR FIJA */
/* =============================================== */
.bottom-bar {
  background-color: #2F7714;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
}

/* =============================================== */
/* BARRA DE NAVEGACIÓN (NAVBAR) */
/* =============================================== */
.navbar {
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f2f2f2; 
}

.navbar .container {
  max-width: 1200px; /* Ancho máximo para un look más centrado */
}

.logo-itam {
  max-height: 35px; 
}

.navbar-nav .nav-link {
  font-size: 0.9rem; 
  font-weight: 500;
  color: rgba(18, 18, 18, 0.75); /* Color gris del sitio original */
  padding: 5px 15px;
  text-transform: none;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #121212; /* Cambia a negro al pasar el mouse */
}

.dropdown-menu {
  border-radius: 0;
  border: 1px solid #f2f2f2;
}

.dropdown-item {
  font-size: 0.9rem;
}

/* =============================================== */
/* BANNER PRINCIPAL */
/* =============================================== */
.main-banner-img {
  max-height: 500px;
  width: 100%;
  object-fit: cover;
}

/* =============================================== */
/* BANNER PROMOCIONAL SECUNDARIO */
/* =============================================== */
.promo-banner-link img {
  transition: opacity 0.3s ease; /* Transición suave para el efecto */
}

.promo-banner-link:hover img {
  opacity: 0.9; /* La imagen se vuelve ligeramente transparente al pasar el mouse */
}

/* =============================================== */
/* TARJETAS DE PRODUCTO (CON EFECTO HOVER) */
/* =============================================== */
.product-card {
  border: none;
  overflow: hidden;
}

.product-link {
  text-decoration: none;
}

.product-image-container {
  position: relative;
}

.hover-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.product-card:hover .hover-image {
  opacity: 1;
}

.product-card .card-body {
  background-color: #f3f2f2; /* Caja gris para el texto */
  padding: 1rem;
}

.product-card .card-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #121212;
}

.product-card .card-text {
  font-weight: 400;
  color: #121212;
  font-size: 0.95rem;
}

/* =============================================== */
/* SECCIÓN DE PRODUCTO DESTACADO (REFINADA) */
/* =============================================== */
.product-image-main-container {
  border: 1px solid #f2f2f2;
  padding: 1rem;
}

.product-info-col {
  text-align: left;
}

.product-vendor {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 2rem;
  font-weight: 400; /* Reducimos el grosor de 600 a 400 */
  margin-bottom: 1rem; /* Aumentamos el espacio inferior */
}



.product-price {
  font-size: 1.2rem;
  margin-bottom: 1.5rem; /* Aumentamos el espacio inferior */
}

.product-tax {
  font-size: 0.8rem;
  color: #666;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: black;
  border: 2px solid #ccc;
}
.color-swatch.active {
  border-color: black;
}

.quantity-selector {
  max-width: 150px;
}
.quantity-selector .form-control {
  border-left: none;
  border-right: none;
}
.quantity-selector .btn {
  border-color: #ccc;
}

.btn-paypal {
  background-color: #ffc439;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-paypal:hover {
  background-color: #f2b930;
}
.paypal-logo {
  height: 20px;
  margin-left: 8px;
}

.more-payment-options {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1rem;
  color: #333;
}

.product-final-links {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  font-size: 0.9rem;
}
.product-final-links a {
  color: #333;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.product-final-links a:hover {
  text-decoration: underline;
}


/* =============================================== */
/* CONTROLES DEL CARRUSEL */
/* =============================================== */
.carousel-custom-controls .btn {
  vertical-align: middle;
}

/* =============================================== */
/* SECCIÓN FINAL (REDES Y FOOTER) */
/* =============================================== */
.social-icon {
  color: #333;
  transition: color 0.3s ease;
}
.social-icon:hover {
  color: #000;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.copyright-text {
  font-size: 0.75rem;
  color: #666;
}

.footer-link-dark {
  color: #212529;
  text-decoration: none;
}

.footer-link-dark:hover {
  text-decoration: underline;
}

.payment-logo {
  max-height: 25px;
}

/* --- Estilos de Botones del Producto Destacado --- */

/* Regla general para hacer TODOS los botones cuadrados */
.btn {
  border-radius: 0; /* ¡Esto quita los bordes redondeados! */
}

/* Estilo específico para el botón "Agregar al carrito" */
.btn-add-to-cart {
  background-color: transparent;
  border: 1px solid #00594D; /* Borde verde ITAM */
  color: #00594D; /* Letras verdes ITAM */
}

.btn-add-to-cart:hover {
  background-color: #00594D;
  color: white;
}

/* Ajuste al botón de PayPal para que también sea cuadrado */
.btn-paypal {
  background-color: #ffc439;
  border-radius: 0; /* Aseguramos que sea cuadrado */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================== */
/* HEADER DINÁMICO (STICKY ON SCROLL UP) */
/* =============================================== */
.navbar {
  /* ... (Tus estilos existentes de padding, etc. se quedan igual) ... */
  position: sticky; /* Hacemos que la barra se "pegue" a la parte superior */
  top: 0;
  z-index: 1071; /* Un número alto para que esté por encima de otros elementos */
  transition: transform 0.3s ease-in-out; /* La animación de deslizamiento */
}

.navbar-hidden {
  transform: translateY(-100%); /* Esta clase desliza la barra hacia arriba, ocultándola */
}

/* --- ESTILOS PARA PRECIOS DE OFERTA (MODIFICADO) --- */

.price-container {
  font-size: 0.95rem;
  font-weight: 400; /* Cambiado de 600 a 400 para quitar las negritas */
}

/* Estilo para el precio original tachado */
.original-price {
  color: #666; /* Mantenemos el gris para el precio tachado */
  margin-right: 8px; 
}

/* Estilo para el precio final de oferta */
.sale-price {
  color: #5d5d5d;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.logo-itam-mobile {
  max-height: 25px; /* Un poco más pequeño para móviles */
}