/* Product page layouts on David Ogilvy's rules (inc/pdp-ogilvy.php).
   Black on white, serif headlines, a reading measure, captions under photos,
   one strong colour for the buy button. Every rule is scoped to .sap-og (or
   .sap-pay, which also appears on the Divi-parity page), with enough
   specificity to beat the page's legacy Divi rules. */

.sap-og, .sap-pay {
	--og-ink: #1d2624;
	--og-muted: #55615e;
	--og-line: #d9e0de;
	--og-teal: #6ca5a0;
	--og-deep: #223b35;
	--og-deep-hover: #2f5249;
	--og-tint: #f3f7f6;
	--og-serif: perfectlynineties, Georgia, "Times New Roman", serif;
	--og-sans: sofiapro, "Helvetica Neue", Arial, sans-serif;
}

body.sap-og-page { background: #fff; }
body.sap-og-page #et-main-area { background: #fff; }

.sap-og {
	box-sizing: border-box;
	max-width: 1040px;
	margin: 0 auto;
	padding: 110px 20px 96px;
	color: var(--og-ink);
	font-family: var(--og-sans);
	font-size: 18px;
	line-height: 1.65;
}
.sap-og *, .sap-og *::before, .sap-og *::after { box-sizing: border-box; }
.sap-og p { margin: 0 0 1em; padding: 0; color: var(--og-ink); font-size: inherit; line-height: inherit; }
.sap-og ul, .sap-og ol { margin: 0; padding: 0; list-style: none; }
.sap-og a { color: var(--og-deep); }

/* Type scale */
.sap-og .sap-og-h1 {
	margin: 0 0 16px;
	padding: 0;
	font-family: var(--og-serif);
	font-weight: normal;
	font-size: clamp(30px, 4.4vw, 50px);
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--og-ink);
	text-wrap: balance;
}
.sap-og .sap-og-h2 {
	margin: 0 0 20px;
	padding: 0;
	font-family: var(--og-serif);
	font-weight: normal;
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.15;
	color: var(--og-ink);
	text-wrap: balance;
}
.sap-og .sap-og-h3 {
	margin: 1.6em 0 0.4em;
	padding: 0;
	font-family: var(--og-sans) !important;
	font-weight: 700 !important;
	font-style: normal !important;
	font-size: 18px;
	line-height: 1.35;
	color: var(--og-ink);
}
.sap-og .sap-og-deck,
.sap-og .sap-og-lead { font-size: 21px; line-height: 1.5; }
.sap-og .sap-og-deck { color: var(--og-muted); }
.sap-og .sap-og-kicker,
.sap-og .sap-og-coupon__kicker {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--og-teal);
}

/* Photo + caption (captions are read more than body copy) */
.sap-og .sap-og-photo { margin: 0 0 28px; }
.sap-og .sap-og-photo__img { display: block; width: 100%; height: auto; max-width: 100%; }
.sap-og .sap-og-photo figcaption {
	margin-top: 10px;
	font-size: 15px;
	font-style: italic;
	line-height: 1.5;
	color: var(--og-muted);
}

/* Quotes */
.sap-og .sap-og-quote {
	margin: 1.4em 0;
	padding: 0 0 0 20px;
	border-left: 3px solid var(--og-teal);
}
.sap-og .sap-og-quote p { margin: 0 0 6px; font-family: var(--og-serif) !important; font-weight: normal !important; font-style: normal; font-size: 22px; line-height: 1.4; }
.sap-og .sap-og-quote cite { font-family: var(--og-sans) !important; font-style: normal !important; font-size: 14px; font-weight: 700 !important; color: var(--og-muted); }

/* Price + buy */
.sap-og .sap-og-price { margin: 0 0 2px; font-size: 22px; line-height: 1.2; }
.sap-og .sap-og-price del { color: var(--og-muted); font-size: 18px; margin-right: 6px; }
.sap-og .sap-og-price strong { font-family: var(--og-serif) !important; font-weight: normal !important; font-style: normal; font-size: 44px; color: var(--og-ink); }
.sap-og .sap-og-price__note { margin: 0 0 16px; font-size: 15px; font-weight: 700; color: var(--og-deep); }

