/*
Theme Name: Cafeteras Superautomáticas
Theme URI: https://cafeterassuperautomaticas.es
Description: Tema hijo de Astra para cafeterassuperautomaticas.es. Paleta café y crema, portada de comparativas y plantilla de artículos (respuesta directa, veredicto, pros y contras, preguntas frecuentes, botón de Amazon).
Author: Jesús
Template: astra
Version: 1.0.11
Requires at least: 6.4
Text Domain: cafeteras-tema
*/

/* ==========================================================
   Aspecto general del sitio (sobre Astra)
   Los estilos de los bloques están en blocks.css
   ========================================================== */

/* Paleta global de Astra → colores de la marca */
:root {
	--ast-global-color-0: #4A3225; /* principal / enlaces / botones */
	--ast-global-color-1: #A9805F; /* hover */
	--ast-global-color-2: #2E241E; /* títulos */
	--ast-global-color-3: #3F342C; /* texto */
	--ast-global-color-4: #FAF6F0; /* fondo suave */
	--ast-global-color-5: #FFFFFF; /* fondo */
	--ast-global-color-6: #F1E8DC;
	--ast-global-color-7: #E4D7C6;
	--ast-global-color-8: #6E5E52;
}

body {
	background: #FFFFFF;
	color: #3F342C;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.entry-title,
.site-title {
	font-family: Georgia, "Times New Roman", serif;
	color: #2E241E;
	letter-spacing: -0.01em;
}
.entry-content h4, .entry-content h5, .entry-content h6 {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: #4A3225; }
a:hover, a:focus { color: #A9805F; }

::selection { background: #E4D7C6; color: #2E241E; }

/* ---------- Cabecera ---------- */
.site-header,
.main-header-bar,
.ast-primary-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar {
	background: #FFFFFF !important;
}
.main-header-bar,
.ast-primary-header-bar {
	border-bottom: 1px solid #EFE6DA !important;
}
.site-header .main-header-menu > .menu-item > .menu-link,
.site-header .ast-builder-menu .menu-item > .menu-link {
	color: #4A3225 !important;
	font-weight: 600;
	font-size: 15.5px;
}
.site-header .main-header-menu > .menu-item:hover > .menu-link,
.site-header .main-header-menu > .current-menu-item > .menu-link,
.site-header .main-header-menu > .current-menu-ancestor > .menu-link {
	color: #A9805F !important;
}
.site-header .sub-menu {
	background: #FFFFFF !important;
	border: 1px solid #E4D7C6 !important;
	border-radius: 10px;
	box-shadow: 0 14px 30px rgba(74, 50, 37, .10);
	overflow: hidden;
}
.site-header .sub-menu .menu-link { color: #4A3225 !important; }
.site-header .sub-menu .menu-item:hover > .menu-link { background: #FAF6F0 !important; color: #4A3225 !important; }
.ast-mobile-popup-drawer .ast-mobile-popup-inner,
.ast-header-break-point .main-header-menu { background: #FFFFFF !important; }
.menu-toggle, .ast-mobile-menu-trigger-minimal { color: #4A3225 !important; }

/* ---------- Botones generales ---------- */
.ast-button, .button, input[type="submit"], button.wp-element-button,
.wp-block-button__link {
	border-radius: 10px;
}

/* ---------- Artículos ---------- */
.single .entry-title {
	font-size: clamp(30px, 4vw, 42px);
	line-height: 1.15;
	margin-bottom: 10px;
}
.single .entry-meta,
.single .entry-meta a { color: #6E5E52; font-size: 14px; }

.entry-content { font-size: 17.5px; line-height: 1.7; }
.entry-content h2 {
	font-size: clamp(25px, 3vw, 31px);
	line-height: 1.25;
	margin-top: 1.8em;
	margin-bottom: .6em;
	padding-bottom: .3em;
	border-bottom: 2px solid #F1E8DC;
}
.entry-content h3 { font-size: 22px; line-height: 1.3; margin-top: 1.4em; }
.entry-content a:not(.wp-block-button__link) {
	color: #4A3225;
	text-decoration: underline;
	text-decoration-color: #A9805F;
	text-underline-offset: 3px;
}
.entry-content a:not(.wp-block-button__link):hover { color: #A9805F; }

.single .wp-post-image,
.single .post-thumb-img-content img {
	border-radius: 14px;
	background: #FAF6F0;
}

/* Tablas (TablePress y bloque Tabla) */
.entry-content table,
.tablepress {
	border-collapse: separate !important;
	border-spacing: 0;
	width: 100%;
	border: 1px solid #E4D7C6 !important;
	border-radius: 12px;
	overflow: hidden;
	font-size: 15.5px;
	margin-bottom: 28px !important;
}
.entry-content table th,
.tablepress thead th,
.tablepress tfoot th {
	background: #4A3225 !important;
	color: #FAF6F0 !important;
	font-weight: 700;
	border: 0 !important;
	padding: 12px 14px !important;
	text-align: left;
}
.entry-content table td,
.tablepress tbody td {
	border: 0 !important;
	border-top: 1px solid #EFE6DA !important;
	padding: 11px 14px !important;
	vertical-align: top;
	background: #FFFFFF;
}
.tablepress tbody tr:nth-child(even) td,
.entry-content table tbody tr:nth-child(even) td { background: #FAF6F0 !important; }
.tablepress tbody tr:hover td { background: #F1E8DC !important; }
.tablepress .row-hover tr:hover td { background: #F1E8DC !important; }

/* Bloque de autor / navegación entre entradas */
.post-navigation a { color: #4A3225; }
.ast-single-related-posts-container { border-top: 2px solid #F1E8DC; }

/* ---------- Listados de categorías y blog ---------- */
.archive .ast-archive-description,
.blog .ast-archive-description,
.search .ast-archive-description {
	background: #FAF6F0;
	border: 0;
	border-radius: 14px;
	padding: 32px 28px;
	margin-bottom: 28px;
}
.ast-archive-description .ast-archive-title { color: #2E241E; }

.archive .ast-article-post .ast-article-inner,
.blog .ast-article-post .ast-article-inner,
.search .ast-article-post .ast-article-inner,
.archive article.ast-article-post > .post-content,
.blog article.ast-article-post > .post-content {
	background: #FFFFFF;
	border: 1px solid #E4D7C6;
	border-radius: 14px;
	padding: 22px !important;
	transition: box-shadow .2s ease, transform .2s ease;
}
.archive .ast-article-post .ast-article-inner:hover,
.blog .ast-article-post .ast-article-inner:hover,
.archive article.ast-article-post > .post-content:hover,
.blog article.ast-article-post > .post-content:hover {
	box-shadow: 0 14px 30px rgba(74, 50, 37, .10);
	transform: translateY(-2px);
}
.archive .ast-article-post .entry-title,
.blog .ast-article-post .entry-title { font-size: 21px; line-height: 1.3; }
.archive .ast-article-post .entry-title a,
.blog .ast-article-post .entry-title a { color: #2E241E; text-decoration: none; }
.archive .ast-article-post .entry-title a:hover,
.blog .ast-article-post .entry-title a:hover { color: #A9805F; }
.archive .post-thumb img,
.blog .post-thumb img { border-radius: 10px; background: #FAF6F0; }
.ast-pagination a, .ast-pagination span { border-radius: 8px; }
.ast-pagination .page-numbers.current { background: #4A3225; color: #FAF6F0; }

/* ---------- Pie de página ---------- */
.site-footer,
.site-footer .site-primary-footer-wrap,
.site-footer .site-above-footer-wrap,
.site-footer .site-below-footer-wrap,
.ast-small-footer {
	background: #4A3225 !important;
	color: #E9DDCD !important;
	border-top: 0 !important;
}
.site-footer a,
.ast-small-footer a { color: #FAF6F0 !important; }
.site-footer a:hover,
.ast-small-footer a:hover { color: #E0C3A6 !important; }
.site-footer .widget-title,
.site-footer h2, .site-footer h3 { color: #FAF6F0 !important; }

/* ---------- Portada creada por el tema ---------- */
.home.page .site-content > .ast-container { max-width: 100%; padding-left: 0; padding-right: 0; }
.home.page .entry-content > .alignfull { margin-left: 0; margin-right: 0; }
.home.page .entry-header { display: none; }

/* ==========================================================
   v1.0.1 · Ajustes tras ver la web real
   ========================================================== */

/* Menú de escritorio: cabecera blanca a todo lo ancho, logo a la izquierda y enlaces a la derecha */
@media (min-width: 922px) {
	.site-header .main-header-menu {
		background: transparent !important;
		border-radius: 0;
		padding: 0 !important;
	}
	.site-header .main-header-menu > .menu-item > .menu-link,
	.site-header .ast-builder-menu .main-header-menu > .menu-item > .menu-link {
		color: #4A3225 !important;
		background: transparent !important;
		font-weight: 600;
		padding: 10px 16px !important;
		position: relative;
	}
	.site-header .main-header-menu > .menu-item > .menu-link::after {
		content: "";
		position: absolute;
		left: 16px;
		right: 16px;
		bottom: 4px;
		height: 2px;
		background: #A9805F;
		transform: scaleX(0);
		transition: transform .2s ease;
	}
	.site-header .main-header-menu > .menu-item:hover > .menu-link::after,
	.site-header .main-header-menu > .current-menu-item > .menu-link::after,
	.site-header .main-header-menu > .current-menu-ancestor > .menu-link::after { transform: scaleX(1); }
	.site-header .main-header-menu > .menu-item:hover > .menu-link,
	.site-header .main-header-menu > .current-menu-item > .menu-link,
	.site-header .main-header-menu > .current-menu-ancestor > .menu-link { color: #A9805F !important; }
	.site-header .main-header-menu .ast-icon svg,
	.site-header .main-header-menu .dropdown-menu-toggle { fill: #4A3225 !important; color: #4A3225 !important; }
}

/* Logo: grande y legible, sin que la cabecera sea alta */
.site-header .custom-logo-link img,
.site-header .site-logo-img img,
.site-header .custom-logo {
	height: 112px !important;
	max-height: none !important;
	width: auto !important;
	max-width: none !important;
}
.site-header .site-logo-img,
.site-header .custom-logo-link { padding: 0 !important; }
.main-header-bar .site-branding,
.ast-primary-header-bar .site-branding { padding-top: 8px !important; padding-bottom: 8px !important; }
.ast-primary-header-bar .site-primary-header-wrap,
.main-header-bar .ast-builder-grid-row,
.main-header-bar-wrap .main-header-bar { min-height: 0 !important; }
.ast-primary-header-bar,
.main-header-bar { padding-top: 6px !important; padding-bottom: 6px !important; }
@media (max-width: 921px) {
	.site-header .custom-logo-link img,
	.site-header .site-logo-img img,
	.site-header .custom-logo { height: 68px !important; }
}

/* Cabecera un poco más marcada */
.main-header-bar,
.ast-primary-header-bar {
	border-bottom: 3px solid #4A3225 !important;
}

/* En las tarjetas y títulos de sección de la portada, sin subrayados ni líneas */
.entry-content .cs-card h3 a,
.entry-content .cs-brand h3 a { text-decoration: none !important; }
.entry-content .cs-card h3 a:hover,
.entry-content .cs-brand h3 a:hover { color: #A9805F; }
.entry-content h2.cs-section-title,
.entry-content .cs-hero h1 { border-bottom: 0 !important; padding-bottom: 0 !important; }

/* Imagen destacada que el tema añade sola a cada tarjeta */
.entry-content .cs-card .cs-card-thumb {
	margin: -26px -26px 18px !important;
	background: #FAF6F0;
	border-radius: 14px 14px 0 0;
	overflow: hidden;
}
.entry-content .cs-card .cs-card-thumb img {
	display: block;
	width: 100%;
	height: 210px;
	object-fit: contain;
	padding: 14px;
	box-sizing: border-box;
	background: #FAF6F0;
}

/* Barra de confianza más compacta */
.cs-trust .cs-wrap > .wp-block-columns { margin-top: 0 !important; margin-bottom: 0 !important; }
.cs-trust .wp-block-column > p { margin: 0 !important; }
.entry-content figure.wp-block-image:not(:has(img[src])) { display: none; }

/* ==========================================================
   v1.0.3
   ========================================================== */

/* Menú con más presencia */
@media (min-width: 922px) {
	.site-header .main-header-menu > .menu-item > .menu-link,
	.site-header .ast-builder-menu .main-header-menu > .menu-item > .menu-link {
		font-size: 16px !important;
		font-weight: 700 !important;
		text-transform: none !important;
		letter-spacing: 0;
		border-radius: 999px;
		padding: 10px 18px !important;
		margin: 0 2px;
		transition: background .15s ease, color .15s ease;
	}
	.site-header .main-header-menu > .menu-item > .menu-link::after { display: none; }
	.site-header .main-header-menu > .menu-item:hover > .menu-link {
		background: #F1E8DC !important;
		color: #4A3225 !important;
	}
	.site-header .main-header-menu > .current-menu-item > .menu-link,
	.site-header .main-header-menu > .current-menu-ancestor > .menu-link {
		background: #4A3225 !important;
		color: #FAF6F0 !important;
	}
	.site-header .main-header-menu > .current-menu-item > .menu-link .dropdown-menu-toggle,
	.site-header .main-header-menu > .current-menu-ancestor > .menu-link .ast-icon svg { fill: #FAF6F0 !important; color: #FAF6F0 !important; }
	.site-header .sub-menu { padding: 6px !important; min-width: 220px; }
	.site-header .sub-menu .menu-link { border-radius: 8px; font-weight: 600; text-transform: none !important; }
}
.site-header .menu-link { text-transform: none !important; }

/* Franja superior marrón */
.cs-topbar {
	background: #4A3225;
	color: #E9DDCD;
	font-size: 13.5px;
	line-height: 1.4;
}
.cs-topbar-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 20px;
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.cs-topbar strong { color: #FAF6F0; font-weight: 700; }
.cs-topbar a { color: #FAF6F0; text-decoration: underline; text-underline-offset: 3px; }
.cs-topbar a:hover { color: #E0C3A6; }
@media (max-width: 781px) {
	.cs-topbar-inner { justify-content: center; text-align: center; }
	.cs-topbar-right { display: none; }
}

/* Tarjetas que se distinguen del fondo */
.entry-content .cs-card {
	border-color: #DCC9B3 !important;
	box-shadow: 0 6px 18px rgba(74, 50, 37, .08);
}
.entry-content .cs-card:hover { box-shadow: 0 16px 34px rgba(74, 50, 37, .14); }
.entry-content .cs-section.cs-bg-white { background: #FFFFFF; }
.entry-content .cs-section.cs-bg-white .cs-card { background: #FDFBF8; }
.entry-content .cs-section.cs-bg-cream .cs-card,
.entry-content .cs-section.cs-bg-sand .cs-card { background: #FFFFFF; }
.entry-content .cs-card .cs-card-thumb { border-bottom: 1px solid #EFE6DA; }

/* ==========================================================
   v1.0.4 · Cabecera marrón a todo lo ancho, portada con más contraste
   ========================================================== */

:root { --cs-caramel: #B5754A; --cs-caramel-dark: #9A5F38; --cs-page: #F3ECE2; }

/* Cabecera = barra marrón con logo claro y menú crema */
.site-header,
.main-header-bar,
.ast-primary-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar,
.ast-mobile-header-wrap .main-header-bar {
	background: #4A3225 !important;
}
.main-header-bar,
.ast-primary-header-bar { border-bottom: 3px solid var(--cs-caramel) !important; }
.site-header .custom-logo-link img,
.site-header .site-logo-img img,
.site-header .custom-logo {
	height: 92px !important;
	filter: brightness(0) invert(96%) sepia(10%) saturate(250%);
}
@media (max-width: 921px) {
	.site-header .custom-logo-link img,
	.site-header .site-logo-img img,
	.site-header .custom-logo { height: 62px !important; }
	.site-header .menu-toggle,
	.site-header .ast-mobile-menu-trigger-minimal,
	.site-header .menu-toggle .ast-mobile-svg,
	.site-header .ast-button-wrap .menu-toggle svg { color: #FAF6F0 !important; fill: #FAF6F0 !important; }
}
@media (min-width: 922px) {
	.site-header .main-header-menu > .menu-item > .menu-link,
	.site-header .ast-builder-menu .main-header-menu > .menu-item > .menu-link {
		color: #FAF6F0 !important;
		background: transparent !important;
		border-radius: 8px;
		font-size: 16.5px !important;
		font-weight: 600 !important;
		padding: 12px 18px !important;
	}
	.site-header .main-header-menu > .menu-item > .menu-link::after {
		display: block;
		content: "";
		position: absolute;
		left: 18px; right: 18px; bottom: 4px;
		height: 3px;
		border-radius: 3px;
		background: var(--cs-caramel);
		transform: scaleX(0);
		transition: transform .2s ease;
	}
	.site-header .main-header-menu > .menu-item:hover > .menu-link {
		background: rgba(255, 255, 255, .08) !important;
		color: #FFFFFF !important;
	}
	.site-header .main-header-menu > .menu-item:hover > .menu-link::after,
	.site-header .main-header-menu > .current-menu-item > .menu-link::after,
	.site-header .main-header-menu > .current-menu-ancestor > .menu-link::after { transform: scaleX(1); }
	.site-header .main-header-menu > .current-menu-item > .menu-link,
	.site-header .main-header-menu > .current-menu-ancestor > .menu-link {
		background: transparent !important;
		color: #FFFFFF !important;
	}
	.site-header .main-header-menu .ast-icon svg,
	.site-header .main-header-menu .dropdown-menu-toggle,
	.site-header .main-header-menu > .menu-item > .menu-link .ast-icon svg { fill: #FAF6F0 !important; color: #FAF6F0 !important; }
	.site-header .sub-menu { border-top: 3px solid var(--cs-caramel) !important; }
	.site-header .sub-menu .menu-link { color: #4A3225 !important; }
	.site-header .sub-menu .menu-item:hover > .menu-link { background: #F3ECE2 !important; color: #4A3225 !important; }
}
.cs-topbar { background: #2E1F17; }

/* Botones con color de acento */
.cs-btn-primary .wp-block-button__link {
	background: var(--cs-caramel) !important;
	border-color: var(--cs-caramel) !important;
	color: #FFFFFF !important;
}
.cs-btn-primary .wp-block-button__link:hover { background: var(--cs-caramel-dark) !important; border-color: var(--cs-caramel-dark) !important; }

/* Portada: cabecera (hero) oscura */
.entry-content .cs-hero {
	background:
		radial-gradient(circle at 78% 40%, rgba(181, 117, 74, .28), transparent 55%),
		linear-gradient(135deg, #2A1C15 0%, #4A3225 100%) !important;
	padding-top: 80px;
	padding-bottom: 84px;
}
.entry-content .cs-hero h1 { color: #FAF6F0 !important; }
.entry-content .cs-hero .cs-eyebrow { color: #E0B48F !important; }
.entry-content .cs-hero .cs-lead { color: #E9DDCD !important; }
.entry-content .cs-hero .cs-btn-secondary .wp-block-button__link {
	color: #FAF6F0 !important;
	border-color: #FAF6F0 !important;
}
.entry-content .cs-hero .cs-btn-secondary .wp-block-button__link:hover { background: #FAF6F0 !important; color: #4A3225 !important; }
.entry-content .cs-hero .wp-block-image img {
	box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
	border-radius: 18px;
}

/* Barra de confianza: franja clara entre la cabecera oscura y el contenido */
.entry-content .cs-trust {
	background: #FFFFFF !important;
	border-bottom: 1px solid #E4D7C6;
	padding-top: 20px;
	padding-bottom: 20px;
}
.entry-content .cs-trust p { color: #6E5E52 !important; }
.entry-content .cs-trust strong { color: #4A3225 !important; }

/* Fondo de página tostado y tarjetas blancas: contraste claro */
.entry-content .cs-section.cs-bg-white,
.entry-content .cs-section.cs-bg-cream { background: var(--cs-page) !important; }
.entry-content .cs-section.cs-bg-sand { background: #E9DDCC !important; }
.entry-content .cs-section .cs-card,
.entry-content .cs-section.cs-bg-white .cs-card {
	background: #FFFFFF !important;
	border: 1px solid #DCC9B3 !important;
	box-shadow: 0 8px 22px rgba(74, 50, 37, .10);
	padding: 26px 28px !important;
}
.entry-content .cs-card:hover { box-shadow: 0 18px 38px rgba(74, 50, 37, .16); transform: translateY(-3px); }
.entry-content .cs-card h3 { font-size: 23px !important; }
.entry-content .cs-card p { font-size: 16px; }

/* Imagen de la tarjeta a todo el ancho, más grande */
.entry-content .cs-card .cs-card-thumb {
	margin: -26px -28px 20px !important;
	background: #FFFFFF;
	border-bottom: 1px solid #EFE6DA;
}
.entry-content .cs-card .cs-card-thumb img {
	height: 240px;
	padding: 10px;
	background: #FFFFFF;
	object-fit: contain;
}

/* Enlace de la tarjeta en color de acento */
.entry-content .cs-card-link a { color: var(--cs-caramel-dark); border-bottom-color: var(--cs-caramel); }
.entry-content .cs-card-link a:hover { color: #4A3225; }

/* Preguntas frecuentes sobre fondo tostado */
.entry-content .cs-section .cs-faq .wp-block-details { border-color: #DCC9B3; box-shadow: 0 4px 12px rgba(74, 50, 37, .06); }

/* ==========================================================
   v1.0.5 · Cabecera cobre, sin línea, menú a la altura del logo
   ========================================================== */

.site-header,
.main-header-bar,
.ast-primary-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar,
.ast-mobile-header-wrap .main-header-bar {
	background: #8A5534 !important;
}
.main-header-bar,
.ast-primary-header-bar {
	border-bottom: 0 !important;
	box-shadow: 0 6px 18px rgba(30, 18, 12, .25);
	position: relative;
	z-index: 20;
}
.site-header .custom-logo-link img,
.site-header .site-logo-img img,
.site-header .custom-logo { filter: none; }

@media (min-width: 922px) {
	.site-header .main-header-menu { gap: 6px; align-items: center; }
	.site-header .main-header-menu > .menu-item > .menu-link,
	.site-header .ast-builder-menu .main-header-menu > .menu-item > .menu-link {
		font-size: 18.5px !important;
		font-weight: 700 !important;
		letter-spacing: .01em;
		color: #FFF8EF !important;
		padding: 12px 20px !important;
		border-radius: 999px;
		border: 1.5px solid transparent;
	}
	.site-header .main-header-menu > .menu-item > .menu-link::after { display: none !important; }
	.site-header .main-header-menu > .menu-item:hover > .menu-link {
		background: rgba(255, 248, 239, .14) !important;
		border-color: rgba(255, 248, 239, .35);
		color: #FFFFFF !important;
	}
	.site-header .main-header-menu > .current-menu-item > .menu-link,
	.site-header .main-header-menu > .current-menu-ancestor > .menu-link {
		background: #FFF8EF !important;
		color: #4A3225 !important;
	}
	.site-header .main-header-menu > .current-menu-item > .menu-link .ast-icon svg,
	.site-header .main-header-menu > .current-menu-ancestor > .menu-link .ast-icon svg,
	.site-header .main-header-menu > .current-menu-item > .menu-link .dropdown-menu-toggle { fill: #4A3225 !important; color: #4A3225 !important; }
	.site-header .main-header-menu .ast-icon svg { width: 12px; height: 12px; }
	.site-header .sub-menu { border-top: 0 !important; margin-top: 8px !important; }
	.site-header .sub-menu .menu-link { font-size: 16px; padding: 10px 14px !important; }
}

/* ==========================================================
   v1.0.6 · Logo en blanco sobre la cabecera cobre
   ========================================================== */
.site-header .custom-logo-link img,
.site-header .site-logo-img img,
.site-header .custom-logo {
	filter: brightness(0) invert(1) drop-shadow(0 1px 1px rgba(40, 22, 12, .25)) !important;
}

/* v1.0.7 · Logo en tono café con leche claro */
.site-header .custom-logo-link img,
.site-header .site-logo-img img,
.site-header .custom-logo {
	filter: brightness(0) invert(66%) sepia(100%) saturate(80%) hue-rotate(-12deg) drop-shadow(0 1px 1px rgba(40, 22, 12, .3)) !important;
}

/* ==========================================================
   v1.0.8 · Dorado café (#F2C46D) en logo y detalles
   ========================================================== */
:root { --cs-gold: #F2C46D; --cs-gold-deep: #D9A441; }

/* Logo: aproximación por filtro (por si la máscara no se aplica) */
.site-header .custom-logo-link img,
.site-header .site-logo-img img,
.site-header .custom-logo {
	filter: brightness(0) invert(66%) sepia(100%) saturate(280%) hue-rotate(-14deg) brightness(.97) !important;
}
/* Logo: el color exacto se aplica con una máscara (ver functions.php) */
.site-header .custom-logo-link.cs-logo-tinted {
	display: inline-block;
	line-height: 0;
	background-color: var(--cs-gold);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}
.site-header .custom-logo-link.cs-logo-tinted img {
	opacity: 0 !important;
	filter: none !important;
}

/* Franja superior */
.cs-topbar strong { color: var(--cs-gold); }
.cs-topbar a { color: var(--cs-gold); }

/* Menú: página actual en dorado */
@media (min-width: 922px) {
	.site-header .main-header-menu > .menu-item:hover > .menu-link { border-color: rgba(242, 196, 109, .6); }
	.site-header .main-header-menu > .current-menu-item > .menu-link,
	.site-header .main-header-menu > .current-menu-ancestor > .menu-link {
		background: var(--cs-gold) !important;
		color: #2E1F17 !important;
	}
	.site-header .sub-menu { border-top: 3px solid var(--cs-gold) !important; }
}

/* Portada: detalles dorados sobre el fondo oscuro */
.entry-content .cs-hero .cs-eyebrow { color: var(--cs-gold) !important; }
.entry-content .cs-hero .cs-btn-primary .wp-block-button__link {
	background: var(--cs-gold) !important;
	border-color: var(--cs-gold) !important;
	color: #2E1F17 !important;
}
.entry-content .cs-hero .cs-btn-primary .wp-block-button__link:hover {
	background: #F7D58F !important;
	border-color: #F7D58F !important;
}
.entry-content .cs-hero .cs-btn-secondary .wp-block-button__link:hover { background: var(--cs-gold) !important; border-color: var(--cs-gold) !important; color: #2E1F17 !important; }

/* Barra de confianza: pequeño sello dorado sobre cada punto */
.entry-content .cs-trust strong::before {
	content: "✦";
	display: block;
	color: var(--cs-gold-deep);
	font-size: 15px;
	margin-bottom: 2px;
}

/* Títulos de sección con subrayado dorado */
.entry-content h2.cs-section-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	border-radius: 3px;
	background: var(--cs-gold-deep);
	margin: 14px auto 0;
}

/* Tarjetas: filo dorado al pasar el ratón */
.entry-content .cs-card { border-top: 3px solid transparent !important; }
.entry-content .cs-card:hover { border-top-color: var(--cs-gold-deep) !important; }

/* Artículos: sello del veredicto y borde de "En resumen" en dorado */
.cs-verdict .cs-box-title { background: var(--cs-gold) !important; color: #2E1F17 !important; }
.cs-answer { border-left-color: var(--cs-gold-deep) !important; }

/* Pie de página */
.site-footer .site-below-footer-wrap,
.site-footer .site-primary-footer-wrap { border-top: 3px solid var(--cs-gold-deep) !important; }
.site-footer a:hover,
.ast-small-footer a:hover { color: var(--cs-gold) !important; }

/* v1.0.9 · Imágenes de las tarjetas y de la portada centradas */
.entry-content .cs-card .cs-card-thumb { display: block; text-align: center; }
.entry-content .cs-card .cs-card-thumb a { display: block; width: 100%; line-height: 0; }
.entry-content .cs-card .cs-card-thumb img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	object-position: center center;
}
.entry-content .cs-hero .wp-block-image { text-align: center; }
.entry-content .cs-hero .wp-block-image img { display: block; margin: 0 auto; }

/* v1.0.10 · Sin imagen destacada dentro de las entradas (respaldo del filtro de functions.php) */
.single-post .ast-single-post-featured-section,
.single-post .entry-header .post-thumb-img-content,
.single-post .entry-header .post-thumb,
.single-post .ast-article-single > .post-thumb-img-content { display: none !important; }

/* v1.0.11 · La imagen de la tarjeta ocupa todo el ancho (3:2, recorte centrado) */
.entry-content .cs-card .cs-card-thumb {
	background: #2E1F17 !important;
	border-radius: 14px 14px 0 0;
	border-bottom: 0 !important;
}
.entry-content .cs-card .cs-card-thumb img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 3 / 2;
	object-fit: cover !important;
	object-position: center center;
	padding: 0 !important;
	background: transparent !important;
	border-radius: 14px 14px 0 0;
	transition: transform .35s ease;
}
.entry-content .cs-card:hover .cs-card-thumb img { transform: scale(1.03); }
