
.gallery {
width: 100%;
height: 75vh;
/* margin: 0; */
/* padding: 0; */
background-color: #111;
/* display: flex; */
/* justify-content: center; */
/* align-items: center; */
overflow: hidden;
}
#main-image {
transition: opacity 0.1s ease-in-out;
opacity: 1;
}
#main-image.fade-out {
opacity: 0;
}
.main-image-container {
width: 100%;
height: 100%;
position: relative;
margin: 0;
}
.main-image-container img {
width: 100%;
height: 100%;
display: block;
transition: opacity 0.5s ease-in-out;
}

.logo-slider-wrapper {
overflow: hidden;
position: relative;
width: 100%;
border-top: 4px solid rgba(255, 0, 0, 0.6);
border-bottom: 5px solid rgba(255, 0, 0, 0.6);
background-color: #111;
padding: 10px 0;
margin-top: 1px;
}
.logo-slider {
display: flex;
gap: 10px;
animation: scrollLogos 40s linear infinite;
align-items: center;
}
.logo-slider img {
border-radius: 999px;
height: 60px;
width: auto;
transition: transform 0.3s ease, background-color 0.3s ease;
padding: 10px;
border-radius: 8px;
margin-top: 0px;
margin-bottom: 0px;
}
.logo-slider img:hover {
/* border: solid 1px rgb(255, 0, 0); */
transform: scale(1.1);
background-color: rgb(255, 255, 255); /* rojo muy sutil */
}
.titulo-wrapper {
  text-align: center;
  margin-bottom: 1rem;
}
.titulo-categoria {
  font-size: 2.4rem;
  color: white;
  padding: 1rem 2rem;
  display: inline-block;
  background: rgba(255, 0, 0, 0.05);
  border: 1px solid rgba(255, 77, 77, 0.3);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.15);
  margin-bottom: 0.5rem;
  position: relative;
  animation: fadeInUp 1s ease-out;
}
.titulo-categoria::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #e63946;
  margin: 12px auto 0;
  border-radius: 999px;
  animation: fadeLine 2s ease-out;
}
@keyframes fadeLine {
  0% { width: 0; opacity: 0; }
  100% { width: 60px; opacity: 1; }
}
/* Animaciones */
@media (max-width: 1700px) {
  .search-bar {
    width: 350px;
    padding: 0.5rem 1.2rem;
  }

  .search-btn svg {
    width: 16px;
    height: 16px;
  }
}
@media (max-width: 768px) {
  .search-bar {
    width: 250px;
    padding: 0.4rem 1rem;
  }

  .search-btn svg {
    width: 14px;
    height: 14px;
  }
}
@keyframes scrollLogos {
0% {
  transform: translateX(0%);
}
100% {
  transform: translateX(-50%);
}
}
@media (max-width: 1400px) {
.search-bar {
  flex: 1 1 200px;        /* ✅ Aún más compacta en pantallas chicas */
}

.logout-text {
  display: none;          /* ✅ Oculta el texto y deja solo el ícono */
}

.logout-button {
  padding: 0.6rem;        /* ✅ Menos padding para que quepa bien */
}
}
@media (max-width: 1200px) {
  .logout-text {
    display: inline;
    font-size: 0.85rem;
    font-weight: normal;
    color: #cccccc;
  }

  .logout-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .logout-button svg {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 1370px) {
  .logout-text {
    display: none;
  }
  }
  @keyframes scroll {
    from {
      transform: translateX(0%);
    }
    to {
      transform: translateX(-50%);
    }
  }
.nav-button {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: rgba(255, 255, 255, 0);
border: none;
color: rgb(255, 255, 255);
font-size: 2rem;
padding: 12px 18px;
cursor: pointer;
border-radius: 50%;
opacity: 0;
transition: opacity 0.3s, background-color 0.3s;
z-index: 10;
}
.main-image-container:hover .nav-button {
opacity: 1;
}
.nav-button:hover {
background-color: rgba(255, 255, 255, 0.1);
}
.nav-button.left {
left: 5px;
}
.nav-button.right {
right: 5px;
}
.titulo-wrapper {
  text-align: center;
  margin-bottom: 1rem;
  margin-top: 0px;
}



  .carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 1rem 0;
    margin: 0 auto;
    overflow: hidden;
}

