@charset "UTF-8";
@import url('base.css');
@import url('./modules/layout.css');
@import url('./modules/cards.css');
@import url('./modules/carrusel-banner.css');
@import url('./modules/fonts.css');
@import url('./modules/constantes.css');
@import url('./modules/busquedaProductos.css');

.loader-container {
  transition: all 0.3s ease-in-out 0s;
  opacity: 0;
  visibility: hidden;
  height: 0;
  width: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-container.show {
  opacity: 1;
  visibility: visible;
  height: 100%;
  width: 100%;
  overflow: unset;
}

.loader-container .loader {
  width: 15px;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: l5 1s infinite linear alternate;
}

@keyframes l5 {
  0% {
    box-shadow: 20px 0 #fbce07, -20px 0 var(--color-primary);
    background: #fbce07;
  }

  33% {
    box-shadow: 20px 0 #fbce07, -20px 0 var(--color-primary);
    background: var(--color-primary);
  }

  66% {
    box-shadow: 20px 0 var(--color-primary), -20px 0 #fbce07;
    background: var(--color-primary);
  }

  100% {
    box-shadow: 20px 0 var(--color-primary), -20px 0 #fbce07;
    background: #fbce07;
  }
}

main {
  margin-top: var(--navbar-height);
}

section {
  padding-top: 60px;
  padding-bottom: 60px;
}

section.business {
  background: url('../images/backgrounds/FONDO_CONTADOR_3.png') no-repeat center center;
  position: relative;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  z-index: 1;
}

section.business::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgb(39 39 39 / 55%) 15%,
      rgb(37 37 37 / 55%) 15%,
      rgb(41 41 41 / 51%) 80%,
      rgba(0, 0, 0, 0) 100%);
  z-index: 0;
  pointer-events: none;
  height: 110%;
}

section.business .container {
  position: relative;
  z-index: 2;
}

section.business .container .cont-title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 25px;
}

section.business .container .cont-title>div {
  max-width: 1200px;
  text-align: center;
  font-size: 1.375rem;
}

section.business .container .cont-title>div h1 {
  font-size: 2.8125rem;
}

section.business .container .cont-counters>div {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

section.business .container .cont-counters>div .box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

section.business .container .cont-counters>div .box img {
  max-width: 60px;
  width: 100%;
}

section.business .container .cont-counters>div .box .title {
  margin-top: 45px;
  margin-bottom: 35px;
  font-size: 1.125rem;
  font-weight: 400;
}

section.business .container .cont-counters>div .box .title h3 {
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: capitalize;
  text-shadow: 2px 2px 5px rgba(28, 28, 28, 0.5);
}

section.business .container .cont-counters>div .box .title h3 span {
  font-size: 3.0625rem;
  font-weight: 700;
  line-height: 0.1;
}

section.business .container .cont-counters>div .box .title p {
  line-height: 0.1;
  font-size: 1.5rem;
  text-shadow: 2px 2px 5px rgba(28, 28, 28, 0.5);
}

section.location {
  background: url('../images/backgrounds/FONDO_MAPA_3.png') no-repeat center center;
  position: relative;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

section.location::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(72, 72, 72, 0.55) 15%, rgba(72, 72, 72, 0.45) 80%, rgba(0, 0, 0, 0) 100%);
  z-index: 0;
  pointer-events: none;
}

section.location .container-fluid {
  position: relative;
  z-index: 2;
}

@media screen and (min-width: 992px) {
  section.location .container-fluid {
    padding: 0 5rem;
  }
}

section.location .container-fluid .cont-title {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  position: relative;
}

@media screen and (min-width: 992px) {
  section.location .container-fluid .cont-title {
    display: flex;
  }
}

section.location .container-fluid .cont-title h2 {
  position: absolute;
  bottom: 4.375rem;
  white-space: nowrap;
  color: #fff;
  text-align: center;
  line-height: 0.9;
  text-shadow: 4px 1px 2px rgb(3, 3, 3);
}

section.location .container-fluid .cont-title h2 .lg {
  font-size: 6.25rem;
}

