/*
Theme Name: BMST
Description: Tema a medida de bestmalesextoy.com.
Version: 0.6.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: bmst
*/

:root {
	--navy: #15121c;
	--navy-2: #231d30;
	--ink: #17151d;
	--muted: #5c5a66;
	--paper: #f7f7f9;
	--card: #ffffff;
	--line: #e2e1e8;
	--soft: #efedf5;
	--accent: #7a2fb8;
	--accent-dark: #5f2296;
	--grad: linear-gradient(90deg, #7a2fb8 0%, #4338ca 100%);
	--grad-soft: linear-gradient(135deg, #eceaf4 0%, #dde1f0 100%);
	--on-dark: #f1f0f5;
	--on-dark-muted: #b4b1c2;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius: 14px;
	--measure: 860px;
	--page: 1360px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--accent-dark);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--ink);
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

h1,
h2,
h3 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

h2 {
	font-size: clamp(1.6rem, 3.2vw, 2.1rem);
	margin: 0 0 0.6em;
}

h3 {
	font-size: 1.45rem;
	margin: 0 0 0.4em;
}

h4 {
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 0.5em;
}

.wrap {
	max-width: var(--page);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Cabecera ---------- */
.site-header {
	background: #fff;
	color: var(--ink);
	border-bottom: 1px solid var(--line);
}

.site-header > .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.site-title {
	display: block;
	line-height: 0;
}

.site-title img {
	display: block;
	height: 64px;
	width: auto;
}

@media (max-width: 600px) {
	.site-title img {
		height: 44px;
	}
}

.menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.92rem;
}

.site-header .menu a {
	color: var(--muted);
	text-decoration: none;
}

.site-header .menu a:hover {
	color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
	background: var(--navy);
	background-image: radial-gradient(1100px 460px at 85% -10%, rgba(122, 47, 184, 0.35), transparent 70%);
	color: var(--on-dark);
	padding: 56px 0 60px;
}

.hero h1 {
	font-size: clamp(2rem, 5.2vw, 3.3rem);
	margin: 0 0 0.35em;
	max-width: 34ch;
	color: #fff;
}

.hero .lede {
	font-size: clamp(1.05rem, 2vw, 1.22rem);
	color: var(--on-dark-muted);
	max-width: 92ch;
	margin: 0 0 1.2em;
}

.byline {
	font-size: 0.88rem;
	color: var(--on-dark-muted);
	margin: 0;
}

.byline a {
	color: var(--on-dark);
}

/* Accesos por tipo dentro del hero (solo portada). */
.hero-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
}

.hero-pills a {
	display: inline-block;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 0.93rem;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
}

.hero-pills a:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: #fff;
	color: #fff;
}

/* ---------- Contenido ---------- */
.content {
	padding-top: 36px;
	padding-bottom: 24px;
}

.content > p,
.content > ul,
.content > ol,
.content > h2,
.content > h3,
.content > section > p,
.content > section > ul,
.content > section > ol,
.content > section > h2,
.content > section > details,
.prose {
	max-width: var(--measure);
}

/* Las rejillas usan todo el ancho; solo el texto corrido se limita. */
.content > section > .quick,
.content > section > .choose {
	max-width: none;
}

.content section {
	margin: 0 0 56px;
	scroll-margin-top: 16px;
}

.eyebrow {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent-dark);
	margin: 0 0 0.5em;
}

.note {
	font-size: 0.9rem;
	color: var(--muted);
}

/* Respuesta rápida */
.quick {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	max-width: none;
}

.quick li {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 16px 18px;
}

.quick li::after {
	content: "";
	display: block;
	clear: both;
}

.quick-thumb {
	float: right;
	width: 64px;
	height: 64px;
	margin: 0 0 6px 12px;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: #fff;
	object-fit: contain;
}

.quick .tag {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--accent-dark);
	margin-bottom: 4px;
}

.quick a {
	font-family: var(--serif);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
}

.quick a:hover {
	text-decoration: underline;
}

.quick p {
	margin: 4px 0 0;
	font-size: 0.93rem;
	color: var(--muted);
}

/* Tarjetas por tipo */
.types {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.type-card {
	display: block;
	background: var(--grad);
	color: #fff;
	border-radius: var(--radius);
	padding: 18px 18px 20px;
	text-decoration: none;
	transition: transform 0.15s ease, background 0.15s ease;
}

.type-card:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(67, 56, 202, 0.25);
}

.type-card strong {
	display: block;
	font-family: var(--serif);
	font-size: 1.15rem;
	margin-bottom: 4px;
}

.type-card span {
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.9);
}

/* Selector */
.picker {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0 0 14px;
}

.picker-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.picker-label {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-right: 4px;
}

.picker button {
	font: inherit;
	font-size: 0.88rem;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--card);
	color: var(--ink);
	cursor: pointer;
}

.picker button:hover {
	border-color: var(--ink);
}

