
body {
  font-family: "Roboto", sans-serif;
  color: #A5A5A5;
  background-color: #1D191B;
  line-height: 1.6;
}

/* Prevent unwanted horizontal overflow (removes stray right-edge lines on mobile) */
html, body {
  overflow-x: hidden;
}

.layout_padding {
  padding: 100px 0;
}

.layout_padding2 {
  padding: 60px 0;
}

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

.heading_container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 50px;
}
.heading_container h2 {
  position: relative;
  font-weight: 700;
  text-transform: uppercase;
  padding-bottom: 15px;
  border-bottom: 4px solid #BC262C;
  color: #ffffff;
  font-size: 2.5rem;
  letter-spacing: 1px;
}
.heading_container p {
  margin-top: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 900px;
}
.heading_container.heading_center {
  align-items: center;
  text-align: center;
}

/*header section*/
.header_section {
  background: linear-gradient(135deg, #FFFFFF 0%, #f8f9fa 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header_section {
  width: 100%;
  left: 0;
  right: 0;
}

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

.logo-bs {
  max-width: 70px;
  height: auto;
  transition: transform 0.3s ease;
}

.logo-bs:hover {
  transform: scale(1.05);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #BC262C;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1;
  position: relative;
}

.brand-slogan {
  font-size: 0.7rem;
  font-weight: 500;
  color: #666;
  line-height: 1.2;
  max-width: 500px;
  letter-spacing: 0.3px;
  margin-bottom: 8px; /* Espacio debajo del slogan */
}

.brand-name::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #BC262C, #ff4757);
  transition: width 0.3s ease;
}

.navbar-brand:hover .brand-name::after {
  width: 100%;
}

/* Layout fixes to prevent slogan overlapping the menu */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: wrap; /* allow slogan to wrap to next line when space is limited */
}

.brand-slogan {
  /* allow wrapping instead of truncation */
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%; /* adapt to available space */
}

.custom_nav-container .navbar-collapse {
  margin-left: 0; /* use flex to position instead of margin hack */
  align-items: center;
  flex: 1 1 auto; /* take remaining space */
  justify-content: flex-end; /* align menu to the right */
}

/* Default collapsed behavior for small screens */
.custom_nav-container .navbar-collapse.collapse {
  display: none;
}
.custom_nav-container .navbar-collapse.show {
  display: block;
}

/* On large screens, show navbar as flex */
@media (min-width: 992px) {
  .custom_nav-container .navbar-collapse {
    display: flex;
  }
  .custom_nav-container .navbar-nav {
    display: flex;
    flex-direction: row;
  }
}

.navbar-brand {
  min-width: 0; /* allow brand to shrink on small screens */
}

/* Responsive: shorten or hide slogan on smaller screens */
@media (max-width: 992px) {
  .brand-slogan {
    max-width: 100%;
    font-size: 0.62rem;
  }
}

@media (max-width: 768px) {
  .brand-slogan {
    /* keep slogan visible on small screens but smaller */
    display: block;
    font-size: 0.58rem;
    margin-bottom: 6px;
  }
}

/* Fix header brand overflow on very small screens */
@media (max-width: 480px) {
  .logo-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo/info on left, toggler on right */
    gap: 8px;
    flex-wrap: nowrap; /* prevent brand from wrapping below the toggler */
  }

  .navbar-brand {
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
  }

  .brand-name {
    font-size: 1.05rem;
    /* allow wrapping so full name is visible on two lines if needed */
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: 70%; /* leave space for toggler */
    line-height: 1; 
  }

  .brand-slogan {
    /* show slogan below name if space allows */
    display: block;
    font-size: 0.52rem;
    color: #8a8a8a;
    margin-top: 2px;
  }

  /* Ensure toggler stays to the right of the brand */
  .navbar-brand {
    max-width: calc(100% - 64px); /* reserve ~64px for toggler/button */
  }

  .navbar-toggler {
    margin-left: 8px;
    flex: 0 0 56px;
    order: 2;
    align-self: center;
  }

  /* Put brand first and toggler second to guarantee layout */
  .logo-container > .navbar-brand { order: 1; }
  .logo-container > .navbar-toggler { order: 2; }
}

/* Ensure navbar can wrap items when space is tight */
.custom_nav-container {
  flex-wrap: wrap;
}

.custom_nav-container .navbar-nav .nav-item .nav-link {
  padding: 12px 25px;
  color: #1D191B;
  text-align: center;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  margin: 0 5px;
}

