/* Páginas genéricas, prosa, pasos (slide-16), FAQ, entradas, búsqueda y 404. */

/* ---------- Encabezado de página ---------- */
.page-head { max-width: 900px; padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(1.75rem, 3vw, 2.75rem); }
.page-head__eyebrow { margin-bottom: 14px; }
.page-head__eyebrow span[aria-hidden] { margin: 0 .5em; }
.page-head__title { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.02; }
.page-head__lead { margin-top: 18px; max-width: 60ch; font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); line-height: 1.6; color: var(--c-text-soft); }
.page-head--flow { padding-bottom: 1.5rem; }
.page-head--flow .page-head__title { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.flow-page, .account-page { padding-bottom: clamp(3.5rem, 7vw, 6rem); }

/* ---------- Página de ayuda: contenido + columna lateral ---------- */
.page-help { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.page-help__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.page-help__grid--solo { grid-template-columns: minmax(0, 1fr); }
.page-help__content {
	background: var(--c-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
	padding: clamp(1.75rem, 4vw, 3.5rem);
}
/* Cómo comprar y FAQ: los pasos y el acordeón ya son tarjetas, sin panel de fondo */
.page-help--como-comprar .page-help__content,
.page-help--preguntas-frecuentes .page-help__content { background: none; box-shadow: none; padding: 0; }

.help-aside { position: sticky; top: calc(var(--sticky-offset, 0px) + 24px); display: grid; gap: 16px; }
.help-aside__card { padding: 24px; background: var(--c-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.help-aside__eyebrow { margin-bottom: 10px; }
.help-aside__list { display: grid; }
.help-aside__link {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0;
	border-bottom: 1px solid var(--c-line); font-weight: 500; color: var(--c-tinta); transition: color .2s;
}
.help-aside__list li:last-child .help-aside__link { border-bottom: 0; padding-bottom: 4px; }
.help-aside__link svg { color: var(--c-muted); transition: transform .2s var(--ease), color .2s; flex: none; }
.help-aside__link:hover, .help-aside__link.is-current { color: var(--c-rosa); }
.help-aside__link:hover svg, .help-aside__link.is-current svg { color: var(--c-rosa); transform: translateX(3px); }
.help-aside__card--vino { color: rgba(255,255,255,.85); background: linear-gradient(140deg, var(--c-tinta), var(--c-vino) 60%, var(--c-vino-600)); }
.help-aside__bubble { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(var(--rgb-amarillo),.14); color: var(--c-palo); margin-bottom: 14px; }
.help-aside__title { font-size: 22px; font-weight: 600; color: #fff; line-height: 1.2; }
.help-aside__title .accent { color: var(--c-palo); background: none; }
.help-aside__text { margin: 8px 0 18px; font-size: 15.5px; }

/* ---------- Prosa ---------- */
.prose { font-size: 1.0625rem; line-height: 1.72; color: var(--c-text); }
.prose > * { max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose p { color: var(--c-text); }
.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.15; margin-top: 2em; }
.prose h3 { font-size: clamp(1.25rem, 1.8vw, 1.45rem); line-height: 1.25; margin-top: 1.7em; }
.prose h4 { font-size: 1.1rem; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose a:not(.btn) { color: var(--c-vino); text-decoration: underline; text-decoration-color: var(--c-rosa); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:not(.btn):hover { color: var(--c-rosa); }
.prose strong { font-weight: 600; color: var(--c-tinta); }
.prose ul, .prose ol:not(.steps) { padding-left: 0; list-style: none; }
.prose ul > li, .prose ol:not(.steps) > li { position: relative; padding-left: 1.6em; }
.prose ul > li + li, .prose ol:not(.steps) > li + li { margin-top: .55em; }
.prose ul > li::before { content: ''; position: absolute; left: .35em; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-rosa); }
.prose ol:not(.steps) { counter-reset: li; }
.prose ol:not(.steps) > li { counter-increment: li; }
.prose ol:not(.steps) > li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: .1em; font-size: .8em; font-weight: 700; color: var(--c-rosa); }
.prose blockquote { margin-inline: 0; padding: .4em 0 .4em 1.25em; border-left: 3px solid var(--c-rubor); font-family: var(--f-serif); font-style: normal; font-size: 1.45em; line-height: 1.35; color: var(--c-vino); }
.prose img, .prose figure { border-radius: var(--radius); }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: .6em; font-size: .875rem; color: var(--c-muted); }
.prose hr { border: 0; height: 1px; background: var(--c-line); margin-block: 2.5em; }
.prose code { font-size: .9em; padding: .1em .4em; border-radius: 6px; background: var(--c-marfil); }
.table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--c-line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--c-surface); }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.prose thead th { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-oro); background: var(--c-marfil); }
.prose tr:last-child td { border-bottom: 0; }
.prose .wp-block-table { margin-inline: 0; }

/* ---------- Pasos (ref: slide-16) ---------- */
.prose > .steps { max-width: none; }
.steps { display: grid; gap: 16px; margin: 1.75em 0 0; padding: 0; list-style: none; counter-reset: none; }
.steps__item {
	position: relative; display: grid; grid-template-columns: 52px 1fr; column-gap: 20px; align-items: start; align-content: start;
	padding: 24px 26px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
}
.steps__icon { grid-row: 1 / span 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--c-rubor); color: var(--c-rosa); }
.steps__num { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--c-rosa); font-variant-numeric: tabular-nums; }
.prose .steps__title, .steps__title { margin: 4px 0 0; font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.2; }
.steps__text { margin-top: 6px; color: var(--c-text-soft); }
.steps__text > * + * { margin-top: .6em; }
.steps__text p { color: var(--c-text-soft); }