.picker button[aria-pressed="true"] {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.picker-empty {
	font-size: 0.93rem;
	color: var(--muted);
}

/* Tabla: solo ella se desplaza en horizontal, nunca la página. */
.table-scroll {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
}

table.compare {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
	font-size: 0.92rem;
}

table.compare th,
table.compare td {
	text-align: left;
	vertical-align: top;
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
}

table.compare thead th {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	background: var(--soft);
	white-space: nowrap;
}

table.compare tbody tr:last-child td,
table.compare tbody tr:last-child th {
	border-bottom: 0;
}

table.compare tbody th {
	font-weight: 600;
}

table.compare tbody th a {
	color: var(--ink);
}

/* Ficha de producto */
.product {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	gap: 28px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	margin: 0 0 20px;
	scroll-margin-top: 16px;
	box-shadow: 0 1px 2px rgba(23, 21, 29, 0.04), 0 8px 24px rgba(23, 21, 29, 0.06);
}

/* Sin foto de producto: recuadro con degradado y un icono del tipo de juguete. */
.product-media {
	align-self: start;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	background-color: var(--soft);
	background-image: var(--icon, none), var(--grad-soft);
	background-repeat: no-repeat;
	background-position: center, center;
	background-size: 104px 104px, cover;
	overflow: hidden;
}

.product[data-type="manual"] .product-media {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2334304a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='21' y='7' width='22' height='50' rx='11'/%3E%3Cpath d='M27 22h10M27 32h10M27 42h10'/%3E%3C/svg%3E");
}

.product[data-type="automatic"] .product-media {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2334304a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M36 6 16 36h14l-4 22 22-32H34z'/%3E%3C/svg%3E");
}

.product[data-type="prostate"] .product-media {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2334304a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 6c10 12 16 21 16 30a16 16 0 0 1-32 0c0-9 6-18 16-30z'/%3E%3C/svg%3E");
}

.product[data-type="ring"] .product-media {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2334304a' stroke-width='2.5'%3E%3Ccircle cx='32' cy='32' r='22'/%3E%3Ccircle cx='32' cy='32' r='12'/%3E%3C/svg%3E");
}

.product[data-type="pump"] .product-media {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2334304a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='20' y='6' width='24' height='38' rx='5'/%3E%3Cpath d='M26 44v8h12v-8M32 52v6M26 16h12M26 24h12'/%3E%3C/svg%3E");
}

/* Con foto oficial del producto. */
.product-media.has-photo {
	aspect-ratio: 1 / 1;
	background: #fff;
	border: 1px solid var(--line);
}

.product-media.has-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* La etiqueta de cada ficha, como insignia. */
.product-body > .eyebrow {
	display: inline-block;
	background: var(--soft);
	color: var(--accent-dark);
	border-radius: 999px;
	padding: 4px 12px;
	margin-bottom: 10px;
	letter-spacing: 0.06em;
}

.product-body > p {
	margin: 0 0 1em;
}

.specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 8px;
	margin: 0 0 18px;
}

.specs div {
	min-width: 0;
	background: var(--soft);
	border-radius: 10px;
	padding: 8px 12px;
}

.specs dt {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.specs dd {
	margin: 0;
	font-size: 0.95rem;
}

.cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 8px 28px;
	margin: 0 0 18px;
}

.cols ul {
	margin: 0;
	padding-left: 1.1em;
	font-size: 0.95rem;
}

.cols li {
	margin-bottom: 4px;
}

.cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 0;
}

.btn {
	display: inline-block;
	background: var(--accent);
	background-image: var(--grad);
	color: #fff;
	font-weight: 600;
	font-size: 0.97rem;
	text-decoration: none;
	padding: 11px 20px;
	border-radius: 999px;
}

.btn:hover {
	color: #fff;
	filter: brightness(0.92);
}

.price-note {
	font-size: 0.85rem;
	color: var(--muted);
}

/* Elige A si… */
.choose {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.choose li {
	border-left: 3px solid var(--accent);
	background: var(--card);
	padding: 12px 16px;
	border-radius: 0 10px 10px 0;
	font-size: 0.97rem;
}

/* FAQ */
details {
	border-bottom: 1px solid var(--line);
	padding: 14px 0;
}

details summary {
	font-weight: 600;
	cursor: pointer;
}

details p {
	margin: 0.6em 0 0;
}

/* Borrador: material que falta, visible solo en la vista previa. */
.todo {
	background: #fff4d6;
	border: 1px dashed #c79a2b;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 0.88rem;
	color: #6b4e00;
}

/* ---------- Pie ---------- */
.site-footer {
	background: var(--navy);
	color: var(--on-dark-muted);
	font-size: 0.9rem;
	padding: 36px 0 44px;
	margin-top: 40px;
}

.site-footer a {
	color: var(--on-dark);
	text-decoration: none;
}

.site-footer .footer-notice a {
	text-decoration: underline;
}

.site-footer a:hover {
	text-decoration: underline;
}

.site-footer .menu {
	margin-bottom: 18px;
}

.site-footer p {
	margin: 0 0 8px;
	max-width: 70ch;
}

/* ---------- Móvil ---------- */
@media (max-width: 720px) {
	body {
		font-size: 16px;
	}

	.hero {
		padding: 30px 0 36px;
	}

	.product {
		grid-template-columns: 1fr;
		padding: 18px;
		gap: 16px;
	}

	.product-media {
		aspect-ratio: 16 / 9;
	}

	.product-media.has-photo {
		aspect-ratio: 4 / 3;
	}

	.content section {
		margin-bottom: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.type-card {
		transition: none;
	}
}
