/* ==========================================================================
   descuentocodigos.com · sistema de diseño (B1 · Rojo directo)
   Se carga después de style.css y semantic.min.css del tema padre.
   Todo va bajo body.dc para ganar a los estilos heredados sin !important.
   ========================================================================== */

/* 0. Fuente (autoalojada, variable 400–700) -------------------------------- */
@font-face {
	font-family: 'Instrument Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(../fonts/instrument-sans-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Instrument Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(../fonts/instrument-sans-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	/* Color */
	--dc-bg: #F6F5F4;
	--dc-surface: #FFFFFF;
	--dc-ink: #1A1414;
	--dc-ink-2: #2A2222;
	--dc-ink-3: #3A3232;
	--dc-muted: #5F5857;
	--dc-line: #E4E0DE;
	--dc-line-soft: #EFECEA;
	--dc-red: #C8102E;          /* acciones: botones de cupón, etiqueta «Código» */
	--dc-red-hover: #A00D25;
	--dc-red-text: #B00E27;     /* enlaces y texto rojo sobre claro (≥ 4.5:1) */
	--dc-red-on-dark: #FF6B7F;  /* acento rojo sobre fondo tinta */
	--dc-focus: #1A1414;

	/* Tipografía */
	--dc-font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--dc-fs-xs: 13px;
	--dc-fs-sm: 14px;
	--dc-fs-md: 15px;
	--dc-fs-base: 17px;
	--dc-fs-lg: 19px;
	--dc-fs-xl: 24px;
	--dc-fs-2xl: 40px;

	/* Espacio (múltiplos de 4) */
	--dc-s1: 4px;
	--dc-s2: 8px;
	--dc-s3: 12px;
	--dc-s4: 16px;
	--dc-s5: 20px;
	--dc-s6: 24px;
	--dc-s7: 32px;
	--dc-s8: 48px;

	/* Forma */
	--dc-r-sm: 8px;
	--dc-r-md: 10px;
	--dc-r-lg: 14px;
	--dc-r-xl: 20px;
	--dc-pill: 999px;

	/* Maquetación */
	--dc-max: 1088px;
	--dc-gutter: 16px;
	--dc-side: 344px;
	--dc-tap: 44px;
}
@media (min-width: 900px) {
	:root { --dc-gutter: 32px; }
}

/* 2. Base ------------------------------------------------------------------ */
body.dc {
	margin: 0;
	background: var(--dc-bg);
	color: var(--dc-ink);
	font-family: var(--dc-font);
	font-size: var(--dc-fs-base);
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
	-webkit-font-smoothing: antialiased;
}
body.dc p, body.dc h1, body.dc h2, body.dc h3, body.dc h4, body.dc h5, body.dc h6,
body.dc input, body.dc button, body.dc select, body.dc textarea {
	font-family: var(--dc-font);
}
body.dc h1, body.dc h2, body.dc h3 { color: var(--dc-ink); line-height: 1.2; }
/* El tema padre fija tamaño y gris en todos los <p>: los bloques de texto del sistema heredan el suyo. */
.dc-prose p, .dc-prose li, .dc-cat-intro p, .dc-faq-a p, .dc-expert-text p, .dc-guide-author p { font-size: inherit; color: inherit; }
body.dc a { color: var(--dc-red-text); }
body.dc a:hover { color: var(--dc-red-hover); }
body.dc :focus-visible { outline: 2px solid var(--dc-focus); outline-offset: 2px; }
body.dc .site-content { background: transparent; }

.dc-container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--dc-max) + 2 * var(--dc-gutter));
	margin: 0 auto;
	padding: 0 var(--dc-gutter);
}
.dc-skip {
	position: absolute; left: -9999px; top: 8px; z-index: 1000;
	background: var(--dc-ink); color: #FFF; padding: var(--dc-s2) var(--dc-s4); border-radius: var(--dc-r-sm);
}
body.dc .dc-skip:focus { left: 8px; color: #FFF; }
.dc-icon { flex-shrink: 0; }

/* 3. Cabecera -------------------------------------------------------------- */
.dc-header { background: var(--dc-surface); border-bottom: 1px solid var(--dc-line); position: relative; z-index: 20; }
.dc-header-top { display: flex; align-items: center; gap: var(--dc-s7); padding-top: var(--dc-s4); padding-bottom: var(--dc-s4); }
body.dc .dc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dc-ink); flex-shrink: 0; }
.dc-brand .dc-icon { color: var(--dc-red); }
.dc-brand-name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.dc-brand-name span { color: var(--dc-red); }

.dc-search { flex-grow: 1; margin: 0; position: relative; }
body.dc .dc-search-field {
	display: flex; align-items: center; gap: var(--dc-s3);
	height: 48px; padding: 0 18px; box-sizing: border-box;
	background: var(--dc-bg); border: 1px solid var(--dc-line); border-radius: 12px; color: var(--dc-muted);
}
body.dc .dc-search-field:focus-within { border-color: var(--dc-ink); background: var(--dc-surface); }
body.dc .dc-search-field input {
	border: 0; background: transparent; outline: none; width: 100%; min-width: 0;
	font-size: 16px; color: var(--dc-ink); padding: 0; box-shadow: none;
}
body.dc .dc-search-field input::placeholder { color: var(--dc-muted); opacity: 1; }
body.dc .dc-search-field.loading { opacity: .8; }
/* Resultados del autocompletado del tema */
body.dc .dc-search .results {
	display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px);
	background: var(--dc-surface); border: 1px solid var(--dc-line); border-radius: 12px;
	box-shadow: 0 12px 32px rgba(26, 20, 20, .12); overflow: hidden; z-index: 30;
}
body.dc .dc-search .results.visible { display: block; }
body.dc .dc-search .results .result { display: block; padding: var(--dc-s3) var(--dc-s4); border-top: 1px solid var(--dc-line-soft); color: var(--dc-ink); text-decoration: none; }
body.dc .dc-search .results .result:first-child { border-top: 0; }
body.dc .dc-search .results .result:hover { background: var(--dc-bg); }
body.dc .dc-search .results .result .title { font-weight: 600; }
body.dc .dc-search .results .result .description { font-size: var(--dc-fs-sm); color: var(--dc-muted); }
body.dc .dc-search .results .result .image { display: none; }

body.dc .dc-header-link { font-size: var(--dc-fs-md); font-weight: 600; color: var(--dc-ink); text-decoration: none; flex-shrink: 0; }
body.dc .dc-header-link:hover { color: var(--dc-red-text); }
.dc-menu-toggle {
	display: none; width: var(--dc-tap); height: var(--dc-tap); margin-right: -10px;
	border: 0; background: transparent; color: var(--dc-ink); align-items: center; justify-content: center; cursor: pointer;
}