@media (min-width: 1100px) {
	.page-help--como-comprar .steps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 36px; }
	.page-help--como-comprar .steps__item { grid-template-columns: 1fr; padding: 26px 24px 30px; }
	.page-help--como-comprar .steps__icon { grid-row: auto; margin-bottom: 18px; }
	.page-help--como-comprar .steps__item:not(:last-child)::after {
		content: ''; position: absolute; right: -27px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
		background: var(--c-rosa);
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	}
	.page-help--como-comprar .prose > p { font-size: 1.1875rem; color: var(--c-text-soft); }
}

/* ---------- Preguntas frecuentes (acordeón <details>) ---------- */
.prose > .faq { max-width: none; }
.faq { display: grid; gap: 12px; margin-top: 1.75em; }
.faq__item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); transition: border-color .2s; }
.faq__item[open] { border-color: var(--c-line-strong); }
.faq__q {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px 20px 26px;
	cursor: pointer; list-style: none; border-radius: var(--radius-lg);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ''; }
.prose .faq__q-text, .faq__q-text { margin: 0; font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.faq__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--c-rubor); color: var(--c-vino); transition: transform .25s var(--ease), background .2s, color .2s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--c-vino); color: #fff; }
.faq__q:hover .faq__q-text { color: var(--c-vino); }
.faq__a { padding: 0 26px 22px; color: var(--c-text-soft); max-width: 72ch; }
.faq__a > * + * { margin-top: .7em; }
.faq__a p { color: var(--c-text-soft); }

/* ---------- Entrada del blog ---------- */
.post-single { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.post-single__head { margin-inline: auto; max-width: 820px; text-align: center; }
.post-single__head .page-head__lead { margin-inline: auto; }
.post-single__media { margin: 0 auto clamp(2rem, 4vw, 3rem); max-width: 1100px; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-marfil); }
.post-single__media img { width: 100%; height: 100%; object-fit: cover; }
.post-single__content { max-width: 70ch; margin-inline: auto; font-size: 1.125rem; }
.post-single__content > p:first-child::first-letter { float: left; font-family: var(--f-serif); font-style: normal; font-size: 4.2em; line-height: .8; padding: .08em .1em 0 0; color: var(--c-rosa); }
.post-single__foot { max-width: 70ch; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--c-line); display: grid; gap: 24px; }
.post-single__tags { flex-wrap: wrap; padding: 0; }
.post-single__tags a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--c-surface); border: 1.5px solid var(--c-line); font-size: 14.5px; font-weight: 500; }
.post-single__tags a:hover { border-color: var(--c-vino); }
.post-single__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-single__nav a { display: grid; gap: 4px; padding: 18px 22px; background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-card); font-weight: 600; line-height: 1.3; }
.post-single__nav a[rel="next"] { text-align: right; grid-column: 2; }
.post-single__nav a:hover { color: var(--c-rosa); }

/* ---------- Búsqueda general ---------- */
.search-list__title { margin: clamp(2.5rem, 4vw, 3.5rem) 0 18px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.search-list { display: grid; gap: 12px; }
.search-list__item { position: relative; display: grid; gap: 4px; padding: 20px 64px 20px 24px; border-radius: var(--radius); }
.search-list__name { font-size: 19px; font-weight: 600; }
.search-list__excerpt { color: var(--c-text-soft); font-size: 15.5px; }
.search-list__go { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--c-vino); }
.search-list__item:hover .search-list__name { color: var(--c-rosa); }

/* ---------- 404 ---------- */
.nf { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.nf__head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 4vw, 3.5rem); }
.nf__code { font-size: clamp(6rem, 14vw, 11rem); font-weight: 700; line-height: .9; letter-spacing: -0.05em; color: var(--c-vino); margin-bottom: 18px; }
.nf__code .accent { padding: 0 .02em; }
.nf__title { margin-top: 14px; font-size: clamp(2.25rem, 4.4vw, 3.75rem); letter-spacing: -0.03em; }
.nf__text { margin-top: 16px; max-width: 54ch; color: var(--c-text-soft); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }
.nf__search { width: 100%; max-width: 640px; margin-top: 30px; text-align: left; }
.nf__cats { padding-top: clamp(1rem, 2vw, 1.5rem); }
.nf__subtitle { text-align: center; font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 30px; }
.nf__circles { margin-inline: auto; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nf__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(2.5rem, 4vw, 3.5rem); }

/* Paginación de WP (búsqueda general) reutiliza .pager */
.pager .page-numbers:not(ul) { text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
	.page-help__grid { grid-template-columns: minmax(0, 1fr); }
	.help-aside { position: static; grid-template-columns: 1fr 1fr; }
	.nf__circles { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }
}
@media (max-width: 767px) {
	.page-head { padding-top: 22px; }
	.page-head__title { font-size: 2.6rem; }
	.help-aside { grid-template-columns: 1fr; }
	.page-help__content { padding: 22px 20px; border-radius: var(--radius); }
	.prose { font-size: 1.03rem; }
	.steps__item { grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; border-radius: var(--radius); }
	.steps__icon { width: 44px; height: 44px; border-radius: 12px; }
	.faq__q { padding: 16px 14px 16px 18px; gap: 14px; }
	.faq__a { padding: 0 18px 18px; }
	.faq__icon { width: 32px; height: 32px; }
	.post-single__nav { grid-template-columns: 1fr; }
	.post-single__nav a[rel="next"] { grid-column: auto; }
	.post-single__media { border-radius: var(--radius-lg); }
	.nf__head { padding-top: 16px; }
}
