/*
  Theme Name: Folio
  Theme URL: https://bootstrapmade.com/folio-bootstrap-portfolio-template/
  Author: BootstrapMade.com
  Author URL: https://bootstrapmade.com
*/

/*  General Styling
/*-----------------------------------------------------------------------------------*/

body {
  background: #ffffff;
  color: #898989;
  font-family: "Poppins", helvetica;
  font-size: 15px;
  font-weight: 300;
  line-height: 20px;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  margin: 0 auto;
  padding: 0;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -o-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

h2 {
  color: #292929;
  font-weight: 600;
}

h4 {
  color: #292929;
  font-size: 14px;
  font-weight: 600;
}

.portfolio-panel .card-body h4 {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

a {
  color: #292929;
  text-decoration: none !important;
  -moz-transition: all 0.5s ease-in-out 0s;
  -ms-transition: all 0.5s ease-in-out 0s;
  -o-transition: all 0.5s ease-in-out 0s;
  -webkit-transition: all 0.5s ease-in-out 0s;
  transition: all 0.5s ease-in-out 0s;
}

a:hover {
  -moz-transition: all 0.5s ease-in-out 0s;
  -ms-transition: all 0.5s ease-in-out 0s;
  -o-transition: all 0.5s ease-in-out 0s;
  -webkit-transition: all 0.5s ease-in-out 0s;
  transition: all 0.5s ease-in-out 0s;
}

a:hover,
a:focus {
  color: #b8a07e;
  text-decoration: underline;
}

nav ul li a {
  padding: 2px 0 0 0;
  position: relative;
  display: block;
  font-size: 12px;
  color: #999999;
  letter-spacing: 0.1em;
  font-weight: 500;
  line-height: 14px;
  text-transform: uppercase;
  -moz-transition: all 0.5s ease-in-out 0s;
  -ms-transition: all 0.5s ease-in-out 0s;
  -o-transition: all 0.5s ease-in-out 0s;
  -webkit-transition: all 0.5s ease-in-out 0s;
  transition: all 0.5s ease-in-out 0s;
}

p {
  margin: 25px 0;
  padding: 0;
  font-size: 15px;
  color: #999999;
  line-height: 28px;
}

::-moz-selection {
  background: #b8a07e;
  color: #fff;
}

::selection {
  background: #b8a07e;
  color: #fff;
}

.btn {
  background: #333;
  border: medium none;
  border-radius: 0;
  color: #fff;
  font-size: 12px;
  height: 50px;
  line-height: 50px;
  padding: 0 30px;
  text-transform: uppercase;
}

.btn:hover,
.btn:focus {
  color: #fff;
}

.padDiv {
  padding: 30px 20px;
}

.section-title {
  margin-bottom: 70px;
}

.section-title h2 {
  font-size: 25px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.form-control {
  background-color: transparent;
  border: 1px solid #999;
  border-radius: 0;
  color: #999999;
  font-size: 12px;
  font-weight: 500;
  height: 50px;
  letter-spacing: 0.1em;
  padding-left: 10px;
  margin: 0 0 25px 0;
  line-height: 14px;
  text-transform: uppercase;
}

.form-control:focus {
  box-shadow: none;
  outline: 0 none;
}

.paddsection {
  padding-top: 90px;
  padding-bottom: 90px;
}

.paddsections {
  padding-top: 90px;
  padding-bottom: 90px !important;
}

.hvr-shutter-in-horizontal::before {
  background: #333;
}

.hvr-shutter-in-horizontal:hover {
  background: #b8a07e;
}

.mb-30 {
  margin-bottom: 30px;
}

/*-----------------------------------------------------------------------------------*/
/*  Navbar Top
/*-----------------------------------------------------------------------------------*/

nav {
  position: fixed;
  background: #fff;
  z-index: 1000;
  width: 100%;
  padding: 20px;
  display: none;
  -webkit-box-shadow: 0px 2px 92px 0px rgba(0, 0, 0, 0.18);
  -moz-box-shadow: 0px 2px 92px 0px rgba(0, 0, 0, 0.18);
  box-shadow: 0px 2px 92px 0px rgba(0, 0, 0, 0.18);
}

.nav-menu {
  float: right;
  line-height: 32px;
  margin-bottom: 0;
  padding-top: 16px;
}

nav ul li {
  float: left;
  margin-right: 15px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  margin-left: 40px;
}

nav ul li a {
  padding: 2px 0 0 0;
  position: relative;
  display: block;
  font-size: 14px;
  color: #999999;
  font-family: "Poppins", helvetica;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.logo {
  float: left;
}

.logo img {
  width: 100px;
  height: 50px;
}

.responsive {
  display: none;
  font-size: 23px;
}

.active {
  color: #afafaf;
}

/*----------------------------------------------------------------------------------*/
/*  Header
/*-----------------------------------------------------------------------------------*/

#header {
  background: url("../images/home-bg.jpg") repeat scroll center center / cover;
  height: 100vh;
  width: 100%;
}

#header .header-content {
  height: 100vh;
  text-align: left;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.header-content h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #fff;
}

.header-content p {
  font-size: 13px;
  letter-spacing: 5px;
  margin-top: 0;
  margin-bottom: 30px;
  text-transform: capitalize;
  color: #fff;
  font-weight: 500;
}

.header-content .list-social li {
  float: left;
  margin-right: 20px;
}

.header-content .list-social li i {
  color: #fff;
  font-size: 15px;
}

/*-----------------------------------------------------------------------------------*/
/*  Aout-us
/*-----------------------------------------------------------------------------------*/

#about {
  width: 100%;
  height: auto;
  background: #f7f7f7;
  padding-top: 50px;
}

#about .div-img-bg {
  padding-bottom: 30px;
  border: 20px solid #b8a07e;
}

