/* ==========================================================================
   CholloPremium — estilos
   Colores en variables: [data-tema="claro"] / [data-tema="oscuro"] en <html>
   (lo pone un script en <head> antes de pintar; ver functions.php).
   ========================================================================== */

:root {
	--cp-brand: #ff6a00;
	--cp-brand-2: #ff3d00;
	--cp-brand-grad: linear-gradient(135deg, #ff8a00 0%, #ff4d00 100%);
	--cp-ok: #12a150;
	--cp-radius: 16px;
	--cp-radius-sm: 10px;
	--cp-wrap: 1280px;
	--cp-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* claro (por defecto) */
	--cp-bg: #f5f6f8;
	--cp-surface: #ffffff;
	--cp-surface-2: #f0f1f4;
	--cp-img-bg: #ffffff;
	--cp-text: #15171c;
	--cp-muted: #5f6675;
	--cp-border: #e4e6eb;
	--cp-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
	--cp-shadow-hover: 0 8px 28px rgba(255, 106, 0, .16), 0 2px 6px rgba(16, 24, 40, .08);
	--cp-header-bg: rgba(255, 255, 255, .86);
	--cp-brand-soft: #fff1e6;
	--cp-brand-text: #b84400; /* contraste AA sobre blanco y gris (antes #e05500, 2026-10-07) */
	color-scheme: light;
}

[data-tema="oscuro"] {
	--cp-bg: #0d0f13;
	--cp-surface: #161920;
	--cp-surface-2: #1f232c;
	--cp-img-bg: #ffffff;
	--cp-text: #eef0f4;
	--cp-muted: #9aa2b1;
	--cp-border: #262a34;
	--cp-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
	--cp-shadow-hover: 0 10px 30px rgba(255, 106, 0, .22), 0 2px 8px rgba(0, 0, 0, .5);
	--cp-header-bg: rgba(13, 15, 19, .82);
	--cp-brand-soft: rgba(255, 106, 0, .14);
	--cp-brand-text: #ff8a3d;
	color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--cp-bg);
	color: var(--cp-text);
	font: 16px/1.55 var(--cp-font);
	-webkit-font-smoothing: antialiased;
	transition: background-color .25s, color .25s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cp-brand-text); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0; }
:focus-visible { outline: 3px solid var(--cp-brand); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cp-skip { position: absolute; left: -999px; top: 8px; background: var(--cp-brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.cp-skip:focus { left: 8px; }
.cp-icon { flex: none; }

.cp-wrap { width: 100%; max-width: var(--cp-wrap); margin: 0 auto; padding: 0 20px; }
.cp-wrap--narrow { max-width: 820px; }
.cp-main { min-height: 60vh; padding-bottom: 56px; }

/* ---------- cabecera ---------- */
.cp-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--cp-header-bg);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid var(--cp-border);
}
.admin-bar .cp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cp-header { top: 0; } }
.cp-header__in { display: flex; align-items: center; gap: 16px; height: 68px; }

