@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap");
:root {
  --blue:#245DAC;
  --black:#111;
  --white:#fff;
  --light-color:#666;
  --light-bg:#eee;
  --box-shadow:0 .5rem 1rem rgba(0,0,0,.1);
  --border:.1rem solid rgba(0,0,0,.3);
}

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}
html::-webkit-scrollbar {
  width: 1rem;
}
html::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-thumb {
  background: var(--blue);
}

section {
  padding: 5rem 10%;
}

.heading {
  margin-bottom: 3rem;
  font-size: 3rem;
  color: var(--black);
  text-transform: capitalize;
  padding-left: 1rem;
  border-left: 1rem solid var(--blue);
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 1rem 3rem;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  font-size: 1.7rem;
  text-transform: capitalize;
  transition: 0.2s linear;
}
.btn:hover {
  background: var(--blue);
  color: var(--black);
}

@keyframes fadeIn {
  0% {
    top: 50%;
    opacity: 0;
  }
}
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: var(--box-shadow);
  padding: .5rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background: var(--white);
}
.header .logo {
  font-size: 2.5rem;
  color: var(--black);
  text-transform: capitalize;
}
.header .logo span {
  color: var(--blue);
}
.header .navbar a {
  font-size: 2.5rem;
  color: var(--black);
  text-transform: capitalize;
  margin: 0 1rem;
  font-weight: 800;
}
.header .navbar a:hover {
  color: var(--blue);
}
.header .icons div {
  height: 5rem;
  width: 5rem;
  line-height: 5rem;
  font-size: 2rem;
  background: var(--light-bg);
  color: var(--black);
  cursor: pointer;
  text-align: center;
  margin-left: 0.3rem;
}
.header .icons div:hover {
  background: var(--black);
  color: var(--white);
}
.header #menu-btn {
  display: none;
}
.header .search-form {
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  width: 70rem;
  background: var(--white);
  box-shadow: var(--box-shadow);
  padding: 1rem;
  display: none;
  align-items: center;
  gap: 1rem;
  animation: fadeIn 0.2s linear;
}
.header .search-form.active {
  display: flex;
}
.header .search-form input {
  width: 100%;
  padding: 1.2rem 1.4rem;
  background: var(--light-bg);
  font-size: 1.6rem;
  color: var(--light-color);
}
.header .search-form label {
  font-size: 2.5rem;
  color: var(--black);
  cursor: pointer;
  margin: 0 1rem;
}
.header .search-form label:hover {
  color: var(--blue);
}
.header .login-form {
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  width: 40rem;
  background: var(--white);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  text-align: center;
  animation: fadeIn 0.2s linear;
  display: none;
}
.header .login-form.active {
  display: block;
}
.header .login-form h3 {
  font-size: 2.5rem;
  color: var(--black);
  text-transform: capitalize;
  padding-bottom: 1rem;
  text-transform: uppercase;
}
.header .login-form .box {
  width: 100%;
  padding: 1.2rem 1.4rem;
  background: var(--light-bg);
  font-size: 1.6rem;
  color: var(--light-color);
  margin: 0.7rem 0;
}
.header .login-form .flex {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}
.header .login-form .flex label {
  font-size: 1.5rem;
  color: var(--light-color);
  cursor: pointer;
}
.header .login-form .flex a {
  font-size: 1.5rem;
  color: var(--light-color);
  margin-left: auto;
}
.header .login-form .flex a:hover {
  color: var(--blue);
  text-decoration: underline;
}
.header .login-form .btn {
  width: 100%;
}
.header .login-form p {
  font-size: 1.5rem;
  color: var(--light-color);
  line-height: 2;
  padding-top: 1.5rem;
}
.header .login-form p a {
  color: var(--blue);
}
.header .login-form p a:hover {
  text-decoration: underline;
}

