/**
 * Gold Masters — Cano-inspired homepage polish (Elementor + WooCommerce)
 * Targets page front (#inicio, #colecciones, #mas-vendido, #historia, #visita)
 */

.elementor-page-12 {
  --gm-home-pad: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Hero (split like Cano) ---------- */
#inicio .elementor-container {
  align-items: center !important;
  gap: clamp(1.5rem, 4vw, 3rem) !important;
}

#inicio .elementor-widget-image img,
#inicio .elementor-widget-image a img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #ebe8e1;
}

.gm-home-hero-brand .elementor-heading-title {
  margin: 0 0 0.65rem !important;
  letter-spacing: 0.12em !important;
  line-height: 1.05 !important;
}

.gm-home-hero-body {
  max-width: 34rem;
}

.gm-home-hero-body p {
  margin: 0 0 1.35rem !important;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.7;
  color: #2a241e;
}

#inicio .gm-home-cta-primary .elementor-button {
  min-width: 11rem;
  border-radius: 0 !important;
  padding: 0.85rem 1.4rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}

#inicio .gm-home-cta-primary .elementor-button:hover {
  background: #b8953d !important;
  color: #14110e !important;
}

#inicio .gm-home-cta-ghost .elementor-button {
  border-radius: 0 !important;
  padding: 0.55rem 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#inicio .gm-home-cta-ghost .elementor-button:hover {
  color: #8a6d28 !important;
  border-color: #8a6d28 !important;
}

@media (max-width: 767px) {
  #inicio .elementor-container {
    flex-direction: column-reverse !important;
  }

  .gm-home-hero-brand .elementor-heading-title {
    font-size: clamp(2.25rem, 11vw, 3rem) !important;
    text-align: left !important;
  }
}

/* ---------- Trust strip ---------- */
#confianza .elementor-heading-title {
  letter-spacing: 0.08em;
  font-weight: 500 !important;
}

/* ---------- Collections ---------- */
#colecciones .elementor-heading-title {
  margin: 0.35rem 0 0.5rem !important;
}

#colecciones + .elementor-section .elementor-widget-image img,
.gm-home-cat-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #ebe8e1;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gm-home-cat-img a {
  display: block;
  overflow: hidden;
}

.gm-home-cat-img a:hover img {
  transform: scale(1.04);
}

#colecciones + .elementor-section .elementor-heading-title {
  margin: 0.85rem 0 0.35rem !important;
}

#colecciones + .elementor-section .elementor-button {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.25rem 0 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em;
}

#colecciones + .elementor-section .elementor-button:hover {
  color: #8a6d28 !important;
}

/* ---------- Featured Woo products ---------- */
#mas-vendido .elementor-heading-title {
  margin: 0.35rem 0 0.5rem !important;
}

#mas-vendido .woocommerce ul.products,
#mas-vendido ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.35rem 0.85rem !important;
  margin: 1.75rem 0 1.5rem !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
}

@media (min-width: 768px) {
  #mas-vendido .woocommerce ul.products,
  #mas-vendido ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.85rem 1.25rem !important;
  }
}

#mas-vendido .woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

#mas-vendido .gm-product-card__media {
  aspect-ratio: 4 / 5;
  background: #ebe8e1;
  overflow: hidden;
}

#mas-vendido .gm-product-card__media img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

#mas-vendido .woocommerce ul.products li.product:hover .gm-product-card__media img {
  transform: scale(1.03);
}

#mas-vendido .elementor-widget-button .elementor-button {
  border-radius: 0 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem !important;
  padding: 0.85rem 1.5rem !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}

#mas-vendido .elementor-widget-button .elementor-button:hover {
  background: #14110e !important;
  color: #f7f6f3 !important;
}

/* ---------- Story ---------- */
#historia .elementor-container {
  align-items: center !important;
  gap: clamp(1.5rem, 4vw, 3rem) !important;
}

#historia .elementor-widget-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #ebe8e1;
}

#historia .elementor-heading-title {
  margin: 0.35rem 0 0.85rem !important;
  line-height: 1.15 !important;
}

#historia .elementor-button {
  border-radius: 0 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem !important;
  padding: 0.85rem 1.4rem !important;
}

@media (max-width: 767px) {
  #historia .elementor-container {
    flex-direction: column !important;
  }
}

/* ---------- Visit CTA ---------- */
#visita .elementor-heading-title {
  margin: 0 0 0.5rem !important;
}

#visita .elementor-button {
  border-radius: 0 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem !important;
  padding: 0.85rem 1.5rem !important;
}

#visita .elementor-button:hover {
  background: #d4b45a !important;
}

/* Subtle entrance presence */
@keyframes gm-home-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  #inicio .gm-home-hero-brand,
  #inicio .gm-home-hero-body,
  #inicio .gm-home-cta-primary,
  #inicio .gm-home-cta-ghost {
    animation: gm-home-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  #inicio .gm-home-hero-body {
    animation-delay: 0.08s;
  }

  #inicio .gm-home-cta-primary {
    animation-delay: 0.16s;
  }

  #inicio .gm-home-cta-ghost {
    animation-delay: 0.22s;
  }

  #colecciones + .elementor-section .elementor-column {
    animation: gm-home-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  #colecciones + .elementor-section .elementor-column:nth-child(2) {
    animation-delay: 0.06s;
  }

  #colecciones + .elementor-section .elementor-column:nth-child(3) {
    animation-delay: 0.12s;
  }

  #colecciones + .elementor-section .elementor-column:nth-child(4) {
    animation-delay: 0.18s;
  }
}