/* letra del logo: Outfit 800, servida desde el tema (14 KB, solo latín) */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/outfit-latin.woff2") format("woff2"); }
.cp-logo { display: inline-flex; align-items: center; gap: 10px; font-family: "Outfit", var(--cp-font); font-weight: 800; font-size: 24px; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.cp-logo:hover { color: inherit; }
.cp-logo__mark { display: grid; flex: none; filter: drop-shadow(0 4px 10px rgba(255, 90, 0, .28)); transition: transform .25s; }
.cp-logo:hover .cp-logo__mark { transform: rotate(-6deg) scale(1.04); }
.cp-logo__text b { font-weight: 800; background: var(--cp-brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.cp-search {
	margin-left: auto; position: relative; display: flex; align-items: center;
	flex: 0 1 340px;
}
.cp-search .cp-icon { position: absolute; left: 13px; color: var(--cp-muted); pointer-events: none; }
.cp-search input {
	width: 100%; height: 42px; padding: 0 14px 0 40px;
	border: 1px solid var(--cp-border); border-radius: 999px;
	background: var(--cp-surface-2); color: var(--cp-text); font: inherit; font-size: 15px;
	transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.cp-search input::placeholder { color: var(--cp-muted); }
.cp-search input:focus { outline: none; border-color: var(--cp-brand); background: var(--cp-surface); box-shadow: 0 0 0 4px var(--cp-brand-soft); }
.cp-search--big { margin: 22px auto; max-width: 460px; }
.cp-search--big input { height: 50px; font-size: 16px; }

.cp-iconbtn {
	display: grid; place-items: center; width: 42px; height: 42px; flex: none;
	border: 1px solid var(--cp-border); border-radius: 12px; background: var(--cp-surface);
	transition: border-color .2s, transform .2s;
}
.cp-iconbtn:hover { border-color: var(--cp-brand); color: var(--cp-brand-text); }
.cp-header__menu { display: none; }
.cp-tema span { display: grid; }
/* el botón enseña el modo AL QUE SE PASA (pedido del usuario 2026-10-07):
   en claro, la luna; en oscuro, el sol */
.cp-tema .cp-tema__sol { display: none; }
[data-tema="oscuro"] .cp-tema .cp-tema__sol { display: grid; }
[data-tema="oscuro"] .cp-tema .cp-tema__luna { display: none; }

/* chips de categorías */
.cp-chips { border-top: 1px solid var(--cp-border); }
.cp-chips__in { display: flex; gap: 8px; padding-top: 10px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.cp-chips__in::-webkit-scrollbar { display: none; }
.cp-chip {
	display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
	padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
	background: var(--cp-surface); border: 1px solid var(--cp-border); color: var(--cp-muted);
	transition: all .2s;
}
.cp-chip:hover { color: var(--cp-text); border-color: var(--cp-brand); }
.cp-chip.is-on { background: var(--cp-brand-grad); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(255, 90, 0, .3); }

/* botón «Explorar» al final de los chips */
.cp-chip--explorar { cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; color: var(--cp-text); margin-left: auto; }
.cp-chip--explorar .cp-icon--down { transition: transform .2s; }
.cp-chip--explorar[aria-expanded="true"] { border-color: var(--cp-brand); color: var(--cp-brand-text); background: var(--cp-brand-soft); }
.cp-chip--explorar[aria-expanded="true"] .cp-icon--down { transform: rotate(180deg); }

/* panel «Explorar»: todas las categorías y tiendas */
.cp-explorar {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--cp-surface); border-bottom: 1px solid var(--cp-border);
	box-shadow: 0 18px 40px rgba(16, 24, 40, .14);
	max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain;
	animation: cp-explorar-in .18s ease-out;
}
.cp-explorar[hidden] { display: none; }
@keyframes cp-explorar-in { from { opacity: 0; transform: translateY(-6px); } }
.cp-explorar__in { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 36px; padding-top: 22px; padding-bottom: 24px; }
.cp-explorar__tit {
	display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
	font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cp-muted);
}
.cp-explorar__tit .cp-icon { color: var(--cp-brand); }
.cp-explorar__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px 14px; }
.cp-explorar__col--cats .cp-explorar__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-explorar__item {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 9px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--cp-text);
	transition: background-color .15s, color .15s;
}
.cp-explorar__item > span:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-explorar__item:hover { background: var(--cp-surface-2); color: var(--cp-brand-text); }
.cp-explorar__item.is-on { background: var(--cp-brand-soft); color: var(--cp-brand-text); }
.cp-explorar__n {
	flex: none; min-width: 28px; padding: 2px 8px; border-radius: 999px; text-align: center;
	font-size: 12px; font-weight: 700; color: var(--cp-muted); background: var(--cp-surface-2);
}
.cp-explorar__item:hover .cp-explorar__n, .cp-explorar__item.is-on .cp-explorar__n { background: var(--cp-surface); color: var(--cp-brand-text); }
.cp-explorar__punto { flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 3px var(--cp-surface-2); }
.cp-explorar__col--tiendas { border-left: 1px solid var(--cp-border); padding-left: 36px; }
.cp-explorar__todo {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 16px;
	border-radius: 999px; background: var(--cp-brand-grad); color: #fff !important; font-weight: 700; font-size: 14px;
	box-shadow: 0 6px 16px rgba(255, 90, 0, .28);
}
.cp-explorar__todo:hover { filter: brightness(1.05); }
.cp-explorar__todo .cp-icon--flame { color: #fff; }
[data-tema="oscuro"] .cp-explorar { box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }

/* ---------- portada: hero ---------- */
.cp-hero {
	display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: stretch;
	margin: 28px 0 8px; padding: 36px;
	border-radius: 24px; position: relative; overflow: hidden;
	background:
		radial-gradient(600px 300px at 100% 0%, rgba(255, 138, 0, .35), transparent 60%),
		radial-gradient(500px 280px at 0% 100%, rgba(255, 61, 0, .25), transparent 60%),
		linear-gradient(135deg, #1a1208 0%, #12141a 100%);
	color: #fff;
}
.cp-hero h1 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 850; margin: 10px 0 14px; letter-spacing: -.025em; }
.cp-hero p { color: rgba(255, 255, 255, .78); font-size: 17px; max-width: 520px; margin: 0; }
.cp-hero__txt { align-self: center; }
.cp-kicker {
	display: inline-flex; align-items: center; gap: 6px; margin: 0;
	padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	background: rgba(255, 106, 0, .18); color: #ffb37a !important; border: 1px solid rgba(255, 138, 0, .35);
}
.cp-top { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 18px; backdrop-filter: blur(6px); }
.cp-top__title { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: #ffb37a !important; margin: 0 0 12px !important; }
.cp-top__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: top; }
.cp-top__list li { counter-increment: top; }
.cp-top__list a {
	display: grid; grid-template-columns: 28px 52px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
	padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; transition: background-color .2s;
}
.cp-top__list a::before { content: counter(top); grid-row: 1 / 3; font-weight: 900; font-size: 20px; color: var(--cp-brand); text-align: center; }
.cp-top__list a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.cp-top__img { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 10px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.cp-top__img img { width: 100%; height: 100%; object-fit: contain; }
.cp-top__name { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-top__price { font-weight: 800; color: #ffb37a; font-size: 15px; }
.cp-top__list .cp-dto--inline { grid-row: 1 / 3; grid-column: 4; }

/* ---------- cabecera de listado ---------- */
.cp-listhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 32px 0 18px; }
.cp-listhead h1, .cp-listhead h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; position: relative; padding-left: 14px; }
.cp-listhead h1::before, .cp-listhead h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; border-radius: 4px; background: var(--cp-brand-grad); }
.cp-listhead__desc { width: 100%; color: var(--cp-muted); }
.cp-count { color: var(--cp-muted); font-size: 14px; font-weight: 600; }

/* ---------- rejilla y tarjeta ---------- */
.cp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cp-card {
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--cp-surface); border: 1px solid var(--cp-border); border-radius: var(--cp-radius);
	box-shadow: var(--cp-shadow);
	transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s, border-color .25s;
}
.cp-card:hover { transform: translateY(-4px); box-shadow: var(--cp-shadow-hover); border-color: rgba(255, 106, 0, .45); }
.cp-card__img { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--cp-img-bg); padding: 18px; }
/* la foto ocupa SIEMPRE el mismo hueco cuadrado, sea como sea la original
   (si no, un monitor apaisado descuadra la fila) */
.cp-card__img img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; transition: transform .35s; }
.cp-card:hover .cp-card__img img { transform: scale(1.04); }
.cp-card__noimg { display: grid; place-items: center; width: 100%; height: 100%; color: #c9cdd6; }
.cp-card__body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.cp-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cp-card__title { font-size: 15.5px; font-weight: 650; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cp-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }

.cp-dto {
	position: absolute; top: 12px; left: 12px;
	padding: 5px 10px; border-radius: 10px;
	background: var(--cp-brand-grad); color: #fff; font-weight: 850; font-size: 15px; letter-spacing: -.01em;
	box-shadow: 0 4px 12px rgba(255, 70, 0, .35);
}
.cp-dto--inline { position: static; font-size: 13px; padding: 4px 8px; box-shadow: none; }
.cp-dto--lg { font-size: 22px; padding: 8px 14px; top: 18px; left: 18px; border-radius: 14px; }
.cp-caducado {
	position: absolute; inset: auto 12px 12px auto;
	padding: 4px 10px; border-radius: 8px; background: #15171c; color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.is-caducado .cp-card__img img, .is-caducado .cp-deal__img img { filter: grayscale(1); opacity: .55; }
.is-caducado .cp-precio { color: var(--cp-muted); text-decoration: line-through; }

.cp-tienda {
	display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 7px;
	background: var(--t-bg); color: var(--t-fg) !important; font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.cp-tienda:hover { filter: brightness(1.08); }
.cp-hace { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--cp-muted); white-space: nowrap; }

.cp-precios { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cp-precio { font-size: 22px; font-weight: 850; color: var(--cp-brand-text); letter-spacing: -.02em; }
.cp-antes { font-size: 14px; color: var(--cp-muted); }
.cp-precios--lg .cp-precio { font-size: 40px; }
.cp-precios--lg .cp-antes { font-size: 18px; }
.cp-ahorro { flex-basis: 100%; font-size: 14px; font-weight: 700; color: var(--cp-ok); }

/* botón de compra */
.cp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border-radius: 12px; border: 0;
	background: var(--cp-brand-grad); color: #fff !important; font-weight: 800; font-size: 15px; white-space: nowrap;
	box-shadow: 0 6px 18px rgba(255, 80, 0, .32);
	transition: transform .2s, box-shadow .2s, filter .2s;
}
.cp-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 80, 0, .42); filter: brightness(1.05); }
.cp-btn:active { transform: translateY(0); }
.cp-btn--sm { padding: 9px 13px; font-size: 14px; border-radius: 10px; box-shadow: 0 4px 12px rgba(255, 80, 0, .28); }
.cp-btn--sm span { display: none; }
.cp-btn--lg { width: 100%; padding: 17px 24px; font-size: 18px; border-radius: 14px; }
.is-caducado .cp-btn { background: var(--cp-surface-2); color: var(--cp-text) !important; box-shadow: none; }

