/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 0px 0;
}

header {
  background-color: #2654ee;
  color: rgb(246, 248, 241);
  padding: 10px 0;
}

nav {
  text-align: center;
  margin-top: 10px;
}

.nav {
  display: inline-block;
  padding: 0;
}

.nav li {
  display: inline;
  margin: 0 15px;
}

.nav li a {
  text-decoration: none;
  color: #eceff1;
  font-weight: bold;
}

.nav li a:hover {
  color: #f5690c;
  text-decoration: underline;
}

main {
  padding: 40px 0;
}

footer {
  background-color: #2654ee;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
}

/* Header flex */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 5px;
}

/* Logo */
.logo {
  width: 80px;
  height: auto;
}

.logo-title {
  margin-left: 1rem;
  font-size: 2rem;
}

/* Responsive: Tablets */
@media (max-width: 768px) {
  .logo {
    width: 60px;
  }

  .logo-title {
    font-size: 1.5rem;
    margin-left: 0.8rem;
  }
}

/* Responsive: Celulares */
@media (max-width: 480px) {
  .header-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo {
    width: 50px;
  }

  .logo-title {
    margin-left: 0;
    margin-top: 10px;
    font-size: 1.2rem;
  }
}

/* Galería de imágenes */
.galeria-imagenes {
  width: 100%;
  max-width: 100%;
  height: auto;
  /*    display: block;
    margin: 0 auto;*/
  text-align: center;
}

.fila-imagenes {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Estilo específico para imágenes de productos */
.img-producto {
  width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

/* Imagen destacada en index */

.imagen-destacada {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
}

/* Card para login (si se usa en otro archivo) */
.card {
  background-color: #f7f9fc;
  border: 2px solid #007bff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.card h2 {
  color: #0056b3;
  font-weight: bold;
}

.card:hover {
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
  transition: all 0.3s ease-in-out;
}

/* Ajuste específico para celulares */
@media (max-width: 480px) {
  .imagen-destacada {
    max-width: 100% !important;
    height: auto;
  }
}

/* Agregado el 12/08/26- para agrandar las imagens de Productos al hacer doble click */
section {
  margin-bottom: 20px;
}

/* Estilo base de imágenes de la galería */
.img-producto {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.img-producto:hover {
  transform: scale(1.02);
}

/* Fondo oscuro (Overlay) con animación Fade-in */
.modal-visor {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Cuando el visor está activo */
.modal-visor.activo {
  opacity: 1;
  pointer-events: auto;
}

/* Contenedor de la imagen con animación Zoom-in */
.modal-contenido {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  transform: scale(0.7);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-visor.activo .modal-contenido {
  transform: scale(1);
}

.modal-contenido img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: block;
}

/* Botón de Cierre (X) */
.btn-cerrar {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #e74c3c;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  font-weight: bold;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition:
    background 0.2s,
    transform 0.2s;
  z-index: 2001;
}

.btn-cerrar:hover {
  background: #c0392b;
  transform: scale(1.1);
}

/* Adaptación Responsive para pantallas chicas (Celulares) */
@media (max-width: 768px) {
  .modal-contenido img {
    max-width: 92vw;
    max-height: 80vh;
  }

  .btn-cerrar {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    font-size: 22px;
    line-height: 34px;
  }
}
