/* ============================================================
   Turicantabria Restyle
   PARTE 1 — Menú móvil + Responsive
   (La paleta verde global llega en la Parte 2)
   ============================================================ */

:root {
	--tc-green: #2e9e5b;
	--tc-green-dark: #1f7a44;
	--tc-green-darker: #155c32;
	--tc-green-light: #e8f6ee;
	--tc-ink: #1d2b22;
	--tc-white: #ffffff;
}

/* ---------- Menú móvil propio (independiente de Astra/LiteSpeed) ---------- */

#tc-mnav,
#tc-mnav-backdrop {
	display: none;
}

@media (max-width: 921px) {

	/* Ocultamos el drawer roto original de Astra para no duplicar */
	.ast-mobile-popup-drawer {
		display: none !important;
	}

	#tc-mnav-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.5);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s ease;
		z-index: 99998;
	}

	#tc-mnav {
		display: block;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: 86%;
		max-width: 360px;
		background: var(--tc-white);
		box-shadow: -6px 0 24px rgba(0, 0, 0, 0.18);
		transform: translateX(100%);
		transition: transform 0.28s ease;
		z-index: 99999;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.tc-open #tc-mnav {
		transform: translateX(0);
	}

	body.tc-open #tc-mnav-backdrop {
		opacity: 1;
		visibility: visible;
	}

	body.tc-open {
		overflow: hidden;
	}

	/* Cabecera del panel */
	#tc-mnav .tc-mnav-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 16px 18px;
		background: var(--tc-green);
		color: #fff;
		font-weight: 700;
		font-size: 16px;
		letter-spacing: 0.3px;
	}

	#tc-mnav .tc-mnav-close {
		background: transparent;
		border: 0;
		color: #fff;
		font-size: 26px;
		line-height: 1;
		cursor: pointer;
		padding: 0 4px;
	}

	/* Lista */
	#tc-mnav ul {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	#tc-mnav li {
		border-bottom: 1px solid #eef1ee;
		position: relative;
	}

	#tc-mnav a {
		display: block;
		padding: 14px 18px;
		color: var(--tc-ink);
		text-decoration: none;
		font-size: 15px;
		line-height: 1.3;
	}

	#tc-mnav a:hover,
	#tc-mnav a:focus {
		background: var(--tc-green-light);
		color: var(--tc-green-darker);
	}

	/* Submenús: ocultos hasta expandir */
	#tc-mnav .sub-menu {
		display: none;
		background: #f7faf8;
	}

	#tc-mnav li.tc-exp > .sub-menu {
		display: block;
	}

	#tc-mnav .sub-menu a {
		padding-left: 34px;
		font-size: 14px;
		color: #3a4a40;
	}

	#tc-mnav .sub-menu .sub-menu a {
		padding-left: 50px;
	}

	/* Flecha expandible en items con hijos */
	#tc-mnav .menu-item-has-children > a::after {
		content: "\25BC";
		float: right;
		font-size: 10px;
		opacity: 0.55;
		transition: transform 0.2s ease;
	}

	#tc-mnav .menu-item-has-children.tc-exp > a::after {
		transform: rotate(180deg);
	}

	/* Aseguramos que el botón hamburguesa sea visible y usable */
	.ast-mobile-menu-buttons,
	.main-header-menu-toggle,
	.menu-toggle {
		display: inline-flex !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

	/* ---------- Seguridad responsive general ---------- */
	img,
	iframe,
	video,
	table {
		max-width: 100%;
	}

	img {
		height: auto;
	}

	/* Tablas grandes con scroll horizontal en vez de romper el layout */
	.entry-content table,
	.ast-single-post .entry-content table {
		display: block;
		overflow-x: auto;
		width: 100%;
	}
}

/* Evita scroll horizontal accidental en cualquier viewport */
html,
body {
	overflow-x: hidden;
}

/* ============================================================
   PARTE 2 — Paleta verde unificada (#2e9e5b)
   Unifica los 3 verdes dispares del sitio y el color de cabecera
   por página, sin tocar el contenido de las entradas.
   ============================================================ */

/* 1) Variables globales de Astra -> verde de marca */
:root {
	--ast-global-color-0: #2e9e5b !important; /* acento/marca principal */
	--ast-global-color-1: #1f7a44 !important; /* acento hover/secundario */
}

