/* index.css */


/* Sección "Quiénes Somos" */
#quienes-somos {
    padding: 60px 20px;
    background-color: #ffffff; /* Blanc net */
    color: #003d99; /* Per als títols */

}

#quienes-somos h2 {
    font-size: 2.5rem;
    color: #0056b3; /* Azul primario */
    margin-bottom: 20px;
}

#quienes-somos p {
    font-size: 1.2rem;
    color: #333;
}

#quienes-somos .row div {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 15px;
}

/* Sección "Nuestros Servicios" */
#nuestros-servicios {
    padding: 60px  20px;
    background: linear-gradient(to bottom, #e8f1fd, #d0e3fc); /* Blau clar i suau */
   
}

#nuestros-servicios h2 {
    font-size: 2.5rem;
    color: #0056b3;
    margin-bottom: 20px;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #0056b3;
}

.card-text {
    font-size: 1rem;
    color: #333;
}

/* Sección "Algunas Vallas" */
#algunas-vallas {
    background-color: #f8f9fa;
    padding: 60px 20px;
}

#algunas-vallas h2 {
    font-size: 2.5rem;
    color: #0056b3;
    margin-bottom: 20px;
}

#algunas-vallas img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

#algunas-vallas img:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

/* Formulari amb efecte vidre més opac */
.contacte{
   
        background: linear-gradient(to bottom, #bcd4f6 ,#eaf3ff );
        padding: 60px 0;
      
      
}
.formulari-contacte {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background-color: #f6f9fe; /* Gairebé blanc amb to blavós suau */
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding: 40px;
    max-width: 800px;
    margin: auto;
    color: #003b80;
  }
  
  /* Títol i paràgraf del formulari */
.formulari-header {
    text-align: center;
    margin-bottom: 40px;
    color: #003b80;
  }
  
  .formulari-header h2 {
    font-size: 2.3rem;
    font-weight: bold;
  }
  
  .formulari-header p {
    font-size: 1.1rem;
    color: #003b80c9;
  }
  
  /* Camps */
  .grup-camp {
    margin-bottom: 25px;
  }
  
  
  /* Etiquetes */
  .etiqueta-contacte {
    color: #003b80;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
  }
  
  /* Inputs */
  .input-contacte {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #f8f9fa;
    color: #003b80;
    font-size: 16px;
    transition: 0.3s ease;
  }
  
  .input-contacte::placeholder {
    color: #7d8ea3;
  }
  
  .input-contacte:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
  }
  
  /* Botó */
  .boto-contacte {
    background-color: #0056b3;
    color: #fff;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
  }
  
  .boto-contacte:hover {
    background-color: #004094;
  }
  
  
  
  
  
  

/**/
.form-label {
    font-weight: bold;
    color: #333;
}

.form-control {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #0056b3;
    box-shadow: 0px 0px 8px rgba(0, 86, 179, 0.2);
}

button[type="submit"] {
    background-color: #0056b3;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #004494;
}




.card {
    cursor: pointer;
}
/* Alineación de las tarjetas */
.row.justify-content-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.card img {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  padding: 10px;
  margin-bottom: auto;
  border-radius: 10px;
}
.card {
    width: 100%;
    max-width: 350px;
}






.carrusel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.atras, .adelante {
    cursor: pointer;
    width: 50px;
    height: 50px;
}
.imagenes {
    width: 600px;
    height: 400px;
    overflow: hidden;
    position: relative;
}
.img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}
.img.zoom {
    transform: scale(1.1);
}
.texto {
    position: absolute;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 100%;
    padding: 10px;
    transition: opacity 0.8s ease-in-out;
}