.sap-og .sap-og-buy form.cart { display: flex !important; flex-wrap: nowrap; gap: 10px; align-items: center; margin: 0 0 14px !important; padding: 0 !important; }
.sap-og .sap-og-buy form.cart::before, .sap-og .sap-og-buy form.cart::after { display: none !important; }
.sap-og .sap-og-buy .quantity { flex: 0 0 auto; margin: 0 !important; float: none !important; order: 0; }
.sap-og .sap-og-buy .quantity input.qty {
	width: 64px; height: 56px; padding: 0 !important; margin: 0 !important;
	border: 1px solid var(--og-line) !important; border-radius: 6px;
	background: #fff !important; color: var(--og-ink) !important;
	font-size: 18px !important; text-align: center;
}
body.sap-og-page .sap-og .sap-og-buy .single_add_to_cart_button {
	flex: 1 1 auto;
	float: none !important;
	order: 1;
	width: auto !important;
	min-height: 56px;
	height: 56px;
	margin: 0 !important;
	padding: 0 24px !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: var(--og-deep) !important;
	color: #fff !important;
	font-family: var(--og-sans) !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em;
	line-height: 56px !important;
	text-transform: none;
	cursor: pointer;
}
body.sap-og-page .sap-og .sap-og-buy .single_add_to_cart_button:hover { background: var(--og-deep-hover) !important; }
body.sap-og-page .sap-og .sap-og-buy .single_add_to_cart_button::after { display: none !important; }
body.sap-og-page .sap-og .sap-og-buy .single_add_to_cart_button:focus-visible { outline: 3px solid var(--og-teal); outline-offset: 2px; }

.sap-og .sap-og-promises { margin: 4px 0 18px; font-size: 15px; line-height: 1.5; }
.sap-og .sap-og-promises li { position: relative; padding: 4px 0 4px 22px; }
.sap-og .sap-og-promises li::before,
.sap-og .sap-og-checks li::before {
	content: ""; position: absolute; left: 2px; top: 0.72em;
	width: 10px; height: 6px;
	border-left: 2px solid var(--og-deep); border-bottom: 2px solid var(--og-deep);
	transform: rotate(-45deg);
}
.sap-og .sap-og-guarantee { font-size: 15px; margin: 0 0 18px; }

/* Payment methods (also used on the Divi-parity page) */
.sap-pay { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--og-line, #d9e0de); font-family: var(--og-sans); }
.sap-pay .sap-pay__title { margin: 0 0 10px; padding: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--og-ink); }
.sap-pay .sap-pay__row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 0 14px; }
.sap-pay .sap-pay__label { margin: 0 !important; padding: 0 !important; font-size: 14px; line-height: 1.3; color: var(--og-muted); }
.sap-pay .sap-pay__title { padding: 0 !important; }
.sap-pay .sap-pay__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.sap-pay .sap-pay__logo { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.sap-pay .sap-pay__logo::before { display: none; }
.sap-pay .sap-pay__logo img { display: block; width: auto; max-width: none; }
.sap-pay .sap-pay__logo--text { gap: 5px; color: var(--og-deep); font-weight: 700; font-size: 16px; line-height: 1; }
.sap-pay .sap-pay__logo--text svg { color: var(--og-deep); }

/* ===== A — El anuncio ===== */
.sap-og--a .sap-og-ad { max-width: 760px; margin: 0 auto; }
.sap-og--a .sap-og-ad__head { margin: 0 0 28px; text-align: center; }
.sap-og--a .sap-og-ad__body { max-width: 640px; margin: 0 auto; }
.sap-og--a .sap-og-lead::first-letter {
	float: left;
	margin: 6px 10px 0 0;
	font-family: var(--og-serif);
	font-size: 76px;
	line-height: 0.8;
	color: var(--og-deep);
}
.sap-og--a .sap-og-coupon {
	max-width: 640px;
	margin: 48px auto 0;
	padding: 28px 28px 22px;
	border: 2px dashed var(--og-deep);
	border-radius: 4px;
}
.sap-og--a .sap-og-coupon__name { margin: 0 0 10px; font-family: var(--og-serif); font-weight: normal; font-size: 28px; line-height: 1.15; color: var(--og-ink); padding: 0; }

/* ===== B — La ficha ===== */
.sap-og--b .sap-og-sheet__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; margin: 0 0 72px; }
.sap-og--b .sap-og-sheet__top .sap-og-photo { margin: 0; position: sticky; top: 110px; }
.sap-og--b .sap-og-sheet__box .sap-og-h1 { font-size: clamp(30px, 3.4vw, 42px); }
.sap-og--b .sap-og-checks { margin: 6px 0 22px; font-size: 16px; line-height: 1.5; }
.sap-og--b .sap-og-checks li { position: relative; padding: 5px 0 5px 22px; }
.sap-og--b .sap-og-facts { margin: 0 0 72px; }
.sap-og--b .sap-og-facts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--og-line); }
.sap-og--b .sap-og-facts__grid li { display: flex; flex-direction: column; gap: 2px; padding: 22px 20px 22px 0; border-bottom: 1px solid var(--og-line); }
.sap-og--b .sap-og-facts__num { font-family: var(--og-serif) !important; font-size: 38px; line-height: 1.05; color: var(--og-deep); }
.sap-og--b .sap-og-facts__unit { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--og-teal); }
.sap-og--b .sap-og-facts__text { margin-top: 6px; font-size: 16px; line-height: 1.5; }
/* Clean-up photo slider ("Salva tu piel, salva la playa", after the reviews): CSS scroll-snap (native swipe on phones), three
   per view on desktop with arrow buttons (assets/js/pdp-gallery.js pages them). */