.contact-info {
  position: fixed;
  top: 0;
  right: 0;
  width: 35rem;
  background: var(--white);
  height: 100%;
  text-align: center;
  z-index: 1100;
  padding: 0 2rem;
  padding-top: 5rem;
  display: none;
}
.contact-info.active {
  box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.7);
  display: block;
}
.contact-info #close-contact-info {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  cursor: pointer;
  font-size: 4rem;
  color: var(--black);
}
.contact-info #close-contact-info:hover {
  transform: rotate(90deg);
}
.contact-info .info {
  padding: 2rem 0;
}
.contact-info .info i {
  height: 5rem;
  width: 5rem;
  line-height: 5rem;
  font-size: 2rem;
  background: var(--light-bg);
  color: var(--black);
  cursor: pointer;
  text-align: center;
  margin-bottom: 0.5rem;
}
.contact-info .info i:hover {
  background: var(--black);
  color: var(--white);
}
.contact-info .info h3 {
  font-size: 2rem;
  color: var(--black);
  text-transform: capitalize;
  padding: 1rem 0;
}
.contact-info .info p {
  font-size: 1.5rem;
  color: var(--light-color);
  line-height: 2;
}
.contact-info .share {
  padding-top: 2rem;
  border-top: var(--border);
  margin-top: 1rem;
}
.contact-info .share a {
  height: 5rem;
  width: 5rem;
  line-height: 5rem;
  font-size: 2rem;
  background: var(--light-bg);
  color: var(--black);
  cursor: pointer;
  text-align: center;
  margin: 0 0.3rem;
}
.contact-info .share a:hover {
  background: var(--black);
  color: var(--white);
}

.contact-info-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: rem;
}
.contact-info-flex.contact-info-flex-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}
.contact-info-content {
  flex: 2 1 0;
}
.contact-info-logo {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-logo img {
  max-width: 180px;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  padding: 1.5rem;
}
.contact-info-logo.right-logo {
  justify-content: flex-end;
}
.contact-info-logo.right-logo img {
  max-width: 340px;
  min-width: 500px;
  width: 100%;
  height: auto;
  padding: 2.5rem 2.5rem 2.5rem 0;

}
@media (max-width: 900px) {
  .contact-info-flex {
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
  }
  .contact-info-flex.contact-info-flex-row {
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
  }
  .contact-info-logo {
    justify-content: flex-start;
    margin-top: 1.5rem;
  }
  .contact-info-logo.right-logo {
    justify-content: center;
    margin-top: 1.5rem;
  }
  .contact-info-logo.right-logo img {
    max-width: 280px;
    width: 100%;
    min-width: auto;
    padding: 1.5rem;
  }
}
@media (max-width: 480px) {
  .contact-info-logo.right-logo img {
    max-width: 200px;
  }
}

.contact-static-info {
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: var(--box-shadow);
  max-width: 500px;
  margin: 0 auto 3rem auto;
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  color: var(--black);
  font-size: 1.7rem;
  line-height: 2.2;
  position: relative;
}
.contact-static-info p {
  margin: 0.5rem 0;
  color: var(--black);
}

.download-brochure {
  display: inline-block;
  background: var(--white);
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 500;
  padding: 1.2rem 2rem;
  text-align: center;
  border-radius: 0.5rem;
  margin: 1rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.download-brochure .icon {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  margin-right: 0.8rem;
  vertical-align: middle;
  transition: all 0.3s ease;
  background-image: url('images/whatsapp-normal.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.download-brochure:hover {
  background: #25d366; /* Color verde de WhatsApp */
  color: var(--white);
}

.download-brochure:hover .icon {
  background-image: url('images/whatsapp-hover.png');
}

@media (max-width: 600px) {
  .contact-static-info {
    padding: 2rem 1rem;
    font-size: 1.4rem;
  }
}

.contact-image img {
  width: 95%;
  height: 480px;
  min-height: 320px;
  border-radius: 1.5rem;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
  object-fit: cover;
  max-height: 600px;
  margin: 0 auto;
  display: block;
}
@media (max-width: 1100px) {
  .contact-image img {
    max-height: 350px;
    height: 220px;
    min-height: 120px;
  }
}

.contact-row-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}
.contact-info-block {
  width: 70vw;
  max-width: 800px;
  min-width: 320px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: var(--box-shadow);
  padding: 4rem 3.5rem 4rem 3.5rem;
  color: var(--black);
  font-size: 2rem;
  line-height: 2.3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 900px) {
  .contact-info-block {
    width: 95vw;
    max-width: 98vw;
    padding: 2.5rem 1rem;
  }
}

.home {
  padding: 0;
}
.home .slide {
  min-height: 60rem;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover !important;
  background-position: center !important;
}
.home .slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--white), transparent);
}
.home .slide .content {
  width: 50rem;
  position: relative;
}
.home .slide .content h3 {
  font-size: 6rem;
  color: var(--black);
  text-transform: capitalize;
  text-transform: uppercase;
}
.home .slide .content p {
  font-size: 2rem;
  color: var(--black);
  line-height: 2;
  padding: 1rem 0;
}
.home .swiper-button-next,
.home .swiper-button-prev {
  top: initial;
  bottom: 0;
  left: initial;
  right: 0;
  height: 7rem;
  width: 7rem;
  line-height: 7rem;
  background: var(--white);
}
.home .swiper-button-next:hover,
.home .swiper-button-prev:hover {
  background: var(--blue);
}
.home .swiper-button-next::after,
.home .swiper-button-prev::after {
  font-size: 2rem;
  color: var(--black);
}
.home .swiper-button-prev {
  right: 7rem;
}