.dc-nav-list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: var(--dc-fs-md); }
.dc-nav-list li { margin: 0; }
body.dc .dc-nav-list a { display: block; padding: var(--dc-s3) 0; color: var(--dc-ink-3); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
body.dc .dc-nav-list a:hover { color: var(--dc-ink); }
body.dc .dc-nav-list .current-menu-item > a { color: var(--dc-ink); font-weight: 600; border-bottom-color: var(--dc-red); }
/* Destacado de temporada (menú «dc-destacado»): a la derecha, en tinta. */
.dc-nav-list > .dc-destacado { margin-left: auto; }
.dc-nav-list > .dc-destacado ~ .dc-destacado { margin-left: 0; }
body.dc .dc-nav-list > .dc-destacado > a { margin: var(--dc-s2) 0; padding: var(--dc-s1) 10px; background: var(--dc-ink); color: #FFF; border-radius: 6px; font-weight: 600; border: 0; }
body.dc .dc-nav-list > .dc-destacado > a:hover { background: var(--dc-ink-3); color: #FFF; }

/* Desplegable («Otros») */
.dc-nav-list .menu-item-has-children { position: relative; }
body.dc .dc-nav-list .menu-item-has-children > a { display: flex; align-items: center; gap: 4px; }
body.dc .dc-nav-list .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; margin: -3px 2px 0 2px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.dc-nav .nav-toggle-subarrow { display: none; }
.dc-nav-list > .dc-nav-mobile-only { display: none; } /* flecha que añade el JS del tema */
.dc-nav-list .sub-menu {
	position: absolute; top: 100%; left: -16px; z-index: 40; min-width: 240px;
	display: none; list-style: none; margin: 0; padding: var(--dc-s2) 0;
	background: var(--dc-surface); border: 1px solid var(--dc-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(26, 20, 20, .12);
}
.dc-nav-list .menu-item-has-children:hover > .sub-menu,
.dc-nav-list .menu-item-has-children:focus-within > .sub-menu { display: block; }
.dc-nav-list .sub-menu li { margin: 0; }
body.dc .dc-nav-list .sub-menu a { padding: 10px var(--dc-s4); border: 0; font-weight: 500; white-space: nowrap; }
body.dc .dc-nav-list .sub-menu a:hover { background: var(--dc-bg); color: var(--dc-ink); }
body.dc .dc-nav-list .sub-menu .current-menu-item > a { color: var(--dc-red-text); font-weight: 600; }
body.dc .dc-nav-list > .menu-item-has-children:has(.current-menu-item) > a { color: var(--dc-ink); font-weight: 600; border-bottom-color: var(--dc-red); }

@media (max-width: 899px) {
	.dc-header-top { flex-wrap: wrap; gap: var(--dc-s3) var(--dc-s4); padding-top: 10px; padding-bottom: var(--dc-s3); }
	.dc-brand-name { font-size: 17px; }
	.dc-brand .dc-icon { width: 24px; height: 24px; }
	.dc-search { order: 3; flex-basis: 100%; }
	body.dc .dc-search-field { height: var(--dc-tap); }
	.dc-header-link { display: none; }
	.dc-menu-toggle { display: inline-flex; margin-left: auto; }
	.dc-nav { display: none; border-top: 1px solid var(--dc-line); }
	.dc-nav.is-open { display: block; }
	.dc-nav-list { flex-direction: column; gap: 0; padding: var(--dc-s2) 0; }
	body.dc .dc-nav-list a { padding: var(--dc-s3) 0; border-bottom: 0; }
	.dc-nav-list > .dc-destacado { margin-left: 0; }
	body.dc .dc-nav-list > .dc-destacado > a { display: inline-block; }
	.dc-nav-list .sub-menu { position: static; display: block; min-width: 0; margin: 0 0 var(--dc-s2); padding: 0 0 0 var(--dc-s4); border: 0; border-left: 2px solid var(--dc-line); border-radius: 0; box-shadow: none; }
	body.dc .dc-nav-list .sub-menu a { padding: 10px 0; }
	body.dc .dc-nav-list .menu-item-has-children > a::after { display: none; }
}

/* 4. Pie ------------------------------------------------------------------- */
.dc-footer { background: var(--dc-ink); color: #F6F5F4; margin-top: var(--dc-s8); font-size: var(--dc-fs-sm); }
.dc-footer-in { display: flex; justify-content: space-between; gap: var(--dc-s6); flex-wrap: wrap; padding-top: var(--dc-s7); padding-bottom: var(--dc-s6); }
.dc-footer .dc-brand-name span { color: var(--dc-red-on-dark); }
.dc-footer-brand p { margin: 6px 0 0; color: #CFC7C5; }
.dc-footer-nav ul { display: flex; flex-wrap: wrap; gap: var(--dc-s2) var(--dc-s6); list-style: none; margin: 0; padding: 0; }
body.dc .dc-footer a { color: #F6F5F4; }
body.dc .dc-footer a:hover { color: var(--dc-red-on-dark); }
.dc-footer-legal { padding-top: var(--dc-s4); padding-bottom: var(--dc-s6); border-top: 1px solid #3A3232; color: #CFC7C5; }

/* 5. Componentes ----------------------------------------------------------- */
.dc-card { background: var(--dc-surface); border: 1px solid var(--dc-line); border-radius: var(--dc-r-lg); }

.dc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: var(--dc-fs-xs); color: var(--dc-muted); }
.dc-meta > span + span::before { content: "·"; margin-right: 10px; }
.dc-meta-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--dc-ink); font-weight: 600; }
.dc-meta-ok .dc-icon { color: var(--dc-red); }

.dc-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dc-red-text); }

/* Etiqueta de tipo de cupón */
.dc-kind {
	display: block; padding: var(--dc-s2) 0; border-radius: var(--dc-r-sm); text-align: center;
	font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	background: var(--dc-line-soft); color: var(--dc-ink-3);
}
.dc-kind--code { background: var(--dc-red); color: #FFF; }

/* Anula el botón naranja del tema padre (.coupon-button-type .coupon-deal/.coupon-code) */
body.dc .coupon-button-type .dc-btn,
body.dc .coupon-button-type .dc-btn-code {
	width: 100%; min-width: 0; margin: 0; padding: 0; line-height: 1.2;
	letter-spacing: 0; text-transform: none; text-align: center; box-shadow: none; opacity: 1;
}

/* Botones de acción de cupón: SIEMPRE rojos */
body.dc .dc-btn {
	display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--dc-s4);
	border-radius: var(--dc-r-md); background: var(--dc-red); color: #FFF;
	font-weight: 700; font-size: var(--dc-fs-md); text-decoration: none; box-sizing: border-box;
}
body.dc .dc-btn:hover, body.dc .coupon-button-type .dc-btn:hover { background: var(--dc-red-hover); color: #FFF; opacity: 1; }

/* «Ver código»: el botón tapa el código y asoman los últimos caracteres */
body.dc .dc-btn-code,
body.dc .coupon-button-type .dc-btn-code {
	display: grid; grid-template-columns: 1fr 78px; min-height: 48px;
	border: 1.5px dashed var(--dc-red); border-radius: var(--dc-r-md); overflow: hidden;
	background: var(--dc-surface); text-decoration: none; box-sizing: border-box;
}
.dc-btn-code-label {
	display: flex; align-items: center; justify-content: center; padding-right: var(--dc-s3);
	background: var(--dc-red); color: #FFF; font-weight: 700; font-size: var(--dc-fs-md);
	clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}
.dc-btn-code-peek {
	display: flex; align-items: center; justify-content: flex-end; padding-right: var(--dc-s3);
	color: var(--dc-ink); font-weight: 700; letter-spacing: .12em; font-size: var(--dc-fs-md);
}
body.dc .dc-btn-code:hover .dc-btn-code-label { background: var(--dc-red-hover); }

/* Segmentos (filtro) */
.dc-filter { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--dc-s3) 18px; }
.dc-seg {
	display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 0; border-radius: var(--dc-r-sm);
	background: transparent; color: var(--dc-ink-3); font: 600 var(--dc-fs-sm)/1 var(--dc-font); cursor: pointer;
}
.dc-seg:hover { background: var(--dc-line-soft); }
.dc-seg[aria-pressed="true"] { background: var(--dc-ink); color: #FFF; }

/* Chip */
body.dc .dc-chip {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--dc-s3);
	border: 1px solid var(--dc-line); border-radius: var(--dc-pill);
	font-size: var(--dc-fs-xs); font-weight: 600; color: var(--dc-ink); text-decoration: none;
}
body.dc .dc-chip:hover { border-color: var(--dc-ink); color: var(--dc-ink); }

/* Texto largo */
.dc-prose { font-size: var(--dc-fs-base); line-height: 1.65; color: var(--dc-ink-2); }
.dc-prose > * { max-width: 720px; }
.dc-prose p { margin: 0 0 var(--dc-s4); }
.dc-prose h2 { font-size: var(--dc-fs-xl); margin: 0 0 var(--dc-s4); letter-spacing: -.01em; }
.dc-prose h3 { font-size: var(--dc-fs-lg); margin: var(--dc-s6) 0 var(--dc-s3); }
.dc-prose ul, .dc-prose ol { margin: 0 0 var(--dc-s4); padding-left: 22px; }
.dc-prose img { max-width: 100%; height: auto; border-radius: var(--dc-r-sm); }
/* Enlaces dentro de texto: subrayados, no solo por color (accesibilidad). */
body.dc .dc-prose p a, body.dc .dc-prose li a, body.dc .dc-ctx a, body.dc .dc-cat-intro p a, body.dc .dc-faq-a a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
/* «Cómo usar el código» heredado del contenido antiguo (ol.pasos): pasos numerados legibles. */
body.dc .dc-prose ol.pasos { counter-reset: dc-paso; list-style: none; margin: 0 0 var(--dc-s4); padding: 0; }
body.dc .dc-prose ol.pasos > li { position: relative; margin: 0 0 var(--dc-s3); padding: 2px 0 2px 40px; background: none; font-size: inherit; color: var(--dc-ink-2); text-align: left !important; }
body.dc .dc-prose ol.pasos > li:before {
	counter-increment: dc-paso; content: counter(dc-paso); position: absolute; left: 0; top: 0; width: 28px; height: 28px;
	border-radius: 50%; background: var(--dc-ink); color: #FFF; font-size: var(--dc-fs-sm); font-weight: 700; line-height: 28px; text-align: center; transform: none;
}

/* 6. Ficha de tienda --------------------------------------------------------- */
.dc-store { padding: var(--dc-s6) 0 0; }

.dc-crumbs ol { display: flex; flex-wrap: wrap; gap: var(--dc-s2); list-style: none; margin: 0; padding: 0; font-size: var(--dc-fs-sm); color: var(--dc-muted); }
.dc-crumbs li + li::before { content: "›"; margin-right: var(--dc-s2); }
body.dc .dc-crumbs a { color: var(--dc-muted); }

.dc-store-head { display: flex; align-items: center; gap: var(--dc-s6); margin: var(--dc-s6) 0; }
.dc-store-logo {
	width: 96px; height: 96px; flex-shrink: 0; box-sizing: border-box; padding: 10px;
	display: flex; align-items: center; justify-content: center;
	background: var(--dc-surface); border: 1px solid var(--dc-line); border-radius: var(--dc-r-xl); overflow: hidden;
}
.dc-store-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.dc-logo-fallback { font-size: 28px; font-weight: 700; color: var(--dc-muted); }
.dc-store-title { display: flex; flex-direction: column; gap: var(--dc-s2); min-width: 0; }
body.dc .dc-store-title h1 { margin: 0; font-size: var(--dc-fs-2xl); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.dc-store-title .dc-meta { font-size: var(--dc-fs-md); }

.dc-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--dc-side); gap: var(--dc-s7); align-items: start; }
.dc-layout-main, .dc-layout-side { display: flex; flex-direction: column; gap: var(--dc-s6); }

/* Lista de cupones */
.dc-coupons { overflow: hidden; }
.dc-coupon-list { list-style: none; margin: 0; padding: 0; }
.dc-coupon {
	display: grid; grid-template-columns: 92px minmax(0, 1fr) 216px; gap: var(--dc-s5); align-items: center;
	margin: 0; padding: 22px var(--dc-s6); border-top: 1px solid var(--dc-line);
}
.dc-coupons > .dc-coupon-list:first-child .dc-coupon:first-child { border-top: 0; }
.dc-coupon[hidden] { display: none; }
/* Variante con logo de tienda (portada y categorías) */
.dc-coupon--thumb { grid-template-columns: 72px minmax(0, 1fr) 216px; }
body.dc .dc-coupon-logo {
	width: 72px; height: 72px; box-sizing: border-box; padding: 8px; display: flex; align-items: center; justify-content: center;
	background: var(--dc-surface); border: 1px solid var(--dc-line); border-radius: 12px; overflow: hidden; text-decoration: none;
}
.dc-coupon-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.dc-coupon-logo .dc-logo-fallback { font-size: 18px; }
.dc-coupon-top { display: flex; align-items: center; gap: 8px; margin: 0; }
.dc-kind-inline {
	font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
	padding: 4px 7px; border-radius: 6px; background: var(--dc-line-soft); color: var(--dc-ink-3);
}
.dc-kind-inline.dc-kind--code { background: var(--dc-red); color: #FFF; }
.dc-coupon-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
body.dc .dc-coupon-title { margin: 0; font-size: var(--dc-fs-lg); line-height: 1.3; font-weight: 600; }
.dc-coupon-desc { margin: 0; font-size: var(--dc-fs-md); line-height: 1.5; color: var(--dc-muted); }
.dc-empty { margin: 0; padding: var(--dc-s6); color: var(--dc-muted); }

/* Opinión del experto */
.dc-expert { padding: var(--dc-s7); border-top: 4px solid var(--dc-red); display: flex; flex-direction: column; gap: var(--dc-s5); }
.dc-expert-head { display: flex; align-items: center; gap: var(--dc-s4); }
.dc-avatar { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.dc-expert-name { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.dc-expert-bio { margin: 0; font-size: var(--dc-fs-sm); color: var(--dc-muted); }
.dc-expert-text { margin: 0; font-size: var(--dc-fs-lg); line-height: 1.6; font-weight: 500; color: var(--dc-ink); border: 0; padding: 0; }
.dc-expert-text p { margin: 0 0 var(--dc-s3); }
.dc-expert-text p:last-child { margin: 0; }
.dc-expert-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dc-s4); }
.dc-expert-list { background: var(--dc-bg); border-radius: var(--dc-r-md); padding: var(--dc-s4) 18px; }
body.dc .dc-expert-list h3 { margin: 0 0 var(--dc-s2); font-size: var(--dc-fs-sm); font-weight: 700; }
.dc-expert-list ul { margin: 0; padding-left: 18px; font-size: var(--dc-fs-md); line-height: 1.6; }

.dc-about { padding: 28px var(--dc-s7); }

/* Preguntas frecuentes */
.dc-faq { padding: var(--dc-s3) var(--dc-s7); }
body.dc .dc-faq h2 { margin: var(--dc-s4) 0 var(--dc-s2); font-size: var(--dc-fs-xl); font-weight: 700; }
.dc-faq details { border-top: 1px solid var(--dc-line); }
.dc-faq summary {
	display: flex; justify-content: space-between; align-items: center; gap: var(--dc-s4);
	min-height: var(--dc-tap); padding: var(--dc-s3) 0; cursor: pointer; list-style: none;
	font-size: var(--dc-fs-base); font-weight: 600;
}
.dc-faq summary::-webkit-details-marker { display: none; }
.dc-faq summary .dc-icon { color: var(--dc-muted); transition: transform .15s; }
.dc-faq details[open] summary .dc-icon { transform: rotate(45deg); }
.dc-faq-a { padding: 0 0 var(--dc-s4); color: var(--dc-ink-2); font-size: var(--dc-fs-md); line-height: 1.6; }
.dc-faq-a p { margin: 0; }

/* Lateral: datos y relacionadas */
.dc-facts { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
body.dc .dc-facts h2, body.dc .dc-related .dc-rel-title { margin: 0; font-size: 17px; font-weight: 700; }
.dc-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 10px var(--dc-s4); margin: 0; font-size: var(--dc-fs-sm); line-height: 1.45; }
.dc-facts dt { color: var(--dc-muted); }
.dc-facts dd { margin: 0; overflow-wrap: anywhere; }
.dc-socials { border-top: 1px solid var(--dc-line-soft); padding-top: 14px; }
.dc-socials p { margin: 0 0 var(--dc-s2); font-size: var(--dc-fs-xs); color: var(--dc-muted); }
.dc-socials ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }

/* Bloque de enlazado interno (dc-enlazado-interno.php) dentro de la ficha */
body.dc .dc-related .dc-rel { margin: 0; padding: 18px 22px 10px; background: none; border: 0; border-radius: 0; }
body.dc .dc-related .dc-rel-title { margin-bottom: var(--dc-s2); }
body.dc .dc-related .dc-rel-list { display: block; list-style: none; margin: 0; padding: 0; }
body.dc .dc-related .dc-rel-list li { margin: 0; border-top: 1px solid var(--dc-line-soft); }
body.dc .dc-related .dc-rel-list a { display: flex; align-items: center; min-height: var(--dc-tap); color: var(--dc-ink); font-weight: 600; font-size: var(--dc-fs-md); text-decoration: none; }
body.dc .dc-related .dc-rel-list a:hover { color: var(--dc-red-text); }
body.dc .dc-related .dc-rel-more { margin: 0; padding: var(--dc-s3) 0; border-top: 1px solid var(--dc-line-soft); font-size: var(--dc-fs-sm); }
body.dc .dc-related .dc-rel-more a { font-weight: 600; }

/* Móvil: mismo contenido, apilado en este orden */
@media (max-width: 899px) {
	.dc-store { padding-top: var(--dc-s4); }
	.dc-store-head { gap: 14px; margin: var(--dc-s4) 0; }
	.dc-store-logo { width: 60px; height: 60px; border-radius: var(--dc-r-lg); padding: 6px; }
	.dc-logo-fallback { font-size: 20px; }
	body.dc .dc-store-title h1 { font-size: var(--dc-fs-xl); line-height: 1.15; }
	.dc-store-title .dc-meta { font-size: var(--dc-fs-xs); }

	.dc-layout { display: flex; flex-direction: column; align-items: stretch; gap: var(--dc-s4); }
	.dc-layout-main, .dc-layout-side { display: contents; }
	.dc-store .dc-coupons { order: 1; margin: 0 calc(-1 * var(--dc-gutter)); border-radius: 0; border-left: 0; border-right: 0; }
	.dc-store .dc-expert { order: 2; }
	.dc-store .dc-facts { order: 3; }
	.dc-store .dc-about { order: 4; }
	.dc-store .dc-faq { order: 5; }
	.dc-store .dc-related { order: 6; }

	.dc-filter { padding: var(--dc-s3) var(--dc-gutter); }
	.dc-coupon { display: flex; flex-direction: column; align-items: stretch; gap: var(--dc-s2); padding: 18px var(--dc-gutter); }
	.dc-coupon--thumb { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "logo body" "act act"; gap: 10px 12px; align-items: start; }
	body.dc .dc-coupon--thumb .dc-coupon-logo { grid-area: logo; width: 52px; height: 52px; padding: 6px; border-radius: 10px; }
	.dc-coupon--thumb .dc-coupon-body { grid-area: body; }
	.dc-coupon--thumb .dc-coupon-action { grid-area: act; margin-top: 0; }
	.dc-nav-list > .dc-nav-mobile-only { display: block; }
	.dc-kind { align-self: flex-start; padding: var(--dc-s1) var(--dc-s2); font-size: 11px; border-radius: 6px; }
	body.dc .dc-coupon-title { font-size: 18px; }
	.dc-coupon-action { margin-top: var(--dc-s1); }
	body.dc .dc-btn, body.dc .dc-btn-code { min-height: 50px; font-size: 16px; }

	.dc-expert { padding: var(--dc-s5); gap: 14px; }
	.dc-avatar { width: 48px; height: 48px; }
	.dc-expert-name { font-size: 16px; }
	.dc-expert-text { font-size: 16px; }
	.dc-expert-lists { grid-template-columns: 1fr; gap: var(--dc-s3); }
	.dc-about { padding: var(--dc-s5); }
	.dc-prose { font-size: 16px; }
	body.dc .dc-prose h2 { font-size: 21px; }
	.dc-faq { padding: var(--dc-s1) var(--dc-s5); }
	body.dc .dc-faq h2 { font-size: 21px; }
	.dc-faq summary { font-size: 16px; }
	.dc-facts { padding: var(--dc-s5); }
}

/* 7. Página de categoría ------------------------------------------------------ */
.dc-cat { padding: var(--dc-s6) 0 0; }
.dc-cat .dc-container { display: flex; flex-direction: column; gap: var(--dc-s8); }
.dc-cat-head { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
body.dc .dc-cat-head h1 { margin: 0; font-size: 44px; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
.dc-cat-intro { font-size: 18px; line-height: 1.6; color: var(--dc-ink-2); }
.dc-cat-intro p { margin: 0 0 var(--dc-s2); }
.dc-cat-head .dc-meta { font-size: var(--dc-fs-md); }
.dc-byline { display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--dc-fs-sm); color: var(--dc-muted); }
.dc-byline strong { color: var(--dc-ink); }
.dc-avatar--sm { width: 32px; height: 32px; }

.dc-cat-section { display: flex; flex-direction: column; gap: 18px; }
.dc-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--dc-s4); flex-wrap: wrap; }
.dc-section-head--in { padding: var(--dc-s6) var(--dc-s6) 0; }
body.dc .dc-cat h2 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.dc-section-head p { margin: 0; font-size: var(--dc-fs-sm); color: var(--dc-muted); }
.dc-cat .dc-coupons { gap: 0; }
.dc-cat .dc-coupons .dc-coupon:first-child { border-top: 1px solid var(--dc-line); }
body.dc .dc-coupon-store { font-size: var(--dc-fs-xs); font-weight: 700; color: var(--dc-red-text); text-decoration: none; }

/* Tarjetas de tiendas principales */
.dc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--dc-s4); list-style: none; margin: 0; padding: 0; }
.dc-tiles li { margin: 0; display: flex; }
body.dc .dc-tile {
	flex-grow: 1; display: flex; flex-direction: column; gap: var(--dc-s2); padding: 18px;
	background: var(--dc-surface); border: 1px solid var(--dc-line); border-radius: var(--dc-r-lg);
	color: var(--dc-ink); text-decoration: none;
}
body.dc .dc-tile:hover { border-color: var(--dc-ink); color: var(--dc-ink); }
.dc-tile-logo { height: 64px; display: flex; align-items: center; justify-content: center; background: var(--dc-bg); border-radius: var(--dc-r-md); overflow: hidden; margin-bottom: var(--dc-s1); }
.dc-tile-logo img { max-height: 48px; max-width: 80%; width: auto; height: auto; object-fit: contain; }
.dc-tile-name { font-size: 17px; font-weight: 700; }
.dc-tile-meta { font-size: var(--dc-fs-xs); color: var(--dc-muted); }
.dc-tile-cta {
	margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 var(--dc-s3);
	border-radius: var(--dc-r-md); background: var(--dc-red); color: #FFF; font-weight: 700; font-size: var(--dc-fs-sm); text-align: center;
}
body.dc .dc-tile:hover .dc-tile-cta { background: var(--dc-red-hover); }

