/* Quiérete: ficha de producto (q-productdetail.php). Solo se carga en páginas de producto. */
.qpp-on {
	--qpp-main: #94225c;
	--qpp-dark: #721046;
	--qpp-text: #4a1233;
	--qpp-muted: #6b4a5c;
	--qpp-line: #ecd9e4;
	--qpp-soft: #f9f1f6;
	--qpp-pink: #fbe3ef;
	--qpp-lilac: #efe6fb;
	--qpp-gold: #f2a516;
	--qpp-empty: #e7cfdb;
	--qpp-radius: 18px;
}
.qpp-on .qpp-sec,
.qpp-on .qpp-sec *,
.qpp-on .qpp-chips *,
.qpp-on .qpp-trust-mini * { box-sizing: border-box; }

/* Secciones a todo el ancho de la ficha (el tema arma el producto como fila flexible). */
.qpp-sec { clear: both; float: none; display: block; width: 100%; max-width: 100%; flex: 0 0 100%; margin: 0; padding: 56px 16px; color: var(--qpp-text); }
.qpp-in { width: 100%; max-width: 1100px; margin: 0 auto; }
.qpp-h2 { margin: 0 0 22px; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.2; font-weight: 800; color: var(--qpp-text); text-wrap: balance; }
.qpp-center { text-align: center; }
.qpp-kicker { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--qpp-main); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.qpp-ico { width: 20px; height: 20px; flex: none; }
.qpp-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--qpp-main); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; transition: background .15s; }
.qpp-btn:hover, .qpp-btn:focus-visible { background: var(--qpp-dark); }

/* Estrellas: el relleno dorado ocupa --qpp-r del ancho. */
.qpp-stars { display: inline-block; font-size: 16px; line-height: 1; letter-spacing: 2px; background: linear-gradient(90deg, var(--qpp-gold) var(--qpp-r, 0%), var(--qpp-empty) var(--qpp-r, 0%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qpp-stars--lg { font-size: 26px; }

/* ---------- Resumen ---------- */
.qpp-rating { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 12px; color: var(--qpp-muted) !important; font-size: 14px; text-decoration: none !important; }
.qpp-rating:hover .qpp-rating__txt { text-decoration: underline; }
.qpp-rating strong { color: var(--qpp-text); }

.qpp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; padding: 0; list-style: none; }
.qpp-chips li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 12px; border-radius: 999px; background: var(--qpp-pink); color: var(--qpp-text); font-size: 13px; font-weight: 600; line-height: 1.2; }
.qpp-chips .qpp-ico { width: 15px; height: 15px; color: var(--qpp-main); }

.qpp-trust-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 6px; padding: 12px; border-radius: 14px; background: var(--qpp-soft); list-style: none; }
.qpp-trust-mini li { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--qpp-text); }
.qpp-trust-mini .qpp-ico { width: 18px; height: 18px; color: var(--qpp-main); }

/* ---------- ¿Por qué te va a encantar? ---------- */
.qpp-benefits { background: linear-gradient(135deg, var(--qpp-pink) 0%, var(--qpp-lilac) 100%); }
.qpp-benefits__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; }
.qpp-benefits__media { position: relative; margin: 0; }
.qpp-benefits__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--qpp-radius); background: #fff; box-shadow: 0 18px 40px rgba(114, 16, 70, .16); }
.qpp-benefits__badge { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: #fff; color: var(--qpp-text); font-weight: 800; font-size: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.qpp-benefits__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.qpp-benefits__list li { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .85); box-shadow: 0 2px 10px rgba(114, 16, 70, .06); }
.qpp-benefits__list strong { display: block; font-size: 16px; color: var(--qpp-text); }
.qpp-benefits__txt { display: block; margin-top: 3px; font-size: 14px; line-height: 1.55; color: var(--qpp-muted); }
.qpp-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--qpp-main); color: #fff; font-weight: 800; font-size: 14px; }

/* ---------- Cómo usarlo ---------- */
.qpp-howto { background: #fff; }
.qpp-howto__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.qpp-howto__list li { margin: 0; padding: 20px; border: 1px solid var(--qpp-line); border-radius: var(--qpp-radius); background: var(--qpp-soft); }
.qpp-howto__step { display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; background: var(--qpp-main); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.qpp-howto__list p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--qpp-text); }