#about .div-img-bg .about-img img {
  width: 100%;
  box-shadow: 0px 0px 85px 0px rgba(0, 0, 0, 0.14);
  margin-top: -60px;
  margin-left: 40px;
  height: 400px;
  object-fit: cover;
}

#about .about-descr .p-heading {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  text-align: left;
}

#about .about-descr .separator {
  max-width: 80%;
  margin-bottom: 0;
  text-align: left;
}

/*-----------------------------------------------------------------------------------*/
/*   Services
/*-----------------------------------------------------------------------------------*/

#services {
  background: #f7f7f7;
  position: relative;
  padding-bottom: 80px;
}

.owl-item {
  float: left;
}
.services-block span {
  margin: 10px 0;
  position: relative;
  font-size: 13px;
  color: #292929;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
  display: block;
}

.services-block .separator {
  margin: 0;
  font-size: 13px;
  line-height: 22px;
}

.services-block i {
  font-size: 44px;
  color: #b8a07e;
  line-height: 44px;
}

.services-carousel .owl-stage-outer {
  overflow: hidden;
}

.services-carousel .owl-dots {
  margin-top: 5px;
  text-align: center;
}

.services-carousel .owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50%;
  border: 0;
  padding: 0 !important;
  background-color: #ddd;
  cursor: pointer;
}

.services-carousel .owl-dot.active {
  background-color: #b8a07e;
}

.owl-nav {
  display: none;
}

/*-----------------------------------------------------------------------------------*/
/*  Portfolio
/*-----------------------------------------------------------------------------------*/

#portfolio {
  position: relative;
  padding-bottom: 50px;
}

#portfolio .portfolio-list {
  margin-bottom: 50px;
}

#portfolio .portfolio-list .nav {
  display: inline-block;
  margin: 0;
}

#portfolio .portfolio-list .nav li {
  margin: 0 40px 0 0;
  float: left;
  font-size: 14px;
  color: #999999;
  line-height: 16px;
  cursor: pointer;
  font-family: "Poppins", helvetica;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  -moz-transition: all 0.5s ease-in-out 0s;
  -ms-transition: all 0.5s ease-in-out 0s;
  -o-transition: all 0.5s ease-in-out 0s;
  -webkit-transition: all 0.5s ease-in-out 0s;
  transition: all 0.5s ease-in-out 0s;
}

