/* ==========================================================================
   Página de producto (0.13)
   Arriba la compra, luego la historia del producto como una revista de cine:
   vitrina, datos, índice fijo y secciones con datos de la ficha de Controlfy.
   ========================================================================== */

.single-product div.product > .pd,
.single-product div.product > .related,
.single-product div.product > .cf-bt,
.single-product div.product > .upsells { grid-column: 1 / -1; }
.single-product div.product { padding-top: 20px; }
.product_title { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -.005em; font-stretch: 112%; text-transform: none; }
.product-cats { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.product-cats a { color: inherit; text-decoration: none; }
.pd-anchor { display: block; position: relative; top: calc(-1 * var(--header-h) - 20px); }

.pd { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px); margin-top: clamp(40px, 5vw, 72px); }
.pd-kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.pd-kicker span { width: 36px; height: 1px; background: var(--paint); }
.pd-head { margin-bottom: 28px; }
.pd-sec { scroll-margin-top: calc(var(--header-h) + 80px); }

/* vitrina de cine */
.pd-show { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 32px; min-height: 460px; padding: clamp(32px, 5vw, 72px); border-radius: 30px; overflow: hidden; background: radial-gradient(60% 80% at 80% 40%, rgba(255,255,255,.1), rgba(255,255,255,0) 60%), linear-gradient(160deg, #1C1F24 0%, #0B0C0E 70%); color: #F4F4F2; }
.pd-show.has-media { grid-template-columns: minmax(0, 1fr); min-height: 520px; }
.pd-show__media { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.pd-show.has-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,8,10,.9) 0%, rgba(7,8,10,.55) 55%, rgba(7,8,10,.1) 100%); }
.pd-show__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 560px; }
.pd-show__copy .display { font-size: clamp(34px, 4.4vw, 64px); line-height: .98; text-transform: none; letter-spacing: -.015em; }
.pd-show__copy .lead { color: #C3C8CE; }
.pd-show__stage { position: relative; order: 2; display: grid; place-items: center; height: 100%; min-height: 320px; }
.pd-show__stage .hero__light { top: -20%; width: 110%; }
.pd-show__stage img { position: relative; max-height: 380px; width: auto; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(0,0,0,.6)); }
.pd-show .pd-kicker { color: #9AA0A7; }

/* datos destacados */
.pd-stats { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 0; border-radius: 24px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); }
.pd-stats li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 28px 18px; text-align: center; }
.pd-stats li + li { border-left: 1px solid var(--hair); }
.pd-stats b { font-size: clamp(24px, 2.4vw, 36px); font-weight: 700; font-stretch: 115%; line-height: 1.05; }
.pd-stats span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* índice fijo */
.pd-nav { position: sticky; top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px) + 6px); z-index: 20; display: flex; justify-content: center; gap: 4px; align-self: center; max-width: 100%; margin-bottom: -40px; padding: 6px; border-radius: 99px; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 0 0 1px var(--hair), 0 14px 30px -20px rgba(11,12,14,.4); overflow-x: auto; scrollbar-width: none; }
.pd-nav::-webkit-scrollbar { display: none; }
.pd-nav a { flex-shrink: 0; padding: 10px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.pd-nav a:hover { color: var(--ink); background: var(--raised); }
.pd-nav a.is-on { background: var(--ink); color: #fff; }

/* descripción */
.pd-desc__body { max-width: 72ch; font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.pd-desc__body > p:first-child::first-letter { float: left; margin: 6px 12px 0 0; font-size: 64px; line-height: .8; font-weight: 700; font-stretch: 125%; color: var(--ink); }

/* ficha técnica por grupos */
.pd-ficha { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.pd-ficha__g { padding: 22px 22px 10px; border-radius: 22px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); }
.pd-ficha__t { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--paint-text); }
.pd-ficha dl { margin: 0; }
.pd-ficha dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--hair); }
.pd-ficha dl > div:first-child { border-top: 0; }
.pd-ficha dt { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.pd-ficha dt .ficha-i { flex-shrink: 0; color: var(--ink); }
.pd-ficha dd { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); }