.sap-og--b .sap-og-gallery { margin: 0 0 72px; }
.sap-og--b .sap-og-gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 20px; }
.sap-og--b .sap-og-gallery__head .sap-og-h2 { margin: 0 0 6px; }
.sap-og--b .sap-og-gallery .sap-og-gallery__deck { margin: 0; max-width: 46em; color: var(--og-muted); }
.sap-og--b .sap-og-gallery__nav { display: flex; gap: 8px; flex: none; }
.sap-og--b .sap-og-gallery__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--og-line); border-radius: 50%; background: #fff; color: var(--og-deep); cursor: pointer; transition: background-color .2s ease, color .2s ease, opacity .2s ease; }
.sap-og--b .sap-og-gallery__btn:hover:not(:disabled) { background: var(--og-deep); border-color: var(--og-deep); color: #fff; }
.sap-og--b .sap-og-gallery__btn:disabled { opacity: .35; cursor: default; }
.sap-og--b .sap-og-gallery__btn:focus-visible { outline: 2px solid var(--og-teal); outline-offset: 2px; }
.sap-og--b .sap-og-gallery__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* Pause/play (autoplaying gallery): pause bars while playing, a play triangle once paused. */
.sap-og--b .sap-og-gallery__play .sap-og-gallery__icon-play { display: none; fill: currentColor; stroke-width: 1.4; }
.sap-og--b .sap-og-gallery.is-paused .sap-og-gallery__play .sap-og-gallery__icon-pause { display: none; }
.sap-og--b .sap-og-gallery.is-paused .sap-og-gallery__play .sap-og-gallery__icon-play { display: block; }
.sap-og--b .sap-og-gallery__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.sap-og--b .sap-og-gallery__track::-webkit-scrollbar { display: none; }
.sap-og--b .sap-og-gallery__track:focus-visible { outline: 2px solid var(--og-teal); outline-offset: 4px; }
.sap-og--b .sap-og-gallery__track > li { margin: 0; padding: 0; list-style: none; scroll-snap-align: start; }
.sap-og--b .sap-og-gallery__track > li::before, .sap-og--b .sap-og-gallery__track > li::marker { content: none; }
.sap-og--b .sap-og-gallery__slide figure { margin: 0; }
.sap-og--b .sap-og-gallery__slide img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--og-tint); }
.sap-og--b .sap-og-gallery__slide figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--og-muted); }

.sap-og--b .sap-og-proof { margin: 0 0 72px; }
.sap-og--b .sap-og-proof__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.sap-og--b .sap-og-proof__grid .sap-og-quote { margin: 0; }
.sap-og--b .sap-og-proof__grid .sap-og-quote p { font-size: 19px; }
.sap-og--b .sap-og-faq { max-width: 720px; margin: 0 0 72px; }
.sap-og--b .sap-og-faq details { border-bottom: 1px solid var(--og-line); }
.sap-og--b .sap-og-faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; list-style: none; position: relative; }
.sap-og--b .sap-og-faq summary::-webkit-details-marker { display: none; }
.sap-og--b .sap-og-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 400; color: var(--og-deep); }
.sap-og--b .sap-og-faq details[open] summary::after { content: "–"; }
.sap-og--b .sap-og-faq details p { margin: 0 0 18px; font-size: 17px; }
.sap-og--b .sap-og-close { max-width: 720px; padding: 32px; background: var(--og-tint); border-radius: 6px; }
.sap-og--b .sap-og-close .sap-og-h2 { margin-bottom: 16px; }
.sap-og--b .sap-og-close .sap-og-buy form.cart { margin: 0; }

/* ===== C — Los hechos ===== */
.sap-og--c .sap-og-facts-ad { max-width: 760px; margin: 0 auto; }
.sap-og--c .sap-og-facts-ad__head { margin: 0 0 28px; }
.sap-og--c .sap-og-h1--quote { font-size: clamp(30px, 4.2vw, 48px); }
.sap-og--c .sap-og-attrib { font-size: 16px; color: var(--og-muted); }
.sap-og--c .sap-og-facts-ad__body { max-width: 640px; margin: 0 auto; }
.sap-og--c .sap-og-numbered { counter-reset: og; margin: 0 0 44px; }
.sap-og--c .sap-og-numbered li { counter-increment: og; position: relative; padding: 0 0 16px 48px; }
.sap-og--c .sap-og-numbered li::before {
	content: counter(og) ".";
	position: absolute; left: 0; top: -3px;
	font-family: var(--og-serif); font-size: 28px; line-height: 1.2; color: var(--og-deep);
}
.sap-og--c .sap-og-inline-buy { margin: 8px 0 0; padding: 24px 0 4px; border-top: 2px solid var(--og-ink); }
.sap-og--c .sap-og-more-quotes { margin-top: 40px; }