/* cupón */
.cp-cupon {
	display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center;
	padding: 10px 14px; border-radius: 12px; border: 2px dashed var(--cp-brand);
	background: var(--cp-brand-soft); color: var(--cp-brand-text); font-size: 15px;
	transition: background-color .2s;
}
.cp-cupon b { letter-spacing: .06em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cp-cupon__accion { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 13px; font-weight: 700; }
.cp-cupon.is-ok { border-color: var(--cp-ok); color: var(--cp-ok); }
.cp-cupon--sm { padding: 6px 10px; font-size: 13px; border-width: 1.5px; }

/* ---------- ficha del chollo ---------- */
.cp-crumbs { display: flex; gap: 8px; align-items: center; margin: 22px 0 16px; font-size: 14px; color: var(--cp-muted); }
.cp-crumbs a:hover { color: var(--cp-brand-text); }
.cp-deal { background: var(--cp-surface); border: 1px solid var(--cp-border); border-radius: 24px; box-shadow: var(--cp-shadow); overflow: hidden; }
.cp-deal__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cp-deal__img { position: relative; display: grid; place-items: center; background: var(--cp-img-bg); padding: 40px; min-height: 420px; border-right: 1px solid var(--cp-border); }
.cp-deal__img img { max-height: 480px; width: auto; object-fit: contain; }
.cp-deal__info { padding: 32px 36px; display: flex; flex-direction: column; gap: 18px; }
.cp-deal__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; }
.cp-pricebox { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 18px; background: var(--cp-surface-2); border: 1px solid var(--cp-border); }
.cp-fin, .cp-nota { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--cp-muted); }
.cp-fin { color: var(--cp-brand-text); font-weight: 700; }
.cp-aviso { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fdecea; color: #b42318; font-weight: 600; }
[data-tema="oscuro"] .cp-aviso { background: rgba(240, 68, 56, .15); color: #ff8a80; }
.cp-share {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
	padding: 9px 14px; border-radius: 10px; border: 1px solid var(--cp-border); background: transparent; font-weight: 600; font-size: 14px; color: var(--cp-muted);
}
.cp-share:hover { color: var(--cp-text); border-color: var(--cp-brand); }
.cp-deal__content { padding: 32px 36px 36px; border-top: 1px solid var(--cp-border); }
.cp-deal__content.cp-prose { max-width: none; }
.cp-deal__content.cp-prose > * { max-width: 760px; }
.cp-related { margin-top: 12px; }

/* texto largo */
.cp-prose { font-size: 17px; line-height: 1.7; max-width: 760px; }
.cp-prose > * + * { margin-top: 1.1em; }
.cp-prose h2 { font-size: 24px; margin-top: 1.6em; }
.cp-prose h3 { font-size: 20px; margin-top: 1.4em; }
.cp-prose a { color: var(--cp-brand-text); text-decoration: underline; text-underline-offset: 3px; }
.cp-prose ul, .cp-prose ol { padding-left: 1.3em; }
.cp-prose li + li { margin-top: .35em; }
.cp-prose img { border-radius: 12px; }
.cp-prose blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--cp-brand); color: var(--cp-muted); }
.cp-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cp-prose th, .cp-prose td { padding: 10px; border-bottom: 1px solid var(--cp-border); text-align: left; }

.cp-page { margin-top: 32px; padding: 36px; background: var(--cp-surface); border: 1px solid var(--cp-border); border-radius: 24px; }
.cp-page__title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 18px; }