.about .row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
}
.about .row .video {
  flex: 1 1 41rem;
}
.about .row .video video {
  width: 100%;
}
.about .row .content {
  flex: 1 1 41rem;
}
.about .row .content h3 {
  font-size: 3.5rem;
  color: var(--black);
  text-transform: capitalize;
}
.about .row .content p {
  font-size: 2rem;
  color: var(--black);
  line-height: 2;
  padding: 1rem 0;
}
.about .box-container {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
  align-items: flex-end;
}
.about .box-container .box {
  text-align: center;
  background: var(--light-bg);
  padding: 3rem 2rem;
}
.about .box-container .box h3 {
  font-size: 4rem;
  color: var(--black);
  text-transform: capitalize;
}
.about .box-container .box p {
  font-size: 1.5rem;
  color: var(--light-color);
  line-height: 2;
}

.services {
  background: var(--light-bg);
}
.services .box-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 columnas en escritorio */
  gap: 2rem;
}

@media (max-width: 1200px) {
  .services .box-container {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en pantallas medianas */
  }
}

@media (max-width: 768px) {
  .services .box-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets/móviles */
  }
}

@media (max-width: 500px) {
  .services .box-container {
    grid-template-columns: 1fr; /* 1 columna en móviles pequeños */
  }
}

.services .box-container .box {
  text-align: center;
  padding: 3rem;
  background: var(--white);
  box-shadow: var(--box-shadow);
  border: var(--border);
}
.services .box-container .box:hover img {
  transform: translateY(-1rem);
}
.services .box-container .box img {
  height: 7rem;
  margin-bottom: 0.5rem;
  transition: 0.2s linear;
}
.services .box-container .box h3 {
  font-size: 1.7rem;
  color: var(--black);
  text-transform: capitalize;
  padding: 1rem 0;
  font-weight: bold;
}
.services .box-container .box p {
  font-size: 1.4rem;
  color: var(--black);
  line-height: 2;
}

/* Estilos actualizados para el modal de servicios */
.service-modal-content {
  display: flex;
  flex-direction: column;
  padding: 20px;
  max-width: 90%;
  width: 900px;
}

.service-modal-header {
  margin-bottom: 20px;
  text-align: center;
}

.service-modal-header h2 {
  color: var(--blue);
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.service-modal-header p {
  font-size: 1.6rem;
  color: var(--light-color);
  margin-bottom: 20px;
}

.service-modal-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
}

.service-modal-tabs .area-btn {
  padding: 8px 30px;
  font-size: 1.6rem;
  min-width: 150px;
  text-align: center;
  border-radius: 5px;
  background: #f7f7f7;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.3s;
}

.service-modal-tabs .area-btn.active {
  background-color: var(--blue);
  color: white;
}

.service-modal-tabs .area-btn:hover {
  background-color: var(--blue);
  color: white;
}

#service-modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 100%;
}

#service-modal-gallery .gallery-item {
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#service-modal-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s;
  cursor: pointer;
}

#service-modal-gallery img:hover {
  transform: scale(1.05);
}

/* Ajuste para galerías con 2 imágenes */
.area[data-area="supervision"] #service-modal-gallery {
  grid-template-columns: repeat(2, 1fr);
}

.area[data-area="supervision"] #service-modal-gallery img {
  height: 280px;
}

/* Ajuste para galerías con 4 o más imágenes */
.area[data-area="ingenieria"] #service-modal-gallery {
  grid-template-columns: repeat(2, 1fr);
}