/* Chips de navegación */
.dc-chips { display: flex; flex-wrap: wrap; gap: var(--dc-s2); list-style: none; margin: 0; padding: 0; }
.dc-chips li { margin: 0; }
body.dc .dc-chip--lg { min-height: 40px; padding: 0 var(--dc-s4); font-size: var(--dc-fs-sm); background: var(--dc-surface); }

/* Tiendas por tipo */
.dc-groups { gap: 0; overflow: hidden; }
.dc-groups-head { padding: 28px var(--dc-s7) 22px; display: flex; flex-direction: column; gap: 14px; }
.dc-group { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--dc-s7); padding: 28px var(--dc-s7); border-top: 1px solid var(--dc-line); scroll-margin-top: var(--dc-s4); }
.dc-group--solo { grid-template-columns: 1fr; }
.dc-group--solo .dc-group-info:empty, .dc-group--solo .dc-group-info:not(:has(*)) { display: none; }
.dc-group--solo .dc-store-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.dc .dc-group h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
body.dc .dc-group h3 a { color: var(--dc-ink); text-decoration: none; }
body.dc .dc-group h3 a:hover { color: var(--dc-red-text); }
.dc-group-info p { margin: 0 0 var(--dc-s2); font-size: var(--dc-fs-sm); line-height: 1.5; color: var(--dc-muted); }
body.dc .dc-more { font-size: var(--dc-fs-sm); font-weight: 700; }
.dc-store-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--dc-s2); list-style: none; margin: 0; padding: 0; }
.dc-store-links li { margin: 0; }
body.dc .dc-store-links a {
	display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 var(--dc-s3); box-sizing: border-box; height: 100%;
	border: 1px solid var(--dc-line-soft); border-radius: var(--dc-r-md); color: var(--dc-ink); font-weight: 600; font-size: var(--dc-fs-sm); text-decoration: none;
}
body.dc .dc-store-links a:hover { border-color: var(--dc-ink); }
.dc-mini-logo { width: 28px; height: 28px; flex-shrink: 0; border-radius: 6px; background: var(--dc-line-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dc-mini-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.dc-mini-logo .dc-logo-fallback { font-size: 10px; }
.dc-text-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 14px 0 0; padding: 0; font-size: var(--dc-fs-sm); line-height: 1.8; }
.dc-text-links li { margin: 0; }
body.dc .dc-text-links a { color: var(--dc-ink-3); }
body.dc .dc-text-links a:hover { color: var(--dc-red-text); }

/* Guía */
.dc-guide { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--dc-s8); padding: 36px 40px; }
.dc-guide--solo { grid-template-columns: 1fr; }
.dc-guide--solo .dc-prose > * { max-width: 760px; }
.dc-guide-author { border-left: 1px solid var(--dc-line); padding-left: var(--dc-s7); display: flex; flex-direction: column; gap: 6px; align-self: start; }
.dc-guide-author p { margin: 0; }
.dc-cat .dc-faq h2 { font-size: var(--dc-fs-xl); }
body.dc .dc-related-cats h2 { font-size: 22px; }

