/*
    Autor: Isaac Fernández
    Fecha de creación: 27/07/2025
    Última modificación: 02/08/2025
*/

/* Menú  */

.custom-navbar {
    background-color: #00c3ff;
    font-family: 'Montserrat', sans-serif;
    position: fixed; 
    top: 0; 
    left: 0;
    right: 0;
    z-index: 1002; 
    width: 100%;
    transition: all 0.3s ease;
}

.custom-navbar.fixed {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;
    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;
}

/* Dropdown menu móvil */
.navbar-collapse {
    z-index: 1003; /* Más alto que marquee para que aparezca encima */
}

.dropdown-menu,
.navbar-nav {
    z-index: 1003; /* Asegurar que el menú desplegable aparezca sobre marquee */
}

/* Barra Deslizante */
.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; /* Espacio entre repeticiones */
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Body */
body {
    margin: 0;
    padding: 0;
    padding-top: 116px; /* Espacio para navbar + marquee */
    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;
}

/* Cuerpo  */
.nosotros {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    max-width: 900px;
    margin: auto;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px; 
    margin-bottom: 65px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
}

/* Media queries para móviles */
@media (max-width: 768px) {
    body {
        padding-top: 111px; /* navbar (~76px) + marquee (35px) */
    }

    .marquee-container {
        top: 76px;
        height: 35px;
    }

    .marquee-text {
        font-size: 12px;
    }

    .marquee-item {
        padding-right: 20px;
    }

    .nosotros {
        margin-top: 10px;
        padding: 1.5rem;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 111px;
    }
    
    .marquee-text {
        font-size: 11px;
    }
    
    .marquee-item {
        padding-right: 15px;
    }

    .nosotros {
        padding: 1rem;
        font-size: 16px;
    }
}

/* 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: 1001;
  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);
}