/* 2) Cabecera unificada en TODAS las páginas (fin del "cada página un color") */
.main-header-bar,
.ast-primary-header-bar,
.ast-primary-header-bar .ast-primary-header,
header.site-header .ast-primary-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar {
	background-color: #ffffff !important;
}

/* Línea de acento verde bajo la cabecera */
.ast-primary-header-bar,
.main-header-bar {
	border-bottom: 3px solid #2e9e5b !important;
}

/* 3) Menú principal en verde legible (buen contraste sobre blanco) */
.main-header-menu .menu-link,
.main-header-menu > .menu-item > .menu-link {
	color: #1f7a44 !important;
	font-weight: 600;
}

.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .menu-link:hover,
.main-header-menu .menu-link:focus,
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current-menu-ancestor > .menu-link {
	color: #2e9e5b !important;
}

/* Desplegables del menú */
.main-header-menu .sub-menu {
	border-top: 3px solid #2e9e5b !important;
}

.main-header-menu .sub-menu .menu-link:hover,
.main-header-menu .sub-menu .menu-link:focus {
	background-color: #e8f6ee !important;
	color: #155c32 !important;
}

/* 4) Botones unificados en verde */
.wp-block-button__link,
.ast-button,
.button,
.ast-custom-button-link .ast-custom-button,
input[type="submit"],
button[type="submit"],
.menu-toggle.main-header-menu-toggle {
	background-color: #2e9e5b !important;
	border-color: #2e9e5b !important;
	color: #ffffff !important;
}

.wp-block-button__link:hover,
.ast-button:hover,
.button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
	background-color: #1f7a44 !important;
	border-color: #1f7a44 !important;
	color: #ffffff !important;
}

/* 5) Enlaces dentro del contenido (sin perder legibilidad) */
.entry-content a:not(.wp-block-button__link):not(.ast-button),
.ast-single-post .entry-content a:not(.wp-block-button__link),
.widget a {
	color: #1f7a44;
}

.entry-content a:not(.wp-block-button__link):hover,
.widget a:hover {
	color: #2e9e5b;
}

/* 6) Títulos con un verde-tinta sobrio y coherente */
.entry-title,
.ast-archive-title,
.widget-title,
.ast-single-post .entry-title {
	color: #173d28;
}

/* 7) Pie de página en verde oscuro (presencia de marca) */
footer.site-footer,
.site-footer,
.ast-footer-overlay,
.site-primary-footer-wrap,
.site-below-footer-wrap {
	background-color: #155c32 !important;
}

.site-footer,
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer .widget-title,
.site-footer a {
	color: #eaf5ee !important;
}

.site-footer a:hover,
.site-footer a:focus {
	color: #ffffff !important;
}

/* 8) Detalles de acento verde */
.entry-content blockquote,
blockquote {
	border-left-color: #2e9e5b !important;
}

::selection {
	background: #2e9e5b;
	color: #fff;
}

/* Iconos/burbuja del menú hamburguesa coherentes */
.menu-toggle.main-header-menu-toggle .ast-mobile-svg {
	fill: #ffffff !important;
}

/* ============================================================
   PARTE 3 — Logo nuevo (rojo/blanco, montaña + ola)
   ============================================================ */
.custom-logo.tc-custom-logo {
	max-height: 62px !important;
	width: auto !important;
	height: auto !important;
	max-width: 320px;
}

.ast-mobile-header-logo .custom-logo.tc-custom-logo,
.ast-mobile-header-wrap .custom-logo.tc-custom-logo {
	max-height: 46px !important;
}

/* Pequeño aire alrededor del logo en la cabecera */
.site-branding .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

/* ============================================================
   PARTE 4 — Quitar anuncios de Google + arreglar menú duplicado
   ============================================================ */

/* --- Anuncios de Google AdSense / GPT (NO afecta a Civitatis ni a tu contenido) --- */
.google-auto-placed,
ins.adsbygoogle,
.adsbygoogle,
iframe[src*="googlesyndication"],
iframe[src*="doubleclick"],
iframe[src*="adservice.google"],
iframe[id^="aswift_"],
iframe[id^="google_ads_iframe"],
[id^="google_ads_"],
[id^="div-gpt-ad"],
div[data-ad-client],
div[data-ad-slot],
ins[data-ad-client] {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
}