@media (max-width: 899px) {
	.dc-cat { padding-top: var(--dc-s4); }
	.dc-cat .dc-container { gap: var(--dc-s7); }
	body.dc .dc-cat-head h1 { font-size: 28px; line-height: 1.12; }
	.dc-cat-intro { font-size: 16px; }
	.dc-cat-head .dc-meta { font-size: var(--dc-fs-xs); }
	body.dc .dc-cat h2 { font-size: 22px; }
	.dc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	body.dc .dc-tile { padding: var(--dc-s3); }
	.dc-tile-logo { height: 48px; }
	.dc-tile-cta { min-height: var(--dc-tap); }
	.dc-cat .dc-coupons { margin: 0 calc(-1 * var(--dc-gutter)); border-radius: 0; border-left: 0; border-right: 0; }
	.dc-section-head--in { padding: 18px var(--dc-gutter) var(--dc-s2); }
	.dc-groups-head { padding: 18px var(--dc-s4) 14px; }
	.dc-groups-head .dc-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--dc-s4)); padding: 0 var(--dc-s4) var(--dc-s1); }
	body.dc .dc-groups-head .dc-chip { white-space: nowrap; }
	.dc-group { grid-template-columns: 1fr; gap: 10px; padding: 18px var(--dc-s4); }
	.dc-store-links, .dc-group--solo .dc-store-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	body.dc .dc-store-links a { min-height: var(--dc-tap); padding: 6px 10px; font-size: var(--dc-fs-xs); line-height: 1.25; }
	.dc-store-links .dc-mini-logo { display: none; }
	.dc-tile-cta-name { display: none; }
	.dc-guide { grid-template-columns: 1fr; gap: var(--dc-s5); padding: var(--dc-s5); }
	.dc-guide-author { order: -1; border-left: 0; padding-left: 0; }
	body.dc .dc-related-cats h2 { font-size: 19px; }
}

/* 8. Portada ------------------------------------------------------------------ */
.dc-home { padding: var(--dc-s6) 0 0; }
.dc-home .dc-container { display: flex; flex-direction: column; gap: var(--dc-s6); }
.dc-home-head { display: flex; flex-direction: column; gap: 4px; }
body.dc .dc-home-head h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.dc-home-head p { margin: 0; font-size: var(--dc-fs-md); color: var(--dc-muted); }
body.dc .dc-home h2 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }

