/* ==========================================================================
   SebasPeru — ficha de producto v2 (diseño "Producto 1" con la estructura de la referencia).
   Se carga solo en is_product() con pdp_variant = v2 (inc/pdp-v2.php), después de main.css.
   Referencia visual: docs/design-v2/Producto-1.dc.html.
   ========================================================================== */

body.sp-pdp--v2, body.sp-pdp--v2 .sp-main { background: #fff; }
.sp-pdp--v2 .sp-page { padding-top: 0; }

.sp-box { background: #fff; border: 1px solid #e8ecf3; border-radius: 14px; box-shadow: 0 2px 8px rgba(15, 23, 42, .04); }

/* ---------- Grilla de regiones ---------- */
.sp-pdp2 {
	max-width: 1260px; margin: 0 auto; padding: 32px 0 64px;
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 340px; column-gap: 32px; row-gap: 28px;
	grid-template-rows: auto auto 1fr auto;
	grid-template-areas: "crumb crumb crumb" "gallery info aside" "main main aside" "full full full";
}
.sp-pdp2.sp-pdp2--span-top { grid-template-areas: "crumb crumb crumb" "gallery info aside" "main main main" "full full full"; }
.sp-pdp2.sp-pdp2--no-aside { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "crumb crumb" "gallery info" "main main" "full full"; }
.sp-pdp2__crumb { grid-area: crumb; min-width: 0; }
.sp-pdp2__gallery { grid-area: gallery; min-width: 0; }
.sp-pdp2__info { grid-area: info; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sp-pdp2__aside { grid-area: aside; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-self: start; }
.sp-pdp2__aside > * { display: flex; flex-direction: column; gap: 12px; align-self: stretch; }
.sp-pdp2__main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.sp-pdp2__full { grid-area: full; min-width: 0; display: flex; flex-direction: column; gap: 32px; }

/* ---------- Migas ---------- */
.sp-crumb.sp-crumb--v2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 16px; color: #334155; }
.sp-crumb--v2 a { display: inline-flex; align-items: center; min-height: 24px; color: #334155; }
.sp-crumb--v2 a:hover { color: var(--sp-primary); }
.sp-crumb--v2 .sp-crumb__sep { color: #334155; }

/* ---------- Galería ---------- */
.sp-pdp2 div.images.sp-gallery {
	float: none !important; width: auto !important; margin: 0 !important; opacity: 1;
	display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; min-width: 0;
}
.sp-pdp2 .sp-gallery__thumbs {
	display: flex; flex-direction: column; gap: 14px; align-self: stretch; height: 0; min-height: 100%;
	overflow-y: auto; overflow-x: hidden; scrollbar-width: thin;
}
.sp-pdp2 .sp-gallery__thumb {
	flex: 0 0 auto; width: 72px; height: 72px; padding: 4px; border: 1px solid #e8ecf3; border-radius: 10px;
	background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.sp-pdp2 .sp-gallery__thumb:hover { border-color: #b8c4d6; }
.sp-pdp2 .sp-gallery__thumb.is-active { border: 2px solid var(--sp-primary); padding: 3px; }
.sp-pdp2 .sp-gallery .sp-gallery__thumb img { width: 100% !important; height: 100% !important; object-fit: contain; margin: 0; }
.sp-pdp2 .sp-gallery__stage {
	position: relative; width: 100%; aspect-ratio: 1 / 1.1; overflow: hidden;
	background: #fff; border: 1px solid #eef1f5; border-radius: 10px;
}
.sp-pdp2 .sp-gallery .sp-gallery__stage .woocommerce-product-gallery__image {
	position: absolute; inset: 0; width: 100% !important; height: 100%; margin: 0 !important; padding: 0 !important;
	display: flex !important; align-items: center; justify-content: center;
}
.sp-pdp2 .sp-gallery__zoom {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden;
	margin: 0; padding: 0; border: 0; background: none; border-radius: 0; font: inherit; color: inherit; cursor: auto;
	-webkit-appearance: none; appearance: none;
}
.sp-pdp2 .sp-gallery[data-sp-lightbox="1"] .sp-gallery__zoom { cursor: zoom-in; }
.sp-pdp2 .sp-gallery[data-sp-lightbox="0"][data-sp-zoom="1"] .sp-gallery__zoom { cursor: crosshair; }
.sp-pdp2 .sp-gallery__zoom:focus-visible { outline: 2px solid var(--sp-primary); outline-offset: -2px; }
.sp-pdp2 .sp-gallery .sp-gallery__stage img.wp-post-image {
	width: 86% !important; height: 86% !important; max-width: none; margin: 0; padding: 0; object-fit: contain; box-shadow: none;
}
.sp-pdp2 .sp-gallery__fav {
	position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: #fff; color: #5a7090; box-shadow: 0 2px 8px rgba(15, 23, 42, .1);
	display: flex; align-items: center; justify-content: center;
}
.sp-pdp2 .sp-gallery__fav svg { width: 20px; height: 20px; }
.sp-pdp2 .sp-gallery__fav:hover, .sp-pdp2 .sp-gallery__fav.is-on, .sp-pdp2 .sp-gallery__fav.is-fav { color: #f43f5e; }
.sp-pdp2 .sp-gallery__fav.is-on svg, .sp-pdp2 .sp-gallery__fav.is-fav svg { fill: currentColor; }

/* Compartir sobre la imagen, bajo el favorito (fase 8; lo activa pdp2.js, sin JS queda oculto). */
.sp-pdp2 .sp-gallery__share { position: absolute; top: 62px; right: 10px; z-index: 2; display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; }
.sp-pdp2 .sp-gallery__share .sp-pdp2__share {
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #5a7090;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .1); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.sp-pdp2 .sp-gallery__share .sp-pdp2__share[hidden] { display: none; }
.sp-pdp2 .sp-gallery__share .sp-pdp2__share:hover { color: var(--sp-primary); background: #fff; }
.sp-pdp2 .sp-gallery__share .sp-pdp2__share:focus-visible { outline: 2px solid var(--sp-primary); outline-offset: 2px; }
.sp-pdp2 .sp-gallery__share .sp-pdp2__share-msg { padding: 4px 10px; border-radius: 999px; background: var(--sp-ink); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sp-pdp2__share-msg:empty { display: none; }

/* Galería con miniaturas debajo de la imagen principal (pdp2_thumbs_pos = below, fase 7), con la
   fila sin barra de scroll y una flecha a cada lado que avanza de una en una miniatura (fase 8, gallery.js). */
.sp-pdp2 div.images.sp-gallery.sp-gallery--below { display: flex; flex-direction: column; gap: 12px; }
.sp-pdp2 .sp-gallery.sp-gallery--below .sp-gallery__stage { width: 100%; aspect-ratio: 1 / 1; border: 1px solid #eef1f5; border-radius: 10px; }
.sp-pdp2 .sp-gallery.sp-gallery--below .sp-gallery__stage img.wp-post-image { width: 90% !important; height: 90% !important; }
.sp-pdp2 .sp-gallery--below .sp-gallery__rail { display: flex; align-items: center; gap: 8px; min-width: 0; align-self: stretch; order: 2; }
.sp-pdp2 .sp-gallery.sp-gallery--below .sp-gallery__thumbs {
	position: relative; flex: 1 1 auto; order: 0; min-width: 0; display: flex; flex-direction: row; gap: 10px;
	height: auto; min-height: 0; padding: 3px; overflow-x: auto; overflow-y: hidden;
	scroll-snap-type: none; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain;
}
.sp-pdp2 .sp-gallery--below .sp-gallery__thumbs::-webkit-scrollbar { display: none; }
.sp-pdp2 .sp-gallery.sp-gallery--below .sp-gallery__thumb { flex: 0 0 auto; width: 72px; height: 72px; }
.sp-pdp2 .sp-gallery__arrow {
	flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: #fff;
	border: 1px solid #e8ecf3; box-shadow: 0 2px 8px rgba(15, 23, 42, .12); color: var(--sp-ink);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity .2s, box-shadow .2s, color .2s;
}
.sp-pdp2 .sp-gallery__arrow[hidden] { display: none; }
.sp-pdp2 .sp-gallery__arrow:hover { color: var(--sp-primary); box-shadow: 0 4px 12px rgba(15, 23, 42, .18); }
.sp-pdp2 .sp-gallery__arrow:focus-visible { outline: 2px solid var(--sp-primary); outline-offset: 2px; }
.sp-pdp2 .sp-gallery__arrow[aria-disabled="true"] { opacity: .35; cursor: default; }
.sp-pdp2 .sp-gallery__thumb:focus-visible { outline: 2px solid var(--sp-primary); outline-offset: 2px; }
@media (min-width: 1200px) {
	.sp-pdp2.sp-pdp2--thumbs-below { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 280px; }
	.sp-pdp2.sp-pdp2--thumbs-below.sp-pdp2--no-aside { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
@media (min-width: 768px) and (max-width: 1199px) {
	div.sp-pdp2.sp-pdp2--thumbs-below { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
	.sp-pdp2 .sp-gallery.sp-gallery--below .sp-gallery__thumb { width: 64px; height: 64px; }
}
@media (max-width: 767px) {
	.sp-pdp2 .sp-gallery.sp-gallery--below .sp-gallery__thumb { width: 56px; height: 56px; }
}

/* ---------- Información ---------- */
.sp-pdp2__brand { align-self: flex-start; font-size: 13px; font-weight: 800; color: #4b5f7d; text-transform: uppercase; }
.sp-pdp2__brand:hover { color: var(--sp-primary); }
.sp-pdp2 .sp-pdp2__title {
	margin: 0; padding: 0; clear: none; font-size: 20px; line-height: 1.45; font-weight: 800; color: var(--sp-ink);
	text-transform: uppercase; overflow-wrap: anywhere;
}
.sp-pdp2__seller { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; color: var(--sp-ink); }
.sp-pdp2__seller-logo { display: inline-block; height: 16px !important; width: auto !important; vertical-align: middle; }
.sp-pdp2__seller a { color: var(--sp-primary); text-decoration: underline; }

/* Fila marca (izquierda) y código (derecha), fase 8. */
.sp-pdp2__brandcode { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 12px; row-gap: 4px; min-height: 24px; }
.sp-pdp2__brandcode .sp-pdp2__brand { align-self: auto; min-width: 0; overflow-wrap: anywhere; }
.sp-pdp2__brandcode .sp-pdp2__sku { margin-left: auto; font-size: 13px; color: #334155; text-align: right; overflow-wrap: anywhere; }
.sp-pdp2__sku b { font-weight: 800; color: var(--sp-ink); }

.sp-pdp2__wa {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px 0 10px;
	border: 1px solid #d5dce8; border-radius: 999px; background: #fff; color: var(--sp-ink); font-size: 15px; font-weight: 800;
}
.sp-pdp2__wa:hover { color: var(--sp-ink); border-color: #16a34a; }
.sp-pdp2__wa-ic { width: 34px; height: 34px; border-radius: 50%; background: #16a34a; color: #fff; display: inline-flex; align-items: center; justify-content: center; }

.sp-pdp2__price { margin-top: 12px; padding-bottom: 14px; border-bottom: 1px solid #eef1f5; }
.sp-pdp2__price-label { display: block; font-size: 14px; color: #334155; }
.sp-pdp2__price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.sp-pdp2__price-now { font-size: 36px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--sp-ink); }
.sp-pdp2__price-now.is-range { font-size: 28px; }
.sp-pdp2__price-now .amount { color: inherit; font-weight: inherit; }
.sp-pdp2__price-now del { font-size: .55em; font-weight: 600; color: #64748b; }
.sp-pdp2__price-now ins { text-decoration: none; }
.sp-pdp2__price-old { font-size: 16px; color: #64748b; }
.sp-pdp2__price-old .amount { color: inherit; }
.sp-pdp2__disc { align-self: center; padding: 2px 8px; border-radius: 6px; background: #d13700; color: #fff; font-size: 13px; font-weight: 900; }

.sp-pdp2__cuotas-label { display: block; font-size: 14px; color: #334155; }
.sp-pdp2__cuota { font-size: 24px; font-weight: 800; color: var(--sp-primary); }
.sp-pdp2__cuota .amount { color: inherit; }
.sp-pdp2__cuota .sp-pdp2__per { font-size: 15px; font-weight: 600; color: #334155; }
.sp-pdp2__tax { margin: 6px 0 0; font-size: 13px; color: #4b5f7d; }
.sp-pdp2__short { margin: 2px 0 0; font-size: 14px; line-height: 1.6; color: #334155; overflow-wrap: anywhere; --sp-rich-gap: 8px; }
.sp-pdp2__highlights { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.sp-pdp2__highlights li { display: flex; align-items: flex-start; gap: 8px; }
.sp-pdp2__highlights svg { flex-shrink: 0; margin-top: 2px; color: var(--sp-primary); }
.sp-pdp2__rating { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sp-pdp2__rating a { color: var(--sp-primary); font-weight: 700; min-height: 24px; display: inline-flex; align-items: center; }

/* ---------- Caja de compra ---------- */
.sp-pdp2__buybox { padding: 20px; }
.sp-pdp2__buybox form.cart { display: flex; flex-direction: column; gap: 12px; margin: 0 !important; padding: 0 !important; float: none; }
.sp-pdp2__buybox form.cart::before, .sp-pdp2__buybox form.cart::after { display: none !important; content: none !important; }
.sp-pdp2__buybox .single_variation_wrap, .sp-pdp2__buybox .woocommerce-variation-add-to-cart { display: flex; flex-direction: column; gap: 12px; }
.sp-pdp2__buybox .woocommerce-variation-add-to-cart::before, .sp-pdp2__buybox .woocommerce-variation-add-to-cart::after { display: none !important; content: none !important; }
.sp-pdp2__buybox p.stock:not(.out-of-stock), .sp-pdp2__buybox .added_to_cart { display: none !important; }

.sp-pdp2__buybox .sp-qtyrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sp-pdp2__buybox .sp-qtyrow:has(input[type=hidden]) { display: none; }
.sp-pdp2__buybox .sp-qtyrow__label { font-size: 16px; font-weight: 400; color: var(--sp-ink); }
.sp-pdp2__buybox .sp-qtyrow div.quantity {
	flex: 0 0 auto; display: flex; width: auto; height: 44px; margin: 0 !important; float: none !important;
	border: 0; outline: 1px solid #d5dce8; outline-offset: -1px; border-radius: 8px; overflow: hidden; background: #fff;
}
.sp-pdp2__buybox .sp-qtyrow .sp-qty-btn {
	width: 44px; height: 100%; flex: 0 0 44px; padding: 0; background: #f5f7fa; color: var(--sp-ink);
	font-size: 18px; font-weight: 800; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.sp-pdp2__buybox .sp-qtyrow .sp-qty-btn:hover { color: var(--sp-primary); }
.sp-pdp2__buybox .sp-qtyrow input.qty {
	width: 48px !important; flex: 0 0 48px; height: 100%; padding: 0 !important; margin: 0;
	border: 0 !important; border-radius: 0; background: #fff; color: var(--sp-ink);
	font-size: 15px; font-weight: 800; text-align: center; -moz-appearance: textfield;
}
.sp-pdp2__buybox .sp-qtyrow input.qty:focus-visible { outline: 2px solid var(--sp-primary); outline-offset: -2px; }
.sp-pdp2__buybox .sp-qtyrow input.qty::-webkit-inner-spin-button, .sp-pdp2__buybox .sp-qtyrow input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.sp-pdp2__buybox form.cart .single_add_to_cart_button,
.sp-pdp2__buybox form.cart .sp-buy-now {
	float: none !important; width: 100%; height: 48px; margin: 0 !important; padding: 0 16px !important;
	display: flex !important; align-items: center; justify-content: center;
	border: 0 !important; border-radius: 8px !important; box-shadow: none !important;
	font-family: inherit; font-size: 15px !important; font-weight: 900 !important; line-height: 1.2 !important;
	letter-spacing: .02em; text-transform: uppercase; text-align: center; color: #fff !important;
}
.sp-pdp2__buybox form.cart .single_add_to_cart_button { background: var(--sp-primary) !important; }
.sp-pdp2__buybox form.cart .single_add_to_cart_button:hover { background: var(--sp-primary-hover) !important; }
.sp-pdp2__buybox form.cart .single_add_to_cart_button.is-ok { background: #047857 !important; }
.sp-pdp2__buybox form.cart .single_add_to_cart_button.loading { opacity: .75; }
.sp-pdp2__buybox form.cart .single_add_to_cart_button.disabled,
.sp-pdp2__buybox form.cart .single_add_to_cart_button:disabled { opacity: .5 !important; background: var(--sp-primary) !important; }
.sp-pdp2__buybox form.cart .sp-buy-now { background: var(--sp-ink) !important; }
.sp-pdp2__buybox form.cart .sp-buy-now:hover { background: #1d3050 !important; }
.sp-pdp2__buybox form.cart button:focus-visible { outline: 3px solid var(--sp-highlight) !important; outline-offset: 2px; }

.sp-pdp2__buybox table.variations { width: 100%; margin: 0 !important; border: 0; border-collapse: collapse; }
.sp-pdp2__buybox table.variations tbody { display: flex; flex-direction: column; gap: 12px; }
.sp-pdp2__buybox table.variations tr { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.sp-pdp2__buybox table.variations th, .sp-pdp2__buybox table.variations td { display: block; padding: 0 !important; border: 0; text-align: left; line-height: 1.3 !important; }
.sp-pdp2__buybox table.variations th label { font-size: 14px; font-weight: 800; color: var(--sp-ink); }
.sp-pdp2__buybox table.variations select {
	width: 100% !important; min-width: 0 !important; max-width: none; min-height: 44px; margin: 0 !important; padding: 0 12px;
	border: 1px solid #d5dce8; border-radius: 8px; font-size: 14px; background-color: #fff; color: var(--sp-ink);
}
.sp-pdp2__buybox .reset_variations { display: inline-flex; align-items: center; min-height: 24px; margin-top: 6px; font-size: 12.5px; color: #4b5f7d; }
.sp-pdp2__buybox .woocommerce-variation-price .price { font-size: 22px !important; font-weight: 900; color: var(--sp-ink) !important; }
.sp-pdp2__buybox .woocommerce-variation-price .price del { font-size: 15px; color: #64748b; font-weight: 600; }
.sp-pdp2__buybox .woocommerce-variation-price .price ins { text-decoration: none; }
.sp-pdp2__buybox .woocommerce-variation-description p { margin: 0; font-size: 12.5px; color: #4b5f7d; }
.sp-pdp2__buybox .woocommerce-variation-availability .stock.out-of-stock { margin: 0; font-size: 13px; color: #b91c1c !important; }

.sp-pdp2__soldout { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 14px; }
.sp-pdp2__stock { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 16px; color: #047857; }
.sp-pdp2__stock.is-out { color: #b91c1c; font-weight: 700; }
.sp-pdp2__disclaimer { margin: 0; font-size: 11.5px; line-height: 1.6; color: #4b5f7d; }
.sp-pdp2__eta { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.sp-pdp2__eta > svg { flex-shrink: 0; color: var(--sp-ink); }
.sp-pdp2__eta-note { color: #047857; }
.sp-pdp2__store { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--sp-ink); text-decoration: underline; }
.sp-pdp2__store:hover { color: var(--sp-primary); }
.sp-pdp2__store-ic { width: 28px; height: 28px; border-radius: 50%; background: #eef3ff; color: var(--sp-primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sp-pdp2__details { border-top: 1px solid #eef1f5; }
.sp-pdp2__details summary {
	list-style: none; min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
	font-size: 13px; color: #047857; cursor: pointer;
}
.sp-pdp2__details summary::-webkit-details-marker { display: none; }
.sp-pdp2__details[open] summary svg { transform: rotate(180deg); }
.sp-pdp2__details-body p { margin: 0 0 8px; font-size: 13px; color: #334155; }

/* ---------- Entrega ---------- */
.sp-pdp2__h3 { margin: 0; font-size: 14px; font-weight: 900; color: var(--sp-ink); text-transform: uppercase; }
.sp-pdp2__delivery { gap: 10px !important; }
.sp-pdp2__dopts { display: flex; flex-direction: column; gap: 10px; }
.sp-pdp2__dopt { display: flex; gap: 12px; padding: 16px; line-height: 1.5; }
.sp-pdp2__dopt-ic { flex-shrink: 0; color: #4b5f7d; margin-top: 2px; }
.sp-pdp2__dopt-body { min-width: 0; flex: 1; }
.sp-pdp2__dopt-body > b { display: block; }
.sp-pdp2__dopt-ok { display: block; font-size: 13px; color: #047857; }
.sp-pdp2__calc summary {
	list-style: none; display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--sp-primary); cursor: pointer;
}
.sp-pdp2__calc summary::-webkit-details-marker { display: none; }
.sp-pdp2__rates { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sp-pdp2__rates th, .sp-pdp2__rates td { padding: 8px 0; border-top: 1px solid #eef1f5; vertical-align: top; text-align: left; }
.sp-pdp2__rates th { font-weight: 800; color: var(--sp-ink); }
.sp-pdp2__rates th small { display: block; font-weight: 400; color: #4b5f7d; }
.sp-pdp2__rates td { text-align: right; font-weight: 800; white-space: nowrap; padding-left: 8px; }
.sp-pdp2__calc-hint { margin: 0; font-size: 12.5px; color: #4b5f7d; }
.sp-pdp2__map { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--sp-primary); }

/* ---------- Medios de pago ---------- */
.sp-pdp2__payments { overflow: hidden; gap: 0 !important; }
.sp-pdp2__pay-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px; background: #f5f7fa; }
.sp-pdp2__pay-head b { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.sp-pdp2__pay-head b svg { color: var(--sp-primary); }
.sp-pdp2__pay-head a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--sp-primary); }
.sp-pdp2__pay-body { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.sp-pdp2__pay-t { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 900; color: #4b5f7d; text-transform: uppercase; }
.sp-paycards--pdp2 { gap: 6px; }
.sp-paycards--pdp2 .sp-pc {
	width: 40px; min-width: 40px; height: 26px; padding: 0; border: 1px solid #e2e8f0; border-radius: 4px;
	background: #fff; color: #1a1f71; font: 800 9px/1 Arial, sans-serif; letter-spacing: 0;
}
.sp-paycards--pdp2 .sp-pc--visa { font-style: italic; font-size: 11px; }
.sp-paycards--pdp2 .sp-pc--mc i { width: 13px; height: 13px; }
.sp-paycards--pdp2 .sp-pc--amex { background: #1f72cd; border-color: #1f72cd; color: #fff; }
.sp-paycards--pdp2 .sp-pc--diners { color: #0079be; }
.sp-paycards--pdp2 .sp-pc--yape { background: #742284; border-color: #742284; color: #fff; }
.sp-paycards--pdp2 .sp-pc--plin { background: #0b7f93; border-color: #0b7f93; color: #fff; }
.sp-paycards--pdp2 .sp-pc--bcp { background: #002a8d; border-color: #002a8d; color: #fff; }
.sp-paycards--pdp2 .sp-pc--bbva { background: #004481; border-color: #004481; color: #fff; }
.sp-paycards--pdp2 .sp-pc--interbank { background: #00a94f; border-color: #00a94f; color: #fff; }
.sp-pdp2__transfer { border: 1px solid #e8ecf3; border-radius: 10px; padding: 0 12px; }
.sp-pdp2__transfer summary {
	list-style: none; min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
	font-size: 13px; font-weight: 800; cursor: pointer;
}
.sp-pdp2__transfer summary::-webkit-details-marker { display: none; }
.sp-pdp2__transfer[open] summary svg { transform: rotate(180deg); }
.sp-pdp2__transfer-body { padding: 0 0 12px; font-size: 13px; color: #334155; }
.sp-pdp2__transfer-body p { margin: 0; }
.sp-pdp2__bank { margin: 0 0 10px; }
.sp-pdp2__bank dt { font-weight: 800; color: var(--sp-ink); }
.sp-pdp2__bank dd { margin: 0; }
.sp-pdp2__secure {
	display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 8px; border-radius: 8px;
	background: #eef3ff; border: 1px solid #c9d6f5; color: var(--sp-primary); font-size: 12px; font-weight: 700; text-align: center;
}

/* ---------- Relacionados (lista) ---------- */
.sp-pdp2__rel-list { padding: 16px; }
.sp-pdp2__rel-title { padding-bottom: 12px; border-bottom: 1px solid #eef1f5; }
.sp-pdp2__rel-items { display: flex; flex-direction: column; gap: 10px; }
.sp-pdp2__rel { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid #eef1f5; border-radius: 12px; color: var(--sp-ink); }
.sp-pdp2__rel:hover { color: var(--sp-ink); border-color: #c9d6f5; }
.sp-pdp2__rel-img { flex-shrink: 0; width: 92px; height: 92px; border-radius: 10px; background: #f5f7fa; overflow: hidden; }
.sp-pdp2__rel-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sp-pdp2__rel-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.sp-pdp2__rel-brand { font-size: 11px; font-weight: 800; color: #4b5f7d; text-transform: uppercase; }
.sp-pdp2__rel-name {
	font-size: 13px; text-transform: uppercase; height: 36px; overflow: hidden;
	display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere;
}
.sp-pdp2__rel-price { font-size: 17px; font-weight: 800; }
.sp-pdp2__rel-price .amount { color: inherit; }
.sp-pdp2__rel-more { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 13px; font-weight: 700; color: var(--sp-primary); }

/* Relacionados (grilla) y ventas dirigidas */
.sp-pdp2__rel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.sp-pdp2__h2 { margin: 0 0 16px; font-size: 20px; font-weight: 800; color: var(--sp-ink); }
.sp-pdp2__rel-head .sp-pdp2__h2 { margin: 0; }
.sp-pdp2__rel-ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }

/* Tarjeta v2 dentro de la ficha (relacionados en grilla y upsells) */
.sp-pdp2 .sp-pcard2 { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 16px; background: #fff; border: 1px solid #e8ecf3; border-radius: 12px; }
.sp-pdp2 .sp-pcard2__link { position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.sp-pdp2 .sp-pcard2__link:focus-visible { outline: 3px solid var(--sp-primary); outline-offset: -3px; }
.sp-pdp2 .sp-pcard2__badge { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 2px 7px; border-radius: 5px; background: #d13700; color: #fff; font-size: 12px; font-weight: 900; }
.sp-pdp2 .sp-pcard2__badge.is-out { background: #64748b; }
.sp-pdp2 .sp-pcard2__img img { width: 100%; height: 150px; object-fit: contain; margin-bottom: 12px; }
.sp-pdp2 .sp-pcard2__brand { font-size: 12px; font-weight: 800; color: #4b5f7d; text-transform: uppercase; }
.sp-pdp2 .sp-pcard2__cod { font-size: 10.5px; color: #64748b; }
.sp-pdp2 .sp-pcard2__name { margin: 4px 0 8px; height: 38px; font-size: 13px; line-height: 1.45; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-pdp2 .sp-pcard2__row { display: flex; align-items: center; gap: 6px; min-height: 18px; }
.sp-pdp2 .sp-pcard2__old { font-size: 11px; color: #64748b; }
.sp-pdp2 .sp-pcard2__off { padding: 1px 6px; border-radius: 4px; background: #fff1eb; color: #c23400; font-size: 10.5px; font-weight: 800; }
.sp-pdp2 .sp-pcard2__price { font-size: 19px; font-weight: 900; }
.sp-pdp2 .sp-pcard2__cuota { margin-bottom: 8px; font-size: 11px; color: #4b5f7d; }
.sp-pdp2 .sp-pcard2__chip { align-self: flex-start; padding: 2px 7px; border-radius: 4px; font-size: 10.5px; font-weight: 800; }
.sp-pdp2 .sp-pcard2__chip.is-g { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.sp-pdp2 .sp-pcard2__chip.is-n { margin-top: 4px; border: 1px solid #d5dce8; color: #334155; }

/* ---------- Cajas principales: descripción, especificaciones, FAQ y opiniones ---------- */
.sp-pdp2__box-title { margin: 0; padding: 22px 24px; border-bottom: 1px solid #eef1f5; font-size: 20px; font-weight: 800; color: var(--sp-ink); }
.sp-pdp2__desc-wrap { padding: 24px; }
.sp-pdp2__desc-body { position: relative; font-size: 14.5px; line-height: 1.75; color: #334155; text-align: justify; overflow-wrap: anywhere; }
/* Recorte a 7 líneas sin cortar las viñetas "outside" (fase 8): solo se recorta en vertical. */
.sp-pdp2__desc-body.is-clamped { max-height: var(--sp-desc-max, 178px); overflow: hidden; overflow-x: visible; overflow-y: clip; }
.sp-pdp2__desc-body.is-clamped::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.5em; pointer-events: none;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}
.sp-pdp2__desc-body > :first-child { margin-top: 0; }
.sp-pdp2__desc-body > :last-child { margin-bottom: 0; }
/* Listas, tablas (con scroll propio en .sp-rich__table), enlaces e imágenes: bloque común .sp-rich de main.css (fase 8). */
.sp-pdp2__desc-body h2, .sp-pdp2__desc-body h3, .sp-pdp2__desc-name { margin: 0 0 10px; font-size: 17px; font-weight: 800; color: var(--sp-ink); text-align: left; }
.sp-pdp2__more-wrap { text-align: center; margin-top: 18px; }
.sp-pdp2__more-wrap[hidden] { display: none; }
.sp-pdp2__more-wrap:empty { display: none; }
.sp-pdp2__more, .sp-pdp2__specs-more {
	display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 30px; border-radius: 999px;
	background: #eef3ff; color: var(--sp-primary); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.sp-pdp2__more[hidden] { display: none; }
.sp-pdp2__more.is-open svg { transform: rotate(180deg); }
.sp-pdp2__more:hover { background: #dfe8ff; }
.sp-pdp2__more-wrap--specs { margin-top: -10px; }
.sp-pdp2__specs-more { background: #f2f5fa; color: var(--sp-ink); }
.sp-pdp2__specs-more:hover { background: #e6ebf3; }

.sp-pdp2__specs-body { padding: 24px; }
.sp-pdp2__spec-table {
	width: 100%; margin: 0; border: 1px solid #eef1f5; border-radius: 10px; border-collapse: separate; border-spacing: 0;
	overflow: hidden; font-size: 14px;
}
.sp-pdp2__spec-table tr:nth-child(odd) { background: #f5f7fa; }
.sp-pdp2__spec-table th, .sp-pdp2__spec-table td { padding: 12px 16px; border: 0; vertical-align: top; text-align: left; background: transparent; }
.sp-pdp2__spec-table th { width: 40%; font-size: 13px; font-weight: 800; color: var(--sp-ink); text-transform: uppercase; }
.sp-pdp2__spec-table td { width: 60%; color: #334155; overflow-wrap: anywhere; }
.sp-pdp2__specs .sp-specs__empty { margin: 0; font-size: 14px; color: #4b5f7d; }

.sp-pdp2__faq-body { padding: 8px 24px 16px; }
.sp-pdp2 .sp-faq__item { border-top: 1px solid #eef1f5; padding: 2px 0; }
.sp-pdp2 .sp-faq__item:first-child { border-top: 0; }
.sp-pdp2 .sp-faq__q {
	list-style: none; min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
	font-size: 14.5px; font-weight: 800; color: var(--sp-ink); cursor: pointer;
}
.sp-pdp2 .sp-faq__q::-webkit-details-marker { display: none; }
.sp-pdp2 .sp-faq__q svg { color: #4b5f7d; flex-shrink: 0; transition: transform .2s; }
.sp-pdp2 .sp-faq__item[open] .sp-faq__q svg { transform: rotate(180deg); }
.sp-pdp2 .sp-faq__a p { margin: 4px 0 12px; font-size: 14px; line-height: 1.6; color: #334155; }

.sp-pdp2__reviews-body { padding: 24px; }
.sp-pdp2__rv-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 14px; color: #334155; }
.sp-pdp2__rv-avg { font-size: 22px; font-weight: 900; color: var(--sp-ink); }
.sp-pdp2__rv-sum .sp-stars .is-off { color: #cbd5e1; }
.sp-pdp2 #reviews .woocommerce-Reviews-title, .sp-pdp2 #reviews #reply-title { display: block; margin: 0 0 14px; font-size: 17px; font-weight: 800; color: var(--sp-ink); }
.sp-pdp2 #reviews #comments ol.commentlist { margin: 0 0 20px; padding: 0; }
.sp-pdp2 #reviews #comments ol.commentlist li .comment-text { border: 1px solid #e8ecf3; border-radius: 12px; }
.sp-pdp2 #review_form #respond input[type=text],
.sp-pdp2 #review_form #respond input[type=email],
.sp-pdp2 #review_form #respond textarea,
.sp-pdp2 #review_form #respond select {
	width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d5dce8; border-radius: 10px; background: #fff; font-size: 14px;
}
.sp-pdp2 #review_form #respond textarea { min-height: 120px; }
.sp-pdp2 #review_form #respond label { font-size: 13px; font-weight: 800; color: var(--sp-ink); }
.sp-pdp2 #respond .form-submit input[type=submit], .sp-pdp2 #respond .form-submit #submit {
	min-height: 44px; padding: 0 24px; border: 0; border-radius: 8px; background: var(--sp-primary); color: #fff;
	font-family: inherit; font-weight: 800; cursor: pointer;
}
.sp-pdp2 #respond .form-submit input[type=submit]:hover { background: var(--sp-primary-hover); }
.sp-pdp2 p.stars a { color: #f59e0b; min-width: 24px; min-height: 24px; }

.sp-pdp2__notice { display: flex; gap: 12px; padding: 16px; }
.sp-pdp2__notice > svg { color: var(--sp-primary); flex-shrink: 0; }
.sp-pdp2__notice p { margin: 2px 0 0; font-size: 13px; color: #4b5f7d; }
.sp-pdp2__benefits .sp-pdp-benefits { margin: 0; background: var(--sp-ink); color: #fff; border-radius: 16px; padding: 18px 24px; }
.sp-pdp2__benefits .sp-pdp-benefits__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.sp-pdp2__benefits .sp-pdp-benefits__item { display: flex; align-items: center; gap: 12px; }
.sp-pdp2__benefits .sp-pdp-benefits__item svg { color: #ffd24d; }
.sp-pdp2__benefits .sp-pdp-benefits__item b { display: block; color: #fff; }
.sp-pdp2__benefits .sp-pdp-benefits__item span { display: block; font-size: 12.5px; color: #c3cee0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
	.sp-pdp2, .sp-pdp2.sp-pdp2--span-top, .sp-pdp2.sp-pdp2--no-aside {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; grid-template-rows: none;
		grid-template-areas: "crumb crumb" "gallery info" "aside aside" "main main" "full full";
	}
	.sp-pdp2__aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
	.sp-pdp2__rel-ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
	.sp-pdp2__rel-ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.sp-pdp2, .sp-pdp2.sp-pdp2--span-top, .sp-pdp2.sp-pdp2--no-aside { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 20px; padding: 16px 0 40px; }
	.sp-pdp2 > [data-pdp-region] { grid-area: auto; }
	.sp-pdp2__aside { display: flex; flex-direction: column; }
	.sp-crumb.sp-crumb--v2 { font-size: 14px; gap: 8px; }
	.sp-pdp2 div.images.sp-gallery { display: flex; flex-direction: column; gap: 10px; }
	.sp-pdp2 .sp-gallery__stage { order: 1; }
	.sp-pdp2 .sp-gallery__thumbs { order: 2; flex-direction: row; gap: 10px; height: auto; min-height: 0; overflow-x: auto; overflow-y: hidden; }
	.sp-pdp2 .sp-gallery__thumb { width: 56px; height: 56px; }
	.sp-pdp2 .sp-pdp2__title { font-size: 18px; }
	.sp-pdp2__price-now { font-size: 30px; }
	.sp-pdp2__price-now.is-range { font-size: 24px; }
	.sp-pdp2__wa { align-self: stretch; justify-content: center; }
	.sp-pdp2__box-title { padding: 18px 16px; font-size: 18px; }
	.sp-pdp2__desc-wrap, .sp-pdp2__specs-body, .sp-pdp2__reviews-body { padding: 16px; }
	.sp-pdp2__faq-body { padding: 4px 16px 12px; }
	.sp-pdp2__more, .sp-pdp2__specs-more { padding: 0 18px; max-width: 100%; }
	.sp-pdp2__spec-table th { width: 45%; }
	.sp-pdp2__spec-table th, .sp-pdp2__spec-table td { padding: 10px 12px; }
	.sp-pdp2__rel-ul { gap: 10px; }
}