@media screen and (min-width: 1100px) {
  section.location .container-fluid .cont-title h2 .lg {
    font-size: 7.5rem;
  }
}

section.location .container-fluid .cont-title h2 .md {
  font-size: 5.125rem;
}

@media screen and (min-width: 1100px) {
  section.location .container-fluid .cont-title h2 .md {
    font-size: 6.375rem;
  }
}

section.location .container-fluid .cont-title h2 .sm {
  font-size: 4.1875rem;
}

@media screen and (min-width: 1100px) {
  section.location .container-fluid .cont-title h2 .sm {
    font-size: 5.4375rem;
  }
}

section.location .container-fluid #map {
  position: relative;
  aspect-ratio: 1.308;
  height: auto;
}

section.location .container-fluid #map svg {
  width: 100%;
  max-width: 100%;
  height: fit-content;
}

@media screen and (min-width: 992px) {
  section.location .container-fluid #map svg {
    height: revert-layer;
  }
}

section.location .container-fluid #map svg path {
  transition: all 0.3s ease-in-out 0s;
  cursor: pointer;
}

section.location .container-fluid #map svg path:hover {
  fill: #fbce07 !important;
}

section.location .container-fluid #map svg path.active-alert {
  fill: #fbce07 !important;
}

section.location .container-fluid #map .custom-alert {
  transition: all 0.3s ease-in-out 0s;
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 2px solid var(--color-text);
  padding: 10px 16px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  max-width: 12.5rem;
  width: 100%;
}

@media screen and (min-width: 992px) {
  section.location .container-fluid #map .custom-alert {
    max-width: 15.625rem;
  }
}

section.location .container-fluid #map .custom-alert.show {
  opacity: 1;
  visibility: visible;
  height: auto;
  width: auto;
  overflow: unset;
}

section.location .container-fluid #map .custom-alert h4 {
  width: 100%;
  font-size: 1.875rem;
  word-wrap: break-word;
  color: #003c88;
}

@media screen and (min-width: 992px) {
  section.location .container-fluid #map .custom-alert h4 {
    font-size: 2rem;
    font-weight: bold;
  }

  section.location .container-fluid #map .custom-alert li {
    font-style: italic;
  }
}

section.location .container-fluid #map .alert-arrow {
  transition: all 0.3s ease-in-out 0s;
  opacity: 0;
  visibility: hidden;
  height: 0;
  width: 0;
  overflow: hidden;
  position: absolute;
  z-index: 1;
  width: 20px;
  height: 2px;
  background: var(--color-text);
}

section.location .container-fluid #map .alert-arrow.show {
  opacity: 1;
  visibility: visible;
  height: 2px;
  width: 20px;
  overflow: unset;
}

section.location .container-fluid #map .alert-arrow h4 {
  font-size: 2.5rem;
}

section.portfolio {
  background: url('../images/backgrounds/FONDO_LINEAS_3.png') no-repeat center center;
  background-size: cover;
  padding: 60px 1rem;
  color: #fff;
  position: relative;
  z-index: 0;
}

section.portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(72, 72, 72, 0.45) 20%,
      rgba(72, 72, 72, 0.45) 80%,
      rgba(0, 0, 0, 0) 100%);
  z-index: 0;
  pointer-events: none;
}

section.portfolio .container-fluid {
  position: relative;
  z-index: 3;
}

section.portfolio .container-fluid .cont-title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  margin-top: 105px;
  margin-bottom: 45px;
  text-align: center;
}

section.portfolio .container-fluid .cont-title h2 {
  text-shadow: 2px 2px 5px rgb(0, 0, 0);
  font-size: 2.7rem;
}

section.portfolio .container-fluid .cont-title p {
  font-size: 1.675rem;
}

.btn-conoce-lineas {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background-color: #003c88;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease-in-out 0s;
  text-align: center;
  margin-top: 1rem;
}

.btn-conoce-lineas:hover {
  color: #fbce07;
  transform: translateY(-2px);
}

.btn-conoce-lineas:active {
  background-color: #003c88;
  transform: translateY(0);
}