/* Banner de temporada */
.dc-banner {
	display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: center;
	padding: 36px 44px; border-radius: 16px; background: var(--dc-red); color: #FFF;
}
.dc-banner-text { display: flex; flex-direction: column; gap: var(--dc-s3); }
body.dc .dc-banner h2 { color: #FFF; font-size: 42px; line-height: 1.06; letter-spacing: -.025em; }
.dc-banner-text p { margin: 0; font-size: 17px; line-height: 1.5; color: #FFF; }
body.dc .dc-banner .dc-banner-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
body.dc .dc-banner-btn {
	align-self: flex-start; display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; margin-top: var(--dc-s1);
	border-radius: var(--dc-r-md); background: #FFF; color: var(--dc-red-text); font-weight: 700; text-decoration: none;
}
body.dc .dc-banner-btn:hover { background: #FBE9EC; color: var(--dc-red-hover); }
.dc-banner-stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.dc-banner-stores li { margin: 0; }
body.dc .dc-banner-stores a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 88px; padding: 8px;
	box-sizing: border-box; border-radius: 12px; background: #FFF; color: var(--dc-ink); font-weight: 700; font-size: var(--dc-fs-sm); text-decoration: none; text-align: center;
}
body.dc .dc-banner-stores a:hover { box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.dc-banner-logo { height: 36px; display: flex; align-items: center; justify-content: center; }
.dc-banner-logo img { max-height: 36px; max-width: 90px; width: auto; height: auto; object-fit: contain; }
.dc-banner-logo .dc-logo-fallback { font-size: 14px; }

/* Maquetación */
.dc-home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--dc-s7); align-items: start; margin-top: var(--dc-s3); }
.dc-home-main, .dc-home-side { display: flex; flex-direction: column; gap: 44px; }
.dc-home-side { gap: var(--dc-s4); }

/* Pestañas */
.dc-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-seg[aria-selected="true"] { background: var(--dc-ink); color: #FFF; }
.dc-tabpanel[hidden] { display: none; }
.dc-tabs[hidden] { display: none; }
.dc-home-layout > *, .dc-home-main > *, .dc-home-side > * { min-width: 0; }

/* Cupones recientes */
.dc-home-coupons { gap: 0; }
.dc-home-coupons-head { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 14px; }
.dc-home-coupons .dc-coupon:first-child { border-top: 1px solid var(--dc-line); }
.dc-urgent { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; background: #FBE9EC; color: var(--dc-red-text); font-weight: 700; }
.dc-meta > .dc-urgent + span::before { margin-left: 0; }

/* Tiendas por categoría */
.dc-home-stores { display: flex; flex-direction: column; gap: var(--dc-s4); }
.dc-home-stores .dc-tabpanel { display: flex; flex-direction: column; gap: var(--dc-s4); }
.dc-home-stores .dc-tabpanel[hidden] { display: none; }
.dc-home-stores .dc-tile-cta-name { display: none; }

/* Cómo funciona */
.dc-steps { padding: 30px var(--dc-s7); display: flex; flex-direction: column; gap: 22px; }
.dc-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--dc-s6); list-style: none; margin: 0; padding: 0; counter-reset: dcstep; }
.dc-steps li { counter-increment: dcstep; display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; margin: 0; }
.dc-steps li::before {
	content: counter(dcstep); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%;
	background: var(--dc-red); color: #FFF; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px;
}
.dc-steps b { font-size: 17px; }
.dc-steps span { font-size: var(--dc-fs-sm); line-height: 1.5; color: var(--dc-ink-3); }

.dc-home-cats { display: flex; flex-direction: column; gap: var(--dc-s4); }
.dc-home-text { padding: 32px 36px; display: flex; flex-direction: column; gap: var(--dc-s3); }
.dc-home-text .dc-prose { font-size: 16px; }
.dc-home-text .dc-byline { border-top: 1px solid var(--dc-line-soft); padding-top: 14px; }

/* Lateral */
.dc-trust { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
body.dc .dc-home-side h2 { font-size: 18px; letter-spacing: 0; }
.dc-trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dc-trust li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: var(--dc-fs-sm); line-height: 1.5; color: var(--dc-ink-3); }
.dc-trust li .dc-icon { color: var(--dc-red); margin-top: 2px; }
.dc-trust li b { color: var(--dc-ink); }
.dc-trust-author { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--dc-line-soft); padding-top: 12px; }
.dc-trust-author .dc-avatar { width: 44px; height: 44px; }
.dc-trust-author p { margin: 0; display: flex; flex-direction: column; font-size: var(--dc-fs-sm); }
.dc-trust-author span { font-size: var(--dc-fs-xs); color: var(--dc-muted); }
.dc-home-guides { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.dc-home-guides ul { list-style: none; margin: 0; padding: 0; }
.dc-home-guides li { margin: 0; border-top: 1px solid var(--dc-line-soft); }
body.dc .dc-home-guides a { display: block; padding: 10px 0; color: var(--dc-ink); font-weight: 600; font-size: var(--dc-fs-sm); text-decoration: none; }
body.dc .dc-home-guides a:hover { color: var(--dc-red-text); }
.dc-submit { background: var(--dc-ink); border-radius: var(--dc-r-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
body.dc .dc-submit h2 { color: #FFF; }
.dc-submit p { margin: 0; font-size: var(--dc-fs-sm); line-height: 1.5; color: #CFC7C5; }

@media (max-width: 899px) {
	.dc-home { padding-top: var(--dc-s4); }
	body.dc .dc-home-head h1 { font-size: 24px; }
	.dc-home-head p { font-size: var(--dc-fs-sm); }
	body.dc .dc-home h2 { font-size: 21px; }
	.dc-banner { grid-template-columns: 1fr; gap: var(--dc-s5); padding: var(--dc-s5); border-radius: var(--dc-r-lg); }
	body.dc .dc-banner h2 { font-size: 26px; }
	.dc-banner-text p { font-size: 15px; }
	body.dc .dc-banner-btn { align-self: stretch; justify-content: center; }
	body.dc .dc-banner-stores a { height: 76px; font-size: 12px; overflow-wrap: anywhere; }
	.dc-home-layout { display: flex; flex-direction: column; align-items: stretch; gap: var(--dc-s7); margin-top: 0; }
	.dc-home-main, .dc-home-side { display: contents; }
	.dc-trust { order: 1; }
	.dc-home-coupons { order: 2; margin: 0 calc(-1 * var(--dc-gutter)); border-radius: 0; border-left: 0; border-right: 0; }
	.dc-home-coupons-head { padding: 18px var(--dc-gutter) 12px; }
	.dc-home-coupons .dc-tabs { flex-wrap: nowrap; overflow-x: auto; }
	.dc-home-coupons .dc-seg { white-space: nowrap; }
	.dc-home-stores { order: 4; }
	.dc-home-stores .dc-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--dc-gutter)); padding: 0 var(--dc-gutter); }
	.dc-home-stores .dc-seg { white-space: nowrap; background: var(--dc-surface); }
	.dc-home-stores .dc-seg[aria-selected="true"] { background: var(--dc-ink); }
	.dc-steps { order: 3; padding: var(--dc-s5); }
	.dc-steps ol { grid-template-columns: 1fr; gap: var(--dc-s4); }
	.dc-home-cats { order: 6; }
	.dc-home-guides { order: 7; }
	.dc-home-text { order: 5; padding: var(--dc-s5); }
	.dc-submit { order: 8; }
}

/* 9. Ventana del cupón (loop/coupon-modal.php) ------------------------------ */
/* Semantic UI la posiciona con JS (margin-top en línea): el ancho y el aspecto son nuestros. */
body.dc .ui.dimmer.modals { background: rgba(26, 20, 20, .62); }
body.dc .ui.modal.dc-modal {
	width: 480px; margin-left: -240px; border-radius: var(--dc-r-xl); overflow: hidden;
	background: var(--dc-surface); box-shadow: 0 24px 60px rgba(26, 20, 20, .28);
	font-family: var(--dc-font); color: var(--dc-ink);
}
.dc-modal-head { display: flex; align-items: center; gap: var(--dc-s3); padding: var(--dc-s5) var(--dc-s5) var(--dc-s4); border-bottom: 1px solid var(--dc-line-soft); }
.dc-modal-logo {
	flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px;
	border: 1px solid var(--dc-line); border-radius: var(--dc-r-md); background: #FFF; overflow: hidden;
}
body.dc .dc-modal-logo img { max-width: 44px; max-height: 44px; width: auto; height: auto; }
.dc-modal-headtext { flex: 1; min-width: 0; }
body.dc .dc-modal p { font-family: var(--dc-font); }
body.dc .dc-modal-store { margin: 0; font-size: var(--dc-fs-xs); font-weight: 700; color: var(--dc-red-text); }
body.dc .dc-modal-title { margin: 2px 0 0; font-size: var(--dc-fs-base); font-weight: 700; line-height: 1.3; color: var(--dc-ink); }
body.dc .dc-modal-close {
	flex: none; align-self: flex-start; display: flex; align-items: center; justify-content: center;
	width: var(--dc-tap); height: var(--dc-tap); margin: -8px -8px 0 0; padding: 0; border: 0; border-radius: var(--dc-pill);
	background: transparent; color: var(--dc-muted); cursor: pointer;
}
body.dc .dc-modal-close:hover { background: var(--dc-line-soft); color: var(--dc-ink); }

.dc-modal-body { padding: var(--dc-s5); }
body.dc .dc-modal-label { margin: 0 0 var(--dc-s2); font-size: var(--dc-fs-sm); font-weight: 600; color: var(--dc-muted); }

/* Código completo + Copiar */
body.dc .dc-modal .ui.action.input.dc-code-box { display: flex; width: 100%; height: 60px; }
body.dc .dc-modal .dc-code-box input.code-text {
	flex: 1; min-width: 0; height: 100%; padding: 0 var(--dc-s4); margin: 0;
	border: 2px dashed var(--dc-red); border-right: 0; border-radius: var(--dc-r-md) 0 0 var(--dc-r-md);
	background: #FFF7F8; color: var(--dc-ink); font: 700 24px/1 var(--dc-font); letter-spacing: .08em; text-align: center;
	box-shadow: none; opacity: 1;
}
body.dc .dc-modal .ui.action.input.dc-code-box > .button.dc-code-copy {
	flex: none; height: 100%; margin: 0; padding: 0 var(--dc-s5); border: 0; border-radius: 0 var(--dc-r-md) var(--dc-r-md) 0;
	background: var(--dc-ink); color: #FFF; font: 700 var(--dc-fs-md)/1 var(--dc-font); cursor: pointer;
}
body.dc .dc-modal .dc-code-box > .button.dc-code-copy:hover { background: var(--dc-ink-3); }
/* Sin portapapeles el tema quita el botón: el código ocupa toda la caja */
body.dc .dc-modal .dc-code-box:not(.action) input.code-text { border-right: 2px dashed var(--dc-red); border-radius: var(--dc-r-md); }
body.dc .dc-modal-hint { margin: var(--dc-s2) 0 var(--dc-s4); font-size: var(--dc-fs-sm); color: var(--dc-muted); }

/* Botón a la tienda: rojo, a todo el ancho */
body.dc .dc-btn--lg { min-height: 54px; font-size: var(--dc-fs-base); }
body.dc .dc-btn--block { width: 100%; gap: var(--dc-s2); }
body.dc .dc-modal .dc-btn, body.dc .dc-modal .dc-btn:visited { color: #FFF; }

/* Oferta sin código */
body.dc .dc-modal-ok {
	display: flex; gap: var(--dc-s3); align-items: flex-start; margin: 0 0 var(--dc-s4); padding: var(--dc-s4);
	border-radius: var(--dc-r-md); background: var(--dc-bg); font-size: var(--dc-fs-md); line-height: 1.45; color: var(--dc-ink);
}
.dc-modal-ok .dc-icon { flex: none; color: var(--dc-red); margin-top: 1px; }
.dc-modal-print img { display: block; max-width: 100%; margin: 0 auto var(--dc-s4); border: 1px solid var(--dc-line); border-radius: var(--dc-r-md); }

/* ¿Te ha funcionado? (votos del tema: el contenedor recibe .voted y el botón .active) */
.dc-modal-vote { display: flex; align-items: center; justify-content: space-between; gap: var(--dc-s3); flex-wrap: wrap; margin-top: var(--dc-s5); padding-top: var(--dc-s4); border-top: 1px solid var(--dc-line-soft); }
body.dc .dc-modal-vote > p { margin: 0; font-size: var(--dc-fs-md); font-weight: 600; color: var(--dc-ink); }
.dc-vote { display: flex; align-items: center; gap: var(--dc-s2); }
.dc-vote-btn {
	min-width: 64px; min-height: 40px; padding: 0 var(--dc-s4); border: 1.5px solid var(--dc-line); border-radius: var(--dc-pill);
	background: #FFF; color: var(--dc-ink); font: 600 var(--dc-fs-sm)/1 var(--dc-font); cursor: pointer;
}
.dc-vote-btn:hover { border-color: var(--dc-ink); }
.dc-vote-btn.active { border-color: var(--dc-ink); background: var(--dc-ink); color: #FFF; }
.dc-vote-thanks { display: none; font-size: var(--dc-fs-sm); color: var(--dc-muted); }
.dc-vote.voted .dc-vote-btn:not(.active) { display: none; }
.dc-vote.voted .dc-vote-thanks { display: inline; }

/* Detalles */
body.dc .dc-modal-more { margin: var(--dc-s4) 0 0; }
body.dc .dc-modal-more a { display: inline-flex; align-items: center; gap: 4px; min-height: var(--dc-tap); font-size: var(--dc-fs-sm); font-weight: 600; color: var(--dc-ink-3); text-decoration: none; }
body.dc .dc-modal-more a:hover { color: var(--dc-red-text); }
.dc-modal-more .dc-icon { transition: transform .15s; }
.dc-modal-more a.show-detail-on .dc-icon { transform: rotate(180deg); }
body.dc .dc-modal-detail { font-size: var(--dc-fs-sm); color: var(--dc-ink-3); }
body.dc .dc-modal-detail p { margin: 0 0 var(--dc-s3); font-size: inherit; color: inherit; line-height: 1.5; }
.dc-modal-detail dl { margin: 0; display: grid; gap: 6px; }
.dc-modal-detail dl > div { display: flex; justify-content: space-between; gap: var(--dc-s3); padding-bottom: 6px; border-bottom: 1px solid var(--dc-line-soft); }
.dc-modal-detail dt { color: var(--dc-muted); }
.dc-modal-detail dd { margin: 0; font-weight: 600; color: var(--dc-ink); }

/* Sin botón flotante de cookies: se reabre la configuración desde «Configurar cookies» del footer. */
body.dc .cdp-cookies-preferences { display: none !important; }

/* Móvil: panel que sube desde abajo */
@media (max-width: 640px) {
	body.dc .ui.modal.dc-modal {
		top: auto !important; bottom: 0; left: 0; width: 100%; margin: 0 !important;
		max-height: 92vh; overflow-y: auto; border-radius: var(--dc-r-xl) var(--dc-r-xl) 0 0;
	}
	.dc-modal-head { padding: var(--dc-s4); }
	.dc-modal-logo { width: 48px; height: 48px; }
	.dc-modal-body { padding: var(--dc-s4) var(--dc-s4) calc(var(--dc-s5) + env(safe-area-inset-bottom)); }
	body.dc .dc-modal .dc-code-box input.code-text { font-size: 20px; }
}

/* 10. Blog: índice y artículo --------------------------------------------------- */
.dc-blog, .dc-article-page { padding: var(--dc-s6) 0 var(--dc-s8); }
.dc-blog .dc-crumbs, .dc-article-page .dc-crumbs { margin-bottom: var(--dc-s6); }
.dc-blog-head { margin-bottom: var(--dc-s7); }
.dc-blog-head .dc-crumbs { margin-bottom: var(--dc-s5); }
body.dc .dc-blog-head h1, body.dc .dc-article-head h1 { margin: 0; font-size: var(--dc-fs-2xl); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
body.dc .dc-blog-head p { margin: var(--dc-s3) 0 0; max-width: 640px; font-size: var(--dc-fs-lg); color: var(--dc-muted); }
body.dc .dc-layout-side h2 { margin: 0; font-size: 18px; letter-spacing: 0; }

/* Tarjetas del índice */
.dc-post-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--dc-s4); }
.dc-post-card { display: flex; gap: var(--dc-s5); margin: 0; padding: var(--dc-s5) var(--dc-s6); }
.dc-post-card-thumb { flex: none; width: 160px; }
.dc-post-card-thumb img { display: block; width: 160px; height: 110px; object-fit: cover; border-radius: var(--dc-r-md); }
.dc-post-card-body { display: flex; flex-direction: column; gap: var(--dc-s2); min-width: 0; }
body.dc .dc-post-card h2 { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
body.dc .dc-post-card h2 a { color: var(--dc-ink); text-decoration: none; }
body.dc .dc-post-card h2 a:hover { color: var(--dc-red-text); }
body.dc .dc-post-card-body > p:not(.dc-meta) { margin: 0; font-size: var(--dc-fs-md); line-height: 1.55; color: var(--dc-ink-3); }

.dc-pagination { margin-top: var(--dc-s6); }
.dc-pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--dc-s2); }
body.dc .dc-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: var(--dc-tap); min-height: var(--dc-tap); padding: 0 var(--dc-s3);
	border: 1px solid var(--dc-line); border-radius: var(--dc-r-md); background: var(--dc-surface);
	font-size: var(--dc-fs-sm); font-weight: 600; color: var(--dc-ink); text-decoration: none; box-sizing: border-box;
}
body.dc .dc-pagination a.page-numbers:hover { border-color: var(--dc-ink); }
body.dc .dc-pagination .page-numbers.current { background: var(--dc-ink); border-color: var(--dc-ink); color: #FFF; }
body.dc .dc-pagination .page-numbers.dots { border: 0; background: transparent; }

/* Artículo */
.dc-article { min-width: 0; }
.dc-article-head { display: flex; flex-direction: column; gap: var(--dc-s4); }
.dc-article-byline p { display: flex; flex-direction: column; gap: 2px; margin: 0; }
body.dc .dc-article-byline a { color: var(--dc-ink); text-decoration: none; }
body.dc .dc-article-byline a:hover { color: var(--dc-red-text); }
.dc-avatar--md { width: 40px; height: 40px; }
.dc-notice {
	margin: 0; padding: var(--dc-s3) var(--dc-s4); border-left: 3px solid var(--dc-red); border-radius: 0 var(--dc-r-sm) var(--dc-r-sm) 0;
	background: var(--dc-surface); font-size: var(--dc-fs-sm); line-height: 1.5; color: var(--dc-ink-3);
}
body.dc p.dc-notice { font-size: var(--dc-fs-sm); color: var(--dc-ink-3); }
.dc-article-thumb { margin: 0; }
.dc-article-thumb img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: var(--dc-r-lg); }

/* Cuerpo: contenido antiguo con estilos en línea (justificado) y botones de afiliado */
.dc-article-body { padding: var(--dc-s7) var(--dc-s7) var(--dc-s4); background: var(--dc-surface); border: 1px solid var(--dc-line); border-radius: var(--dc-r-lg); }
.dc-article-body [style*="justify"] { text-align: left !important; }
.dc-article-body h2 { margin-top: var(--dc-s7); }
.dc-article-body > h2:first-child { margin-top: 0; }
.dc-article-body a { text-decoration: underline; text-underline-offset: 2px; }
.dc-article-body table { width: 100%; border-collapse: collapse; margin: 0 0 var(--dc-s5); font-size: var(--dc-fs-md); }
.dc-article-body th, .dc-article-body td { padding: var(--dc-s2) var(--dc-s3); border-bottom: 1px solid var(--dc-line); text-align: left; }
.dc-article-body blockquote { margin: 0 0 var(--dc-s4); padding-left: var(--dc-s4); border-left: 3px solid var(--dc-line); color: var(--dc-muted); }
.dc-article-body .aligncenter { display: block; margin: 0 auto var(--dc-s4); }
.dc-article-body .alignleft { float: left; margin: 0 var(--dc-s4) var(--dc-s3) 0; }
.dc-article-body .alignright { float: right; margin: 0 0 var(--dc-s3) var(--dc-s4); }
.dc-article-body::after { content: ""; display: block; clear: both; }
.dc-article-tags { margin-top: var(--dc-s2); }

.dc-author-box { display: flex; gap: var(--dc-s4); align-items: flex-start; padding: var(--dc-s5) var(--dc-s6); }
.dc-author-box p { margin: 0; font-size: var(--dc-fs-md); line-height: 1.55; color: var(--dc-ink-3); }
body.dc .dc-author-box-name { margin-bottom: var(--dc-s1); font-weight: 700; }
body.dc .dc-author-box-name a { color: var(--dc-ink); text-decoration: none; }

/* Lateral */
.dc-side-list, .dc-side-cats { padding: 22px; display: flex; flex-direction: column; gap: var(--dc-s3); }
.dc-side-list ul { list-style: none; margin: 0; padding: 0; }
.dc-side-list li { margin: 0; border-top: 1px solid var(--dc-line-soft); }
body.dc .dc-side-list li a { display: block; padding: 10px 0; color: var(--dc-ink); font-weight: 600; font-size: var(--dc-fs-sm); line-height: 1.4; text-decoration: none; }
body.dc .dc-side-list li a:hover { color: var(--dc-red-text); }

@media (max-width: 899px) {
	.dc-blog, .dc-article-page { padding-top: var(--dc-s4); }
	.dc-blog .dc-crumbs, .dc-article-page .dc-crumbs { margin-bottom: var(--dc-s4); }
	/* El título largo ya está en el H1: en móvil las migas acaban en «Blog» */
	.dc-article-page .dc-crumbs li[aria-current] { display: none; }
	.dc-blog-head { margin-bottom: var(--dc-s5); }
	body.dc .dc-blog-head h1, body.dc .dc-article-head h1 { font-size: 28px; line-height: 1.15; }
	body.dc .dc-blog-head p { font-size: var(--dc-fs-md); }
	.dc-post-card { flex-direction: column; gap: var(--dc-s3); padding: var(--dc-s5); }
	.dc-post-card-thumb, .dc-post-card-thumb img { width: 100%; }
	.dc-post-card-thumb img { height: 160px; }
	body.dc .dc-post-card h2 { font-size: 18px; }
	.dc-article { display: flex; flex-direction: column; gap: var(--dc-s5); }
	.dc-article-body { margin: 0 calc(-1 * var(--dc-gutter)); padding: var(--dc-s5) var(--dc-gutter) var(--dc-s2); border-radius: 0; border-left: 0; border-right: 0; }
	.dc-article-body .alignleft, .dc-article-body .alignright { float: none; margin: 0 auto var(--dc-s4); }
	.dc-author-box { padding: var(--dc-s5); }
}
@media (min-width: 900px) {
	.dc-article { display: flex; flex-direction: column; gap: var(--dc-s6); }
}

/* 11. Páginas: genérica, quiénes somos y autor ----------------------------------- */
.dc-page, .dc-author-page { padding: var(--dc-s6) 0 var(--dc-s8); }
.dc-page-in { max-width: calc(820px + 2 * var(--dc-gutter)); display: flex; flex-direction: column; gap: var(--dc-s5); }
body.dc .dc-page h1, body.dc .dc-author-page h1 { margin: 0; font-size: var(--dc-fs-2xl); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.dc-page-body { padding: var(--dc-s7); background: var(--dc-surface); border: 1px solid var(--dc-line); border-radius: var(--dc-r-lg); }
.dc-page-body [style*="justify"] { text-align: left !important; }
.dc-page-body h2 { margin-top: var(--dc-s7); }
.dc-page-body > h2:first-child { margin-top: 0; }
.dc-page-body h4 { margin: var(--dc-s5) 0 var(--dc-s2); font-size: var(--dc-fs-base); }
.dc-page-body table { width: 100%; border-collapse: collapse; margin: 0 0 var(--dc-s5); font-size: var(--dc-fs-sm); }
.dc-page-body th, .dc-page-body td { padding: var(--dc-s2); border: 1px solid var(--dc-line); text-align: left; vertical-align: top; }
.dc-page-body a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
/* Rejilla de Semantic UI en contenido antiguo (contacto): una columna */
body.dc .dc-page-body .ui.grid, body.dc .dc-page-body .ui.grid > .row { display: block; margin: 0; padding: 0; }
body.dc .dc-page-body .ui.grid .column { width: auto !important; padding: 0 !important; box-shadow: none !important; }
body.dc .dc-page-body .ui.grid .column:empty { display: none; }
.dc-page-body .wpcf7 input:not([type="submit"]), .dc-page-body .wpcf7 textarea {
	width: 100%; box-sizing: border-box; padding: var(--dc-s3); border: 1px solid var(--dc-line); border-radius: var(--dc-r-md); font: inherit;
}
.dc-page-body .wpcf7 input[type="submit"] {
	min-height: 48px; padding: 0 var(--dc-s6); border: 0; border-radius: var(--dc-r-md); background: var(--dc-red); color: #FFF; font: 700 var(--dc-fs-md) var(--dc-font); cursor: pointer;
}

/* Quiénes somos */
.dc-about-head { display: flex; flex-direction: column; gap: var(--dc-s3); }
body.dc .dc-about-head p { margin: 0; font-size: var(--dc-fs-lg); color: var(--dc-muted); }
.dc-about-stats, .dc-profile-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--dc-s3); }
.dc-about-stats li { margin: 0; padding: var(--dc-s4); background: var(--dc-surface); border: 1px solid var(--dc-line); border-radius: var(--dc-r-lg); display: flex; flex-direction: column; gap: 2px; }
.dc-about-stats b, .dc-profile-stats b { font-size: var(--dc-fs-xl); line-height: 1.1; color: var(--dc-ink); }
.dc-about-stats span, .dc-profile-stats span { font-size: var(--dc-fs-xs); color: var(--dc-muted); }
.dc-about-page .dc-page-body ol { padding-left: 22px; }
.dc-about-page .dc-page-body ol li { margin-bottom: var(--dc-s3); }