.custom_nav-container .navbar-nav .nav-item .nav-link::before {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #BC262C;
  transition: width 0.3s ease;
}

.custom_nav-container .navbar-nav .nav-item:hover .nav-link::before,
.custom_nav-container .navbar-nav .nav-item.active .nav-link::before {
  width: 70%;
}

.custom_nav-container .navbar-nav .nav-item:hover .nav-link, 
.custom_nav-container .navbar-nav .nav-item.active .nav-link {
  color: #BC262C;
  background-color: rgba(188, 38, 44, 0.05);
}

.navbar-toggler {
  outline: none;
  border: 2px solid #BC262C;
  padding: 8px 12px;
  border-radius: 5px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(188, 38, 44, 0.25);
}

.navbar-toggler span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #BC262C;
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

/* Dropdown Styles */
.dropdown-menu {
  background-color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 10px 0;
  margin-top: 10px;
}

.dropdown-item {
  padding: 10px 20px;
  color: #1D191B;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.dropdown-item:hover {
  background-color: rgba(188, 38, 44, 0.1);
  color: #BC262C;
  padding-left: 25px;
}

.dropdown-toggle::after {
  margin-left: 8px;
  vertical-align: middle;
}

/* slider section */
.slider_section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1D191B 0%, #2a2a2a 100%);
  position: relative;
  overflow: hidden;
}

.slider_section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(188,38,44,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}

.slider_section .detail-box {
  position: relative;
  z-index: 1;
}

.slider_section .detail-box h2 {
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 2.8rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slider_section .detail-box h2 span {
  color: #BC262C;
  background: linear-gradient(135deg, #BC262C, #ff4757);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slider_section .detail-box p {
  color: #c5c5c5;
  margin-top: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.slider_container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.slider_img {
    max-height: 450px;
    width: auto;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.slider_img:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(188, 38, 44, 0.3);
}

.slider_section .carousel-indicators {
  position: unset;
  margin: 0;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}
.slider_section .carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #555;
  opacity: 1;
  border: 2px solid #777;
  margin: 0 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.slider_section .carousel-indicators li:hover {
  background-color: #888;
  transform: scale(1.2);
}
.slider_section .carousel-indicators li.active {
  background-color: #BC262C;
  border-color: #BC262C;
  width: 40px;
  border-radius: 10px;
}

/* about section */
.about_section {
  position: relative;
}

.about_section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(188, 38, 44, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.about_section .row {
  position: relative;
  z-index: 1;
}

.about_section .detail-box {
  padding: 20px 0;
}

.about_section .detail-box p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 20px;
  color: #b5b5b5;
}

/* Justify text for Misión / Visión */
.about_section .detail-box p {
  text-align: justify;
}

.about_section .detail-box p em {
  color: #BC262C;
  font-style: italic;
  font-weight: 500;
}

.about_section .img-box {
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

.about_section .img-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(188, 38, 44, 0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.about_section .img-box:hover::before {
  opacity: 1;
}

.about_section .img-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(188, 38, 44, 0.3);
}

.about_section .img-box img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.about_section .img-box:hover img {
  transform: scale(1.05);
}

/* service section */
.service_section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    position: relative;
}

.service_section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(188, 38, 44, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(188, 38, 44, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.service_section .box {
  background: linear-gradient(145deg, #1D191B 0%, #252525 100%);
  border: 1px solid #333;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.4s ease;
  margin-top: 30px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service_section .box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(188, 38, 44, 0.1), transparent);
  transition: left 0.5s ease;
}

.service_section .box:hover::before {
  left: 100%;
}

.service_section .box:hover {
  transform: translateY(-10px);
  border-color: #BC262C;
  box-shadow: 0 15px 40px rgba(188, 38, 44, 0.4);
}

.service_section .box .img-box {
  height: 250px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
  position: relative;
}

.service_section .box .img-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service_section .box:hover .img-box::after {
  opacity: 1;
}

.service_section .box .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service_section .box:hover .img-box img {
  transform: scale(1.1);
}

.service_section .box .detail-box {
  position: relative;
  z-index: 1;
}

.service_section .box .detail-box ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
}

.service_section .box .detail-box ul li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: #c5c5c5;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.service_section .box .detail-box ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #BC262C;
  font-size: 1.2rem;
  transition: left 0.3s ease;
}

.service_section .box:hover .detail-box ul li::before {
  left: 5px;
}

.service_section .box .detail-box ul li:hover {
  color: #ffffff;
  padding-left: 35px;
}

/* projects section */
.projects_section {
    background: linear-gradient(135deg, #1D191B 0%, #2a2a2a 100%);
    position: relative;
}

.projects_section .projects_box {
  height: 320px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  margin-top: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.4s ease;
}

.projects_section .projects_box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.projects_section .projects_box:hover::before {
  opacity: 0.9;
}

.projects_section .projects_box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(188, 38, 44, 0.4);
}

.projects_section .projects_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.projects_section .projects_box .projects_detail {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.95) 40%);
  color: #ffffff;
  padding: 30px 25px;
  z-index: 2;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.projects_section .projects_box .projects_detail h5 {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #ffffff;
  position: relative;
  padding-bottom: 10px;
}

.projects_section .projects_box .projects_detail h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #BC262C, #ff4757);
}

.projects_section .projects_box .projects_detail p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: #d0d0d0;
  line-height: 1.6;
}