/* ---------- Garantía ---------- */
.qpp-guarantee { background: linear-gradient(120deg, var(--qpp-main) 0%, #b8357a 55%, #d9548f 100%); color: #fff; }
.qpp-guarantee .qpp-h2 { color: #fff; }
.qpp-guarantee__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.qpp-guarantee__list li { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 20px 14px; border-radius: var(--qpp-radius); background: rgba(255, 255, 255, .12); text-align: center; font-size: 14px; line-height: 1.45; }
.qpp-guarantee__list strong { font-size: 16px; color: #fff; }
.qpp-guarantee__list span { color: rgba(255, 255, 255, .92); }
.qpp-guarantee__list .qpp-guarantee__ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 50%; background: #fff; color: var(--qpp-main); }
.qpp-guarantee__ico .qpp-ico { width: 26px; height: 26px; }

/* ---------- Pestañas ---------- */
.qpp-tabs { background: var(--qpp-soft); scroll-margin-top: 140px; }
.qpp-tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 24px; }
.qpp-on .qpp-tab { margin: 0; padding: 14px 26px; border: 0; border-radius: 999px; background: #fff !important; color: var(--qpp-main) !important; box-shadow: 0 2px 8px rgba(114, 16, 70, .08); font-size: 14px; font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; transition: background .15s, color .15s; }
.qpp-on .qpp-tab:hover { background: var(--qpp-pink) !important; }
.qpp-on .qpp-tab[aria-selected="true"] { background: var(--qpp-main) !important; color: #fff !important; }
.qpp-on .qpp-tab:focus { outline: 0; }
.qpp-on .qpp-tab:focus-visible { outline: 2px solid var(--qpp-dark); outline-offset: 3px; }
.qpp-panel { padding: 32px clamp(16px, 4vw, 48px); border-top: 5px solid var(--qpp-main); border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(114, 16, 70, .08); font-size: 15px; line-height: 1.75; color: var(--qpp-muted); }
.qpp-panel[hidden] { display: none; }
.qpp-panel > h2:first-child, .qpp-panel .woocommerce-Reviews-title { display: none; }
.qpp-panel strong { color: var(--qpp-text); }
.qpp-panel table.shop_attributes { width: 100%; margin: 0; border: 0; }
.qpp-panel table.shop_attributes th, .qpp-panel table.shop_attributes td { padding: 12px 6px; border: 0; border-bottom: 1px solid var(--qpp-line); background: none; font-style: normal; }
.qpp-panel table.shop_attributes th { width: 35%; color: var(--qpp-text); font-weight: 700; }
.qpp-panel table.shop_attributes td p { margin: 0; }

/* Resumen de valoraciones */
.qpp-rsum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 28px; padding: 0 0 28px; border-bottom: 1px solid var(--qpp-line); }
.qpp-rsum__score { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.qpp-rsum__avg { font-size: 52px; line-height: 1; font-weight: 800; color: var(--qpp-text); }
.qpp-rsum__n { font-size: 14px; }
.qpp-rsum__bars { flex: 1 1 260px; max-width: 420px; margin: 0; padding: 0; list-style: none; }
.qpp-rsum__bars li { display: grid; grid-template-columns: 40px 1fr 32px; align-items: center; gap: 10px; margin: 4px 0; font-size: 13px; }
.qpp-rsum__cnt { text-align: right; }
.qpp-bar { display: block; height: 8px; border-radius: 999px; background: var(--qpp-line); overflow: hidden; }
.qpp-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--qpp-gold); }
.qpp-rsum__empty strong { display: block; font-size: 20px; color: var(--qpp-text); }
.qpp-rsum__empty p { margin: 4px 0 0; }

/* Reseñas y formulario de WooCommerce dentro de la pestaña */
.qpp-panel #reviews .commentlist { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 14px; }
.qpp-panel #reviews .commentlist li { margin: 0; padding: 18px 20px; border: 1px solid var(--qpp-line); border-radius: 16px; background: var(--qpp-soft); }
.qpp-panel #reviews .commentlist li .avatar { display: none; }
.qpp-panel #reviews .commentlist li .comment-text { margin: 0; padding: 0; border: 0; }
.qpp-panel #reviews .star-rating { float: none; margin: 0 0 6px; color: var(--qpp-gold); }
.qpp-panel #reviews .meta { margin: 0 0 6px; font-size: 13px; color: var(--qpp-muted); }
.qpp-panel #reviews .meta strong { color: var(--qpp-text); }
.qpp-panel #reviews .woocommerce-review__verified { color: #2e7d4f; font-style: normal; font-weight: 700; }
.qpp-panel #reviews .description p { margin: 0; color: var(--qpp-text); }
.qpp-panel #review_form_wrapper { scroll-margin-top: 140px; }
.qpp-panel #reply-title { display: block; margin: 0 0 12px; font-size: 18px; font-weight: 800; color: var(--qpp-text); }
.qpp-panel .comment-form-rating label, .qpp-panel .comment-form label { font-size: 13px; font-weight: 700; color: var(--qpp-text); }
.qpp-panel p.stars a { color: var(--qpp-gold); }
.qpp-panel .comment-form textarea, .qpp-panel .comment-form input[type="text"], .qpp-panel .comment-form input[type="email"] { width: 100%; padding: 12px 14px; border: 1px solid var(--qpp-line); border-radius: 12px; background: #fff; }
.qpp-panel .comment-form textarea:focus, .qpp-panel .comment-form input:focus { border-color: var(--qpp-main); outline: 0; box-shadow: 0 0 0 3px rgba(148, 34, 92, .15); }
.qpp-panel .form-submit input[type="submit"], .qpp-panel .form-submit .submit { padding: 13px 28px; border: 0; border-radius: 999px; background: var(--qpp-main) !important; color: #fff !important; font-weight: 800; cursor: pointer; }
.qpp-panel .form-submit input[type="submit"]:hover { background: var(--qpp-dark) !important; }

/* Preguntas frecuentes */
.qpp-faq { display: grid; gap: 10px; }
.qpp-faq__item { border: 1px solid var(--qpp-line); border-radius: 14px; background: var(--qpp-soft); }
.qpp-faq__item summary { position: relative; padding: 16px 48px 16px 18px; color: var(--qpp-text); font-size: 15px; font-weight: 700; list-style: none; cursor: pointer; }
.qpp-faq__item summary::-webkit-details-marker { display: none; }
.qpp-faq__item summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--qpp-main); border-bottom: 2px solid var(--qpp-main); transform: rotate(45deg); transition: transform .2s; }
.qpp-faq__item[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.qpp-faq__item summary:focus-visible { outline: 2px solid var(--qpp-main); outline-offset: 2px; border-radius: 14px; }
.qpp-faq__a { padding: 0 18px 16px; }
.qpp-faq__a p { margin: 0; }

/* Respaldo: si el tema imprime su acordeón por otro camino, se oculta (las pestañas nuevas lo reemplazan). */
.qpp-on .woocommerce-tabs.wc-accordions-wrapper { display: none !important; }

/* ---------- Móvil ---------- */
@media (max-width: 900px) {
	.qpp-benefits__grid { grid-template-columns: 1fr; gap: 24px; }
	.qpp-benefits__img { aspect-ratio: 1 / 1; }
	.qpp-guarantee__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.qpp-sec { padding: 40px 16px; }
	.qpp-trust-mini { grid-template-columns: 1fr; }
	.qpp-guarantee__list { grid-template-columns: 1fr; }
	.qpp-guarantee__list li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 2px; align-items: start; text-align: left; padding: 16px; }
	.qpp-guarantee__list .qpp-guarantee__ico { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
	.qpp-tabs__list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px 20px; padding: 4px 16px 8px; scrollbar-width: none; }
	.qpp-tabs__list::-webkit-scrollbar { display: none; }
	.qpp-on .qpp-tab { flex: none; padding: 12px 18px; font-size: 13px; }
	.qpp-panel { padding: 24px 16px; border-radius: 18px; }
	.qpp-rsum__avg { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	.qpp-faq__item summary::after, .qpp-btn, .qpp-on .qpp-tab { transition: none; }
}