/* Autor */
.dc-author-page .dc-container { display: flex; flex-direction: column; gap: var(--dc-s7); }
.dc-profile { display: flex; gap: var(--dc-s6); align-items: flex-start; padding: var(--dc-s7); }
.dc-avatar--xl { width: 112px; height: 112px; }
.dc-profile-text { display: flex; flex-direction: column; gap: var(--dc-s3); min-width: 0; }
body.dc .dc-profile-bio { margin: 0; max-width: 720px; font-size: var(--dc-fs-base); line-height: 1.6; color: var(--dc-ink-3); }
.dc-profile-stats { grid-template-columns: repeat(3, max-content); gap: var(--dc-s7); margin-top: var(--dc-s2); }
.dc-profile-stats li { margin: 0; display: flex; flex-direction: column; }
body.dc .dc-profile-link { margin: 0; font-size: var(--dc-fs-sm); font-weight: 700; }
.dc-author-guides, .dc-author-posts { display: flex; flex-direction: column; gap: var(--dc-s4); }
body.dc .dc-author-guides h2, body.dc .dc-author-posts h2 { margin: 0; font-size: var(--dc-fs-xl); }
.dc-guide-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--dc-s3); }
.dc-guide-grid li { margin: 0; }
body.dc .dc-guide-link { display: flex; flex-direction: column; gap: var(--dc-s1); height: 100%; box-sizing: border-box; padding: var(--dc-s4); text-decoration: none; }
body.dc .dc-guide-link:hover { border-color: var(--dc-ink); }
.dc-guide-link-cat { font-size: var(--dc-fs-xs); font-weight: 700; color: var(--dc-red-text); }
.dc-guide-link-title { font-size: var(--dc-fs-sm); font-weight: 600; line-height: 1.35; color: var(--dc-ink); }
body.dc .dc-post-card h3 { margin: 0; font-size: 19px; line-height: 1.3; }
body.dc .dc-post-card h3 a { color: var(--dc-ink); text-decoration: none; }
body.dc .dc-post-card h3 a:hover { color: var(--dc-red-text); }