section.portfolio .container-fluid .box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  border-radius: 15px;
  box-shadow: 3px 3px 10px 2px rgba(28, 28, 28, 0.6);
  text-align: center;
}

section.portfolio .box-img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

section.portfolio .container-fluid .cont-boxes {
  padding: 0px 2.5rem;
  min-height: 20rem;
}

section.portfolio .container-fluid .cont-boxes .principal {
  margin-bottom: 30px;
  max-width: 100%;
}

@media screen and (min-width: 992px) {
  section.portfolio .container-fluid .cont-boxes .principal {
    margin-bottom: 0px;
  }
}

section.portfolio .container-fluid .cont-boxes .principal .box {
  width: 100%;
  height: 100%;
  min-height: 9.375rem;
  transition: all 0.3s ease-in-out 0s;
}

section.portfolio .container-fluid .cont-boxes .principal .box:hover {
  transform: translateY(-8px);
}

section.portfolio .container-fluid .cont-boxes .principal .box .img-fluid {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
}

section.portfolio .container-fluid .cont-boxes .secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 1.875rem;
}

@media screen and (min-width: 992px) {
  section.portfolio .container-fluid .cont-boxes .secondary {
    /* Forzamos exactamente 3 columnas en resoluciones de escritorio */
    grid-template-columns: repeat(3, 1fr); 
  }
}

section.portfolio .container-fluid .cont-boxes .secondary .box {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 9.375rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease-in-out 0s;
}

section.portfolio .container-fluid .cont-boxes .secondary .box:hover {
  transform: translateY(-8px);
}

section.portfolio .container-fluid .cont-boxes .secondary .box .box-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 0s ease-in-out;
}

section.portfolio .container-fluid .cont-boxes .secondary .box .box-img.hover {
  opacity: 0;
  position: absolute;
  top: 11%;
  left: 0;
}

@media screen and (max-width: 1366px) {
  section.portfolio .container-fluid .cont-boxes .secondary .box .box-img.hover {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
  }
}

section.segments-index {
  position: relative;
  padding-left: 0;
  padding-right: 0;
  background: url('../images/backgrounds/FONDO_SEGMENTOS-MARCAS_3.png') no-repeat center center;
  background-size: cover;
  z-index: 2;
}

section.segments-index::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(72, 72, 72, 0.45) 20%,
      rgba(72, 72, 72, 0.45) 80%,
      rgba(0, 0, 0, 0) 100%);
  z-index: 0;
  pointer-events: none;
  height: 97%;
}

section.segments-index .container-fluid {
  position: relative;
  z-index: 3;
}

section.segments-index .container-fluid .cont-title {
  color: #fff;
  text-shadow: 2px 2px 5px rgb(0, 0, 0);
}

section.segments-index .cont-brands {
  margin-top: 40px;
  padding: 0;
}

section.segments-index .cont-brands .cont-title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  margin-bottom: 25px;
  text-align: center;
  color: #fff;
}

section.segments-index .cont-brands .cont-title h3 {
  font-size: 2.5rem;
  text-transform: unset;
  text-shadow: 2px 2px 5px rgb(0, 0, 0);
}

section.segments-index .cont-brands .swiper-button-brands {
  transition: all 0.3s ease-in-out 0s;
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 3px 3px 8px 1px rgba(28, 28, 28, 0.6);
}

section.segments-index .cont-brands .swiper-button-brands:hover {
  opacity: 0.8;
}

section.segments-index .cont-brands .swiper-button-brands::after {
  content: unset;
  width: 0;
  height: 0;
}

@media screen and (max-width: 576px) {
  section.segments-index .cont-brands .swiper-button-brands.swiper-button-prev {
    left: 0.3125rem;
  }
}

@media screen and (max-width: 576px) {
  section.segments-index .cont-brands .swiper-button-brands.swiper-button-next {
    right: 0.3125rem;
  }
}

section.segments-index .cont-brands .swiper-button-brands i {
  font-size: 1.875rem;
  color: #fff;
}