/* Preview switcher (only with ?pdp=…) */
.sap-og-switch {
	position: fixed; left: 50%; bottom: 16px; z-index: 99990;
	transform: translateX(-50%);
	display: flex; gap: 4px; padding: 5px;
	background: var(--og-deep, #223b35); border-radius: 999px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
	font-family: sofiapro, Arial, sans-serif; font-size: 13px;
}
.sap-og-switch a { padding: 7px 12px; border-radius: 999px; color: #fff !important; text-decoration: none; white-space: nowrap; }
.sap-og-switch a[aria-current] { background: #fff; color: #223b35 !important; font-weight: 700; }

/* Phones */
@media (max-width: 767px) {
	.sap-og { padding: 96px 16px 88px; font-size: 17px; }
	.sap-og .sap-og-deck, .sap-og .sap-og-lead { font-size: 19px; }
	.sap-og--a .sap-og-ad__head { text-align: left; }
	.sap-og--a .sap-og-coupon { padding: 22px 18px 16px; }
	.sap-og--b .sap-og-sheet__top { grid-template-columns: 1fr; gap: 20px; margin-bottom: 56px; }
	.sap-og--b .sap-og-sheet__top .sap-og-photo { position: static; }
	.sap-og--b .sap-og-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sap-og--b .sap-og-facts__grid li { padding-right: 12px; }
	.sap-og--b .sap-og-proof__grid { grid-template-columns: 1fr; gap: 24px; }
	.sap-og--b .sap-og-gallery { margin-bottom: 56px; }
	/* Controls on phones too, on their own row between the heading and the photos. */
	.sap-og--b .sap-og-gallery__head { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 14px; }
	.sap-og--b .sap-og-gallery__nav { justify-content: flex-end; }
	.sap-og--b .sap-og-gallery__track { grid-auto-columns: 80%; gap: 12px; margin: 0 -16px; padding: 0 16px 4px; scroll-padding-inline: 16px; }
	.sap-og--b .sap-og-close { padding: 22px 18px; }
	.sap-og .sap-og-price strong { font-size: 38px; }
	.sap-og-switch { left: 8px; right: 8px; transform: none; justify-content: space-between; font-size: 12px; }
	.sap-og-switch a { padding: 7px 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.sap-og * { transition: none !important; }
	.sap-og--b .sap-og-gallery__track { scroll-behavior: auto; }
}

/* Reviews (layout B): five stars, "Más de 1.000 testimonios positivos" and a slider of the
   customers' comment screenshots. Same scroll-snap track and arrows as the photo gallery;
   two per view on desktop so the screenshot text stays readable, shown whole (contain). */
.sap-og--b .sap-og-gallery--reviews .sap-og-gallery__head .sap-og-h2 { margin: 0; }
.sap-og--b .sap-og-gallery--reviews .sap-og-stars { display: flex; gap: 3px; margin: 0 0 8px; color: #e0a526; }
.sap-og--b .sap-og-gallery--reviews .sap-og-stars svg { width: 22px; height: 22px; fill: currentColor; }
.sap-og--b .sap-og-gallery--reviews .sap-og-gallery__track { grid-auto-columns: calc((100% - 16px) / 2); }
/* A set card height: the slider row takes its tallest card, and one near-square screenshot
   made all 180 cards 492 px tall. Taller screenshots shrink to fit (contain); strips keep size. */
.sap-og--b .sap-og-gallery--reviews .sap-og-review { display: flex; align-items: center; justify-content: center; height: 300px; padding: 16px; background: #fff; border: 1px solid var(--og-line); border-radius: 12px; }
/* Each screenshot carries its own ratio inline: WordPress marks lazy images sizes="auto" and
   gives them a 3000x1500 placeholder, which a bare aspect-ratio: auto let through (1,500 px cards). */
.sap-og--b .sap-og-gallery--reviews .sap-og-gallery__slide img { width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 4px; background: none; }
@media (max-width: 767px) {
	.sap-og--b .sap-og-gallery--reviews .sap-og-gallery__track { grid-auto-columns: 88%; }
	.sap-og--b .sap-og-gallery--reviews .sap-og-review { height: 220px; padding: 12px; }
	.sap-og--b .sap-og-gallery--reviews .sap-og-stars svg { width: 20px; height: 20px; }
}