@media (max-width: 899px) {
	.dc-page, .dc-author-page { padding-top: var(--dc-s4); }
	body.dc .dc-page h1, body.dc .dc-author-page h1 { font-size: 28px; line-height: 1.15; }
	.dc-page-body { margin: 0 calc(-1 * var(--dc-gutter)); padding: var(--dc-s5) var(--dc-gutter); border-radius: 0; border-left: 0; border-right: 0; }
	.dc-page-body table { display: block; overflow-x: auto; }
	body.dc .dc-about-head p { font-size: var(--dc-fs-md); }
	.dc-about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dc-profile { flex-direction: column; gap: var(--dc-s4); padding: var(--dc-s5); }
	.dc-avatar--xl { width: 80px; height: 80px; }
	.dc-profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--dc-s3); }
	.dc-guide-grid { grid-template-columns: 1fr 1fr; }
	.dc-author-page .dc-container { gap: var(--dc-s6); }
}

/* 12. Datos de tienda ampliados -------------------------------------------------- */
body.dc .dc-facts-sub { margin: var(--dc-s1) 0 0; padding-top: 14px; border-top: 1px solid var(--dc-line-soft); font-size: var(--dc-fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dc-muted); }
body.dc .dc-facts-date { margin: 0; padding-top: 12px; border-top: 1px solid var(--dc-line-soft); font-size: var(--dc-fs-xs); line-height: 1.45; color: var(--dc-muted); }


/* 13. Listados: tiendas A–Z, categorías, búsqueda, 404 y enviar cupón --------------- */
.dc-az .dc-container, .dc-catlist .dc-container, .dc-search-page .dc-container, .dc-submit-page .dc-container { display: flex; flex-direction: column; gap: var(--dc-s7); }
.dc-az-head { display: flex; flex-direction: column; gap: var(--dc-s3); }
body.dc .dc-az-head h1 { margin: 0; }
body.dc .dc-az-head > p { margin: 0; max-width: 680px; font-size: var(--dc-fs-lg); color: var(--dc-muted); }
body.dc .dc-az h2, body.dc .dc-catlist h2, body.dc .dc-search-page h2 { margin: 0 0 var(--dc-s4); font-size: var(--dc-fs-xl); }

