/*
    Autor: Isaac Fernández
    Fecha de creación: 26/07/2025
    Última modificación: 02/08/2025
*/


.custom-navbar {
    background-color: #00c3ff;
    font-family: 'Montserrat', sans-serif;
    position: fixed; /* Cambiado de relative a fixed */
    top: 0; /* Asegurar que esté en la parte superior */
    left: 0;
    right: 0;
    z-index: 1001; /* Aumentado para estar sobre todo */
    width: 100%;
    transition: all 0.3s ease;
}

.custom-navbar.fixed {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    background-color: #00c3ff;
}

.navbar-nav .nav-item {
    margin-right: 20px;
}
  
.custom-navbar .navbar-nav .nav-link {
    color: white; /* color de los enlaces */
}
  
.custom-navbar .navbar-nav .nav-link:hover {
    color: #e0f7fa; /* color al pasar el mouse */
}
  
.custom-navbar .navbar-brand {
    color: white;
}

.logo {
    height: 50px;
    margin-right: 10px;
}

/* Barra Deslizante - AJUSTADA */
.marquee-container {
    background: linear-gradient(135deg, #004d7a 0%, #008fb3 100%);
    color: white;
    position: fixed;
    top: 76px; 
    left: 0;
    right: 0;
    z-index: 1000; 
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.marquee-container.hidden {
    transform: translateY(-100%);
}

.marquee-text {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee 60s linear infinite;
    font-size: 14px;
    font-weight: 500;
}

.marquee-item {
    padding-right: 30px; 
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* General - AJUSTADO */
body {
    margin: 0;
    padding: 0;
    padding-top: 116px; /* Aumentado: navbar (~76px) + marquee (40px) */
    font-family: Arial, sans-serif;
    background-color: rgb(255, 255, 255);
    color: #003333;
    background-image: url('../Imagenes/fondo.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    overflow-x: hidden;
}

/* Submenu PC */

.submenu-catalogo {
  background-color: #f8f9fa;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 20px; /* Espaciado después del submenu */
}
.submenu-catalogo a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}
.submenu-catalogo a:hover {
  color: #00acc1;
}

/* Subenu celular */

.dropdown-menu {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 245px;
    width: 100%;
}

.btn-catalogo {
    background: linear-gradient(#00c3ff, #06e085);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    margin-bottom: 20px; /* Espaciado después del botón */
}

.btn-catalogo:hover {
    background-color: #005f56;
    color: #ffffff;
}

/* Botón hacia arriba */

#btn-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    background-color: #00796b;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: none; /* Oculto por defecto */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

#btn-top:hover {
    background-color: #005f56;
}

/* Catálogo */
.catalogo {
    padding: 40px;
    justify-content: center;
    margin-top: 20px; /* Espaciado adicional desde la parte superior */
}

.catalogo-header {
    background-color: #e0f7fa; /* mismo fondo que el resto, o cámbialo */
    color: #00796b; /* verde agua */
}
  
.catalogo-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}  

/* Tarjetas */

.titulo {
    text-align: center;
    background-color: #ffffff;
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 30px;
    color: #00796b;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px; /* Espaciado después del título */
}

.producto {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.producto img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.titulo-producto {
    font-weight: bold;
    font-size: 20px;
    color: #ffffff;
    margin-top: 15px;
    font-family: 'Montserrat', sans-serif;
}

.subtitulo {
    background-color: #b2ebf2;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    margin: 10px auto;
    color: #00796b;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-size: 15px;
}

.caracteristicas {
    font-size: 10px;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.5;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
}

.precio {
    background: linear-gradient(#06e0d5, #00c3ff);
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    color: #ffffff;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
}

.codigo {
    font-size: 12px;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.5;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
}

.linea {
    font-size: 12px;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.5;
}

#modal-detalles .modal-content {
  background: linear-gradient(#1c9965, #00c3ff); /* Fondo suave, podés cambiarlo a lo que quieras */
  border-radius: 10px;
  padding: 20px;
}

#modal-detalles .modal-header {
  border-bottom: none;
  justify-content: center;
}

#modal-detalles .modal-title {
  color: #ffffff; /* Verde agua, podés usar otro color */
  font-weight: bold;
  font-size: 24px;
  text-align: center;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
}

/* Media queries para móviles - AJUSTADOS */
@media (max-width: 768px) {
    body {
        padding-top: 111px; /* navbar (~76px) + marquee (35px) */
        overflow-x: hidden;
    }

    .marquee-container {
        top: 76px; /* Mantener consistente con desktop */
        height: 35px;
    }

    .marquee-text {
        font-size: 12px;
    }

    .marquee-item {
        padding-right: 20px;
    }

    .catalogo {
        padding: 20px;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    .producto {
        min-width: 0;
        max-width: 100%;
    }

    .titulo-producto {
        font-size: 15px;
        align-items: center;
        justify-content: center;
    }

    .subtitulo {
        display: none;
    }

    .caracteristicas {
        display: none;
    }

    .precio {
        font-size: 14px;
        padding: 8px 10px;
    }

    .ver-detalles {
        font-size: 14px;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 111px; /* Mantener igual que tablet */
    }
    
    .marquee-text {
        font-size: 11px;
    }
    
    .marquee-item {
        padding-right: 15px;
    }
}

/* Whatsapp */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 1000;
  opacity: 0;
  transform: translateX(-100%);
  animation: slideIn 1s ease-out forwards;
  font-family: 'Montserrat', sans-serif;
}

@keyframes slideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Footer */

.pie-pagina {
    background-color: #e0f7fa; /* azul claro */
    color: #004d40;
    font-size: 15px;
}
  
.pie-pagina h5 {
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}
  
.pie-pagina a {
    text-decoration: none;
    color: #00796b;
}

.pie-pagina p {
    font-family: 'Montserrat', sans-serif;
}
  
.pie-pagina a:hover {
    color: #004d40;
    text-decoration: underline;
}

.logo-footer {
    width: 200px;
    margin-left: -100px;
}

.footer-redes {
    font-size: 15px;
    white-space: nowrap;
}

.iconos-redes {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.iconos-redes a {
    font-size: 24px;
    color: #00796b;
    transition: transform 0.2s ease;
}

.iconos-redes a:hover {
    transform: scale(1.2);
}