/* Ajustes para móvil */
@media (max-width: 768px) {
  #service-modal-gallery {
    grid-template-columns: 1fr;
  }
  
  #service-modal-gallery img {
    height: 200px;
  }
  
  .area[data-area="supervision"] #service-modal-gallery,
  .area[data-area="ingenieria"] #service-modal-gallery {
    grid-template-columns: 1fr;
  }
}

/* Ajuste del modal de detalles de proyecto */
.project-detail-info {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  margin-top: 20px;
}

.project-detail-info h3 {
  color: var(--blue);
  font-size: 2rem;
  margin-bottom: 15px;
}

.project-detail-info ul {
  list-style: none;
  padding-left: 0;
}

.project-detail-info li {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.project-detail-image img {
  max-width: 100%;
  max-height: 60vh;
  display: block;
  margin: 0 auto;
  border-radius: 5px;
}

.project-detail-descripcion {
  font-size: 1.5rem;
  color: var(--light-color);
  line-height: 1.7;
  margin: 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.projects {
  background: var(--black);
}
.projects .heading {
  color: var(--white);
}
.projects .box-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas en escritorio */
  gap: 2rem;
}
@media (max-width: 1200px) {
  .projects .box-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en pantallas medianas */
  }
}
@media (max-width: 700px) {
  .projects .box-container {
    grid-template-columns: 1fr; /* 1 columna en móvil */
  }
}
.projects .box-container .box {
  min-height: 30rem; /* Altura mínima igual para todos los cuadros */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* El padding y el background ya están definidos en el CSS base */
}
.projects .box-container .box .image {
  flex-shrink: 0;
}
.projects .box-container .box .content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (max-width: 700px) {
  .projects .box-container .box {
    min-height: 38rem;
  }
}
.projects .box-container .box {
  cursor: initial;
}
.projects .box-container .box:hover .image img {
  transform: scale(1.1);
}
.projects .box-container .box .image {
  height: 32rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.projects .box-container .box .image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: 0.2s linear;
  display: block;
}
.projects .box-container .box .content {
  display: flex;
  background: var(--white);
  justify-content: space-between;
}
.projects .box-container .box .content .info {
  padding: 1rem 2rem;
}
.projects .box-container .box .content .info h3 {
  font-size: 1.7rem;
  color: var(--black);
  text-transform: uppercase; /* Siempre en mayúsculas */
  text-align: left;
}
@media (max-width: 700px) {
  .projects .box-container .box .content .info h3 {
    text-align: center; /* Centrado solo en móvil */
  }
}
.projects .box-container .box .content .info p {
  font-size: 1.5rem;
  color: var(--light-color);
  line-height: 2;
}
.projects .box-container .box .content i {
  width: 7.5rem;
  font-size: 3rem;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  text-align: center;
  line-height: 7.5rem;
}

/* --- MODAL PROYECTOS --- */
.project-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}
.project-modal.active {
  display: flex;
}
.project-modal .modal-content {
  background: var(--white);
  margin: auto;
  margin-top: 20rem;
  border-radius: 1.5rem;
  max-width: 900px;
  width: 95vw;
  box-shadow: var(--box-shadow);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
}
.project-modal .close-modal {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 3rem;
  color: var(--black);
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}
.project-modal .close-modal:hover {
  color: var(--blue);
}
.project-modal .modal-gallery {
  flex: 1 1 300px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.project-modal .modal-gallery img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: var(--box-shadow);
  cursor: pointer;
  transition: transform 0.2s;
}
.project-modal .modal-gallery img:hover {
  transform: scale(1.04);
}
.project-modal .modal-info {
  flex: 2 1 350px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.project-modal .modal-info h2 {
  font-size: 2.2rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.project-modal .modal-info p {
  font-size: 1.7rem;
  color: var(--black);
}
.project-modal .modal-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.project-modal .modal-info li {
  font-size: 1.5rem;
  color: var(--black);
  margin-bottom: 0.5rem;
}
@media (max-width: 700px) {
  .project-modal .modal-content {
    flex-direction: column;
    padding: 2rem;
  }
  .project-modal .modal-gallery, .project-modal .modal-info {
    min-width: 0;
    max-width: 100%;
  }
}
/* --- FIN MODAL PROYECTOS --- */

/* Estilos para el modal de servicios y proyecto */
.project-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px 20px 20px 200px;
  border-radius: 10px;
  width: 80%;
  max-width: 1000px;
  position: relative;
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.modal-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s;
}

.modal-gallery img:hover {
  transform: scale(1.05);
}

.modal-info {
  margin-top: 20px;
}

.modal-areas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 20px;
  gap: 8px;
  padding-left: 20px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.area-btn {
  padding: 8px 15px;
  width: 150px;
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.4rem;
  transition: all 0.3s;
  text-align: center;
}

.area-btn.active {
  background-color: var(--blue);
  color: white;
  border-color: var(--blue);
}

.area-btn:hover {
  background-color: var(--blue);
  color: white;
}

/* Estilos para el modal de detalles de proyecto */
.project-detail-image {
  text-align: center;
  margin-bottom: 20px;
}

.project-detail-image img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 5px;
}

