/* ================ SELECT STYLES ================ */

::selection {
  background-color: #c40000;
  color: white;
}

::-moz-selection {
  background-color: #c40000;
  color: white;
}


/* ================ HEADER STYLES ================ */

header {
  position: fixed;
  top: 40px;
  width: 100%;
  background: #ef4e50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  z-index: 1000;
  transition: top 0.3s ease-in-out, opacity 0.3s ease, visibility 0.3s ease;
}

header.scrolled {
  top: -100px;
}


/* ================ TOP BAR STYLES ================ */

body>*:not(.top-bar):not(header#main-header) {
  padding-top: 130px;
}

.top-bar {
  background-color: #0c0f12;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  z-index: 2000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transition: top 0.3s ease-in-out;
}

.top-bar-contact a,
.top-bar-right a {
  color: #eee;
  text-decoration: none;
  margin-right: 1.5rem;
  display: inline-flex;
  align-items: center;
}

.top-bar-contact a i,
.top-bar-right a i {
  margin-right: 0.5rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.lang-switch a.active {
  text-decoration: underline;
}

.social-icons a {
  color: white;
  font-size: 1.2rem;
  margin-left: 0.5rem;
}

.logo img {
  max-height: 50px;
  width: auto;
  height: auto;
}

.menu a:hover {
  color: #ffffff;
}

.menu a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle div {
  width: 100%;
  height: 3px;
  background-color: #1f1f1f;
  border-radius: 2px;
  transition: all 0.3s linear;
}

nav a {
  text-decoration: none;
  color: #1f1f1f;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.05em;
}


/* ================ SEARCH RESULTS ================ */

body.search-active .tu-contenedor-con-scroll {
  overflow: hidden !important;
}


/* ================ QUI SOM SECTION ================ */

#qui-som {
  max-width: 80vw;
  margin: 0 auto 3rem;
  padding: 6rem 2rem 1rem;
}

.qui-som-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.qui-som {
  font-size: 10rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  text-align: left;
  padding-left: 1rem;
  color: #000;
}

.qui-som-paragraph {
  font-size: 2.2rem !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  text-align: left;
  padding-left: 1rem;
  line-height: 1.4;
  color: #000;
}

.text-block h2 {
  margin-bottom: 1rem;
}

.text-block p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #2c2c2c;
}

.red-line {
  height: 4px;
  background-color: #ef4e50;
  width: 100%;
}

.left-text,
.right-text {
  width: 50%;
  display: flex;
  align-items: center;
  padding-bottom: 5rem;
}

.left-text {
  font-size: 5rem;
  font-weight: 800;
  text-align: left;
  padding-left: 1rem;
}

.red_title {
  font-size: 4rem;
  font-weight: 800;
  text-align: center;
  color: #ef4e50;
  padding-bottom: 3rem;
  letter-spacing: 4px;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0;
}




/* ================ SERVEIS GRID ================ */

.serveis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
}