/* cómo se aplica */
.pd-apl__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.pd-apl__grid.has-video { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.pd-apl__video { position: sticky; top: calc(var(--header-h) + 80px); aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #0B0C0E; box-shadow: 0 30px 60px -40px rgba(11,12,14,.6); }
.pd-apl__video iframe, .pd-apl__video video { width: 100%; height: 100%; border: 0; display: block; }
.pd-apl__pasos { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.pd-apl__pasos li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 0 0 26px; }
.pd-apl__pasos li::before { content: ""; position: absolute; left: 27px; top: 50px; bottom: 6px; width: 1px; background: var(--edge); }
.pd-apl__pasos li:last-child::before { display: none; }
.pd-apl__pasos b { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 16px; font-weight: 700; font-stretch: 115%; }
.pd-apl__pasos li:first-child b { background: var(--ink); color: #fff; }
.pd-apl__pasos span { padding-top: 14px; font-size: 17px; line-height: 1.55; color: var(--ink); }

/* documentos */
.pd-doc { display: flex; align-items: center; gap: 18px; max-width: 560px; padding: 18px 20px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .3s var(--ease); }
.pd-doc:hover { color: var(--ink); transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--edge), 0 20px 40px -30px rgba(11,12,14,.5); }
.pd-doc__i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: #fff; }
.pd-doc span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.pd-doc small { font-size: 13px; color: var(--ink-3); }
.pd-doc__go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }

/* reseñas (WooCommerce o el módulo de la Suite) */
.pd-rev #reviews { max-width: 900px; }
.pd-rev .woocommerce-Reviews-title { display: none; }
.pd-rev .commentlist { list-style: none; margin: 0; padding: 0; }
.pd-rev .commentlist li .comment_container { padding: 18px 0; border-top: 1px solid var(--hair); }
.pd-rev #review_form_wrapper { margin-top: 20px; padding: 24px; border-radius: 22px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); }

/* combo de la Suite («Llévate el kit completo»), con el estilo del tema */
.single-product .cf-bt { margin-top: clamp(40px, 5vw, 72px); padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: linear-gradient(160deg, #1C1F24 0%, #0B0C0E 70%); color: #F4F4F2; box-shadow: none; }
.single-product .cf-bt .cf-bt-title { font-stretch: 115%; letter-spacing: -.01em; }
.single-product .cf-bt .cf-bt-item { border-radius: 20px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.single-product .cf-bt .cf-bt-thumb { border-radius: 16px; background: var(--stage-bg); }
.single-product .cf-bt #cf-bt-add, .single-product .cf-bt .cf-bt-add { border-radius: var(--r-btn); background: var(--paint-fill); color: #fff; box-shadow: var(--paint-glow); }

@media (max-width: 900px) {
	.pd-show { grid-template-columns: 1fr; min-height: 0; }
	.pd-show__stage { order: -1; min-height: 240px; }
	.pd-show__stage img { max-height: 260px; }
	.pd-stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pd-stats li + li { border-left: 0; }
	.pd-stats li:nth-child(even) { border-left: 1px solid var(--hair); }
	.pd-stats li:nth-child(n+3) { border-top: 1px solid var(--hair); }
	.pd-apl__grid.has-video { grid-template-columns: 1fr; }
	.pd-apl__video { position: relative; top: 0; }
	.pd-nav { justify-content: flex-start; align-self: stretch; }
}
.single-product div.product > * { min-width: 0; }
.pd > * { min-width: 0; }

/* E47: pasos con título e imagen, varios PDF, videos extra y galería */
.pd-apl__pasos span strong { display: block; margin-bottom: 4px; font-size: 17px; }
.pd-apl__pasos span img { display: block; width: 100%; max-width: 360px; margin-top: 12px; border-radius: 16px; }
.pd-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pd-docs .pd-doc { max-width: none; }
.pd-media { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 32%); gap: 12px; margin-top: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-media::-webkit-scrollbar { display: none; }
.pd-media__v, .pd-media__i { scroll-snap-align: start; aspect-ratio: 4 / 3; width: 100%; border-radius: 18px; object-fit: cover; overflow: hidden; background: #0B0C0E; }
.pd-media__v iframe, .pd-media__v video { width: 100%; height: 100%; border: 0; display: block; }
