.product-seo-guide,
.product-faq,
.related-products {
    margin-top: 32px;
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid #e3e7ee;
    border-radius: 22px;
    background: #fff;
}

.product-guide-grid,
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.product-guide-grid article,
.related-product-card {
    padding: 18px;
    border: 1px solid #e8eaf0;
    border-radius: 16px;
    background: #f8f9fb;
}

.product-guide-grid h3,
.related-product-card strong {
    display: block;
    margin: 0 0 8px;
    color: #111827;
}

.product-guide-grid p,
.related-product-card span,
.product-faq p {
    color: #5b6475;
    line-height: 1.65;
}

.product-faq details {
    padding: 16px 0;
    border-bottom: 1px solid #e8eaf0;
}

.product-faq details:last-child { border-bottom: 0; }
.product-faq summary { cursor: pointer; font-weight: 700; }
.related-product-card { color: inherit; text-decoration: none; }
.related-product-card:hover { border-color: #c69a19; transform: translateY(-2px); }
.related-product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 12px; margin-bottom: 16px; }
.related-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .related-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.related-product-card b { display: block; margin-top: 14px; color: #98720d; }
.product-card-clickable { position: relative; transition: transform .18s ease, box-shadow .18s ease; }
.product-card-clickable .product-body,
.product-card-clickable .product-title { position: static; }
.product-card-clickable:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #11182718; }
.product-card-clickable .product-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.product-card-clickable .product-image,
.product-card-clickable button { position: relative; z-index: 2; }
.product-card-clickable .product-title a:focus-visible::after { outline: 3px solid #c69a19; outline-offset: 3px; }
.variant-picker { border: 0; padding: 0; margin: 22px 0; min-width: 0; }
.variant-picker legend { font-weight: 700; margin-bottom: 12px; }
.variant-fallback { width: 100%; }
.variant-buttons { display: none; }
.variant-picker.is-enhanced .variant-fallback { display: none; }
.variant-picker.is-enhanced .variant-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.variant-choice { position: relative; cursor: pointer; }
.variant-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.variant-choice span { display: flex; flex-direction: column; height: 100%; gap: 10px; padding: 18px; border: 2px solid #e3e7ee; border-radius: 14px; background: #fff; }
.variant-choice small { font-size: 15px; color: #98720d; }
.variant-choice input:checked + span { border-color: #c69a19; background: #fff9e7; }
.variant-choice input:checked + span::after { content: '✓ Seleccionada'; color: #98720d; font-size: 12px; font-weight: 700; }
.variant-choice input:focus-visible + span { outline: 3px solid #111827; outline-offset: 3px; }

@media (max-width: 760px) {
    .product-guide-grid,
    .related-products-grid { grid-template-columns: 1fr; }
}

/* Product page media frame: stable proportions across every product image. */
@media (min-width: 851px) {
    .product-page .product-detail {
        grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
        gap: clamp(32px, 4vw, 56px);
        align-items: start;
    }
}

.product-page .product-gallery {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
    align-self: start;
    overflow: hidden;
    padding: clamp(24px, 4vw, 52px);
    box-sizing: border-box;
}

.product-page .product-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 420px;
    max-height: 420px;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 850px) {
    .product-page .product-gallery {
        max-width: 560px;
        margin-inline: auto;
        padding: clamp(22px, 8vw, 44px);
    }
}


/* 2026-09-29: mobile hero containment */
@media (max-width:680px){
  .hero-container,.hero-content{min-width:0}
  .hero-content{width:100%;max-width:100%}
  .hero h1,.hero h1 span{max-width:100%;overflow-wrap:anywhere;word-break:normal}
  .hero-buttons{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-buttons .btn{min-width:0;white-space:normal}
}
@media (max-width:430px){
  .hero h1{font-size:clamp(2.2rem,11.5vw,2.8rem);line-height:.98}
  .hero-buttons{grid-template-columns:1fr}
}