/* --- Menú móvil unificado: usar SOLO nuestro panel limpio (6 apartados) --- */
@media (max-width: 921px) {

	/* Ocultar el menú móvil DIFERENTE de Astra (25 items) y su drawer,
	   que provocaban el "se cambia por otro" y el solape de clics */
	#ast-hf-mobile-menu,
	.ast-mobile-popup-drawer,
	.ast-mobile-header-wrap .main-header-menu {
		display: none !important;
	}

	/* El disparador hamburguesa siempre visible y por encima */
	.ast-mobile-menu-buttons,
	.main-header-menu-toggle,
	.menu-toggle {
		display: inline-flex !important;
		position: relative;
		z-index: 100000;
	}
}

/* ============================================================
   PARTE 5 — Menú de ESCRITORIO fiable (clic + sin hueco + scroll)
   ============================================================ */
@media (min-width: 922px) {

	/* Puente invisible para que el submenú no se cierre al bajar el ratón */
	.main-header-menu > .menu-item-has-children > .menu-link {
		position: relative;
	}
	.main-header-menu > .menu-item-has-children > .menu-link::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -18px;
		height: 20px;
	}

	/* CLAVE: Astra deja el submenú cerrado en left:-15984px (fuera de pantalla).
	   Lo traemos SIEMPRE a left:0 para que al abrirse aparezca donde debe. */
	.main-header-menu .menu-item-has-children > .sub-menu {
		left: 0 !important;
		right: auto !important;
	}

	/* Abrir el desplegable por HOVER, por FOCO (clic/teclado) o por clase JS.
	   Pure CSS = no depende del JS de Astra (que a veces LiteSpeed retrasa). */
	.main-header-menu .menu-item-has-children:hover > .sub-menu,
	.main-header-menu .menu-item-has-children:focus-within > .sub-menu,
	.main-header-menu .menu-item.tc-desk-open > .sub-menu {
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		display: block !important;
	}

	/* Submenús muy largos (p. ej. Comarcas, 100+ municipios) con scroll */
	.main-header-menu .sub-menu {
		max-height: 80vh;
		overflow-y: auto;
		overflow-x: hidden;
	}
}

/* ============================================================
   PARTE 6 — Home nueva (guía de viajes). Todo scopeado a .tc-home
   No afecta a otras páginas ni a las entradas de clientes.
   ============================================================ */
.tc-home{
	width:100vw;
	margin-left:calc(50% - 50vw);
	font-family:inherit;
	color:#173d28;
}
.tc-home *{box-sizing:border-box;}
.tc-home .tc-wrap{max-width:1140px;margin:0 auto;padding:0 24px;}
.tc-home a{text-decoration:none;}

/* Hero */
.tc-home .tc-hero{
	position:relative; min-height:clamp(360px,52vw,520px);
	display:flex; align-items:center;
	background:linear-gradient(180deg,rgba(15,69,38,.30),rgba(15,69,38,.80)),
		#1f7a44 url('https://www.turicantabria.com/wp-content/uploads/2021/11/paisajes-de-cantabria.webp') center 42%/cover no-repeat;
}
.tc-home .tc-pill{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.16);
	border:1px solid rgba(255,255,255,.45);color:#fff;padding:6px 14px;border-radius:999px;
	font-size:13px;font-weight:700;letter-spacing:1px;}