.project-detail-info {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  margin-top: 10px;
}

.project-detail-info h3 {
  color: var(--main-color);
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.project-detail-info ul {
  list-style-type: disc;
  padding-left: 2rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--light-color);
}

.project-detail-info li {
  list-style-type: disc;
  display: list-item;
  margin-bottom: 0.5rem;
  font-size: 1.5rem; /* Asegurar mismo tamaño que el texto */
}

/* Estilos para los elementos de la galería */
.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
    padding-top: 80px;
  }
  
  .modal-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .project-detail-info h3 {
    font-size: 1.5rem;
  }
  
  .project-detail-info li {
    font-size: 1rem;
  }
  
  .modal-areas {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 20px;
    transform: translateY(0);
    gap: 10px;
  }
  
  .area-btn {
    margin: 0;
    width: 120px;
    font-size: 1.3rem;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .area-btn {
    width: 130px;
    font-size: 1.2rem;
    padding: 5px 8px;
  }
}

/* Estilos para el modal de servicios con diseño responsive */
.service-modal-content {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
}

.service-modal-left {
  flex: 1;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service-featured-image {
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
}

.service-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.service-modal-tabs {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 10px;
}

.service-modal-tabs .area-btn {
  flex: 1;
  padding: 8px;
  font-size: 1.3rem;
  width: auto;
}

.service-modal-right {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service-modal-right .modal-info {
  margin-top: 0;
}

.service-modal-right .modal-gallery {
  margin-top: 0;
}

@media (max-width: 768px) {
  .service-modal-content {
    flex-direction: column;
  }
  
  .service-modal-left {
    max-width: 100%;
  }
  
  .modal-areas {
    position: static;
    transform: none;
    padding-left: 0;
  }
}

.reviews .slide p {
  padding: 1.5rem;
  background: var(--light-bg);
  position: relative;
  margin-bottom: 3rem;
  font-size: 1.4rem;
  color: var(--light-color);
  line-height: 2;
}
.reviews .slide p::before {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 2rem;
  height: 2rem;
  width: 2rem;
  background: var(--light-bg);
  transform: rotate(45deg);
}
.reviews .slide .user {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.reviews .slide .user img {
  height: 7rem;
  width: 7rem;
}
.reviews .slide .user h3 {
  font-size: 2rem;
  color: var(--black);
  text-transform: capitalize;
}
.reviews .slide .user .stars {
  padding-top: 0.5rem;
}
.reviews .slide .user .stars i {
  font-size: 1.4rem;
  color: var(--blue);
}

.pricing {
  background: var(--light-bg);
}
.pricing .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
}
.pricing .box-container .box {
  background: var(--white);
  text-align: center;
  padding: 2rem;
  border: var(--border);
  box-shadow: var(--box-shadow);
}
.pricing .box-container .box i {
  font-size: 3rem;
  height: 7rem;
  width: 7rem;
  line-height: 7rem;
  border-radius: 50%;
  margin-bottom: 2rem;
  background: var(--blue);
  color: var(--black);
}
.pricing .box-container .box h3 {
  font-size: 2rem;
  color: var(--black);
  text-transform: capitalize;
  font-weight: normal;
}
.pricing .box-container .box .price {
  padding: 1rem 0;
  font-size: 5rem;
  color: var(--black);
  text-transform: capitalize;
}
.pricing .box-container .box .price span {
  font-size: 2rem;
}
.pricing .box-container .box .list {
  padding: 1rem 0;
}
.pricing .box-container .box .list p {
  padding: 1rem 0;
  font-size: 1.4rem;
  color: var(--light-color);
  line-height: 2;
}

.contact {
  background: var(--black);
}
.contact .heading {
  color: var(--white);
}
.contact .row {
  display: flex;
  flex-wrap: nowrap;
  gap: 4vw;
  align-items: stretch;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}
.contact-info-block {
  flex: 1 1 0;
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: var(--box-shadow);
  padding: 4rem 3.5rem 4rem 3.5rem;
  color: var(--black);
  font-size: 2rem;
  line-height: 2.3;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-info-block h3 {
  color: var(--blue);
  font-size: 2.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.contact-info-block p {
  margin: 0.5rem 0;
  color: var(--black);
}
.contact-info-block a {
  color: var(--black);
  text-decoration: underline;
  word-break: break-all;
}
.contact-info-block a:hover {
  color: var(--black);
}
.contact-image {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: none;
}
.contact .row .map {
  flex: 1 1 41rem;
  width: 100%;
}
.contact .row form {
  flex: 1 1 41rem;
  background: var(--white);
  padding: 2rem;
}
.contact .row form h3 {
  font-size: 2.5rem;
  color: var(--black);
  text-transform: capitalize;
}
.contact .row form .box {
  margin: 0.7rem 0;
  width: 100%;
  padding: 1.5rem 0;
  border-bottom: var(--border);
  font-size: 1.6rem;
  color: var(--light-color);
}
.contact .row form .box:focus {
  border-color: var(--blue);
}
.contact .row form textarea {
  height: 15rem;
  resize: none;
}

.blogs {
  background: var(--light-bg);
}
.blogs .slide {
  text-align: center;
}
.blogs .slide:hover .image img {
  transform: scale(1.1);
}
.blogs .slide .image {
  height: 18rem;
  width: 18rem;
  max-width: 90%;
  margin: 0 auto;
  margin-bottom: -3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 1.5rem rgba(0,0,0,0.08);
}
.blogs .slide .image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}
.blogs .slide .content {
  padding: 2rem;
  padding-top: 5rem;
  background: var(--white);
  box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.2);
}
.blogs .slide .content h3 {
  font-size: 2rem;
  color: var(--black);
  text-transform: capitalize;
}
.blogs .slide .content p {
  padding: 1rem 0;
  font-size: 1.4rem;
  color: var(--light-color);
  line-height: 2;
}
.blogs .swiper-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.blogs .swiper-slide {
  flex: 0 0 23%; /* 4 por fila en escritorio */
  max-width: 23%;
  margin: 1%;
  box-sizing: border-box;
}
@media (max-width: 1200px) {
  .blogs .swiper-slide {
    flex: 0 0 48%;
    max-width: 48%;
  }
}
@media (max-width: 700px) {
  .blogs .swiper-slide {
    flex: 0 0 98%;
    max-width: 98%;
  }
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}
@media (max-width: 1100px) {
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .blogs-grid {
    grid-template-columns: 1fr;
  }
}
.blogs-item {
  background: var(--white);
  box-shadow: 0 0 1.5rem rgba(0,0,0,0.08);
  border-radius: 1rem;
  overflow: hidden;
  text-align: center;
  padding: 2rem 1.5rem 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.blogs-item .image {
  height: 12rem;
  width: 12rem;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
}
.blogs-item .image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}
.blogs-item .content h3 {
  font-size: 1.7rem;
  color: var(--black);
  margin-bottom: 0.7rem;
}
.blogs-item .content p {
  font-size: 1.4rem;
  color: var(--black);
  line-height: 1.7;
}

.blogs-item.service-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

.blogs-item.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blogs-item.service-box:hover .image img {
  transform: scale(1.05);
}

.blogs-item.service-box .image img {
  transition: transform 0.3s ease;
}

.blogs-item.service-box:hover .content h3 {
  color: var(--blue);
}

.blogs-item.service-box:hover::after {
  content: "Click para ver más";
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--blue);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 1.2rem;
  opacity: 0.9;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.logo-container {
  text-align: center;
}
.logo-container img {
  height: 10rem;
  pointer-events: none;
  user-select: none;
}

/* Ajuste para logos del slider de clientes */
.clientes-slider .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px; /* puedes ajustar este valor si lo deseas */
  background: transparent;
}

.clientes-slider .swiper-slide img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding: 10px 0;
}

