/* =========================================================
   PRODUCTOS - SAN GABRIEL
   ========================================================= */

/* =========================================================
   HERO DE PÁGINA
   ========================================================= */

.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(18, 67, 42, 0.78), rgba(18, 67, 42, 0.78)),
    url("../../assets/img/inicio/slider-02.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 45, 28, 0.35), transparent);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-hero-subtitle {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d9ef3f;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 800;
}

.page-hero p {
  max-width: 650px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

/* =========================================================
   INTRODUCCIÓN
   ========================================================= */

.products-intro {
  padding: 90px 0 45px;
  background: #ffffff;
}

.products-intro .section-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.section-tag {
  display: inline-block;
  margin-bottom: 12px;
  color: #4d8c35;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.products-intro h2 {
  margin: 0 0 18px;
  color: #173d2a;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.products-intro p {
  margin: 0;
  color: #68746d;
  font-size: 17px;
  line-height: 1.8;
}

/* =========================================================
   CONTENEDOR PRINCIPAL
   ========================================================= */

.products-list {
  overflow: hidden;
}

/* =========================================================
   CATEGORÍA
   ========================================================= */

.product-category {
  padding: 85px 0;
  background: #ffffff;
}

.product-category-alt {
  background: #f5f8f4;
}

.category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 55px;
  align-items: stretch;
}

/* =========================================================
   IMAGEN DE CATEGORÍA
   ========================================================= */

.category-image {
  position: relative;
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  background: #dfe8df;
  box-shadow: 0 18px 45px rgba(23, 61, 42, 0.12);
}

.category-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 38, 23, 0.82),
    rgba(8, 38, 23, 0.05) 65%
  );
  pointer-events: none;
}

.category-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.category-image:hover img {
  transform: scale(1.04);
}

.category-image-caption {
  position: absolute;
  left: 35px;
  right: 35px;
  bottom: 32px;
  z-index: 2;
  color: #ffffff;
}

.category-image-caption > span {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d9ef3f;
  color: #173d2a;
  font-size: 20px;
}

.category-image-caption h2 {
  margin: 0 0 7px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
}

.category-image-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

/* =========================================================
   CONTENEDOR DEL LISTADO
   ========================================================= */

.category-products {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.category-number {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #173d2a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.category-header h3 {
  margin: 0 0 4px;
  color: #173d2a;
  font-size: 30px;
  line-height: 1.2;
}

.category-header p {
  margin: 0;
  color: #7a857e;
  font-size: 14px;
}

/* =========================================================
   LISTA CON SCROLL
   ========================================================= */

.products-scroll {
  height: 390px;
  padding: 8px 14px 8px 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #4d8c35 #e9eee9;
}

/* Chrome / Edge / Safari */

.products-scroll::-webkit-scrollbar {
  width: 7px;
}

.products-scroll::-webkit-scrollbar-track {
  background: #e9eee9;
  border-radius: 20px;
}

.products-scroll::-webkit-scrollbar-thumb {
  background: #4d8c35;
  border-radius: 20px;
}

.products-scroll::-webkit-scrollbar-thumb:hover {
  background: #376c27;
}

/* =========================================================
   LISTADO DE PRODUCTOS
   ========================================================= */

.product-name-list {
  margin: 0;
  padding: 0;
  list-style: none;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.product-name-list li {
  position: relative;
  min-height: 48px;
  padding: 13px 15px 13px 37px;

  display: flex;
  align-items: center;

  border: 1px solid #e5ebe5;
  border-radius: 10px;

  background: #ffffff;

  color: #34463b;
  font-size: 14px;
  line-height: 1.4;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.product-name-list li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);

  border-radius: 50%;
  background: #7cae36;
}

.product-name-list li:hover {
  transform: translateY(-2px);
  border-color: #bdd2b8;
  background: #f9fbf8;
  box-shadow: 0 6px 18px rgba(23, 61, 42, 0.08);
}

/* =========================================================
   ALTERNANCIA VISUAL
   ========================================================= */

.product-category-alt .category-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* =========================================================
   CTA
   ========================================================= */

.products-cta {
  padding: 80px 0;
  background: linear-gradient(120deg, #173d2a, #275f3e);
}

.products-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 45px 55px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
}

.products-cta .section-tag {
  color: #d9ef3f;
}

.products-cta h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.products-cta p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.7;
}

/* =========================================================
   BOTÓN WHATSAPP
   ========================================================= */

.btn-whatsapp {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 15px 24px;
  border-radius: 10px;

  background: #25d366;
  color: #ffffff;

  font-size: 15px;
  font-weight: 700;
  text-decoration: none;

  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.22);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp i {
  font-size: 20px;
}

/* =========================================================
   ANIMACIONES
   ========================================================= */

.scroll-animation {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.scroll-animation.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 992px) {
  .page-hero {
    min-height: 320px;
  }

  .product-category {
    padding: 70px 0;
  }

  .category-layout {
    gap: 35px;
  }

  .category-image,
  .category-image img {
    min-height: 470px;
  }

  .products-scroll {
    height: 360px;
  }

  .products-cta-content {
    padding: 40px;
  }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 768px) {
  .page-hero {
    min-height: 300px;
  }

  .page-hero-content {
    padding-top: 45px;
    padding-bottom: 45px;
  }

  .page-hero h1 {
    font-size: 40px;
  }

  .page-hero p {
    font-size: 16px;
  }

  .products-intro {
    padding: 65px 0 30px;
  }

  .products-intro p {
    font-size: 16px;
  }

  .product-category {
    padding: 55px 0;
  }

  .category-layout,
  .product-category-alt .category-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .category-image,
  .category-image img {
    min-height: 360px;
  }

  .category-image-caption {
    left: 25px;
    right: 25px;
    bottom: 25px;
  }

  .category-image-caption h2 {
    font-size: 30px;
  }

  .category-header h3 {
    font-size: 26px;
  }

  .products-scroll {
    height: 340px;
    padding-right: 8px;
  }

  .product-name-list {
    grid-template-columns: 1fr;
  }

  .products-cta {
    padding: 60px 0;
  }

  .products-cta-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 25px;
  }

  .btn-whatsapp {
    width: 100%;
  }
}

/* =========================================================
   MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {
  .page-hero {
    min-height: 270px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .page-hero p {
    font-size: 15px;
  }

  .category-image,
  .category-image img {
    min-height: 300px;
  }

  .category-image-caption h2 {
    font-size: 27px;
  }

  .category-number {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .category-header {
    gap: 13px;
  }

  .category-header h3 {
    font-size: 24px;
  }

  .product-name-list li {
    font-size: 14px;
  }

  .products-scroll {
    height: 320px;
  }
}