.serveis-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #e6e6e6;
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.0625rem 0.125rem #0000000d;
  min-height: 22rem;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.serveis-grid li:hover {
  background: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* Logo container */
.icon-wrapper {
  height: 160px;             /* equal reserved space */
  width: 100%;
  display: flex;
  align-items: center;       /* vertical centering */
  justify-content: center;   /* horizontal centering */
  margin-bottom: 1rem;
  padding-top: 2rem;
}

/* Logo */
.serveis-grid li img.servei-icon {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Title */
.serveis-grid li h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ef4e50;
  text-align: center;
  text-transform: uppercase;
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* Link */
.serveis-grid li a {
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #a0a0a0;
  text-transform: uppercase;
  font-size: 0.75rem;
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  text-align: center;
  text-decoration: none;
}

.serveis-grid li a:hover {
  color: #a70e2a;
  text-decoration: underline;
}

.serveis-grid li a.servei-link {
  padding-top: 3rem;
  
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.servei-link .icon-wrapper {
  text-align: center;

}
.servei-link h3 {
  margin: 10px 0;
}
.servei-link span {
  display: inline-block;
  margin-top: 2rem;
  font-weight: bold;
  color: #a0a0a0;
}



/* ================ OFERTA SECTION ================ */

.oferta .titol span {
  display: inline-block;
  margin-right: 0;
  padding-right: 0;
  letter-spacing: 0;
}


/* ================ GALERIA SECTION ================ */

.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2rem;
  width: 90rem;
  margin: 0 auto;
  padding: 0rem 1rem 2rem;
  box-sizing: border-box;
  justify-items: center;
  padding-top: 4rem;
  padding-bottom: 8rem;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25rem;
  height: 10rem;
  padding: 0.5rem;
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* ================ CAROUSEL STYLES ================ */

.carousel-section{
    --overlay: linear-gradient(135deg, rgba(225,73,76,.80), rgba(199,65,68,.80));
    --texture: url('/img/muro-hormigon-gris.jpg');
    background: var(--overlay), var(--texture);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0rem 1rem;
    text-align: center;
    color: #fff;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-in-out, visibility 0s linear .5s;
  }

.carousel-section.carousel-ready {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.carousel-header h2 {
  font-size: 3.5rem;
  margin-bottom: 10rem;
  font-weight: 800;
  letter-spacing: 4px;
  margin-top: 0;
  padding-bottom: 4rem;
}

.carousel-container {
  overflow: hidden;
  max-width: 1700px;
  margin: 0 auto;
  position: relative;
  height: 70rem;
/*   padding-top: 10rem; */
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease-in-out;
  padding: 0 1rem;
}

.carousel-slide {
  flex: 0 0 calc((100% - 2rem) / 3);
  position: relative;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  transform: scale(1);
  z-index: 1;
  border-radius: 8px;
  max-height: 90%;
}

.carousel-slide.active {
  transform: scale(1.08);
  z-index: 2;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  background-color: transparent;
}

.carousel-slide.center-slide {
  transform: scale(1.2);
  z-index: 3;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.info-button {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #ef4e50;
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.info-button:hover {
  background: #ef4e50;
  color: #fff;
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 120px;
  background-color: rgba(255, 255, 255, 0.75);
  color: #ef4e50;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.carousel-btn:hover {
  background-color: #fff;
  transform: scale(1.03) translateY(-50%);
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

/* ================ COOKIE BANNER ================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ef4e50;
  color: white;
  padding: 0.3rem 0.8rem !important;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1500;
  font-weight: 600;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(100%);
  animation: slideUp 0.8s ease-out forwards;
  border: 4px solid #b31221;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeInButtons 1s ease-out forwards;
}

@keyframes fadeInButtons {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.cookie-banner .btn.small {
  padding: 0.3rem 0.8rem !important;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cookie-banner .btn.small:hover {
  background-color: #b31221;
  transform: scale(1.05);
}

.cookie-link {
  padding: 0.8rem !important;
  color: white;
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.cookie-link:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  font-size: 16px;
  width: 100%;
  overflow-x: hidden;
}

section {
  padding: 0rem 2rem 3rem;
  max-width: 80rem;
  margin: auto;
}

.hidden {
  display: none !important;
}


/* ================ HERO SECTION ================ */

.hero {
  background: #f2f2f2;
  padding: 12rem 2rem 6rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #555;
}


/* ================ HERO BACKGROUNDS ================ */

.home_img {
  background-image: url('/img/homescreen.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 100vw;
  height: calc(100vh - 90px);
  padding-top: 90px;
  box-sizing: border-box;
}


/* ================ TEAM PAGE BACKGROUND ================ */

.team_img {
  background-image: url('/img/JPC.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100vw;
  height: calc(100vh - 90px);
  padding-top: 90px;
  box-sizing: border-box;
}

.text-block {
  text-align: left;
}

.logo-below-text {
  display: block;
  margin: 2rem auto 0 auto;
  width: 35rem;
  height: auto;
}

.photo-block {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  height: auto;
}

.photo-obrero {
  width: 100%;
  height: 100%;
}

.red-banner {
  display: flex;
  background-color: #ef4e50;
  color: #ffffff;
  font-family: 'Helvetica Neue', sans-serif;
  padding: 1.5rem 10rem;
  height: 28rem;
  align-items: center;
}

.right-text {
  font-size: 1.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  justify-content: flex-start;
  text-align: left;
  padding-left: 1rem;
}

.white_title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  padding-left: 1rem;
  color: white;
  padding-bottom: 3.5rem;
}

.oferta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4rem 2rem 2rem;
  gap: 1rem;
}

.oferta .titol {
  flex: 1;
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: left;
  padding: 0;
  margin: 0;
}

.oferta .text {
  flex: 1;
  font-size: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  margin: 0;
  padding: 0;
}

/* .carousel-section {
  background: linear-gradient(135deg, #ef4e50, #93291e);
  padding: 4rem 1rem;
  text-align: center;
  color: #fff;
  position: relative;
}
 */
.carousel-header h2 {
  font-size: 3.5rem;
  margin-bottom: 3rem;
  font-weight: 800;
  letter-spacing: 4px;
}

.carousel-container {
  overflow: hidden;
  max-width: 1700px;
  margin: 0 auto;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 calc((100% - 2rem) / 3);
  position: relative;
}

.info-button {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #ef4e50;
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.info-button:hover {
  background: #ef4e50;
  color: #fff;
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 120px;
  background-color: rgba(255, 255, 255, 0.75);
  color: #ef4e50;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}


/* ================ CONTACTE SECTION ================ */

#contacte {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  scroll-margin-top: 100px;
}

#contacte form {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

#contacte form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #333;
}

#contacte form input,
#contacte form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s;
}

#contacte form input:focus,
#contacte form textarea:focus {
  border-color: #b60000;
  outline: none;
}

#contacte button[type="submit"] {
  background-color: #ef4e50;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.17s ease;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);

  display: block;
  margin: 0 auto;

}

#contacte button[type="submit"]:hover {
  background-color: #d13d3f;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

#contacte .info {
  text-align: center;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

#contacte .info a {
  color: #b60000;
  text-decoration: none;
}

#contacte .info a:hover {
  text-decoration: underline;
}

.contact-map {
  width: 100%;
  height: 800px;
  margin-top: 3rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-map:hover {
  transform: scale(1.03);
}

.final-div {
  background-color: #ef4e50;
  color: white;
  text-align: center;
}

.logo-img {
  width: 18rem;
  margin-bottom: 2rem;
  margin-top: 0rem;
}

.contact-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.contact-line .phone-icon {
  flex-shrink: 0;
  max-width: 65px;
  height: auto;
  padding-bottom: 2rem;
}

.contact-line .text a {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.contact-line .text {
  white-space: nowrap;
  font-size: 2rem;
  color: #ffffff;
  padding-bottom: 2rem;
}

form {
  display: grid;
  gap: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

form label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  color: #333;
}

form input,
form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

button {
  background: #ef4e50;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
  font-size: 1.5rem;
}

button:hover {
  background: #d11d36;
}

.info {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}


.privacy-policy-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.privacy-policy-checkbox input[type="checkbox"] {
  cursor: pointer;
  width: 1.2rem;
  height: 1.2rem;
}

.privacy-policy-checkbox label {
  white-space: nowrap;
}

.privacy-policy-checkbox a {
  color: #ef4e50;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.privacy-policy-checkbox a:hover {
  color: #d13d3f;
}



/* ================ MODAL STYLES ================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.4s ease;
  transform: scale(0.95);
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.modal-content {
  background: #fff;
  padding: 2rem 3rem;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  color: #2c2c2c;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(-20px) scale(0.96);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.modal.show .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-content h2 {
  color: #ef4e50;
  margin-bottom: 1rem;
  font-weight: 800;
}

.modal-content p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 600;
}

.modal-content hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid #ccc;
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: #ef4e50;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.close-btn:hover {
  color: #ffffff;
  background: #d11d36;
  align-items: center;
}

.modal-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cookie-button {
  background-color: #fff;
  color: #ef4e50;
  padding: 0.4rem 0.9rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-button:hover {
  background-color: #f0f0f0;
  color: #c91931;
}

.btn.small {
  padding: 8px 15px;
  font-size: 0.9rem;
}

.top-bar .contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar .icon {
  width: 18px;
  height: 18px;
  filter: brightness(100%) invert(100%);
}

.top-bar a {
  color: #eee;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-bar a:hover {
  color: #ef4e50;
}

.logo {
  display: flex;
  align-items: center;
  height: auto;
  max-height: 60px;
  padding: 0.5rem 0;
}

.menu a {
  position: relative;
  text-decoration: none;
  color: #1F1F1F;
  font-weight: 400;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 2px;
  width: 0;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.header-right-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 1.5rem;
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(8px);
}

.search-overlay.active {
  display: flex;
  overflow: hidden !important;
  opacity: 1;
  visibility: visible;
}

.search-box {
  position: relative;
  background: #fff;
  padding: 4.5rem 2.5rem 1rem;
  border-radius: 10px;
  max-width: 750px;
  max-height: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
  justify-content: bottom;
}

.search-form {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 1rem 1.2rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1.2rem;
  transition: border-color 0.3s ease;
}

.search-form input[type="search"]:focus {
  border-color: #ef4e50;
  outline: none;
}

.search-submit-btn {
  background-color: #ef4e50;
  color: white;
  padding: 1rem 1.8rem;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.search-submit-btn:hover {
  background-color: #b31221;
  transform: scale(1.03);
}

.close-search-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10;
}

.close-search-btn:hover {
  color: white;
}

.search-icon {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-icon:hover {
  color: #000;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a:hover {
  border-bottom: 2px solid #000;
}

nav.desktop-nav {
  display: block;
  flex-grow: 1;
  text-align: right;
}

nav ul.menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}


/* ================ FOOTER STYLES ================ */

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  width: 160px;
  margin-bottom: 1rem;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  color: #ffffff;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-column h4:hover {
  color: #ef4e50;
  transform: translateY(-3px);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: #eee;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
}

.footer-column ul li a:hover {
  color: #ef4e50;
}

.footer {
  background-color: #222;
  color: #eee;
  padding: 3rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 2rem;
  text-align: center;
}

.footer-column.about-us {
  flex-basis: 30%;
  padding-right: 2rem;
}

.footer-column.quick-links {
  flex-basis: 20%;
}

.footer-column.contact-us {
  flex-basis: 30%;
  padding-left: 2rem;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #ef4e50;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-column p,
.footer-column address,
.footer-column ul li {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-column address a {
  display: block;
  color: #eee;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-column address a:hover {
  color: #ef4e50;
  text-decoration: none;
}

.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  color: #fff;
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #ef4e50;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #aaa;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #ef4e50;
}


.footer-copy{
  text-align: center;
}

/* ================ CALL TO ACTION ================ */

.call-to-action-section h2 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
  position: relative;
  z-index: 1;
}

.call-to-action-section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 10px auto 0;
  border-radius: 3px;
}

.call-to-action-section p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.call-to-action-button {
  background-color: #ffffff;
  color: #ef4e50;
  padding: 1.2rem 3rem;
  border: none;
  border-radius: 30px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: inline-block;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.call-to-action-button:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.call-to-action-button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.call-to-action-section::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
}

.call-to-action-section::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  filter: blur(50px);
  z-index: 0;
}


/* ================ SERVICE BOXES ================ */

.service-boxes-section {
  padding: 5rem 2rem;
  background-color: #f8f8f8;
}

.service-boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-box {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 350px;
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-box .icon-wrapper {
  background-color: #ef4e50;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.service-box .icon {
  color: white;
  font-size: 2.5rem;
}

.service-box h3 {
  font-size: 1.6rem;
  color: #2c2c2c;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-box p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
  flex-grow: 1;
}

.service-box .read-more-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: #ef4e50;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.service-box .read-more-link:hover {
  color: #a70e2a;
  text-decoration: underline;
}


/* ================ TESTIMONIAL SECTION ================ */

.testimonial-section {
  background-color: #ef4e50;
  color: white;
  padding: 6rem 2rem;
  text-align: center;
}

.testimonial-section h2 {
  color: white;
  font-size: 3rem;
  margin-bottom: 3rem;
}

.testimonial-carousel {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 2rem;
  box-sizing: border-box;
}

.testimonial-quote {
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: bold;
  font-size: 1.1rem;
}

.testimonial-author span {
  font-weight: normal;
  font-size: 0.9rem;
  opacity: 0.8;
}

.testimonial-nav-dots {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 0.8rem;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
  background-color: white;
  transform: scale(1.2);
}


/* ================ FEATURE SECTION ================ */

.feature-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 2rem;
  gap: 3rem;
}