/* Estilo para los nombres de los clientes en el slider */
.cliente-nombre {
  font-size: 1.7rem;
  color: var(--black);
  text-transform: capitalize;
  font-weight: bold;
  text-align: center;
  margin-top: 0.5rem;
  font-family: "Poppins", sans-serif;
}

.footer {
  text-align: center;
  padding-bottom: 10rem;
}
.footer .links .btn {
  margin: 0.5rem;
}
.footer .credit {
  font-size: 2rem;
  color: var(--black);
  text-transform: capitalize;
  margin-top: 2rem;
  padding-top: 1rem;
}
.footer .credit span {
  color: var(--blue);
}

@media (max-width: 1200px) {
  .header {
    padding: 1.5rem 2rem;
  }
  section {
    padding: 3rem 5%;
  }
}
@media (max-width: 991px) {
  html {
    font-size: 55%;
  }
  section {
    padding: 3rem 2rem;
  }
  .header #menu-btn {
    display: inline-block;
  }
  .header .navbar {
    position: absolute;
    top: 99%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: var(--border);
    border-bottom: var(--border);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: 0.2s linear;
  }
  .header .navbar.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .header .navbar a {
    display: block;
    margin: 2rem;
  }
}
@media (max-width: 768px) {
  .header .search-form {
    width: 90%;
  }
  .header .login-form {
    width: 90%;
  }
  .home .slide {
    justify-content: center;
  }
  .home .slide .content {
    text-align: center;
  }
  .home .slide .content h3 {
    font-size: 3rem;
  }
}
@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
  .about .row .content h3 {
    font-size: 2.5rem;
  }
}