#portfolio .portfolio-list .nav li:hover,
#portfolio .portfolio-list .nav li.filter-active {
  color: #b8a07e;
  -moz-transition: all 0.5s ease-in-out 0s;
  -ms-transition: all 0.5s ease-in-out 0s;
  -o-transition: all 0.5s ease-in-out 0s;
  -webkit-transition: all 0.5s ease-in-out 0s;
  transition: all 0.5s ease-in-out 0s;
}

#portfolio .portfolio-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 50px;
  width: 100%;
  align-items: stretch;
  justify-content: flex-start;
}

.portfolio-container > .portfolio-thumbnail,
.portfolio-card,
.portfolio-card-link {
  box-sizing: border-box;
}

.portfolio-container > .portfolio-thumbnail {
  display: flex;
  flex: 0 0 calc((100% - 6.25rem) / 5);
  width: calc((100% - 6.25rem) / 5);
  max-width: calc((100% - 6.25rem) / 5);
  min-height: 0;
}

.portfolio-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.portfolio-card-link.active .portfolio-card {
  box-shadow: 0 0 0 3px rgba(33, 130, 95, 0.35);
}

.portfolio-card-link.active .portfolio-card::before {
  background: rgba(33, 130, 95, 1);
}

.portfolio-card {
  aspect-ratio: 1 / 1;
  width: 100%;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  background-color: #838383;
  background-image: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fondo específico para la card 'Brand' */
.portfolio-card.brand {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("../img/portfolio/brand/brand_thumb.jpeg");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #ffffff;
}

/* Fondo específico para la card 'Brand' */
.portfolio-card.brand {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("../img/portfolio/brand/brand_thumb.jpeg");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #ffffff;
}

/* Fondo específico para la card 'Print' */
.portfolio-card.print {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("../img/portfolio/print/print_thumb.jpeg");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #ffffff;
}

/* Fondo específico para la card 'Reportes/Balances' */
.portfolio-card.reportes {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("../img/portfolio/report/report_thumb.jpeg");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #ffffff;
}

/* Fondo específico para la card 'Ads' */
.portfolio-card.ads {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("../img/portfolio/ads/ads_thumb.jpeg");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #ffffff;
}

/* Fondo específico para la card 'activaciones' */
.portfolio-card.activaciones {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("../img/portfolio/activaciones/activaciones_thumb.jpeg");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #ffffff;
}

/* .portfolio-card.brand {
  background-color: #838383;
} */

.brand-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-top: 1.5rem;
  width: 100%;
  align-items: stretch;
}

.brand-gallery-item {
  cursor: pointer;
  display: block;
}

.brand-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.brand-gallery-item:focus-visible {
  outline: 2px solid #21825f;
  outline-offset: 4px;
}

.portfolio-gallery-modal .modal-dialog {
  max-width: min(95vw, 1400px);
  margin: 1.5rem auto;
}

.portfolio-gallery-modal .modal-content {
  background: transparent;
  border: 0;
  box-shadow: none;
  position: relative;
}

.portfolio-gallery-modal .modal-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 0;
}

.portfolio-gallery-modal .modal-body img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.portfolio-gallery-modal .modal-backdrop {
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
}

.portfolio-gallery-modal .modal-footer {
  display: none;
}

.portfolio-gallery-modal .gallery-close-btn {
  position: absolute;
  top: -22px;
  right: -12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 3;
  cursor: pointer;
}

.portfolio-gallery-modal .gallery-close-btn:hover {
  background: #fff;
}

.portfolio-gallery-modal .gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 2;
  cursor: pointer;
}

.portfolio-gallery-modal .gallery-nav-btn:hover {
  background: #fff;
}

.portfolio-gallery-modal .gallery-nav-btn.prev {
  left: -6px;
}

.portfolio-gallery-modal .gallery-nav-btn.next {
  right: -6px;
}