.feature-image-container {
  flex: 1;
  min-width: 400px;
}

.feature-image-container img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-content {
  flex: 1;
  text-align: left;
}

.feature-content h2 {
  font-size: 2.8rem;
  color: #ef4e50;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.feature-content p {
  font-size: 1.15rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #333;
}

.feature-list li .checkmark {
  background-color: #ef4e50;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0.8rem;
  font-family: 'Martinus Math', sans-serif;
  font-weight: bold;
  font-size: 1.4em;
  line-height: 1;
  color: #ffffff;
  flex-shrink: 0;
}

.call-to-action-section {
  text-align: center;
  background-color: #ef4e50;
  color: white;
  padding: 5rem 2rem;
  border-radius: 15px;
  margin-top: 6rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  position: relative;
}

.search-results-section .red_title {
  text-align: center;
  margin-bottom: 1rem;
}

.search-results-section p {
  text-align: center;
  font-size: 1.15rem;
  color: #444;
  margin-bottom: 2.5rem;
}

.search-results-section strong {
  color: #ef4e50;
  font-weight: 700;
}

#results-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding: 0 2rem;
}

.search-results-section .result-item {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 1.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #2c2c2c;
  min-height: 180px;
}

.search-results-section .result-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.search-results-section .result-item h3 {
  font-size: 1.4rem;
  color: #ef4e50;
  margin-bottom: 0.8rem;
  line-height: 1.3;
  text-align: center;
}