.whatsapp-float {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 1000;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.whatsapp-float:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transform: scale(1.08);
  background: #1ebe57;
}
.whatsapp-icon {
  width: 38px;
  height: 38px;
  display: block;
}

.whatsapp-card {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 1001;
  width: 340px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden;
  animation: whatsappCardIn 0.2s;
  font-family: 'Poppins', Arial, sans-serif;
}
@keyframes whatsappCardIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.whatsapp-card-header {
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 16px 18px 12px 18px;
  position: relative;
}
.whatsapp-card-logo {
  width: 28px;
  height: 28px;
  margin-right: 10px;
}
.whatsapp-card-title {
  font-size: 2rem;
  font-weight: 600;
  flex: 1;
}
.whatsapp-card-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  position: absolute;
  right: 14px;
  top: 10px;
  line-height: 1;
}
.whatsapp-card-body {
  padding: 22px 18px 18px 18px;
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.whatsapp-card-message {
  background: #fff;
  border-radius: 16px 16px 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 16px 18px;
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 18px;
  min-width: 80%;
}
.whatsapp-card-chat-btn {
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 32px 12px 24px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.2s;
  margin-top: 8px;
  margin-left: 16rem;
  cursor: pointer;
}
.whatsapp-card-chat-btn:hover {
  background: #1ebe57;
  color: #fff;
}
.whatsapp-card-send {
  font-size: 1.5rem;
  margin-left: 10px;
  display: inline-block;
  transform: rotate(-2deg);
}
@media (max-width: 500px) {
  .whatsapp-card, .whatsapp-float {
    right: 10px;
    bottom: 10px;
  }
  .whatsapp-card {
    width: 95vw;
    min-width: 0;
    max-width: 98vw;
  }
}

/* Estilos específicos para las listas dentro de la descripción del modal */

#modal-description {
  font-size: 1.7rem;
}

#modal-description ul {
  list-style-type: disc !important;
  padding-left: 2rem !important;
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
  color: var(--light-color);
}

#modal-description li {
  list-style-type: disc !important;
  display: list-item !important;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

/* Botón moderno de WhatsApp en Contacto */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.2rem 3rem;
  background: #25D366; /* WhatsApp Green */
  color: #fff;
  font-size: 1.6rem;
  font-weight: 500;
  border-radius: 5rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-btn i {
  font-size: 2rem;
}

.whatsapp-btn:hover {
  background: #128C7E; /* Darker Green */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: #fff;
}

/* Estilos para galerías de 4 columnas en modales */
.modal-gallery.gallery-4-cols {
  grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 991px) {
  .modal-gallery.gallery-4-cols {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .modal-gallery.gallery-4-cols {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