.tc-home .tc-flag{width:20px;height:13px;border-radius:2px;overflow:hidden;display:inline-flex;flex-direction:column;box-shadow:0 0 0 1px rgba(255,255,255,.5);}
.tc-home .tc-flag i{display:block;height:50%;}
.tc-home .tc-h1{color:#fff;font-size:clamp(30px,5vw,54px);font-weight:800;line-height:1.06;margin:16px 0 10px;max-width:760px;text-shadow:0 2px 18px rgba(0,0,0,.35);}
.tc-home .tc-sub{color:#eafff2;font-size:clamp(15px,2.2vw,19px);font-weight:500;margin-bottom:24px;text-shadow:0 1px 8px rgba(0,0,0,.35);max-width:640px;}
.tc-home .tc-search{display:flex;background:#fff;border-radius:14px;padding:8px;max-width:620px;box-shadow:0 16px 40px rgba(0,0,0,.22);gap:6px;}
.tc-home .tc-search input{flex:1;border:0;outline:0;padding:0 14px;font-size:16px;color:#173d28;background:transparent;min-width:0;}
.tc-home .tc-search button{background:#2e9e5b;color:#fff;font-weight:700;border:0;padding:14px 26px;border-radius:10px;font-size:16px;cursor:pointer;}
.tc-home .tc-search button:hover{background:#1f7a44;}

/* Secciones */
.tc-home .tc-sec{padding:52px 0;}
.tc-home .tc-greenwrap{background:#eef7f1;}
.tc-home .tc-eyebrow{display:flex;align-items:center;gap:10px;color:#D7263D;font-weight:700;letter-spacing:1.5px;font-size:13px;text-transform:uppercase;}
.tc-home .tc-eyebrow::before{content:"";width:26px;height:3px;background:#D7263D;border-radius:2px;}
.tc-home h2.tc-tit{font-size:clamp(24px,3.4vw,34px);font-weight:800;margin:8px 0 26px;color:#173d28;}

/* Tarjetas categoría */
.tc-home .tc-cats{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.tc-home .tc-cat{background:#fff;border:1px solid #eaf0ea;border-radius:16px;overflow:hidden;box-shadow:0 8px 24px rgba(20,60,40,.08);transition:.2s;color:inherit;display:block;}
.tc-home .tc-cat:hover{transform:translateY(-4px);box-shadow:0 14px 32px rgba(20,60,40,.16);}
.tc-home .tc-photo{height:158px;background-size:cover;background-position:center;position:relative;}
.tc-home .tc-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(15,69,38,.55));}
.tc-home .tc-tag{position:absolute;top:12px;left:12px;z-index:2;background:#fff;color:#155c32;font-weight:700;font-size:12px;padding:5px 11px;border-radius:999px;box-shadow:0 2px 8px rgba(0,0,0,.12);}
.tc-home .tc-tag::before{content:"";display:inline-block;width:7px;height:7px;background:#D7263D;border-radius:50%;margin-right:6px;vertical-align:middle;}
.tc-home .tc-cbody{padding:18px 22px 22px;}
.tc-home .tc-cat h3{font-size:19px;font-weight:700;margin:0 0 6px;color:#173d28;}
.tc-home .tc-cat p{color:#6a7d70;font-size:14px;line-height:1.5;margin:0;}
.tc-home .tc-bar{display:block;width:34px;height:3px;background:#D7263D;border-radius:2px;margin-top:14px;}

/* Comarcas */
.tc-home .tc-comarcas{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.tc-home .tc-comarca{height:185px;border-radius:16px;position:relative;overflow:hidden;color:#fff;display:flex;align-items:flex-end;padding:18px;background-size:cover;background-position:center;box-shadow:0 8px 22px rgba(20,60,40,.12);transition:.2s;}
.tc-home .tc-comarca:hover{transform:translateY(-3px);}
.tc-home .tc-comarca::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,69,38,0) 28%,rgba(15,69,38,.9));}
.tc-home .tc-comarca span{position:relative;z-index:1;font-weight:700;font-size:19px;text-shadow:0 1px 8px rgba(0,0,0,.6);color:#ffffff !important;}
.tc-home .tc-comarca,.tc-home .tc-comarca:hover{color:#ffffff !important;}
.tc-home .tc-comarca span::before{content:"📍 ";font-size:14px;}

/* Más info pills */
.tc-home .tc-pills{display:flex;flex-wrap:wrap;gap:12px;}
.tc-home .tc-pills a{background:#fff;border:1px solid #e3ece5;border-radius:999px;padding:11px 20px;font-weight:600;color:#155c32;transition:.15s;}
.tc-home .tc-pills a:hover{background:#2e9e5b;color:#fff;border-color:#2e9e5b;}
.tc-home .tc-pills a .d{display:inline-block;width:8px;height:8px;background:#D7263D;border-radius:50%;margin-right:8px;}

/* Responsive */
@media (max-width:900px){
	.tc-home .tc-cats,.tc-home .tc-comarcas{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:560px){
	.tc-home .tc-cats,.tc-home .tc-comarcas{grid-template-columns:1fr;}
	.tc-home .tc-search{flex-direction:column;}
	.tc-home .tc-search button{width:100%;}
}

/* Texto intro de sección */
.tc-home .tc-lead{color:#5d6f64;font-size:17px;line-height:1.65;max-width:840px;margin:-6px 0 30px;}

/* Tarjetas de contacto (Contacto) */
.tc-home .tc-contact{text-align:center;}
.tc-home .tc-contact .tc-cbody{padding:32px 22px;}
.tc-home .tc-ci{width:62px;height:62px;border-radius:50%;background:#e8f6ee;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;}
.tc-home .tc-contact h3{font-size:18px;margin:0 0 6px;}
.tc-home .tc-contact p{color:#2e9e5b;font-weight:600;margin:0;}
.tc-home .tc-contact .tc-bar{margin:16px auto 0;}

/* Bloque CTA (Anúnciate) */
.tc-home .tc-cta{text-align:center;}
.tc-home .tc-cta .tc-eyebrow{justify-content:center;}
.tc-home .tc-cta .tc-lead{margin-left:auto;margin-right:auto;}
.tc-home .tc-btn{display:inline-block;background:#2e9e5b;color:#fff !important;padding:14px 32px;border-radius:10px;font-weight:700;text-decoration:none;font-size:16px;margin-top:6px;box-shadow:0 8px 22px rgba(46,158,91,.3);}
.tc-home .tc-btn:hover{background:#1f7a44;}

/* ============================================================
   PARTE 7 — Banner de cabecera (foto + título) páginas comunes
   ============================================================ */
.tc-page-hero{
	position:relative;
	min-height:clamp(190px,26vw,300px);
	display:flex; align-items:flex-end;
	background-size:cover; background-position:center;
	width:100vw; margin-left:calc(50% - 50vw);
}
.tc-page-hero::before{
	content:""; position:absolute; inset:0;
	background:linear-gradient(180deg,rgba(15,69,38,.20),rgba(15,69,38,.84));
}
.tc-page-hero .tc-ph-inner{position:relative;max-width:1140px;margin:0 auto;padding:0 24px 30px;width:100%;}
.tc-page-hero .tc-ph-eyebrow{display:inline-flex;align-items:center;gap:8px;color:#eafff2;font-weight:700;letter-spacing:1.6px;font-size:12px;}
.tc-page-hero .tc-flag{width:20px;height:13px;border-radius:2px;overflow:hidden;display:inline-flex;flex-direction:column;box-shadow:0 0 0 1px rgba(255,255,255,.4);}
.tc-page-hero .tc-flag i{display:block;height:50%;}
.tc-page-hero .tc-flag i:first-child{background:#fff;}
.tc-page-hero .tc-flag i:last-child{background:#D7263D;}
.tc-page-hero .tc-ph-title{color:#fff;font-size:clamp(26px,4vw,44px);font-weight:800;line-height:1.1;margin-top:8px;text-shadow:0 2px 16px rgba(0,0,0,.4);}

/* Ocultar el título por defecto de Astra en páginas (lo muestra el banner).
   No afecta a la home ni a las entradas de clientes. */
body.page:not(.home) .ast-single-post .entry-header .entry-title,
body.page:not(.home) .site-main > article > .entry-header .entry-title{
	position:absolute !important;
	width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;
}

/* Aire bajo el banner antes del contenido */
.tc-page-hero + #primary,
.tc-page-hero + div #primary{padding-top:10px;}

/* Ocultar el título duplicado del archivo (lo muestra el banner), conservando
   la descripción/intro del archivo para SEO. */
body.archive .ast-archive-description .ast-archive-title,
body.search .ast-archive-description .ast-archive-title{
	position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;
}

/* ============================================================
   PARTE 8 — HEADER PROPIO (sustituye al de Astra)
   ============================================================ */

/* Ocultar por completo la cabecera de Astra */
#masthead,
.site-header,
.ast-above-header-wrap,
.ast-below-header-wrap,
.ast-mobile-header-wrap,
header.site-header{
	display:none !important;
}

/* Franja bandera Cantabria */
.tc-flagbar{height:5px;background:linear-gradient(to bottom,#fff 0 50%,#D7263D 50% 100%);}

/* Cabecera */
.tc-header{position:sticky;top:0;z-index:9999;background:#fff;box-shadow:0 2px 14px rgba(0,0,0,.08);border-bottom:3px solid #2e9e5b;}
.tc-hwrap{max-width:1200px;margin:0 auto;display:flex;align-items:center;gap:22px;padding:8px 24px;}
.tc-logo{flex-shrink:0;display:inline-flex;align-items:center;}
.tc-logo img{height:52px;width:auto;display:block;}

/* Navegación escritorio */
.tc-nav{flex:1;}
.tc-menu{list-style:none;margin:0;padding:0;display:flex;gap:2px;justify-content:center;flex-wrap:wrap;}
.tc-menu > li{position:relative;}
.tc-menu > li > a{display:block;padding:12px 14px;color:#155c32;font-weight:600;text-decoration:none;border-radius:8px;font-size:15px;}
.tc-menu > li:hover > a,
.tc-menu > li.current-menu-item > a,
.tc-menu > li.current-menu-ancestor > a{color:#2e9e5b;background:#eef7f1;}

/* Submenús (desplegables) — CSS puro, sin Astra */
.tc-menu .sub-menu{
	list-style:none;margin:0;padding:8px 0;position:absolute;top:100%;left:0;min-width:250px;
	background:#fff;box-shadow:0 14px 34px rgba(0,0,0,.16);border-top:3px solid #2e9e5b;border-radius:0 0 12px 12px;
	opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .16s,transform .16s,visibility .16s;
	max-height:76vh;overflow-y:auto;z-index:10000;
}
.tc-menu > li:hover > .sub-menu,
.tc-menu > li:focus-within > .sub-menu{opacity:1;visibility:visible;transform:none;}
.tc-menu .sub-menu li{position:relative;}
.tc-menu .sub-menu a{display:block;padding:9px 18px;color:#2b3a31;text-decoration:none;font-size:14px;line-height:1.3;}
.tc-menu .sub-menu a:hover{background:#e8f6ee;color:#155c32;}
/* puente anti-hueco */
.tc-menu > li.menu-item-has-children > a::after{content:"";position:absolute;left:0;right:0;bottom:-10px;height:12px;}

/* Buscador (SOLO el del header, para no afectar al buscador de la home) */
.tc-header .tc-search{display:flex;align-items:center;background:#f1f5f2;border-radius:999px;padding:4px;flex-shrink:0;}
.tc-header .tc-search input{border:0;background:transparent;outline:0;padding:6px 12px;width:150px;font-size:14px;}
.tc-header .tc-search button{border:0;background:#2e9e5b;color:#fff;border-radius:999px;width:34px;height:34px;min-width:34px;cursor:pointer;font-size:15px;display:flex;align-items:center;justify-content:center;}

/* Hamburguesa (oculta en escritorio) */
.tc-burger{display:none;background:none;border:0;cursor:pointer;flex-direction:column;gap:5px;padding:8px;margin-left:auto;}
.tc-burger span{display:block;width:26px;height:3px;background:#155c32;border-radius:2px;transition:.2s;}

/* Cajón móvil (oculto en escritorio) */
.tc-drawer,.tc-drawer-bg{display:none;}

/* ---------- MÓVIL ---------- */
@media (max-width:921px){
	.tc-nav,.tc-header .tc-search{display:none;}
	.tc-burger{display:flex;}
	.tc-logo img{height:42px;}
	.tc-hwrap{gap:12px;}

	.tc-drawer-bg{display:block;position:fixed;inset:0;background:rgba(0,0,0,.5);opacity:0;visibility:hidden;transition:.25s;z-index:10000;}
	.tc-drawer{display:block;position:fixed;top:0;right:0;bottom:0;width:86%;max-width:360px;background:#fff;transform:translateX(100%);transition:transform .28s ease;z-index:10001;overflow-y:auto;box-shadow:-6px 0 24px rgba(0,0,0,.18);}
	body.tc-drawer-open .tc-drawer{transform:none;}
	body.tc-drawer-open .tc-drawer-bg{opacity:1;visibility:visible;}
	body.tc-drawer-open{overflow:hidden;}

	.tc-drawer-logo{display:block;padding:18px 20px 10px;border-bottom:1px solid #eef1ee;}
	.tc-drawer-logo img{height:40px;width:auto;}
	.tc-drawer .tc-menu{list-style:none;margin:0;padding:0;display:block;}
	.tc-drawer li{border-bottom:1px solid #eef1ee;position:relative;}
	.tc-drawer a{display:block;padding:14px 20px;color:#173d28;text-decoration:none;font-weight:600;}
	.tc-drawer .menu-item-has-children > a::after{content:"\25BC";float:right;font-size:10px;opacity:.5;}
	.tc-drawer .sub-menu{list-style:none;margin:0;padding:0;display:none;background:#f7faf8;}
	.tc-drawer li.tc-open > .sub-menu{display:block;}
	.tc-drawer .sub-menu a{padding-left:36px;font-size:14px;font-weight:500;}
}

/* ============================================================
   PARTE 9 — Lavado de cara páginas interiores (tarjetas de listado)
   Estilo home para los listados (comarcas/categorías).
   Excluye .single -> las entradas de clientes NO se tocan.
   ============================================================ */
body:not(.single):not(.home) .ast-article-post .ast-article-inner{
	background:#fff;
	border:1px solid #eaf0ea;
	border-radius:16px;
	overflow:hidden;
	box-shadow:0 8px 24px rgba(20,60,40,.08);
	height:100%;
	display:flex;
	flex-direction:column;
	transition:transform .2s,box-shadow .2s;
}
body:not(.single):not(.home) .ast-article-post .ast-article-inner:hover{
	transform:translateY(-5px);
	box-shadow:0 16px 34px rgba(20,60,40,.16);
}
body:not(.single):not(.home) .ast-article-post .post-thumb,
body:not(.single):not(.home) .ast-article-post .post-thumb-img-content{margin:0;display:block;line-height:0;}
body:not(.single):not(.home) .ast-article-post .post-thumb img,
body:not(.single):not(.home) .ast-article-post .wp-post-image{
	width:100%;height:200px;object-fit:cover;display:block;transition:transform .35s;
}
body:not(.single):not(.home) .ast-article-post .ast-article-inner:hover .wp-post-image{transform:scale(1.05);}
body:not(.single):not(.home) .ast-article-post .entry-header,
body:not(.single):not(.home) .ast-article-post .entry-content,
body:not(.single):not(.home) .ast-article-post .entry-meta,
body:not(.single):not(.home) .ast-article-post .read-more{padding-left:22px;padding-right:22px;}
body:not(.single):not(.home) .ast-article-post .entry-header{padding-top:16px;}
body:not(.single):not(.home) .ast-article-post .entry-title{font-size:20px;line-height:1.25;margin:0 0 4px;}
body:not(.single):not(.home) .ast-article-post .entry-title a{color:#173d28;}
body:not(.single):not(.home) .ast-article-post .entry-title a:hover{color:#2e9e5b;}
body:not(.single):not(.home) .ast-article-post .entry-meta,
body:not(.single):not(.home) .ast-article-post .entry-meta a,
body:not(.single):not(.home) .ast-article-post .ast-taxonomy-container a{color:#2e9e5b !important;font-size:13px;font-weight:600;}
body:not(.single):not(.home) .ast-article-post .entry-content{color:#5d6f64;font-size:14.5px;line-height:1.55;flex:1;}
body:not(.single):not(.home) .ast-article-post .read-more{padding-bottom:20px;margin-top:6px;}
body:not(.single):not(.home) .ast-article-post .read-more a,
body:not(.single):not(.home) .ast-article-post .ast-button{
	display:inline-block;background:#2e9e5b;color:#ffffff !important;padding:9px 18px;
	border-radius:8px;font-weight:600;font-size:14px;text-decoration:none;border:0;
}
body:not(.single):not(.home) .ast-article-post .read-more a:hover,
body:not(.single):not(.home) .ast-article-post .ast-button:hover{background:#1f7a44;}

/* Espaciado de la rejilla de listados */
body:not(.single):not(.home) .ast-row{margin-left:-12px;margin-right:-12px;}
body:not(.single):not(.home) .ast-article-post{padding:12px;}

/* Títulos de sección de las páginas interiores en verde-tinta */
body:not(.single):not(.home) .entry-content h2,
body:not(.single):not(.home) .entry-content h3{color:#173d28;}