@media (max-width: 768px) {
  .portfolio-gallery-modal .modal-body {
    min-height: 70vh;
  }

  .portfolio-gallery-modal .modal-body img {
    max-height: 72vh;
  }

  .portfolio-gallery-modal .gallery-nav-btn {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}

.brand-gallery.print-two-per-row {
  /* two columns layout for print-specific gallery */
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 260px;
}

.brand-gallery.print-row-three {
  /* three columns layout for print-specific gallery */
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
}

.brand-gallery-item {
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #ffffff;
  border: 1px solid #e9e9e9;
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  height: 260px;
  overflow: hidden;
  position: relative;
}

.brand-gallery-item .carousel-inner,
.brand-gallery-item .carousel-item {
  height: 100%;
}

.brand-gallery-item .carousel-inner,
.brand-gallery-item .carousel-item,
.brand-gallery-item .carousel-item img {
  background-color: #ffffff;
}

.brand-gallery-item .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-gallery-item .carousel-control-prev,
.brand-gallery-item .carousel-control-next {
  width: 3rem;
}

.brand-gallery-item.width-small,
.brand-gallery-item.width-medium,
.brand-gallery-item.width-large,
.brand-gallery-item.width-xlarge {
  /* keep them as grid spans defined below */
}

/* Explicit widths for brand gallery items so they don't collapse */
.brand-gallery-item.width-small {
  grid-column: span 1;
}
.brand-gallery-item.width-medium {
  grid-column: span 2;
}
.brand-gallery-item.width-large {
  grid-column: span 3;
}
.brand-gallery-item.width-xlarge {
  grid-column: span 4;
}

@media (max-width: 1200px) {
  .brand-gallery-item {
    height: 220px;
  }
}

@media (max-width: 900px) {
  .brand-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .brand-gallery-item {
    height: 220px;
  }
}

.brand-gallery.print-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  grid-auto-rows: 260px; /* uniform row height */
  align-items: stretch;
}

.brand-gallery.print-layout .brand-gallery-item {
  height: 100%;
  aspect-ratio: unset !important;
}

.brand-gallery.print-layout .print-half {
  grid-column: span 1;
}

.brand-gallery.print-layout .print-three-quarter {
  grid-column: span 2;
}

.brand-gallery.print-layout .print-one-quarter {
  grid-column: span 1;
}

.print-with-margin {
  margin-left: 0.5rem;
}

.brand-gallery.print-layout .print-thirtyfive {
  grid-column: span 1;
}

.brand-gallery.print-layout .print-sixtyfive {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .brand-gallery {
    grid-template-columns: 1fr;
  }
  .brand-gallery-item {
    height: 180px;
  }
}

@media (max-width: 1200px) {
  .portfolio-container > .portfolio-thumbnail {
    flex: 0 0 calc((100% - 5rem) / 4);
    width: calc((100% - 5rem) / 4);
  }
}

@media (max-width: 900px) {
  .portfolio-container > .portfolio-thumbnail {
    flex: 0 0 calc((100% - 4rem) / 3);
    width: calc((100% - 4rem) / 3);
  }
}

@media (max-width: 700px) {
  .portfolio-container > .portfolio-thumbnail {
    flex: 0 0 calc((100% - 2.5rem) / 2);
    width: calc((100% - 2.5rem) / 2);
  }
}

@media (max-width: 520px) {
  .portfolio-container > .portfolio-thumbnail {
    flex: 0 0 100%;
    width: 100%;
  }
}

.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
}

.portfolio-card-link.active .portfolio-card::before {
  background: rgba(25, 136, 153, 0.5);
}

.portfolio-card .card-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.portfolio-card .card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.portfolio-detail {
  width: 100%;
  margin-top: 1.5rem;
  clear: both;
  position: relative;
  z-index: 1;
}

.portfolio-panel {
  display: none;
}

.portfolio-panel.active {
  display: block;
}

.portfolio-thumbnail {
  margin-bottom: 30px;
  overflow: hidden;
}

.portfolio-thumbnail img {
  max-width: 100%;
  padding: 16px;
}

/*-----------------------------------------------------------------------------------*/
/*  Journal
/*-----------------------------------------------------------------------------------*/