/* gallery section */
.gallery_section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.gallery_section .gallery_box {
  height: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  margin-top: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.4s ease;
}

.gallery_section .gallery_box::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 3rem;
  color: #ffffff;
  z-index: 3;
  transition: all 0.4s ease;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.gallery_section .gallery_box:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.gallery_section .gallery_box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(188, 38, 44, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.gallery_section .gallery_box:hover::before {
  opacity: 1;
}

.gallery_section .gallery_box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(188, 38, 44, 0.4);
}

.gallery_section .gallery_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 1;
}

.gallery_section .gallery_box:hover img {
  transform: scale(1.15) rotate(2deg);
}

/* info section */
.info_section {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: #A5A5A5;
  position: relative;
}

.info_section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #BC262C, transparent);
}

.info_section h4 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.info_section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #BC262C, #ff4757);
}

.info_section .info_contact .contact_link_box a {
    color: #b5b5b5;
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info_section .info_contact .contact_link_box a:hover {
  color: #ffffff;
  background-color: rgba(188, 38, 44, 0.1);
  padding-left: 15px;
  text-decoration: none;
}

.info_section .info_contact .contact_link_box a i {
  color: #BC262C;
  margin-right: 15px;
  font-size: 1.3rem;
  min-width: 25px;
  transition: transform 0.3s ease;
}

.info_section .info_contact .contact_link_box a:hover i {
  transform: scale(1.2) rotate(5deg);
}

/* 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: #b5b5b5;
    transition: all 0.3s ease;
    padding: 10px 0;
    padding-left: 15px;
    border-left: 3px solid transparent;
    position: relative;
}

.info_section .info_link_box .info_links a::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #BC262C;
  opacity: 0;
  transition: all 0.3s ease;
}

.info_section .info_link_box .info_links a:hover::before,
.info_section .info_link_box .info_links a.active::before {
  opacity: 1;
  left: 5px;
}

.info_section .info_link_box .info_links a:hover,
.info_section .info_link_box .info_links a.active {
  color: #ffffff;
  border-left-color: #BC262C;
  padding-left: 20px;
  text-decoration: none;
}

/* footer section*/
.footer_section {
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
  padding: 25px;
  border-top: 1px solid rgba(188, 38, 44, 0.3);
  position: relative;
}

.footer_section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #BC262C, transparent);
}

.footer_section p {
  color: #999;
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.footer_section p span {
  color: #BC262C;
  font-weight: 600;
}

/* 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) {
  .logo-bs {
    max-width: 50px;
  }
  .brand-name {
    font-size: 1.3rem;
  }
  .brand-slogan {
    font-size: 0.55rem;
    max-width: 300px;
  }
  .layout_padding {
    padding: 75px 0;
  }
  .heading_container h2 {
    font-size: 1.8rem;
  }
  .slider_img {
    max-height: 300px;
  }

  /* Justify paragraphs in services section */
  #service_section .heading_container p,
  #service_section .service_container .heading_container p {
    text-align: justify;
  }
  .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) {
    .brand-name {
        font-size: 1.1rem;
    }
    .brand-slogan {
        display: none;
    }
    .logo-bs {
        max-width: 45px;
    }
    .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%;
}

/* Separar el menú del logo/slogan */
.custom_nav-container .navbar-collapse {
  margin-left: 32px;
}

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