section.segments-index .cont-brands .swiper-pagination {
  position: relative;
  bottom: unset;
  margin-top: 15px;
}

section.segments-index .cont-brands .swiper-pagination .swiper-pagination-bullet {
  transition: all 0.3s ease-in-out 0s;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.5;
}

section.segments-index .cont-brands .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  opacity: 1;
}

section.segments-index .cont-brands .swiper-sl-brands-outer {
  position: relative;
  padding: 0 45px;
}

section.segments-index .cont-brands .swiper-sl-brands-outer .swiper-sl-brands {
  position: relative;
  overflow: hidden;
}

section.segments-index .cont-brands .swiper-sl-brands-outer .swiper-sl-brands .swiper-wrapper {
  align-items: center;
}

section.segments-index .cont-brands .swiper-sl-brands-outer .swiper-sl-brands .swiper-wrapper .swiper-slide {
  transition: all 0.2s ease-in-out 0s;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  filter: grayscale(100%);
}

section.segments-index .cont-brands .swiper-sl-brands-outer .swiper-sl-brands .swiper-wrapper .swiper-slide.centered {
  filter: grayscale(0);
}

section.segments-index .cont-brands .swiper-sl-brands-outer .swiper-sl-brands .swiper-wrapper .swiper-slide img {
  max-width: 12.5rem;
  width: 100%;
}

@media screen and (min-width: 992px) {
  section.segments-index .cont-brands .cont-brand-detail {
    margin-top: 25px;
  }
}

section.segments-index .cont-brands .cont-brand-detail .row {
  padding: 0 1.875rem;
}

@media screen and (min-width: 992px) {
  section.segments-index .cont-brands .cont-brand-detail .row {
    padding: 0 3.75rem;
  }
}

section.segments-index .cont-brands .cont-brand-detail .row .cont-img {
  transition: all 0.2s ease-in-out 0s;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  opacity: 1;
}

section.segments-index .cont-brands .cont-brand-detail .row .cont-img.hide {
  opacity: 0;
}

section.segments-index .cont-brands .cont-brand-detail .row .cont-img img {
  max-width: 100%;
  width: max-content;
}

section.segments-index .cont-brands .cont-brand-detail .row .cont-text {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
  min-height: 74vh;
}

section.segments-index .cont-brands .cont-brand-detail .row .cont-text .title {
  font-size: 1.8125rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 2px 2px 5px rgb(0, 0, 0);
}

section.segments-index .cont-brands .cont-brand-detail .row .cont-text .description {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 100;
}

section.segments-index .cont-brands .cont-brand-detail .row .cont-text .subtitle {
  font-size: 1.8125rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 2px 2px 5px rgb(0, 0, 0);
}

.btn-registro {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background-color: #003c88;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease-in-out 0s;
  text-align: center;
}

.btn-registro:hover {
  color: #fbce07;
  transform: translateY(-2px);
}

.btn-registro:active {
  background-color: #003c88;
  transform: translateY(0);
}

section.blog {
  padding: 60px 0.625rem;
}

@media screen and (min-width: 600px) {
  section.blog {
    padding: 60px 1.875rem;
  }
}

section.blog .cont-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

section.blog .cont-title:hover h4 {
  color: #fbce07;
}

section.blog .cont-title h2 {
  font-size: 2.8125rem;
  color: var(--color-primary);
}

section.blog .cont-title h4 {
  transition: all 0.3s ease-in-out 0s;
  display: inline-block;
  padding: 14px;
  border-radius: 8px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 600;
  user-select: none;
}

section.blog .cont-posts {
  margin-top: 15px;
  padding: 0 0.9375rem;
}

section.blog .cont-posts .post {
  margin-bottom: 10px;
}

@media screen and (min-width: 600px) {
  section.blog .cont-posts .post {
    padding: 15px;
    margin-bottom: 0px;
  }
}

section.blog .cont-posts .post img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media screen and (min-width: 600px) {
  section.blog .cont-posts .post img {
    max-width: 23.4375rem;
  }
}

section.blog .cont-posts .post .cont {
  display: flex;
  flex-direction: column;
}