#journal,
#journal-blog {
  height: auto;
  width: 100%;
  background: #f7f7f7;
  padding-bottom: 60px;
  position: relative;
}

#journal-blog {
  background: #fff;
  padding-bottom: 30px;
}

#journal .journal-block {
  display: inline-block;
  height: auto;
  width: 100%;
}

#journal .journal-block .journal-info {
  position: relative;
}

.journal-block .journal-info img {
  max-width: 100%;
}

.journal-block .journal-info .journal-txt {
  padding: 25px 0px;
  position: relative;
}

.journal-block .journal-info .journal-txt h4 a {
  display: block;
  font-size: 19px;
  line-height: 24px;
  margin: 0 0 13px 0;
  font-weight: 500;
  color: #292929;
  -moz-transition: all 0.5s ease-in-out 0s;
  -ms-transition: all 0.5s ease-in-out 0s;
  -o-transition: all 0.5s ease-in-out 0s;
  -webkit-transition: all 0.5s ease-in-out 0s;
  transition: all 0.5s ease-in-out 0s;
}

.journal-block .journal-info .journal-txt h4 a:hover {
  color: #b8a07e;
  -moz-transition: all 0.5s ease-in-out 0s;
  -ms-transition: all 0.5s ease-in-out 0s;
  -o-transition: all 0.5s ease-in-out 0s;
  -webkit-transition: all 0.5s ease-in-out 0s;
  transition: all 0.5s ease-in-out 0s;
}

.journal-block .journal-info .journal-txt p {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
}

/*-----------------------------------------------------------------------------------*/
/*  Contact
/*-----------------------------------------------------------------------------------*/

#contact {
  height: auto;
  width: 100%;
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-details li {
  padding-bottom: 10px;
}

#contact input,
#contact textarea {
  width: 100%;
}

#contact #sendmessage {
  color: #18d26e;
  border: 1px solid #18d26e;
  display: none;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin: 15px;
}

#contact #errormessage {
  color: red;
  display: none;
  border: 1px solid red;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin: 15px;
}

#contact #sendmessage.show,
#contact #errormessage.show,
#contact .show {
  display: block;
}

#contact .validation {
  color: red;
  display: none;
  margin: 0 0 20px;
  font-weight: 400;
  font-size: 13px;
}

/*-----------------------------------------------------------------------------------*/
/*  Footer
/*-----------------------------------------------------------------------------------*/

#footer {
  background: #f7f7f7;
  padding-top: 50px;
  padding-bottom: 50px;
}

#footer .socials-media {
  width: 100%;
}

#footer .socials-media ul {
  display: inline-block;
  float: none;
  margin: 0 0 20px 0;
}

#footer .socials-media ul li {
  float: left;
  margin-left: 10px;
  margin-right: 10px;
}

#footer .socials-media ul li a {
  font-size: 24px;
  color: #999;
  letter-spacing: 0.1em;
  font-weight: 500;
  background: transparent;
  text-transform: uppercase;
  -moz-transition: all 0.5s ease-in-out 0s;
  -ms-transition: all 0.5s ease-in-out 0s;
  -o-transition: all 0.5s ease-in-out 0s;
  -webkit-transition: all 0.5s ease-in-out 0s;
  transition: all 0.5s ease-in-out 0s;
}

#footer .socials-media ul li a:hover {
  color: #b8a07e;
  -moz-transition: all 0.5s ease-in-out 0s;
  -ms-transition: all 0.5s ease-in-out 0s;
  -o-transition: all 0.5s ease-in-out 0s;
  -webkit-transition: all 0.5s ease-in-out 0s;
  transition: all 0.5s ease-in-out 0s;
}

#footer p {
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-top: 0;
  text-transform: uppercase;
}

.credits {
  font-size: 13px;
}

#book {
  background: #198899;
}

/* ==========================================================================
   Ajuste de altura específico para la galería de ADS
   ========================================================================== */

#portfolio-panel-ads .brand-gallery.print-layout {
  grid-auto-rows: 390px; /* Valor aumentado (el original es 260px) */
}

