/* ==================================================
   NATURAL COLORS SECTION
================================================== */

.colors-section {
  position: relative;
  padding: 65px 20px 60px;
  text-align: center;
  background:
    linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
    url("../images/b1.jpeg") center / cover no-repeat;
}

.colors-title {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 40px;
  letter-spacing: 1px;
}


/* ==================================================
   COLORS GRID
================================================== */

.colors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 1000px) {
  .colors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .colors-grid {
    grid-template-columns: 1fr;
  }

  .colors-title {
    font-size: 2.2rem;
  }
}


/* ==================================================
   PRODUCT LINK RESET
================================================== */

.product-link,
.product-link:link,
.product-link:visited,
.product-link:hover,
.product-link:active,
.product-link:focus {
  text-decoration: none;
  color: inherit;
  display: block;
  outline: none;
}

.product-link:focus-visible .color-card {
  outline: 2px solid #306f1b;
  outline-offset: 4px;
}


/* ==================================================
   COLOR CARD
================================================== */

.color-card {
  background: #ffffff;
  border-radius: 7px;
  padding: 15px 15px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-link:hover .color-card {
  transform: translateY(-6px);
}

.color-card img {
  width: 100%;
  height: auto;              /* 🔥 clave */
  aspect-ratio: 4 / 5;       /* proporción elegante */
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
}


.color-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 6px;
}

.see-more {
  margin-top: 2px;
  font-size: 12px;
  color: #306f1b;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-link:hover .see-more {
  text-decoration: underline;
}


/* ==================================================
   PRODUCT PAGE
================================================== */

.product-page {
  display: block;
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 16px 20px 0;
  font-family: 'Work Sans', Helvetica, Arial, Lucida, sans-serif;
}

.product-page * {
  box-sizing: border-box;
}

.product-page h1 {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #3d3d3d;
  margin-bottom: 40px;
}


/* ==================================================
   PRODUCT LAYOUT
================================================== */

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-image {
  display: flex;
  justify-content: center;
}

.product-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

#productTitle {
  margin: 0 0 24px;
  color: #2f6f3e;
  font-weight: 700;
}

.product-info {
  border: 1px solid #ddd;
  padding: 30px;
  display: flex;
  flex-direction: column;
}


/* ==================================================
   PRODUCT SELECTOR
================================================== */

.product-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.product-selector button {
  background: #fff;
  border: 1px solid #ccc;
  padding: 12px 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-selector button:hover {
  background: #306f1b;   /* verde */
  color: #ffffff;        /* texto blanco */
  border-color: #306f1b; /* opcional: borde verde */
}

.product-selector button.active {
  background: #306f1b;
  color: #ffffff;
  border-color: #306f1b;
  font-weight: 600;
}


/* ==================================================
   PRODUCT SPECS
================================================== */

.product-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid #e2e2e2;
  margin: 15px 0 15px;
}

.product-specs div {
  padding: 14px 8px;
  text-align: center;
  border-right: 1px solid #e2e2e2;
}

.product-specs div:last-child {
  border-right: none;
}

.product-specs span {
  display: block;
  font-size: 13px;
  color: #777;
  margin-bottom: 2px;
}

.product-specs strong {
  font-size: 15px;
  font-weight: 600;
  color: #2f6f3e;
}


/* ==================================================
   CONTACT BUTTON
================================================== */

.contact-btn,
.contact-btn:link,
.contact-btn:visited {
  display: inline-block;
  background: #306f1b;
  color: #fff;
  text-decoration: none;   /* elimina subrayado */
  border: none;
  padding: 14px 26px;
  border-radius: 30px;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  align-self: center;
  margin-top: 10px;
}

.contact-btn:hover {
  opacity: 0.85;
}

/* ==================================================
   RELATED PRODUCTS
================================================== */

.related-products {
  margin: 40px auto;
  max-width: 1200px;
  width: 100%;
  padding: 0;
}

.related-products h2 {
  text-align: left;
  margin-left: 80px;
  margin-bottom: 40px;
}

.related-products .colors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.related-card img {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 20px;
  display: block;
}

.related-card h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

.related-card a {
  display: inline-block;
  background: #306f1b;
  color: #fff;
  padding: 10px 26px;
  border-radius: 30px;
  font-size: 13px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.related-card a:hover {
  opacity: 0.85;
}


/* RESPONSIVE RELATED */

@media (max-width: 900px) {
  .related-products .colors-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }
}

@media (max-width: 900px) {

  .product-layout {
    grid-template-columns: 1fr;   /* 🔥 una sola columna */
    gap: 30px;
  }

  .product-image img {
    max-width: 300px;
  }

}
