/* styles.css */
body {
  margin: 0;
  padding-top: 70px; /* compensa navbar fixed-top */
  box-sizing: border-box;
}
/* General reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    /* background-color: #f7f7f9; Fondo gris claro */
    color: #000;
}

.wrapper{
    flex : 1;  
  }
/* Navbar styles */
.navbar {
    background-color: #0056b3 !important; /* Azul primario */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.navbar-brand img {
    padding: 5px;
    margin-left: 10px;
    height: 50px;
}

.navbar-nav .nav-link {
    color: #ffffff !important; /* Texto blanco */
    position: relative;
}

.navbar-nav .nav-hover .nav-link:hover::after { 

    content: ''; /* Pseudo-elemento para el subrayado */
    position: absolute;
    bottom: 0; /* Coloca el subrayado justo debajo del texto */
    left: 0;
    width: 0; /* Inicia oculto */
    height: 2px;
    background-color: #ffc107;
    transition: width 0.3s ease; /* Suaviza el efecto de hover */
}

.navbar-nav .nav-link:hover::after {
    width: 100%; /* Se expande al ancho completo del enlace */
}

.navbar-nav .nav-link.active {
    color: #ffc107 !important; /* Amarillo dorado */
    border-bottom: none; /* Elimina el borde inferior para evitar conflictos */
}

.navbar.scrolled {
    background-color: #83baf5 !important; /* Azul sólido */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}



/* Buttons with flags */
.buttons-container button {
    margin: 10px 15px;
    padding: 12px 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.buttons-container button img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.buttons-container button:hover {
    background-color: #ffc107;
}

footer {
    background-color: #002d70; /* Blau marí elegant */
    color: #ffffff;
    padding: 2rem 1rem;
    font-size: 0.95rem;
    border-top: 1px solid #e0e0e0;
  }
  
  footer p {
    margin: 0.3rem 0;
  }
  
  footer a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
  }
  
  footer a:hover {
    color: #ffffff;
    text-decoration: underline;
  }
  


/* Contenedor de botones flotantes alineados en fila */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: row; /* Alineados en fila */
    gap: 15px; /* Espaciado entre los botones */
    z-index: 1000;
}

/* Estilos generales para los botones flotantes */
.floating-button {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out;
    border: none;
}

/* Estilos para el botón flotante de WhatsApp */
.floating-button.whatsapp {
    background-color: #ffffff; /* Verde de WhatsApp */
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Reducir sombra */
    outline: none; /* Elimina bordes o efectos extraños */
}

.floating-button img {
    width: 35px;
    height: 35px;
    filter: none !important;  /* Elimina cualquier filtro */
    box-shadow: none !important; /* Evita sombras alrededor */
    border: none !important; /* Asegura que no haya bordes */
    outline: none !important; /* Evita efectos al hacer clic */
}



.floating-button.whatsapp i {
    font-size: 30px;
}

/* Animación al hacer clic */
.floating-button:active {
    transform: scale(0.9);
}





/* Estilos para el modal */
.modal-custom {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content-custom {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-modal {
    color: red;
    font-size: 24px;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.modal-active {
    display: flex !important;
}




/* Estil general del modal per #loginModal */

.modal-fade{
    background-color: rgba(0, 0, 0, 0.8);
}
#loginModal .modal-dialog {
    max-width: 500px;
  }
  
  #loginModal .modal-content {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: none;
    padding: 1.5rem;
    background-color: #ffffff;
  }
  
  /* Capçalera del modal */
  #loginModal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  #loginModal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
  }
  
  #loginModal .btn-close {
    background-image: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #040404;
    opacity: 1;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
  }
  
  #loginModal .btn-close:hover {
    color: #333;
  }
  /* Cos del modal */
  #loginModal .modal-body {
    padding-top: 0.5rem;
  }
  
  /* Formulari dins del modal */
  #loginModal .modal-body .form-label {
    font-weight: 500;
    color: #555555;
  }
  
  #loginModal .modal-body .form-control {
    border-radius: 8px;
    border: 1px solid #cccccc;
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
  
  /* Botó d'enviament */
  #loginModal .modal-body .btn.btn-primary {
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }
  
  #loginModal .modal-body .btn.btn-primary:hover {
    background-color: #0056b3;
  }
  
  /* Missatge d'error */
  #loginModal #loginError {
    font-size: 0.9rem;
    color: #dc3545;
    margin-top: 0.5rem;
  }
  



  /* === Hero Slider Index === */
.hero-index-slider {
  width: 100%;
  height: 641px; /* o: height: calc(100vw * 641 / 1682); */
  position: relative;
  overflow: hidden;
}

  
  .slide-index {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #134576;
    z-index: 1;
  }
  
  .slide-index.active {
    opacity: 1;
    z-index: 2;
  }
  
  .slide-with-content {
    text-align: center;
    padding: 40px;
  }
  
  .logo-slide {
    max-width: 550px; /* abans 250px */
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
  }
  
  .logo-slide:hover {
    transform: scale(1.05); /* suau efecte al passar el ratolí */
  }