.carousel {
    display: flex;
    gap: 1.5rem;
    padding: 0 2rem;
    scroll-behavior: smooth;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Tarjetas de categorías */
.feature {
  text-decoration: none;
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 200px;
    height: 260px;
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #333;
    opacity: 0;
    transform: translateY(20px);
}

.feature.fade-in-up {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease-out forwards;
}

.feature:hover {
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.2);
    border-color: #e63946;
}

.feature img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature:hover img {
    transform: scale(1.05);
}

.feature p {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    margin: 0;
}

/* Flechas de navegación */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(230, 57, 70, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-arrow:hover {
    background-color: #e63946;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.left {
    left: 0;
}

.carousel-arrow.right {
    right: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .feature {
        width: 160px;
        height: 220px;
        padding: 1rem;
    }
    
    .feature img {
        width: 100px;
        height: 100px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}


/* === CONTENEDOR GENERAL DE FILTROS Y RESULTADOS === */
.contenedor-filtros-productos {
  /* border-radius: 100px; */
  /* border-top: 5px solid rgba(255, 0, 0, 0.6); */
  border-bottom: 5px solid rgba(255, 0, 0, 0.6);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: stretch;;
  justify-content: center;
  padding: 2rem 1rem;
}

/* === BLOQUE DE FILTROS === */
.bloque-filtros {
  background: #111;
  padding: 2rem;
  border-radius: 12px;
  min-width: 350px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === TÍTULO === */
.titulo-filtros {
  font-size: 1.8rem;
  color: #e63946;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* === SELECTS === */
.filtro-select {
  padding: 0.7rem;
  border-radius: 8px;
  background: #1e1e1e;
  color: white;
  border: none;
  font-size: 1rem;
}

/* === BOTÓN FILTRAR === */
.btn-filtro.principal {
  background-color: #c0392b;
  color: white;
  padding: 0.9rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.btn-filtro.principal:hover {
  background-color: #e74c3c;
}

/* === CONTENEDOR DE PRODUCTOS === */
.productos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
  align-items: stretch; /* 🔁 esto hace que todas las tarjetas tengan igual altura */
}


/* === TARJETA DE PRODUCTO === */

.producto-card {
  flex: 1 1 280px; /* 🔁 tamaño base y responsivo */
  max-width: 300px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #141414;
  border: 1px solid #ffffff;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.producto-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 20px rgba(255, 0, 0, 0.4);
  background-color: #181818;
}

/* === CONTENEDOR DE IMAGEN === */
.producto-imagen-container {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 10px;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}

/* === IMAGEN === */
.producto-imagen {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* === INFORMACIÓN DEL PRODUCTO === */
.producto-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* === NOMBRE (máx 2 líneas) === */
.producto-nombre {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2em;
  max-height: 2.4em;
  margin: 0 0 10px;
}
/* === CÓDIGO Y MARCA === */
.producto-datos {
  margin-bottom: 15px;
}

.producto-codigo,
.producto-marca {
  margin: 5px 0;
  font-size: 14px;
  color: #999;
}

/* === PIE DE TARJETA === */
.producto-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 0.6rem;
}

.producto-precio {
  font-size: 18px;
  color: #e63946;
  font-weight: bold;
  text-align: left;
}
.producto-hover-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: rgb(255, 255, 255);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
/* Mostrar el ícono + al pasar el ratón */
.producto-imagen-container:hover .producto-hover-icon {
  opacity: 1;
  pointer-events: auto;
}

/* Estilo para los detalles técnicos */
.producto-hover-descripcion {
  position: absolute;
  top: 0; /* 🔁 Cambia de bottom a top */
  left: 0;
  right: 0;
  bottom: 0; /* 🔁 Agrega esto para ocupar todo el alto */
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden; /* Oculta la barra de scroll */
  white-space: pre-wrap;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center; /* Centra verticalmente si querés */
  /* justify-content: center;   */
  text-align: left;
}
/* Mostrar los detalles técnicos solo al pasar el ratón sobre la imagen */
.producto-imagen-container:hover .producto-hover-descripcion {
  opacity: 1;
  pointer-events: auto; /* Habilita la interacción al pasar el ratón */
}
.producto-hover-descripcion strong {
  color: #ff3a3a;
  font-weight: bold;
}
a.producto-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  font-weight: 600;
}

a.producto-link:hover {
  text-decoration: underline;
  color: #c0392b; /* o el color que quieras para el hover */
  cursor: pointer;
} 


.seccion-empresa {
  background-color: #1e1e1e;
  background-image: url('/Imagenes/Principales/fondo.webp'); /* reemplazá con tu ruta */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f0f0f0;
  padding: 4rem 2rem;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  z-index: 1;
  border-bottom: solid 5px rgba(255, 0, 0, 0.6);

}

/* Fondo con oscurecimiento para mejorar lectura */
.seccion-empresa::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.8); /* oscurece el fondo */
  z-index: -1;
}

.contenedor-empresa {
  max-width: 1100px;
  margin: 0 auto;
}

.titulo-seccion {
  font-size: 2.4rem;
  margin-bottom: 3rem;
  text-align: center;
  color: #ff3a3a;
}

.bloque-mision-vision {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card-empresa {
  border: solid 2px rgba(255, 0, 0, 0.3);
  background-color: #2c2c2c;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-empresa:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.card-empresa h3 {
  font-size: 1.6rem;
  color: #ff4343;
  margin-bottom: 1rem;
}

.card-empresa p {
  line-height: 1.7;
  font-size: 1rem;
  color: #dcdcdc;
}

.icono {
  font-size: 2rem;
  color: #ff7043;
  margin-bottom: 1rem;
}

/* Responsive */
@media (min-width: 768px) {
  .bloque-mision-vision {
    flex-direction: row;
  }

  .card-empresa {
    flex: 1;
  }
}

/* Fade-in-up animation */
.animar {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.seccion-ubicacion {
  color: #f0f0f0;
  padding: 2rem 2rem;
  font-family: 'Montserrat', sans-serif;
}

.contenedor-ubicacion {
  max-width: 1100px;
  margin: 0 auto;
}

.titulo-seccion-ubicacion {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #e93535;
}

.info-mapa-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-contacto {
  flex: 1;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-contacto i {
  margin-right: 0.6rem;
  color: #ff7043;
}

.btn-direccion {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background-color: #ff4343;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  width: fit-content;
  transition: background-color 0.3s;
}

.btn-direccion:hover {
  background-color: #ff0f0f;
}

.mapa-ubicacion {
  flex: 1;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

/* Responsive para pantallas grandes */
@media (min-width: 768px) {
  .info-mapa-wrapper {
    flex-direction: row;
    align-items: center;
  }

  .mapa-ubicacion {
    height: 300px;
  }
}
.seccion-contacto {
  border-top: solid 5px rgba(255, 0, 0, 0.6);
  color: white;
  padding: 4rem 1.5rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.seccion-contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7); /* oscurece imagen */
  z-index: 0;
}

.contacto-container {
  max-width: 600px;
  width: 100%;
  text-align: center;
  z-index: 1;
  position: relative;
}

.contacto-container h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contacto-container p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.formulario-contacto {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.campo {
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
}

.campo label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.campo label i {
  margin-right: 0.5rem;
  color: #cc3b3b;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 2px solid transparent;
  background-color: #2a2a2a;
  color: white;
  font-size: 1rem;
  transition: border 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border: 2px solid #cc3b3b;
  background-color: #333;
}

input:invalid,
textarea:invalid {
  border-color: #cc3b3b;
}

input:valid,
textarea:valid {
  border-color: #3bcc71;
}

input::placeholder,
textarea::placeholder {
  color: #aaa;
  font-style: italic;
}

.btn-enviar {
  background-color: #cc3b3b;
  color: white;
  padding: 0.9rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-enviar:hover {
  background-color: #a72f2f;
}

/* Responsive */
@media (max-width: 600px) {
  .seccion-contacto {
    padding: 3rem 1rem;
  }

  .contacto-container h2 {
    font-size: 1.5rem;
  }
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0);
  z-index: 1;
}

/* Contenido superpuesto sobre la imagen */
.hero-overlay-content {
  margin-top: 0px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 75%;
  /* padding: 2rem; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20rem;
  color: white;
  font-family: 'Montserrat', sans-serif;
}

/* Logo y subtítulo */
.hero-logo h1 {
  font-size: 3.5rem;
  margin: 0;
  font-weight: bold;
  color: white;
}
.hero-logo .logo-red {
  color: #ff3a3a;
}
.hero-sub {
  font-size: 1.4rem;
  color: #ff3a3a;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Cajas con características */
.hero-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5rem;
  /* max-width: 1200px; */
}
.feature-box {
  flex: 1 1 280px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid white;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  backdrop-filter: blur(3px);
}
.check-icon {
  color: #ff3a3a;
  font-size: 1.4rem;
}

/* Franja inferior */
.hero-franja {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(112, 0, 0, 0.747);
  padding: 1rem;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  text-align: center;
  z-index: 3;
}
