
body {
  font-family: "Roboto", sans-serif;
  color: #A5A5A5; /* Gris from palette */
  background-color: #1D191B; /* Fondo from palette */
}

.layout_padding {
  padding: 90px 0;
}

.layout_padding2 {
  padding: 45px 0;
}

.layout_padding-bottom {
  padding-bottom: 90px;
}

.heading_container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.heading_container h2 {
  position: relative;
  font-weight: bold;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 3px solid #BC262C; /* Rojo from palette */
  color: #ffffff;
}
.heading_container.heading_center {
  align-items: center;
  text-align: center;
}

/*header section*/
.header_section {
  background-color: #FFFFFF; /* White background for header */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.header_section h1 {
  color: #000000; /* Black color for main heading */
  text-align: center;
  padding: 20px 0;
  font-size: 1.5rem;
}

.header_section .header_bottom {
  padding: 15px 0;
}
.header_section .header_bottom .container-fluid {
  padding-right: 25px;
  padding-left: 25px;
}

.logo-bs {
  max-width: 250px;
  height: auto;
}

.custom_nav-container .navbar-nav .nav-item .nav-link {
  padding: 8px 20px;
  color: #000000; /* Black text for header */
  text-align: center;
  text-transform: uppercase;
  border-radius: 5px;
  transition: all 0.3s;
  font-weight: 500;
}
.custom_nav-container .navbar-nav .nav-item:hover .nav-link, .custom_nav-container .navbar-nav .nav-item.active .nav-link {
  color: #BC262C; /* Rojo from palette */
}

.navbar-toggler {
  outline: none;
}

.navbar-toggler span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #000000; /* Black for toggler */
  margin: 6px 0;
  transition: all 0.3s;
}

/* slider section */
.slider_section {
  padding: 45px 0;
  background-color: #1D191B; /* Fondo from palette */
}

.slider_section .detail-box h2 {
  color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
}

.slider_section .detail-box p {
  color: #A5A5A5;
  margin-top: 15px;
}

.slider_container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.slider_img {
    max-height: 400px;
    width: auto;
    object-fit: cover;
    border-radius: 10px;
}

.slider_section .carousel-indicators {
  position: unset;
  margin: 0;
  justify-content: center;
  align-items: center;
  margin-top: 45px;
}
.slider_section .carousel-indicators li {
  width: 15px;
  height: 15px;
  border-radius: 100%;
  background-color: #A5A5A5; /* Gris from palette */
  opacity: 1;
  border: none;
  margin: 0 5px;
}
.slider_section .carousel-indicators li.active {
  background-color: #BC262C; /* Rojo from palette */
}

/* about section */
.about_section .img-box {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    overflow: hidden;
}

.about_section .img-box img {
    width: 100%;
    height: auto;
}

/* service section */
.service_section {
    background-color: #000000; /* Negro from palette */
}
.service_section .box {
  background-color: #1D191B; /* Fondo from palette */
  border: 1px solid #2a2a2a;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s;
  margin-top: 30px;
  height: 100%;
}
.service_section .box:hover {
  transform: translateY(-5px);
  border-color: #BC262C; /* Rojo from palette */
}
.service_section .box .img-box {
  height: 250px;
  overflow: hidden;
  border-radius: 5px;
}
.service_section .box .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* projects section */
.projects_section {
    background-color: #1D191B; /* Fondo from palette */
}
.projects_section .projects_box {
  height: 250px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.projects_section .projects_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;

}

.projects_section .projects_box:hover img {
  transform: scale(1.1);
}

.projects_section .projects_box .projects_detail {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.35s ease-out;
}

.projects_section .projects_box:hover .projects_detail {
  transform: translateY(0);
}

.projects_section .projects_box .projects_detail h5 {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.projects_section .projects_box .projects_detail p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: #c0c0c0;
}