.search-results-section .result-item h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.search-results-section .result-item h3 a:hover {
  color: #b71c2a;
}

.search-results-section .result-item p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  flex-grow: 1;
}

.search-results-section {
  padding-top: 7.5rem;
  padding-bottom: 5rem;
}

.page-content {
  padding-top: 120px;
  padding-bottom: 80px;
  background-color: #fcfcfc;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* ================ POLICY PAGES ================ */

.policy-section {
  width: 100%;
}

.policy-section .content-wrapper {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.policy-section h1.red_title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  color: #ef4e50;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0;
  margin-bottom: 1.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ef4e50;
  display: inline-block;
  transform: translateX(-50%);
  position: relative;
  left: 50%;
}

.policy-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #333;
  margin-top: 3.5rem;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.policy-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: #444;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.policy-section p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.2rem;
}

.policy-section ul {
  list-style: disc;
  margin-left: 2.8rem;
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.policy-section ul li {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 0.8rem;
}

.policy-section a {
  color: #ef4e50;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.policy-section a:hover {
  color: #c71c35;
  text-decoration: underline;
}

.policy-section hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 3rem 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #f8f8f8;
}


/* ================ FAQ SECTION ================ */

.faq-hero {
  background-image: url('/img/serveis/fondo/reforcos.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
}

.faq-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.faq-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.faq-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.faq-hero p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
}