/* ---------- paginación, vacío, 404 ---------- */
.cp-pag { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.cp-pag .page-numbers {
	display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px;
	border-radius: 12px; background: var(--cp-surface); border: 1px solid var(--cp-border); font-weight: 700;
}
.cp-pag .page-numbers:hover { border-color: var(--cp-brand); }
.cp-pag .current { background: var(--cp-brand-grad); color: #fff; border-color: transparent; }
.cp-pag .dots { background: transparent; border: 0; }
.cp-empty { text-align: center; padding: 64px 20px; color: var(--cp-muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cp-404 { color: var(--cp-text); }
.cp-404__code { font-size: 96px; font-weight: 900; line-height: 1; margin: 0; background: var(--cp-brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cp-404 h1 { font-size: 28px; }
.cp-404 p { color: var(--cp-muted); margin: 0; }

/* ---------- pie ---------- */
.cp-footer { background: var(--cp-surface); border-top: 1px solid var(--cp-border); padding: 40px 0 24px; }
.cp-footer__in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cp-footer__brand { max-width: 420px; }
.cp-footer__brand p { color: var(--cp-muted); margin: 12px 0 0; }
.cp-footer__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 20px; flex-wrap: wrap; }
.cp-footer__list a { color: var(--cp-muted); font-weight: 600; }
.cp-footer__legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--cp-border); font-size: 13px; color: var(--cp-muted); }
.cp-footer__legal p { margin: 0 0 6px; }

/* toast */
.cp-toast {
	position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
	padding: 12px 18px; border-radius: 12px; background: #15171c; color: #fff; font-weight: 600; font-size: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: all .25s; z-index: 200; pointer-events: none;
}
.cp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
	.cp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
	.cp-hero { grid-template-columns: 1fr; padding: 28px; }
	.cp-deal__top { grid-template-columns: 1fr; }
	.cp-deal__img { border-right: 0; border-bottom: 1px solid var(--cp-border); min-height: 0; padding: 28px; }
	.cp-deal__img img { max-height: 340px; }
	.cp-header__menu { display: grid; }
}
@media (max-width: 760px) {
	.cp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.cp-wrap { padding: 0 14px; }
	.cp-header__in { gap: 10px; height: 60px; }
	.cp-search { flex: 1 1 auto; }
	.cp-header .cp-logo__text { display: none; }
	/* en móvil el menú (☰) abre el panel; el chip «Explorar» sobra */
	.cp-chip--explorar { display: none; }
	.cp-explorar { max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); }
	.cp-explorar__in { grid-template-columns: 1fr; gap: 22px; padding-top: 16px; padding-bottom: 20px; }
	.cp-explorar__col--tiendas { border-left: 0; padding-left: 0; border-top: 1px solid var(--cp-border); padding-top: 18px; }
	.cp-explorar__col--cats .cp-explorar__lista { grid-template-columns: 1fr; }
	.cp-explorar__item { padding: 11px 12px; }
	.cp-explorar__todo { display: flex; justify-content: center; }
	.cp-hero { margin-top: 16px; border-radius: 18px; padding: 22px; }
	/* en móvil, a los chollos cuanto antes: fuera el párrafo y más compacto */
	.cp-hero { gap: 16px; padding: 18px; }
	.cp-hero h1 { font-size: 24px; margin: 8px 0 0; }
	.cp-hero__txt > p:not(.cp-kicker) { display: none; }
	.cp-kicker { font-size: 11px; padding: 4px 10px; }
	.cp-top { padding: 12px; }
	.cp-top__list { gap: 8px; }
	.cp-top__list a { padding: 8px; grid-template-columns: 22px 44px 1fr auto; }
	.cp-top__img { width: 44px; height: 44px; }
	.cp-card__body { padding: 10px 12px 12px; gap: 8px; }
	.cp-card__img { padding: 10px; }
	.cp-card__img img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
	.cp-card__title { font-size: 14px; }
	.cp-precio { font-size: 18px; }
	.cp-card__foot { flex-wrap: wrap; }
	.cp-card__foot .cp-btn { width: 100%; }
	.cp-btn--sm span { display: inline; }
	.cp-hace { display: none; }
	.cp-dto { font-size: 13px; padding: 4px 8px; top: 8px; left: 8px; }
	.cp-deal__info, .cp-deal__content { padding: 22px 18px; }
	.cp-precios--lg .cp-precio { font-size: 34px; }
	.cp-page { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* punto verde «en directo» (acceso al Top 10 y su cabecera) */
.cp-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); animation: cp-pulso 1.8s infinite; }
@keyframes cp-pulso { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* acceso al top 10, en la barra de categorías: oscuro con trofeo dorado */
.cp-toplink {
	display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; flex: none;
	padding: 6px 13px 6px 11px; border-radius: 999px; font-size: 14px; font-weight: 800; letter-spacing: .01em;
	background: #15171c; color: #fff !important; border: 1px solid #15171c;
	box-shadow: 0 2px 8px rgba(16, 24, 40, .18);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cp-toplink .cp-icon { color: #ffc83d; }
.cp-toplink .cp-live { width: 7px; height: 7px; margin-left: 1px; }
.cp-toplink:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16, 24, 40, .25); }
.cp-toplink.is-on { border-color: #ffc83d; box-shadow: 0 0 0 3px rgba(255, 200, 61, .25); }
[data-tema="oscuro"] .cp-toplink { background: #2a2414; border-color: rgba(255, 200, 61, .35); color: #ffe2a0 !important; box-shadow: none; }
[data-tema="oscuro"] .cp-toplink:hover, [data-tema="oscuro"] .cp-toplink.is-on { border-color: #ffc83d; }
.cp-chips__sep { flex: none; width: 1px; align-self: stretch; margin: 4px 2px; background: var(--cp-border); }


/* ==========================================================================
   Llamas vivas (pedido 2026-10-07: «que parpadeen y den sensación de
   movimiento»). Se balancean desde la base, cambian de tamaño a destiempo
   y brillan; el núcleo interior late más rápido. Sin animación si el
   visitante pidió menos movimiento (regla global prefers-reduced-motion).
   ========================================================================== */
.cp-icon--flame { overflow: visible; transform-origin: 50% 92%; animation: cp-llama 1.2s ease-in-out infinite; }
.cp-icon--flame .cp-llama__ext { fill: rgba(255, 138, 0, .18); }
.cp-icon--flame .cp-llama__int { fill: #ffb000; transform-origin: 50% 90%; animation: cp-nucleo .45s ease-in-out infinite alternate; }
@keyframes cp-llama {
	0%   { transform: rotate(-6deg) scale(1, 1);        filter: drop-shadow(0 0 1px rgba(255, 120, 0, .3)); }
	18%  { transform: rotate(4deg)  scale(1.08, .92); }
	36%  { transform: rotate(-4deg) scale(.94, 1.16);   filter: drop-shadow(0 -1px 6px rgba(255, 110, 0, .9)); }
	55%  { transform: rotate(6deg)  scale(1.06, .95); }
	75%  { transform: rotate(-2deg) scale(.96, 1.12);   filter: drop-shadow(0 0 4px rgba(255, 120, 0, .6)); }
	100% { transform: rotate(-6deg) scale(1, 1);        filter: drop-shadow(0 0 1px rgba(255, 120, 0, .3)); }
}
@keyframes cp-nucleo {
	from { transform: scale(.7, .65); opacity: .6; }
	to   { transform: scale(1.1, 1.2); opacity: 1; }
}
/* que no vayan todas sincronizadas */
.cp-chip .cp-icon--flame { animation-delay: -.3s; }
.cp-kicker .cp-icon--flame { animation-delay: -.7s; }
.cp-top__title .cp-icon--flame { animation-delay: -1.1s; }
.cp-rank__why .cp-icon--flame { animation-duration: 1.3s; }
.cp-rank__item:nth-child(2n) .cp-icon--flame { animation-delay: -.5s; }
.cp-rank__item:nth-child(3n) .cp-icon--flame { animation-delay: -.9s; }
/* sobre fondo naranja (chip activo): núcleo claro */
.cp-chip.is-on .cp-icon--flame .cp-llama__ext { fill: rgba(255, 255, 255, .25); }
.cp-chip.is-on .cp-icon--flame .cp-llama__int { fill: #fff3c4; }
/* al pasar por encima, se aviva */
a:hover .cp-icon--flame, .cp-chip:hover .cp-icon--flame { animation-duration: .8s; }

/* ==========================================================================
   Top 10 (page-top-10.php) — primera versión, restaurada 2026-10-07
   ========================================================================== */
.cp-tophero {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	margin: 20px 0 12px; padding: 18px 24px; border-radius: 18px; color: #fff; overflow: hidden; position: relative;
	background:
		radial-gradient(520px 260px at 100% 0%, rgba(255, 200, 0, .32), transparent 60%),
		radial-gradient(520px 260px at 0% 100%, rgba(255, 61, 0, .28), transparent 60%),
		linear-gradient(135deg, #1a1208 0%, #12141a 100%);
}
.cp-tophero h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: -.03em; margin: 6px 0 4px; }
.cp-tophero p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 14.5px; max-width: 560px; }
.cp-tophero .cp-kicker { font-size: 11px; padding: 4px 10px; }
.cp-tophero__meta { display: flex; flex-direction: row-reverse; align-items: center; gap: 12px; flex: none; }
.cp-tophero__trofeo {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
	background: linear-gradient(135deg, #ffd34d, #ff8a00); color: #3a2200;
	box-shadow: 0 8px 22px rgba(255, 170, 0, .4); transform: rotate(-6deg);
}
.cp-tophero__trofeo svg { width: 34px; height: 34px; }
.cp-tophero__upd { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .08); padding: 6px 12px; border-radius: 999px; }

.cp-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cp-rank__item {
	display: grid; grid-template-columns: 44px 84px minmax(0, 1fr); align-items: center; gap: 14px;
	padding: 8px 14px 8px 10px; background: var(--cp-surface); border: 1px solid var(--cp-border); border-radius: var(--cp-radius);
	box-shadow: var(--cp-shadow); transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s, border-color .25s;
}
.cp-rank__item:hover { transform: translateY(-3px); box-shadow: var(--cp-shadow-hover); border-color: rgba(255, 106, 0, .45); }
.cp-rank__pos {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
	font-size: 19px; font-weight: 900; letter-spacing: -.03em;
	background: var(--cp-surface-2); color: var(--cp-muted); border: 1px solid var(--cp-border);
}
.cp-rank__img { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 12px; background: var(--cp-img-bg); overflow: hidden; }
.cp-rank__img img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.cp-rank__img .cp-dto { top: 3px; left: 3px; font-size: 11px; padding: 2px 5px; border-radius: 7px; }
.cp-rank__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cp-rank__title { font-size: 15px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-rank__item .cp-precio { font-size: 18px; }
.cp-rank__btn { padding: 8px 13px; font-size: 13.5px; border-radius: 10px; }
.cp-rank__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cp-rank__why { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.cp-rank__why--hoy { background: var(--cp-brand-soft); color: var(--cp-brand-text); }
.cp-rank__why--semana, .cp-rank__why--descuento { background: var(--cp-surface-2); color: var(--cp-muted); }

/* podio: oro, plata y bronce; el 1 más grande */
.cp-rank__item.is-podio { border-width: 2px; }
.cp-rank__item--1 { grid-template-columns: 44px 100px minmax(0, 1fr); padding: 10px 14px 10px 10px; border-color: #ffc83d; background: linear-gradient(90deg, rgba(255, 200, 61, .14), var(--cp-surface) 45%); }
.cp-rank__item--1 .cp-rank__title { font-size: 16.5px; }
.cp-rank__item--1 .cp-precio { font-size: 21px; }
.cp-rank__item--1 .cp-rank__pos { width: 44px; height: 44px; font-size: 22px; }
.cp-rank__item--1 .cp-rank__pos { background: linear-gradient(135deg, #ffe17a, #f5a300); color: #4a2c00; border: 0; box-shadow: 0 8px 24px rgba(245, 163, 0, .45); }
.cp-rank__item--2 { border-color: #c9d1dc; }
.cp-rank__item--2 .cp-rank__pos { background: linear-gradient(135deg, #f1f4f8, #aab4c3); color: #2b3340; border: 0; box-shadow: 0 6px 18px rgba(120, 135, 160, .35); }
.cp-rank__item--3 { border-color: #e2a978; }
.cp-rank__item--3 .cp-rank__pos { background: linear-gradient(135deg, #f6c79c, #c97a3f); color: #3d1f08; border: 0; box-shadow: 0 6px 18px rgba(201, 122, 63, .35); }
[data-tema="oscuro"] .cp-rank__item--2 { border-color: #5b6575; }
[data-tema="oscuro"] .cp-rank__item--3 { border-color: #8a5a35; }

@media (max-width: 760px) {
	.cp-tophero { padding: 14px 16px; border-radius: 16px; margin-top: 12px; gap: 10px; }
	.cp-tophero h1 { font-size: 22px; }
	.cp-tophero p { display: none; }
	.cp-tophero__meta { flex-direction: column; align-items: flex-end; gap: 6px; }
	.cp-tophero__trofeo { width: 40px; height: 40px; border-radius: 12px; }
	.cp-tophero__trofeo svg { width: 24px; height: 24px; }
	.cp-tophero__upd { font-size: 11px; padding: 4px 9px; }
	.cp-rank { gap: 6px; }
	.cp-rank__item, .cp-rank__item--1 { grid-template-columns: 30px 64px minmax(0, 1fr); gap: 9px; padding: 7px 9px 7px 7px; }
	.cp-rank__pos, .cp-rank__item--1 .cp-rank__pos { width: 30px; height: 30px; font-size: 15px; border-radius: 9px; }
	.cp-rank__title, .cp-rank__item--1 .cp-rank__title { font-size: 13.5px; -webkit-line-clamp: 2; }
	.cp-rank__img .cp-dto { display: none; }
	.cp-rank__item .cp-card__meta { gap: 4px; }
	.cp-rank__item .cp-precio, .cp-rank__item--1 .cp-precio { font-size: 16px; }
	.cp-rank__foot { flex-wrap: nowrap; }
	.cp-rank__foot .cp-precios { min-width: 0; gap: 2px 6px; }
	.cp-rank__foot .cp-antes { font-size: 12px; }
	.cp-rank__btn span { display: none; }
	.cp-rank__btn { padding: 7px 10px; }
	.cp-rank__why { font-size: 11px; padding: 1px 7px; }
	.cp-rank__item .cp-tienda { font-size: 11px; }
}

/* Top 10 en pirámide (2026-10-07, elegido por el usuario): el 1 de lado a
   lado, el 2 y el 3 escalonados y del 4 al 10 más estrechos, todos centrados.
   Solo en pantallas anchas: en el móvil no hay sitio para estrechar. */
@media (min-width: 761px) {
	.cp-rank__item { width: 100%; justify-self: center; }
	.cp-rank__item--2 { width: 96%; }
	.cp-rank__item--3 { width: 92%; margin-bottom: 6px; }
	.cp-rank__item:not(.is-podio) { width: 86%; }
}

/* hora del precio (norma de Amazon: precio de la API con su fecha y hora) */
.cp-precio-hora { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--cp-muted); white-space: nowrap; }
.cp-card .cp-precio-hora { margin-top: -4px; }
.cp-rank .cp-precios { align-items: baseline; }
.cp-rank .cp-precio-hora { flex-basis: 100%; }
.cp-top__hora { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .55); }
.cp-nota { align-items: center; }

/* ==========================================================================
   Botón «Ir al chollo» vivo (2026-10-07, pedido: «parpadeando para generar
   interacción»): latido + halo naranja + destello que cruza. Fuerte en la
   ficha, suave y desfasado en las tarjetas. Caducados quietos; con
   «reducir movimiento» se apaga (regla global prefers-reduced-motion).
   ========================================================================== */
.cp-btn { position: relative; overflow: hidden; isolation: isolate; }
.cp-btn::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
	transform: translateX(-120%);
}
.cp-btn--lg { animation: cp-latido 1.8s ease-in-out infinite; }
.cp-btn--lg::after { animation: cp-destello 3.2s ease-in-out infinite; }
.cp-card .cp-btn, .cp-rank .cp-btn { animation: cp-halo 2.4s ease-in-out infinite; }
.cp-card .cp-btn::after, .cp-rank .cp-btn::after { animation: cp-destello 4.5s ease-in-out infinite; }
/* desfase entre tarjetas para que no laten todas a la vez */
.cp-grid > :nth-child(3n+1) .cp-btn, .cp-rank > :nth-child(3n+1) .cp-btn { animation-delay: -.6s; }
.cp-grid > :nth-child(3n+2) .cp-btn, .cp-rank > :nth-child(3n+2) .cp-btn { animation-delay: -1.3s; }
.cp-grid > :nth-child(3n+1) .cp-btn::after, .cp-rank > :nth-child(3n+1) .cp-btn::after { animation-delay: -1.5s; }
.cp-grid > :nth-child(3n+2) .cp-btn::after, .cp-rank > :nth-child(3n+2) .cp-btn::after { animation-delay: -3s; }
.is-caducado .cp-btn, .is-caducado .cp-btn::after { animation: none !important; }
.cp-btn:hover { animation-play-state: paused; }
@keyframes cp-latido {
	0%, 100% { transform: scale(1);    box-shadow: 0 6px 18px rgba(255, 80, 0, .32), 0 0 0 0 rgba(255, 106, 0, .55); }
	50%      { transform: scale(1.035); box-shadow: 0 10px 26px rgba(255, 80, 0, .45), 0 0 0 10px rgba(255, 106, 0, 0); }
}
@keyframes cp-halo {
	0%, 100% { box-shadow: 0 4px 12px rgba(255, 80, 0, .28), 0 0 0 0 rgba(255, 106, 0, .5); }
	50%      { box-shadow: 0 6px 16px rgba(255, 80, 0, .4),  0 0 0 7px rgba(255, 106, 0, 0); }
}
@keyframes cp-destello {
	0%, 55% { transform: translateX(-120%); }
	75%, 100% { transform: translateX(120%); }
}

/* ==========================================================================
   % de descuento sobre la foto: pegatina grande y llamativa (2026-10-07,
   pedido: «el % de la foto más grande y llamativo»). Rojo-naranja, borde
   blanco, girada y con un balanceo suave. Las píldoras pequeñas en línea
   (.cp-dto--inline, listas) no cambian.
   ========================================================================== */
.cp-card__img .cp-dto, .cp-deal__img .cp-dto, .cp-rank__img .cp-dto {
	top: 10px; left: 10px; z-index: 2;
	padding: 7px 12px 6px; border-radius: 14px;
	font-size: 22px; font-weight: 900; letter-spacing: -.03em; line-height: 1;
	background: linear-gradient(135deg, #ff5a1f 0%, #e5102b 100%);
	color: #fff; border: 3px solid #fff;
	box-shadow: 0 8px 20px rgba(229, 16, 43, .45), 0 2px 4px rgba(0, 0, 0, .15);
	transform: rotate(-8deg); transform-origin: 30% 70%;
	animation: cp-pegatina 3s ease-in-out infinite;
}
.cp-deal__img .cp-dto--lg { top: 30px; left: 30px; padding: 12px 20px 10px; font-size: 42px; border-radius: 20px; border-width: 4px; }
.cp-rank__img .cp-dto { font-size: 14px; padding: 4px 7px 3px; border-width: 2px; border-radius: 9px; top: 4px; left: 4px; }
@keyframes cp-pegatina {
	0%, 100% { transform: rotate(-8deg) scale(1); }
	50%      { transform: rotate(-4deg) scale(1.06); }
}
.cp-grid > :nth-child(2n) .cp-dto { animation-delay: -1.5s; }
@media (max-width: 760px) {
	.cp-card__img .cp-dto { font-size: 17px; padding: 5px 9px 4px; border-width: 2px; border-radius: 11px; top: 6px; left: 6px; }
	.cp-deal__img .cp-dto--lg { font-size: 30px; padding: 9px 14px 7px; }
}

/* ==========================================================================
   Descripción del chollo (2026-10-07, «más atractiva»): título de sección,
   franja de datos rápidos, primer párrafo destacado, precios resaltados,
   «Lo más destacado» como tarjetas con check y llamada final con botón.
   ========================================================================== */
.cp-desc { display: flex; flex-direction: column; gap: 22px; }
.cp-desc__titulo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.cp-desc__titulo .cp-icon { color: var(--cp-brand); }
.cp-desc__datos { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-dato {
	display: inline-flex; flex-direction: column; gap: 2px; padding: 9px 14px; border-radius: 12px;
	background: var(--cp-surface-2); border: 1px solid var(--cp-border); min-width: 110px;
}
.cp-dato span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--cp-muted); }
.cp-dato b { font-size: 15px; font-weight: 800; }
.cp-dato--precio b { color: var(--cp-brand-text); font-size: 17px; }
.cp-dato--ahorro { background: rgba(18, 161, 80, .08); border-color: rgba(18, 161, 80, .25); }
.cp-dato--ahorro b { color: var(--cp-ok); }
.cp-dato--dto { background: linear-gradient(135deg, #ff5a1f, #e5102b); border-color: transparent; }
.cp-dato--dto span, .cp-dato--dto b { color: #fff; }

.cp-desc__texto { max-width: 820px; }
.cp-desc__texto > p:first-of-type { font-size: 19px; line-height: 1.65; color: var(--cp-text); }
.cp-desc__texto .cp-euros { color: var(--cp-brand-text); font-weight: 800; white-space: nowrap; }
/* «Lo más destacado» → tarjetas con check */
.cp-desc__texto ul.wp-block-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cp-desc__texto ul.wp-block-list li {
	position: relative; margin: 0; padding: 12px 14px 12px 44px; border-radius: 12px;
	background: var(--cp-surface-2); border: 1px solid var(--cp-border); font-size: 15px; line-height: 1.45;
}
.cp-desc__texto ul.wp-block-list li::before {
	content: ""; position: absolute; left: 13px; top: 13px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--cp-brand-grad) center / 12px no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"), var(--cp-brand-grad);
	background-size: 12px, 100%; background-position: center; background-repeat: no-repeat;
}
.cp-desc__cta {
	display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
	padding: 18px 20px; border-radius: 18px;
	background: linear-gradient(135deg, rgba(255, 138, 0, .12), rgba(255, 61, 0, .06)); border: 1px solid rgba(255, 106, 0, .3);
}
.cp-desc__cta-tit { margin: 0 0 2px; font-size: 17px; font-weight: 800; }
.cp-desc__cta-txt { margin: 0; font-size: 14px; color: var(--cp-muted); }
.cp-desc__btn.cp-btn--lg { width: auto; min-width: 240px; }
@media (max-width: 760px) {
	.cp-desc { gap: 16px; }
	.cp-desc__titulo { font-size: 19px; }
	.cp-dato { min-width: 0; flex: 1 1 40%; padding: 8px 12px; }
	.cp-desc__texto > p:first-of-type { font-size: 17px; }
	.cp-desc__texto ul.wp-block-list { grid-template-columns: 1fr; }
	.cp-desc__cta { padding: 14px; }
	.cp-desc__btn.cp-btn--lg { width: 100%; }
}

/* chollo recién llegado a la portada (main.js, «en vivo») */
.cp-card.is-nuevo { animation: cp-nuevo-in .6s cubic-bezier(.2, .8, .2, 1) both, cp-nuevo-brillo 2.4s ease-out .2s 1; }
@keyframes cp-nuevo-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
@keyframes cp-nuevo-brillo {
	0%, 40% { box-shadow: 0 0 0 3px var(--cp-brand), var(--cp-shadow-hover); }
	100% { box-shadow: var(--cp-shadow); }
}
@media (prefers-reduced-motion: reduce) { .cp-card.is-nuevo { animation: none; } }

/* aviso de cookies (inc/analitica.php): barra flotante abajo, mismo peso a Aceptar y Rechazar */
.cp-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.cp-cookies[hidden] { display: none; }
.cp-cookies__in {
	pointer-events: auto; display: flex; align-items: center; gap: 18px; max-width: 860px; width: 100%;
	padding: 14px 16px 14px 20px; border-radius: 16px; background: var(--cp-surface); color: var(--cp-text);
	border: 1px solid var(--cp-border); box-shadow: 0 16px 40px rgba(16, 24, 40, .18);
	animation: cp-explorar-in .25s ease-out;
}
.cp-cookies__in p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--cp-muted); }
.cp-cookies__in p strong { color: var(--cp-text); }
.cp-cookies__in a { color: var(--cp-brand-text); font-weight: 600; text-decoration: underline; }
.cp-cookies__btns { display: flex; gap: 8px; flex: none; }
.cp-cookies__btn {
	min-width: 104px; height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
	font: inherit; font-size: 14px; font-weight: 700;
	border: 1px solid var(--cp-border); background: var(--cp-surface-2); color: var(--cp-text);
}
.cp-cookies__btn--si { background: var(--cp-brand-grad); border-color: transparent; color: #fff; }
.cp-cookies__btn:hover { filter: brightness(1.05); }
.cp-footer__cookies { margin-left: 10px; text-decoration: underline; color: var(--cp-muted); }
[data-tema="oscuro"] .cp-cookies__in { box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
@media (max-width: 640px) {
	.cp-cookies { left: 10px; right: 10px; bottom: 10px; }
	.cp-cookies__in { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
	.cp-cookies__btn { flex: 1; }
}

/* móvil (2026-10-07): «.cp-wrap { padding: 0 14px }» del bloque de 760 px
   anulaba el aire de arriba y abajo de la fila de chips, que quedaba pegada
   a la búsqueda. Aquí se devuelve con más especificidad y se compacta. */
@media (max-width: 760px) {
	.cp-chips .cp-chips__in { padding: 12px 14px 12px; gap: 8px; }
	.cp-chips .cp-chip, .cp-chips .cp-toplink { padding: 7px 13px; font-size: 13.5px; }
	.cp-chips .cp-chips__sep { margin: 6px 0; }
	/* la fila se desliza: difuminado a la derecha para que se note */
	.cp-chips__in { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
	.cp-chips .cp-chip:last-child { margin-right: 24px; }
}

/* móvil: logo entero y búsqueda tras la lupa (2026-10-07, pedido del usuario) */
.cp-header__lupa { display: none; }
@media (max-width: 760px) {
	.cp-header .cp-logo__text { display: inline; }
	.cp-header .cp-logo { font-size: 20px; gap: 8px; }
	.cp-header .cp-logo__mark svg { width: 34px; height: 34px; }
	.cp-header__in { position: relative; }
	.cp-header__lupa { display: grid; margin-left: auto; }
	.cp-header .cp-search { display: none; }
	.cp-header.is-buscando .cp-search {
		display: flex; position: absolute; inset: 9px 14px; z-index: 3; margin: 0;
		animation: cp-explorar-in .16s ease-out;
	}
	.cp-header.is-buscando .cp-search input { height: 42px; background: var(--cp-surface); border-color: var(--cp-brand); box-shadow: 0 0 0 4px var(--cp-brand-soft); }
}
@media (max-width: 370px) {
	.cp-header .cp-logo { font-size: 18px; }
	.cp-header__in { gap: 8px; }
}

/* canal de Telegram (inc/telegram-cta.php) */
.cp-tg {
	--tg: #229ed9;
	display: flex; align-items: center; gap: 18px; margin: 28px 0;
	padding: 20px 22px; border-radius: var(--cp-radius);
	background: linear-gradient(135deg, rgba(34, 158, 217, .12), rgba(34, 158, 217, .04) 60%), var(--cp-surface);
	border: 1px solid rgba(34, 158, 217, .35); box-shadow: var(--cp-shadow);
}
.cp-tg__icono {
	flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
	color: #fff; background: linear-gradient(135deg, #37aee2, #1e96c8); box-shadow: 0 8px 20px rgba(34, 158, 217, .35);
}
.cp-tg__icono .cp-tg__ico { transform: translateX(-1px); }
.cp-tg__txt { flex: 1; min-width: 0; }
.cp-tg__vivo { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tg); }
.cp-tg__tit { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.25; color: var(--cp-text); }
.cp-tg__desc { margin: 4px 0 0; font-size: 14.5px; color: var(--cp-muted); }
.cp-tg__accion { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cp-tg__btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
	background: linear-gradient(135deg, #37aee2, #1e96c8); color: #fff !important; font-weight: 800; font-size: 15px;
	box-shadow: 0 8px 20px rgba(34, 158, 217, .35); transition: transform .15s, box-shadow .15s;
}
.cp-tg__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(34, 158, 217, .45); }
.cp-tg__nota { font-size: 11.5px; color: var(--cp-muted); }
.cp-tg--portada { margin: 22px 0 6px; }
.cp-footer__tg { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; color: #229ed9 !important; }
[data-tema="oscuro"] .cp-tg { background: linear-gradient(135deg, rgba(34, 158, 217, .18), rgba(34, 158, 217, .05) 60%), var(--cp-surface); }
@media (max-width: 640px) {
	.cp-tg { flex-wrap: wrap; gap: 12px 14px; padding: 16px; }
	.cp-tg__icono { width: 46px; height: 46px; border-radius: 13px; }
	.cp-tg__txt { flex: 1 1 calc(100% - 64px); }
	.cp-tg__tit { font-size: 17px; }
	.cp-tg__accion { flex: 1 1 100%; }
	.cp-tg__btn { width: 100%; justify-content: center; padding: 13px; }
}
@media (max-width: 640px) { .cp-tg__icono { align-self: flex-start; } }

/* ---------- páginas de tienda y categoría (inc/listados.php) ---------- */
.cp-lhero {
	display: flex; align-items: flex-start; gap: 20px; margin: 6px 0 18px; padding: 24px 26px;
	border-radius: 20px; background: var(--cp-surface); border: 1px solid var(--cp-border); box-shadow: var(--cp-shadow);
	position: relative; overflow: hidden;
}
.cp-lhero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--cp-brand-grad); }
.cp-lhero--tienda::before { background: var(--t-bg, var(--cp-brand)); }
.cp-lhero__marca {
	flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
	font: 800 30px/1 "Outfit", var(--cp-font); color: #fff; background: var(--cp-brand-grad);
	box-shadow: 0 8px 20px rgba(255, 90, 0, .25);
}
.cp-lhero--tienda .cp-lhero__marca { background: var(--t-bg); color: var(--t-fg); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.cp-lhero__txt { min-width: 0; }
.cp-lhero h1 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }
.cp-lhero h1 small { font-size: 16px; font-weight: 600; color: var(--cp-muted); }
.cp-lhero__datos { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: 14px; color: var(--cp-muted); }
.cp-lhero__datos > span { display: inline-flex; align-items: center; gap: 6px; }
.cp-lhero__datos b { color: var(--cp-text); }
.cp-lhero__datos .cp-icon--flame { color: var(--cp-brand); }
.cp-lhero__intro { margin: 14px 0 0; max-width: 860px; font-size: 15.5px; line-height: 1.6; color: var(--cp-muted); }
.cp-lcruz { display: flex; flex-direction: column; gap: 10px; margin: 0 0 22px; }
.cp-lcruz__fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cp-lcruz__tit { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cp-muted); margin-right: 4px; }
.cp-lcruz__n { font-size: 12px; font-weight: 700; color: var(--cp-muted); background: var(--cp-surface-2); border-radius: 999px; padding: 0 7px; }
.cp-faq { margin: 40px 0 10px; max-width: 900px; }
.cp-faq h2 { font-size: 22px; margin: 0 0 14px; }
.cp-faq__item { background: var(--cp-surface); border: 1px solid var(--cp-border); border-radius: 14px; margin-bottom: 10px; }
.cp-faq__item summary { cursor: pointer; list-style: none; padding: 15px 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.cp-faq__item summary::-webkit-details-marker { display: none; }
.cp-faq__item summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--cp-brand); transition: transform .2s; }
.cp-faq__item[open] summary::after { transform: rotate(45deg); }
.cp-faq__item p { margin: 0; padding: 0 18px 16px; color: var(--cp-muted); line-height: 1.6; }
.cp-faq__item a { color: var(--cp-brand-text); font-weight: 600; }
@media (max-width: 640px) {
	.cp-lhero { flex-direction: column; gap: 14px; padding: 20px 18px; border-radius: 18px; }
	.cp-lhero__marca { width: 52px; height: 52px; font-size: 24px; border-radius: 15px; }
	.cp-lhero h1 { font-size: 24px; }
	.cp-lhero__intro { font-size: 15px; }
	.cp-lcruz__fila { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
	.cp-lcruz__fila::-webkit-scrollbar { display: none; }
	.cp-lcruz__fila .cp-chip { flex: none; }
	.cp-lcruz__tit { flex: none; }
}

/* móvil: el texto de la tienda/categoría se recorta a 3 líneas (sigue entero en el HTML para Google) */
.cp-lhero__mas { display: none; }
@media (max-width: 640px) {
	.cp-lhero__intro:not(.is-abierto) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.cp-lhero__mas { display: inline-block; margin-top: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--cp-brand-text); cursor: pointer; }
}

/* chollo caducado: alternativas vigentes (inc/listados.php) */
.cp-terminado { margin: 26px 0; }
.cp-terminado__aviso {
	display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; margin-bottom: 18px;
	border-radius: var(--cp-radius); background: var(--cp-brand-soft); border: 1px solid rgba(255, 106, 0, .3);
}
.cp-terminado__ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--cp-brand-grad); color: #fff; }
.cp-terminado h2 { margin: 0; font-size: 20px; }
.cp-terminado p { margin: 4px 0 0; color: var(--cp-muted); }
.cp-aviso a { font-weight: 700; text-decoration: underline; }

/* contraste AA de los textos en azul de Telegram (2026-10-07): en claro, azul
   más oscuro; en oscuro, más luminoso. El botón (texto blanco) no cambia. */
.cp-footer__tg, .cp-tg__vivo { color: #0a6a9e !important; }
[data-tema="oscuro"] .cp-footer__tg, [data-tema="oscuro"] .cp-tg__vivo { color: #5cc8f5 !important; }
/* «Ahorras X €»: verde más oscuro en claro para contraste AA (2026-10-07) */
.cp-ahorro { color: #0b7a3b !important; }
[data-tema="oscuro"] .cp-ahorro { color: #3ddc84 !important; }