section.blog .cont-posts .post .cont h3 {
  margin: 0;
  font-size: 1.25rem;
  text-transform: uppercase;
  font-weight: 600;
}

section.blog .cont-posts .post .cont p {
  margin-top: 5px;
  color: #585858;
}

section.blog .cont-posts .post .cont a {
  transition: all 0.3s ease-in-out 0s;
  margin-left: auto;
  color: #585858;
}

section.blog .cont-posts .post .cont a:hover {
  color: var(--color-primary);
}

section.blog .cont-posts .main .post img {
  max-width: 100%;
}

section.blog .cont-posts .main .post .cont {
  margin-top: 25px;
}

section.blog .cont-posts .side .post {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

@media screen and (min-width: 600px) {
  section.blog .cont-posts .side .post {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
  }
}

section.blog .cont-posts .side .post .img-link {
  display: inline-block;
  width: 100%;
}

@media screen and (min-width: 600px) {
  section.blog .cont-posts .side .post .img-link {
    width: max-content;
  }
}

section.blog .cont-posts .side .post .img-link img {
  width: max-content;
}

@media screen and (max-width: 600px) {
  section.blog .cont-posts .side .post .img-link img {
    max-width: 100%;
  }
}

section.blog .cont-posts .side .post .cont {
  margin-top: 10px;
}

@media screen and (min-width: 600px) {
  section.blog .cont-posts .side .post .cont {
    margin-left: 15px;
    margin-top: 0px;
  }
}

section.blog .cont-posts .side .post .cont h3 {
  width: 100%;
}

section.blog .cont-posts .side .post .cont a {
  margin-top: 10px;
}

@media screen and (min-width: 320px) {
  section.business {
    height: 203vh;
  }

  section.business .container {
    top: -4rem;
  }

  section.location {
    height: 170vw;
    margin-top: -12rem;
  }

  section.location .container-fluid {
    top: 4rem;
  }

  section.location .container-fluid .cont-title {
    top: 0 !important;
    left: 0 !important;
    align-items: center;
  }

  section.location .container-fluid .cont-title h2 {
    position: relative !important;
    bottom: auto !important;
    padding-top: 2rem;
  }

  @media screen and (min-width: 992px) {
    section.location .container-fluid .cont-title h2 {
      padding-top: 0;
    }
  }

  section.location .container-fluid .cont-title h2 .lg {
    font-size: 3.125rem;
  }

  section.location .container-fluid .cont-title h2 .md {
    font-size: 2.125rem;
  }

  section.location .container-fluid .cont-title h2 .sm {
    font-size: 3.1875rem;
  }

  section.portfolio {
    height: 435vh;
    margin-top: -66rem;
  }

  section.portfolio .container-fluid {
    top: 55rem;
  }

  section.segments-index {
    margin-top: -45rem;
  }

  section.segments-index .cont-segments .cont-accordion {
    padding-left: 3rem;
  }

  section.segments-index .cont-brands .cont-brand-detail .row .cont-text {
    padding-bottom: 7rem;
  }
}

@media screen and (min-width: 375px) {
  section.location .container-fluid .cont-title {
    padding-left: 4rem;
  }

  section.portfolio .container-fluid .cont-title {
    margin-left: 0.575rem;
  }

  section.segments-index {
    margin-top: -33rem;
  }

  section.segments-index .container-fluid {
    margin-top: 5rem;
  }
}

@media screen and (min-width: 425px) {
  section.business {
    height: 182vh;
  }

  section.location .container-fluid .cont-title {
    padding-left: 6rem;
  }

  section.portfolio {
    height: 357vh;
    margin-top: -56rem;
    z-index: 1;
  }

  section.portfolio .container-fluid {
    top: 42rem;
  }

  section.segments-index {
    margin-top: -40rem;
    z-index: 0;
  }

  section.segments-index .container-fluid {
    margin-top: 55rem;
  }
}

@media screen and (min-width: 768px) {
  section.business {
    height: 125vh;
  }

  section.business .container {
    top: -7rem;
  }

  section.business .container .cont-counters>div .box .title p {
    font-size: 1.3rem;
  }

  section.location {
    margin-top: -17rem;
  }

  section.location .container-fluid .cont-title {
    padding-left: 12rem;
    top: -4rem;
  }

  section.location .container-fluid .cont-title h2 .md {
    font-size: 3.725rem;
  }

  section.location .container-fluid .cont-title h2 .lg {
    font-size: 3.725rem;
  }

  section.location .container-fluid .cont-title h2 .sm {
    font-size: 3.7875rem;
  }

  section.portfolio .container-fluid {
    top: 40rem;
  }

  section.portfolio .container-fluid .cont-boxes .principal {
    padding: 0rem 10rem;
  }

  section.portfolio .container-fluid .cont-boxes .secondary {
    padding: 0rem 10rem;
  }

  section.segments-index .container-fluid {
    margin-top: 78rem;
  }

  section.segments-index .cont-segments .cont-accordion {
    padding: 0;
  }
}

@media screen and (min-width: 1024px) {
  section.location {
    height: 70vw;
    margin-top: -16.6rem;
  }

  section.location .container-fluid {
    top: auto;
  }

  section.location .container-fluid .cont-title {
    padding-left: 6rem;
    top: -14rem;
    left: -7rem;
  }

  section.portfolio {
    height: 357vh;
    margin-top: -44rem;
  }

  section.portfolio .container-fluid {
    top: 34rem;
  }

  section.portfolio .container-fluid .cont-boxes .principal {
    padding: 0 10px 0 0px;
  }

  section.portfolio .container-fluid .cont-boxes .secondary {
    gap: 1.1rem 1.4rem;
    padding: 0 13px;
  }

  section.segments-index {
    z-index: 2;
    margin-top: -51rem;
  }

  section.segments-index .container-fluid {
    margin-top: 5rem;
  }
}

@media screen and (min-width: 1100px) {
  section.segments-index {
    z-index: 2;
    margin-top: -68rem;
  }
}

@media screen and (min-width: 1200px) {
  section.business {
    height: 140vh;
  }

  section.location .container-fluid .cont-title {
    padding-left: 0rem;
    top: -18rem;
    left: -2rem;
  }

  section.location .container-fluid .cont-title h2 .md {
    font-size: 4.725rem;
  }

  section.location .container-fluid .cont-title h2 .lg {
    font-size: 4.725rem;
  }

  section.location .container-fluid .cont-title h2 .sm {
    font-size: 4.7875rem;
  }

  section.portfolio .container-fluid .cont-boxes {
    padding: 1.27rem 1.27rem 1.27rem 0;
    margin-top: -2rem;
  }

  section.portfolio .container-fluid .cont-boxes .principal {
    padding: 3rem 2rem 3rem 4rem;
  }

  section.portfolio .container-fluid .cont-boxes .secondary {
    padding: 48px 0;
  }

  section.segments-index {
    margin-top: -50rem;
  }

}

@media screen and (min-width: 1440px) {
  section.location .container-fluid .cont-title {
    top: -13rem;
    left: -2rem;
  }

  section.portfolio {
    height: 315vh;
    margin-top: -37rem;
  }

  section.portfolio .container-fluid {
    top: 28rem;
  }

  section.portfolio .container-fluid .cont-boxes .principal {
    padding: 3rem 1.5rem 3rem 3rem;
  }

  section.portfolio .container-fluid .cont-boxes .secondary {
    padding: 54px 0;
  }

  section.segments-index {
    margin-top: -46rem;
  }
}

@media screen and (min-width: 1500px) {

  section.location .container-fluid .cont-title {
    top: -13rem;
    left: 1rem;
  }

  section.portfolio {
    height: 315vh;
    margin-top: -39rem;
  }

  section.portfolio .container-fluid .cont-boxes .principal {
    padding: 4.5rem 0.5rem 4.5rem 6.5rem;
    margin-left: -2rem;
  }

  section.portfolio .container-fluid .cont-boxes .secondary {
    padding: 4.6rem 1rem;
  }

  section.segments-index {
    margin-top: -47rem;
  }
}

@media screen and (min-width: 1600px) {
  section.portfolio {
    height: 283vh;
  }

  section.segments-index {
    margin-top: -44rem;
  }
}

@media screen and (min-width: 1800px) {
  section.business {
    height: 110vh;
  }

  section.location {
    height: 60vw;
  }

  section.location .container-fluid .cont-title {
    left: 0;
  }

  section.location .container-fluid .cont-title h2 .md {
    font-size: 5.725rem;
  }

  section.location .container-fluid .cont-title h2 .lg {
    font-size: 5.725rem;
  }

  section.location .container-fluid .cont-title h2 .sm {
    font-size: 5.7875rem;
  }

  section.portfolio {
    height: 236vh;
  }

  section.portfolio .container-fluid .cont-boxes .principal {
    padding: 4.5rem 0.5rem 4.5rem 8.5rem;
    margin-left: -4rem;
  }

  section.portfolio .container-fluid .cont-boxes .secondary {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.1rem 1.3rem;
    padding: 78px 13px;
  }

  section.segments-index {
    margin-top: -39rem;
  }
}

@media screen and (min-width: 2560px) {
  section.location .container-fluid .cont-title {
    left: 12rem;
    top: -15rem;
  }

  section.location .container-fluid .cont-title h2 .md {
    font-size: 6.725rem;
  }

  section.location .container-fluid .cont-title h2 .lg {
    font-size: 6.725rem;
  }

  section.location .container-fluid .cont-title h2 .sm {
    font-size: 6.7875rem;
  }

  section.portfolio {
    height: 205vh;
  }

  section.portfolio .container-fluid .cont-title h2 {
    font-size: 3.7rem;
  }

  section.portfolio .container-fluid .cont-title p {
    font-size: 2.3rem;
  }

  section.portfolio .container-fluid .cont-title h3 {
    font-size: 3.2rem;
  }

  section.portfolio .container-fluid .cont-boxes .principal {
    padding: 5rem 2rem 5rem 10rem;
  }

  section.portfolio .container-fluid .cont-boxes .secondary {
    gap: 2rem 2.4rem;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    padding: 87px 13px;
  }

  section.segments-index {
    margin-top: -37rem;
    height: 186vh;
  }

  section.segments-index .cont-brands .cont-brand-detail .row .cont-text {
    padding-bottom: 0;
  }


  

}


/* =========================================
   SOLUCIÓN FINAL: SIN RECORTES, SIN HUECOS, SIN SUPERPOSICIÓN
   ========================================= */

/* 1. Mantenemos 3 columnas y protegemos el texto inferior */
@media screen and (min-width: 992px) {
  section.portfolio .container-fluid .cont-boxes {
    margin-bottom: 20rem !important; 
  }
  section.portfolio .container-fluid .cont-boxes .secondary {
    grid-template-columns: repeat(3, 1fr) !important;
    /* CLAVE: Evita que las tarjetas se estiren obligatoriamente hacia abajo */
    align-items: center !important; 
    align-content: center !important;
  }
}

/* 2. La tarjeta "abraza" la medida exacta de la foto para no dejar huecos */
section.portfolio .container-fluid .cont-boxes .secondary .box {
  height: max-content !important; 
  min-height: unset !important;
  aspect-ratio: auto !important; 
  border-radius: 15px; 
  overflow: hidden;
  background-color: transparent !important;
  box-shadow: 3px 3px 10px 2px rgba(28, 28, 28, 0.6);
  display: flex;
}

section.portfolio .container-fluid .cont-boxes .secondary .box a {
  display: flex;
  width: 100%;
}

/* 3. La imagen dicta el tamaño real: 100% visible, sin cortes y sin deformarse */
section.portfolio .container-fluid .cont-boxes .secondary .box .box-img,
section.portfolio .container-fluid .cont-boxes .secondary .box img {
  width: 100%;
  height: auto !important; 
  object-fit: contain !important; 
  display: block;
}
/*# sourceMappingURL=main.css.map */