/* Hero styles */
/* 
.hero {
    position: relative;
    text-align: center;
    background-color: #0c3a6b;
}

.hero img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 0;
}

.hero {
    position: relative;
    text-align: center;
    color: #fff; 
}

.hero h1 {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
} */


  
  
  .slogan {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: #0c3a6b;
    /* font-style: italic; */
  }
  

  .ver_mas {
    border: none;
    text-decoration: none;
    font-weight: 600;
    color: #0d6efd;
    margin-top: auto;
  }
  
  .ver_mas:hover {
    text-decoration: underline;
  }


  .stats-section {
    background: url('/IMG//serveis/PRISION.jpg') center/cover fixed;
    background-color: #275e09;
    color: #f9b233;
    font-style: italic;
    font-family: 'Georgia', serif;
    font-size: 1.7rem;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    padding: 60px 20px;
  }
  
  .stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
  }
  
  .stat-item {
    flex: 1 1 150px;
  }
  
  .stat-number {
    font-size: 3rem;
    font-weight: bold;
  }
  
  .stat-label {
    margin-top: 10px;
    font-style: italic;
    font-size: 1.2rem;
  }
  
  /*carrousel*/ 
  
.titol-projectes h2 {
    font-size: 2.5rem;
    color: #003d99;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
  }
  
  .titol-projectes h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #003d99;
    margin: 10px auto 0;
    border-radius: 2px;
  }
  
  .dynamic-carousel {
    text-align: center;
    background: linear-gradient(to bottom, #d0e3fc, #bcd4f6); /* Transició cap a un blau una mica més intens */
    padding: 60px 0;
    position: relative;
  }
  
  .carousel-cards {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 320px;
    margin: auto;
    transition: transform 0.6s ease, opacity 0.6s ease;
  }
  .carousel-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
  }
  
  
  .carousel-cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
  }
  
  .carousel-cards-wrapper {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .carousel-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    width: 320px;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: transform 0.6s ease, opacity 0.6s ease;
}
  
  .carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .carousel-card.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    z-index: 2;
  }
  
  .carousel-card.prev {
    transform: translateX(-150%) scale(0.8);
    opacity: 0.3;
    z-index: 1;
    animation: slideLeft 0.6s ease forwards;
  }
  
  .carousel-card.next {
    transform: translateX(50%) scale(0.8);
    opacity: 0.3;
    z-index: 1;
    animation: slideRight 0.6s ease forwards;
  }
  
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background-color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .carousel-btn:hover {
    transform: scale(1.1);
  }
  
  .carousel-btn.left {
    left: 2%;
  }
  
  .carousel-btn.right {
    right: 2%;
  }
  .carousel-info-box {
    background-color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    margin: 1.5rem auto 0 auto;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  .carousel-info-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #000;
  }
  
  .carousel-info-box p {
    font-size: 14px;
    font-style: italic;
    color: #555;
    margin: 0;
  }
  
  
  
  .no-projects {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-style: italic;
    text-align: center;
    z-index: 10;
    max-width: 90%;
    line-height: 1.5;
  }
  
  
  .carousel-card.prev img,
.carousel-card.next img {
  filter: blur(1.5px) brightness(0.8);
}

.modal-carrusel {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0; /* substitueix top, left, width, height */
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .modal-carrusel-content {
    background: white;
    border-radius: 10px;
    padding: 20px;
    max-width: 90%;
    width: 700px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Centrat vertical + evitar desbordaments */
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Imatge quadrada centrada */
  .modal-carrusel-content img {
    width: 450px;
    height: 450px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
    border-radius: 10px;
  }
  
  /* Títol */
  #modal-carrusel-title {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0 5px;
  }
  
  /* Descripció */
  #modal-carrusel-description {
    font-size: 16px;
    font-style: italic;
    color: #444;
  }
  
  /* Botó de tancar (X) */
  .modal-carrusel-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 26px;
    color: #333;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
  }
  
  .modal-carrusel-close:hover {
    color: #e60000;
  }
  

/* POPUP MISSATGE */
/* POPUP modal centrat */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Contingut del popup */
  .popup-modal-content {
    background: white;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    min-width: 280px;
    max-width: 90%;
  }
  
  /* Loader circular */
  .loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin: 20px auto 0;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Ocult per defecte */
  .d-none {
    display: none;
  }
  
  