.faq-section {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.faq-item {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.faq-item h2 {
  color: #ef4e50;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.faq-item p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.faq-item a {
  color: #ef4e50;
  text-decoration: underline;
}


/* ================ PRIVACITAT PAGE ================ */

.privacy-page {
  font-family: 'Montserrat', sans-serif;
  background-color: #f7f7f7;
  margin: 0;
  color: #333;
}

.privacy-page > *:not(.top-bar):not(header#main-header) {
  padding-top: 130px;
}

.privacy-page .privacy-hero.faq-hero {
  background-image: url('/img/priv_hero.png');
  background-color: #D5EFE2;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
}

.privacy-page .privacy-hero.faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.55);
  z-index: 0;
}

.privacy-page .privacy-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.privacy-page .privacy-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 0.6rem;
  color: #fff;
}

.privacy-page .privacy-hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.95);
}

.privacy-page .privacy-content {
  max-width: 1000px;
  margin: 3.5rem auto;
  padding: 0 2rem;
}

.privacy-page .privacy-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 2rem;
  margin-bottom: 1.75rem;
  transition: box-shadow 0.3s ease, transform 0.15s ease;
}

.privacy-page .privacy-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.privacy-page .privacy-card h2 {
  color: #ef4e50;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.privacy-page .privacy-card p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #444;
}

.privacy-page .privacy-link {
  color: #ef4e50;
  text-decoration: underline;
}

.privacy-page .privacy-link:hover {
  color: #d13d3f;
}

.privacy-page .privacy-updated {
  max-width: 900px;
  margin: 1rem auto 4rem auto;
  padding: 0 2rem;
  color: #666;
  font-size: 0.95rem;
}



/* ================== LEGAL / POLICY PAGES ================== */

.policy-section {
  width: 100%;
  padding: 3rem 1rem;
  background: #fafafa;
}

.policy-section .content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 3rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.policy-section h1.red_title {
  font-size: 2.6rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  text-align: center;
}

.policy-section h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: #ef4e50;
  font-weight: 700;
}

.policy-section h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.8rem;
  color: #444;
  font-weight: 600;
}

.policy-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.4rem;
  color: #333;
}

.policy-section a {
  color: #ef4e50;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.policy-section a:hover {
  color: #c71c35;
  text-decoration: underline;
}

.policy-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.policy-section ul li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.2rem;
}

/* .policy-section ul li::before {
  content: "•";
  color: #ef4e50;
  font-weight: bold;
  position: absolute;
  left: 0;
}
 */
 
.policy-section hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 2rem 0;
}




