body {
  background-color: #ffffff;
}

.oportunities-section {
  background: url('/static/media/images/pelarigo-maquinas-group.png') center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  height: 100vh;
  margin: 0;
  z-index: 2;
}

.oportunities-section .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 1rem;
  z-index: 2;
}

.oportunities-section .hero-content .animated-hr {
  margin: 0 auto 1rem;
}

.oportunities-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
  font-size: 2rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeDown 1.5s ease;
  display: block;
}


.hero-content h2 {
  font-size: 1.3rem;
}

.hero-content p {
  font-size: 1rem;
  color: #eee;
  animation: fadeUp 1.5s ease;
}

.right-container-wrapper {
  overflow: hidden;
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  bottom: 0;
  width: 100dvw;
  height: 20dvh;
  background-image: linear-gradient(135deg, rgb(206, 74, 13), rgb(255, 140, 66));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px 50px 0 0;
  will-change: width, height, transform;
  transition:
    width 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.right-container-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  transform: translateY(18px) scale(0.98);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.right-container-content .show {
  font-size: 1.3rem;
}

.right-container-content .hide {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-lead-btn {
  margin: 10px 0;
  padding: 10px 18px;
  border-radius: 8px;
  background-color: #ffffff;
  color: #ce4a0d;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.error {
  margin: 0;
  padding: 1rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 100%;
  height: 50dvh !important;
}

.error p {
  font-size: 1rem;
  text-align: center;
}

.bread-filters-wrapper {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: start;
  padding: 2rem 1rem;
  width: 100%;
  gap: 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 15px 10px;
  font-size: 14px;
  width: 100%;
  background: #fff;
}

.breadcrumbs a {
  text-decoration: none;
  text-transform: uppercase;
  color: #444;
}


/* Page Layout */
.marketplace-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 1rem;
  overflow-x: hidden;
  padding: 1rem;

}


/* Filters */
.filters {
  width: 100%;
  background: #f3f3f3;
  padding: 20px;
  border-radius: 8px;
  margin-right: 20px;
}

.filters h3 {
  margin-bottom: 15px;
}

.filters label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.filters input,
.filters select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
}

.checkbox-group label {
  font-weight: normal;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
}

.checkbox-group label .estado {
  width: min-content;
}

.filters button {
  margin-top: 20px;
  width: 100%;
  padding: 10px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

/* Products */
main {
  flex: 1;
}

#resultCount {
  font-size: 1rem;
  color: #333;
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;

}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.349);
  will-change: transform;
  transition: transform 0.3s ease;
  cursor: pointer;
  max-width: 100%;
}

.product-card img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  background-color: #44444471;
}

.product-card button {
  border: 2px solid black;
  background-color: #ffffff;
  padding: 12px;
  border-radius: 6px;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  cursor: pointer;
  color: #111;
  transition: all 0.3s ease-in-out;
}

.product-card button:hover {
  transform: scale(1.05);
  background-color: #333;
  color: #ffffff;
}

.product-info {
  padding: 15px;
}

.product-info h4 {
  font-size: 18px;
  margin-bottom: 15px;
  text-transform: uppercase;

}

.product-info p {
  font-size: 14px;
  margin-bottom: 5px;
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== PRODUCT MODAL ===== */
.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 90%;
  background: #f1f1f1;
  border-radius: 12px;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 1000;
  padding: 25px;
  opacity: 0;
  transition: all 1s ease;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  margin: auto;
  padding: 2.5em 0;
  overflow-x: visible;
}

.product-modal .animated-hr {
  background: linear-gradient(to right,
      rgba(206, 74, 13, 0) 0%,
      var(--primary-color) 20%,
      var(--primary-color) 80%,
      rgba(250, 146, 81, 0) 100%);

  width: 100%;
}