#portfolio-panel-ads .brand-gallery-item {
  height: 390px; /* Debe coincidir con el grid-auto-rows */
}

/* Ajustes responsive para pantallas medianas (Tablets/Laptops chicas) */
@media (max-width: 1200px) {
  #portfolio-panel-ads .brand-gallery.print-layout {
    grid-auto-rows: 300px;
  }
  #portfolio-panel-ads .brand-gallery-item {
    height: 300px;
  }
}

@media (max-width: 900px) {
  #portfolio-panel-ads .brand-gallery.print-layout {
    grid-auto-rows: 280px;
  }
  #portfolio-panel-ads .brand-gallery-item {
    height: 280px;
  }
}

/* Ajustes responsive para celulares */
@media (max-width: 600px) {
  #portfolio-panel-ads .brand-gallery.print-layout {
    grid-auto-rows: 220px;
  }
  #portfolio-panel-ads .brand-gallery-item {
    height: 220px;
  }
}

/* ==========================================================================
   Ajuste de altura y Layout (Flexbox) para la galería de ADS
   ========================================================================== */

#portfolio-panel-ads .brand-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem; /* Mantiene el mismo margen que las otras galerías */
}

#portfolio-panel-ads .brand-gallery-item {
  flex-grow: 1; /* Esto hace que el ítem se estire para rellenar el hueco */
  flex-shrink: 1;
  height: 340px; /* El alto aumentado que pediste */
  margin: 0 !important;
}

/* 
  Asignamos anchos base estratégicos para que la Fila 1 sume ~98% 
  (Dimatex 33% + Electr 20% + Cummins 45%). 
  Al sobrar 2%, Flexbox los estira automáticamente para llenar el 100%.
*/
#portfolio-panel-ads .brand-gallery-item.width-small {
  flex-basis: calc(20% - 0.5rem);
}
#portfolio-panel-ads .brand-gallery-item.width-medium {
  flex-basis: calc(33% - 0.5rem);
}
#portfolio-panel-ads .brand-gallery-item.width-large {
  flex-basis: calc(45% - 0.5rem);
}

/* Ajustes responsive para mantener el diseño en móviles y tablets */
@media (max-width: 1200px) {
  #portfolio-panel-ads .brand-gallery-item {
    height: 300px;
  }
}

@media (max-width: 900px) {
  #portfolio-panel-ads .brand-gallery-item {
    height: 280px;
    flex-basis: calc(50% - 0.5rem) !important; /* Fuerza 2 ítems por fila */
  }
}

@media (max-width: 600px) {
  #portfolio-panel-ads .brand-gallery-item {
    height: 220px;
    flex-basis: 100% !important; /* Fuerza 1 ítem por fila */
  }
}

/* ==========================================================================
   Corrección definitiva para agrandar las cards principales del Portfolio
   ========================================================================== */

.portfolio-container {
  position: relative !important;
  height: auto !important; /* Libera la altura fija para que se adapte */
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
}

.portfolio-container .portfolio-thumbnail {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  /* 5 columnas restando los 4 espacios de 15px (4 * 15 = 60 / 5 = 12px por elemento) */
  width: calc(20% - 12px) !important;
  aspect-ratio: 1 / 1 !important; /* Las hace cuadradas */
}

.portfolio-container .portfolio-thumbnail .portfolio-card-link,
.portfolio-container .portfolio-thumbnail .portfolio-card {
  width: 100% !important;
  height: 100% !important;
}

/* Responsivo para tablets y celulares */
@media (max-width: 992px) {
  .portfolio-container .portfolio-thumbnail {
    width: calc(33.333% - 10px) !important;
  }
}

@media (max-width: 576px) {
  .portfolio-container .portfolio-thumbnail {
    width: calc(50% - 8px) !important;
  }
}

/* ==========================================================================
   Corrección para visualización de logos en SVG
   ========================================================================== */

.navbar-brand img {
  min-height: 45px !important; /* Ajustá este valor si querés que se vea más grande o más chico */

  max-height: 55px !important; /* Ajustá este valor si querés que se vea más grande o más chico */
  width: auto !important;
}