/* gallery section */
.gallery_section {
    background-color: #000000; /* Negro from palette */
}
.gallery_section .gallery_box {
  height: 250px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  cursor: pointer; /* Add pointer cursor to indicate clickable */
}
.gallery_section .gallery_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s;
}
.gallery_section .gallery_box:hover img {
  transform: scale(1.1);
}

/* info section */
.info_section {
  background-color: #000000; /* Negro from palette */
  color: #A5A5A5;
}
.info_section h4 {
    color: #ffffff;
}
.info_section .info_contact .contact_link_box a {
    color: #A5A5A5;
    display: flex;
    align-items: center;
    margin: 10px 0;
}
.info_section .info_contact .contact_link_box a i {
  color: #BC262C; /* Rojo from palette */
  margin-right: 10px;
  font-size: 1.2rem;

}
.info_section .info_contact .contact_link_box a:hover {
  color: #BC262C;
}

/* Corrected Footer Links Style */
.info_section .info_link_box .info_links {
    display: flex;
    flex-direction: column;
}
.info_section .info_link_box .info_links a {
    color: #A5A5A5; /* Gris from palette */
    transition: color 0.3s;
    padding: 5px 0;
}
.info_section .info_link_box .info_links a:hover,
.info_section .info_link_box .info_links a.active {
  color: #BC262C; /* Rojo from palette */
}

/* footer section*/
.footer_section {
  background-color: #000000;
  padding: 20px;
  border-top: 1px solid #1D191B;
}
.footer_section p {
  color: #A5A5A5;
  margin: 0;
  text-align: center;
}

/* Modal (Lightbox) Styles */
.modal {
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

@media (min-width: 576px) {
  .modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
  }
}

.modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    align-items: center; /* Center content horizontally */
}

#modalImage {
    max-height: 85vh;
    max-width: 80vw; /* Adjust width to make space for buttons */
    border-radius: 8px;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 1051;
    color: white;
    opacity: 1;
    text-shadow: none;
    font-size: 2.5rem;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1052;
    transition: background-color 0.3s;
    border-radius: 5px;
}

.modal-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.modal-content {
    animation-name: zoomIn;
    animation-duration: 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}


/* === Responsive Styles === */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 992px) {
  .slider_container {
    flex-direction: column-reverse; /* Stack image above text */
    text-align: center;
  }
  .slider_img {
    max-height: 350px;
    margin-top: 30px;
  }
  .about_section .row {
    flex-direction: column-reverse; /* Stack image above text */
  }
  .about_section .img-box {
    margin-top: 45px;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 768px) {
  .header_section h1 {
    font-size: 1.2rem;
    padding: 15px;
  }
  .layout_padding {
    padding: 75px 0;
  }
  .heading_container h2 {
    font-size: 1.8rem;
  }
  .slider_img {
    max-height: 300px;
  }
  .projects_section .row > div,
  .gallery_section .row > div {
    margin-bottom: 30px; /* Add space between stacked items */
  }
  .info_col {
    margin-bottom: 30px; /* Space out footer columns */
    text-align: center;
  }
  .info_section .info_contact .contact_link_box {
      justify-content: center;
  }

  .info_section .info_link_box .info_links {
      align-items: center;
  }
  
  .modal-nav-btn {
      font-size: 1.5rem;
      padding: 8px 12px;
  }
  .prev-btn {
      left: 5px;
  }
  .next-btn {
      right: 5px;
  }
  #modalImage {
      max-width: 75vw;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 576px) {
    .header_section h1 {
        font-size: 1rem;
        word-wrap: break-word; /* Ensure long title breaks */
    }
    .slider_section .detail-box h2 {
        font-size: 1.5rem;
    }
    .slider_img {
        max-height: 250px;
    }
    .service_section .box {
        padding: 20px;
    }
    .custom_nav-container .navbar-nav {
        align-items: center; /* Center nav items when toggler is active */
    }
}

.logo-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

@media (max-width: 991px) {
  .custom_nav-container {
    flex-wrap: wrap;
  }
}