.modal-overlay.active+.product-modal {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


/* ----- Photo Section ----- */
.product__photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.photo-container {
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  gap: 1rem;
  margin: auto;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.photo-main {
  border-radius: 6px 6px 0 0;
  max-height: 300px;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-main img {
  max-width: 100%;
  border-radius: 12px;
  height: auto;
  width: auto;
}

.photo-album {
  display: flex;
  flex-direction: row;
  padding: 0.7em 1em;
  border-radius: 0 0 6px 6px;
  justify-content: center;
  width: 20%;
  z-index: 10;

}

.photo-album hr {
  display: none;
}


.photo-album ul {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  list-style: none;
}

.photo-album li {
  width: 60px;
  height: auto;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.photo-album li img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #a6a6a6;
  border-radius: 3px;
  transition: transform 0.3s ease, border 0.3s ease;
}

.photo-album li:hover img {
  transform: scale(1.02);
  border: 1px solid #ff0000;
}

/* ----- Informations Section ----- */
.product__info {
  padding: 1rem;
  padding-bottom: 5rem;
  margin: 1em 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  isolation: isolate;
  text-align: center;
  height: 100%;
}

.product__info::-webkit-scrollbar {
  width: 6px;
}

.product__info::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 5px;
}

.product__info::-webkit-scrollbar-track {
  background: #f0f0f0;
}


.product__info .stamp {
  display: none;

}

.product__info .title {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.product__info .top {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}


.title h2 {
  color: #4c4c4c;
  font-size: 1.5rem;
  font-weight: 900;
}

.description {
  clear: left;
  margin: 2em 0;
}

.description h3,
.specs h3 {
  font-size: 1rem;
  margin-bottom: 1em;
  text-decoration: underline;
}

.description ul {
  font-size: 0.8em;
  list-style: none;
  padding: 0;
}

.description li {
  margin-bottom: 0.5em;
}

.description li p {
  font-size: 1rem;
}

.specs ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  list-style: none;
  text-align: left;
  line-height: 50px;
}

.product-modal .cta-button {
  padding: 5px 10px;
  border: none;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  margin: 0;
  color: #fff;
  background-color: var(--secondary-color);
  box-shadow: 2px 2px 25px -7px #4c4c4c;
  cursor: pointer;
  will-change: transform;
  transition: all 0.3s ease;

}

.product-modal .cta-button:hover {
  transform: scale(1.05);
  background-color: var(--primary-color);
}

.close-modal-btn {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ffffff;
  color: var(--primary-color);
  padding: 12px 20px;
  border: none;
  font-weight: 900;
  border-radius: 0 12px 0;
  transition: all 0.3s ease;
}

.close-modal-btn:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Button */
.contact-btn {
  margin-top: 15px;
  background: #111;
  color: #fff;
  padding: 12px;
  border: none;
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
}

/* Close Button */
.modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 30px;
  border: none;
  background: none;
  cursor: pointer;
}

/* CTA */
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #ce4a0d, #ff8c42);
  color: #fff;
  text-align: center;
  height: 40vh;
}

.cta-section h2 {
  font-size: 1.5rem;
}

.cta-section p {
  font-size: 1.2rem;
}

.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.8rem;
  background: #fff;
  border: none;
  color: #ce4a0d;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}


@media (max-width: 900px) {

  .products-section .products-grid {
    width: 100%;
  }
}


@media (min-width: 480px) {}

/* ----------- Tablets (768px–1200px) ----------- */
@media (min-width: 768px) {

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 2rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-section p {
    font-size: 1.6rem;
  }

  .right-container-wrapper {
    width: 30dvw;
    height: 20dvh;
  }



  .right-container-wrapper:hover {
    width: 40dvw;
    height: 30dvh;
    transform: translateX(50%);
  }

  .right-container-wrapper:hover .right-container-content {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .right-container-wrapper:hover .right-container-content .hide,
  .right-container-wrapper:hover .right-container-content .hero-lead-btn {
    opacity: 1;
    transform: translateY(0);
  }

  .marketplace-container {
    flex-direction: row;
  }

  .filters {
    width: 30%;
  }

  #resultCount {
    text-align: left;
  }

  .product-modal {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
  }

  .photo-container {
    left: -2rem;
    background-color: #b4b4b486;
    box-shadow: 4px 4px 25px -2px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(5px);

  }

  .product__info {
    padding-right: 2rem;
    text-align: left;
  }

  .photo-container {
    flex-direction: column;
  }

  .photo-main{
    max-height: 400px;
    max-width: 400px;
    margin-top: 2rem;
  }

  .photo-album {
    flex-direction: column;
    width: 100%;
  }

  .photo-album hr {
    display: block;
  }

  .photo-album ul {
    flex-direction: row;
  }

  .product__info .stamp {
    display: block;
    position: absolute;
    text-transform: uppercase;
    top: 15%;
    left: 5%;
    font-size: 20em;
    transform: rotate(-20deg);
    font-weight: 800;
    font-style: italic;
    color: var(--primary-color);
    opacity: 0.1;
    z-index: -1;
    backdrop-filter: blur(5px);

  }



  .product-modal .cta-button {
    padding: 12px 17px;
  }


}

/* ----------- Desktop (1200px–1600px) ----------- */
@media (min-width: 1200px) {

  .bread-filters-wrapper {
    padding: 2rem 4rem;
  }

  .right-container-content {
    transform: translateY(40px);
  }

  .right-container-wrapper {
    width: 30dvw;
    height: 10dvh;
  }

  .hero-lead-btn {
    opacity: 0;
    transform: translateY(500px);
    transition: transform 0.5s ease-in-out, opacity 0.8s ease-in;
  }


  .hero-lead-btn:hover {
    background-color: #ce4a0d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);

  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-section p {
    font-size: 1.3rem;
    letter-spacing: 2px;
  }

  .cta-button:hover {
    background: #ce4a0d;
    color: #fff;
  }

  .product-card:hover {
    transform: scale(1.05);
  }

  .marketplace-container {
    padding: 3rem;
  }
}

/* ----------- Large Desktop (1600px+) ----------- */
@media (min-width: 1600px) {

  .right-container-wrapper {
    width: 20dvw;
    height: 6dvh;
  }

  .right-container-content {
    transform: translateY(50px);
  }

  .right-container-wrapper:hover {
    width: 30dvw;
    height: 20dvh;
    transform: translateX(50%);
  }

  .cta-section h2 {
    font-size: 2.5rem;
  }

  .cta-section p {
    font-size: 1.7rem;
    letter-spacing: 2px;
  }

  .photo-main{
    max-height: 100%;
    max-width: 100%;
  }
}