/* Buscador en página */
.dc-search--page { display: flex; gap: var(--dc-s2); max-width: 640px; margin-top: var(--dc-s2); }
.dc-search--page .dc-search-field { flex: 1; display: flex; align-items: center; gap: var(--dc-s2); padding: 0 var(--dc-s4); min-height: 52px; background: var(--dc-surface); border: 1.5px solid var(--dc-line); border-radius: var(--dc-r-md); color: var(--dc-muted); }
.dc-search--page .dc-search-field:focus-within { border-color: var(--dc-ink); }
body.dc .dc-search--page input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 var(--dc-fs-base) var(--dc-font); color: var(--dc-ink); }
.dc-search-btn { min-height: 52px; padding: 0 var(--dc-s6); border: 0; border-radius: var(--dc-r-md); background: var(--dc-ink); color: #FFF; font: 700 var(--dc-fs-md) var(--dc-font); cursor: pointer; }
.dc-search-btn:hover { background: var(--dc-ink-3); }

/* Tiendas A–Z */
.dc-az-list { padding: var(--dc-s6); }
.dc-az-tools { display: flex; justify-content: space-between; align-items: center; gap: var(--dc-s4); flex-wrap: wrap; }
body.dc .dc-az-tools h2 { margin: 0; }
.dc-az-filter { display: flex; align-items: center; gap: var(--dc-s2); color: var(--dc-muted); }
.dc-az-filter:has(input[hidden]) { display: none; }
body.dc .dc-az-filter input { min-height: 40px; width: 240px; padding: 0 var(--dc-s3); border: 1px solid var(--dc-line); border-radius: var(--dc-r-md); font: 500 var(--dc-fs-sm) var(--dc-font); }
.dc-az-letters { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px; margin: var(--dc-s4) calc(-1 * var(--dc-s6)) 0; padding: var(--dc-s3) var(--dc-s6); background: var(--dc-surface); border-bottom: 1px solid var(--dc-line-soft); }
.dc-az-letters a, .dc-az-letters span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 4px; border-radius: var(--dc-r-sm); font-size: var(--dc-fs-sm); font-weight: 700; text-decoration: none; box-sizing: border-box; }
body.dc .dc-az-letters a { color: var(--dc-ink); }
body.dc .dc-az-letters a:hover { background: var(--dc-ink); color: #FFF; }
.dc-az-letters span { color: var(--dc-line); }
.dc-az-group { padding-top: var(--dc-s5); scroll-margin-top: 72px; }
body.dc .dc-az-group h3 { margin: 0 0 var(--dc-s2); font-size: var(--dc-fs-lg); color: var(--dc-red-text); }
.dc-az-group ul { list-style: none; margin: 0; padding: 0; columns: 4 180px; column-gap: var(--dc-s6); }
.dc-az-group li { margin: 0; break-inside: avoid; }
body.dc .dc-az-group a { display: block; padding: 5px 0; font-size: var(--dc-fs-sm); color: var(--dc-ink); text-decoration: none; }
body.dc .dc-az-group a:hover { color: var(--dc-red-text); text-decoration: underline; }
body.dc .dc-az-empty { margin: var(--dc-s5) 0 0; }

/* Categorías */
.dc-catcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--dc-s4); }
.dc-catcard { margin: 0; padding: var(--dc-s5); display: flex; flex-direction: column; gap: var(--dc-s3); }
body.dc .dc-catcard h2 { margin: 0; font-size: 20px; }
body.dc .dc-catcard h2 a { color: var(--dc-ink); text-decoration: none; }
body.dc .dc-catcard h2 a:hover { color: var(--dc-red-text); }
.dc-catcard-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--dc-s2); }
.dc-catcard-logos li { margin: 0; }
.dc-catcard-logos a { display: flex; align-items: center; justify-content: center; height: 52px; padding: 6px; box-sizing: border-box; background: var(--dc-bg); border-radius: var(--dc-r-md); }
.dc-catcard-logos img { max-width: 100%; max-height: 40px; width: auto; height: auto; object-fit: contain; }
.dc-catcard-logos .dc-logo-fallback { font-size: 14px; }
.dc-catcard .dc-more { margin-top: auto; }

/* Búsqueda y 404 */
.dc-empty { padding: var(--dc-s5) var(--dc-s6); }
body.dc .dc-empty h2 { margin: 0 0 var(--dc-s2); font-size: var(--dc-fs-lg); }
body.dc .dc-empty p { margin: 0; font-size: var(--dc-fs-md); color: var(--dc-ink-3); }
body.dc .dc-search-page .dc-side-list h2 { margin: 0; font-size: var(--dc-fs-lg); }
.dc-404 .dc-eyebrow { margin: 0; }

/* Enviar cupón (formulario del complemento, con marcado de Semantic UI) */
.dc-submit-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--dc-s6); align-items: start; }
.dc-submit-form { padding: var(--dc-s6); }
body.dc .dc-submit-form .ui.form .field { margin: 0 0 var(--dc-s4); }
body.dc .dc-submit-form .ui.form label { font: 600 var(--dc-fs-sm) var(--dc-font); color: var(--dc-ink); }
body.dc .dc-submit-form .ui.form input[type="text"], body.dc .dc-submit-form .ui.form textarea, body.dc .dc-submit-form .ui.form select, body.dc .dc-submit-form .ui.selection.dropdown {
	min-height: 48px; border: 1px solid var(--dc-line); border-radius: var(--dc-r-md); font: 500 var(--dc-fs-md) var(--dc-font); color: var(--dc-ink); box-shadow: none;
}
body.dc .dc-submit-form .ui.form input:focus, body.dc .dc-submit-form .ui.form textarea:focus { border-color: var(--dc-ink); }
body.dc .dc-submit-form .ui.action.input > .button { border-radius: 0 var(--dc-r-md) var(--dc-r-md) 0; background: var(--dc-ink); color: #FFF; font: 700 var(--dc-fs-sm) var(--dc-font); }
body.dc .dc-submit-form .ui.action.input > input { border-radius: var(--dc-r-md) 0 0 var(--dc-r-md); }
body.dc .dc-submit-form button.btn_primary, body.dc .dc-submit-form .ui.button.btn_primary {
	min-height: 52px; border-radius: var(--dc-r-md); background: var(--dc-red); color: #FFF; font: 700 var(--dc-fs-base) var(--dc-font); text-transform: none; letter-spacing: 0;
}
body.dc .dc-submit-form button.btn_primary:hover { background: var(--dc-red-hover); }
/* Los usuarios no ponen enlaces de afiliado propios: ese campo se oculta (lo añade el equipo al revisar). */
body.dc .dc-submit-form .field:has(> input[name="coupon_aff_url"]) { display: none; }
.dc-submit-info { padding: var(--dc-s6); }
body.dc .dc-submit-info h2 { font-size: var(--dc-fs-lg); }

@media (max-width: 899px) {
	.dc-az .dc-container, .dc-catlist .dc-container, .dc-search-page .dc-container, .dc-submit-page .dc-container { gap: var(--dc-s6); }
	body.dc .dc-az-head > p { font-size: var(--dc-fs-md); }
	body.dc .dc-az h2, body.dc .dc-catlist h2, body.dc .dc-search-page h2 { font-size: 21px; }
	.dc-search--page .dc-search-btn { padding: 0 var(--dc-s4); }
	.dc-az-list { margin: 0 calc(-1 * var(--dc-gutter)); padding: var(--dc-s5) var(--dc-gutter); border-radius: 0; border-left: 0; border-right: 0; }
	body.dc .dc-az-filter, body.dc .dc-az-filter input { width: 100%; }
	.dc-az-letters { flex-wrap: nowrap; overflow-x: auto; margin: var(--dc-s4) calc(-1 * var(--dc-gutter)) 0; padding: var(--dc-s2) var(--dc-gutter); }
	.dc-az-letters span { display: none; }
	.dc-az-group ul { columns: 2; column-gap: var(--dc-s4); }
	.dc-catcards { grid-template-columns: 1fr; }
	.dc-submit-layout { grid-template-columns: 1fr; }
	.dc-submit-form { margin: 0 calc(-1 * var(--dc-gutter)); padding: var(--dc-s5) var(--dc-gutter); border-radius: 0; border-left: 0; border-right: 0; }
}
@media (max-width: 899px) and (min-width: 600px) {
	.dc-catcards { grid-template-columns: 1fr 1fr; }
}

/* Enviar cupón: el formulario no puede ensanchar la columna (campos de Semantic con ancho mínimo) */
.dc-submit-layout > * { min-width: 0; }
body.dc .dc-submit-form .ui.form, body.dc .dc-submit-form .ui.form .field, body.dc .dc-submit-form .ui.form input, body.dc .dc-submit-form .ui.form textarea, body.dc .dc-submit-form .ui.form select, body.dc .dc-submit-form .ui.input { max-width: 100%; box-sizing: border-box; }
body.dc .dc-submit-form .ui.action.input { display: flex; width: 100%; }
body.dc .dc-submit-form .ui.action.input > input { flex: 1; min-width: 0; width: auto; }
body.dc .dc-submit-form .ui.icon.input { display: flex; width: 100%; }
body.dc .dc-submit-form .ui.icon.input > input { min-width: 0; }

/* Categoría: resumen de cupones (10 a la vista, el resto en un desplegable) */
.dc-more-coupons { border-top: 1px solid var(--dc-line-soft); }
.dc-more-coupons > summary { display: flex; align-items: center; justify-content: center; gap: var(--dc-s2); min-height: 52px; padding: 0 var(--dc-s6); list-style: none; cursor: pointer; font: 700 var(--dc-fs-sm) var(--dc-font); color: var(--dc-ink); }
.dc-more-coupons > summary::-webkit-details-marker { display: none; }
.dc-more-coupons > summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--dc-red-text); }
.dc-more-coupons[open] > summary::after { content: "–"; }
.dc-more-coupons > summary:hover { background: var(--dc-bg); }
.dc-more-coupons[open] > summary { border-bottom: 1px solid var(--dc-line-soft); }
