
/* TODAS LAS PAGINAS -> */

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* ocupa todo el espacio disponible */
}

footer {
  background: #212529;
  color: #fff;
  text-align: center;
  padding: 1rem;
}


/* PAGINA INICIO <- SECCION NAVBAR -> */

.logo-navbar {
  height: 60px;
  width: auto;
}

.navbar .nav-link.active {
  color: #b71c1c !important;
  font-weight: bold;
}

.navbar .nav-link:hover {
  color: #adb5bd !important; /* $gray-400 */
}


/* PAGINA INICIO <- SECCION CARRUSEL -> */

/* Sombra ligera en textos del carrusel */
.text-shadow {
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

/* Ajuste general de altura del carrusel */
.carousel-item {
  height: 500px;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
}


/* PAGINA INICIO <- SECCION NOSOTROS -> */

.about-section {
  position: relative;
  background-image: url('/assets/img/corp.jpg'); /* tu imagen tenue */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* efecto parallax */
  min-height: 600px;
}

.about-section .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* capa oscura semitransparente */
}

.text-shadow {
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}


/* PAGINA INICIO <- SECCION SERVICIOS -> */


.services-section {
  position: relative;
  background-image: url('/assets/img/img1.jpg'); /* puedes usar la misma imagen de la sección anterior */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* efecto parallax */
}

.services-section .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); /* capa oscura para legibilidad */
}

.service-card {
  background: rgba(255,255,255,0.9); /* cards semitransparentes */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.icon-service {
  color: #b71c1c;
  transition: color 0.3s ease;
}

.service-card:hover .icon-service {
  color: #212529; /* cambia a gris oscuro al hacer hover */
}

/* PAGINA INICIO <- SECCION PRODUCTOS -> */

.products-section {
  position: relative;
  background-image: url('/assets/img/torn.jpg'); /* puedes usar la misma imagen de la sección anterior */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.products-section .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}

.product-card {
  background: rgba(255,255,255,0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.icon-product {
  color: #b71c1c;
  transition: color 0.3s ease;
}

.product-card:hover .icon-product {
  color: #212529;
}


/* PAGINA NOSOTROS */

.nosotros-section {
  position: relative;
  background-image: url('/assets/img/team.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.nosotros-section .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}

.value-card, .objetivo-card {
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover, .objetivo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.icon-value, .icon-objetivo {
  color: #b71c1c;
  transition: color 0.3s ease;
}

.value-card:hover .icon-value,
.objetivo-card:hover .icon-objetivo {
  color: #212529;
}

/* Solo afecta al carrusel de la sección Nosotros */ 
#valoresCarousel { 
    /* background-image: url('/assets/img/pai.jpg');  */
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}

#valoresCarousel .carousel-item { 
    min-height: 150px; /* altura más compacta */ 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; /* Asegura que cada item ocupe todo el ancho */ 
}

#valoresCarousel .carousel-item.active {
    display: flex; /* Solo el item activo se muestra como flex */ 
}

#valoresCarousel .carousel-item:not(.active) { 
    display: none; /* Oculta los items no activos para que no se superpongan */ 
    
}

/* PAGINA PRODUCTOS */

.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  min-height: 500px;
  position: relative;
}

.parallax .overlay {
  background-color: rgba(0,0,0,0.5);
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

.familia-titulo {
  color: #b71c1c;
}

.producto-titulo {
  color: #b71c1c;
}

.producto-descripcion {
  color: #6c757d; /* equivalente a $gray-500 */
}

.icono-familia {
  color: #b71c1c;
}

.card:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

