/*
Theme Name: Cerrajeros Elche Astra
Theme URI: https://www.cerrajeroselche.es/
Description: Tema hijo de Astra optimizado para Cerrajeros Elche.
Author: Codex
Template: astra
Version: 1.0.0
Text Domain: cerrajeros-elche-astra
*/

:root {
	--elche-ink: #172026;
	--elche-muted: #5b6670;
	--elche-line: #dce3e8;
	--elche-blue: #0b63ce;
	--elche-green: #11845b;
	--elche-soft: #f5f8fa;
}

body {
	color: var(--elche-ink);
	font-size: 17px;
	line-height: 1.7;
	background: #fff;
}

a {
	color: var(--elche-blue);
}

.site-header {
	border-bottom: 1px solid var(--elche-line);
	box-shadow: 0 2px 14px rgba(21, 31, 42, .05);
}

.ast-container,
.site-content .ast-container {
	max-width: 1120px;
}

.entry-content {
	max-width: 960px;
	margin-inline: auto;
}

.entry-content > p:first-of-type {
	font-size: 1.18rem;
	line-height: 1.75;
	padding: 22px 24px;
	border-left: 5px solid var(--elche-green);
	background: var(--elche-soft);
	border-radius: 8px;
}

.entry-content h1,
.entry-title {
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1.1;
	margin-bottom: 18px;
	color: #101820;
}

.entry-content h2 {
	font-size: clamp(1.45rem, 2.3vw, 2rem);
	line-height: 1.25;
	margin-top: 42px;
	margin-bottom: 14px;
	color: #101820;
}

.entry-content h3 {
	font-size: 1.2rem;
	margin-top: 26px;
	color: var(--elche-ink);
}

.entry-content p,
.entry-content li {
	color: var(--elche-muted);
}

.entry-content strong {
	color: var(--elche-ink);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25rem;
}

.entry-content li + li {
	margin-top: 8px;
}

.entry-content figure {
	margin: 28px auto;
}

.entry-content img {
	border-radius: 8px;
}

.entry-content a[href^="tel:"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 8px 0;
	padding: 12px 20px;
	border-radius: 8px;
	background: var(--elche-green);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(17, 132, 91, .18);
}

.entry-content p:has(> a[href^="tel:"]:first-child) {
	margin: 28px 0;
	padding: 20px 22px;
	border: 1px solid var(--elche-line);
	border-radius: 8px;
	background: #fff;
}

.entry-content p:has(> a[href^="tel:"]:first-child) a[href^="tel:"] {
	margin-right: 12px;
}

.entry-content a[href^="tel:"]:hover {
	background: #0d6f4c;
	color: #fff;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 22px 0 30px;
	font-size: .98rem;
	overflow: hidden;
	border: 1px solid var(--elche-line);
	border-radius: 8px;
}

.entry-content th,
.entry-content td {
	padding: 13px 14px;
	border-bottom: 1px solid var(--elche-line);
	vertical-align: top;
}

.entry-content th {
	background: #eaf2fb;
	color: #102033;
	text-align: left;
}

.entry-content tr:nth-child(even) td {
	background: #fafcfd;
}

.entry-content details,
.entry-content .wp-block-details {
	border: 1px solid var(--elche-line);
	border-radius: 8px;
	padding: 14px 16px;
	background: #fff;
	margin: 12px 0;
}

.entry-content summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--elche-ink);
}

.site-footer {
	border-top: 1px solid var(--elche-line);
}

.ast-footer-copyright {
	display: none;
}

.elche-sticky-call {
	display: none;
}

.elche-legal-footer {
	max-width: 1120px;
	margin: 0 auto;
	padding: 18px 20px 28px;
	color: var(--elche-muted);
	font-size: .92rem;
	text-align: center;
}

.elche-legal-footer a {
	color: var(--elche-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 720px) {
	body {
		font-size: 16px;
		padding-bottom: 76px;
	}

	.entry-content {
		max-width: 100%;
	}

	.entry-content > p:first-of-type {
		padding: 18px;
	}

	.entry-content table {
		font-size: .92rem;
	}

	.entry-content th,
	.entry-content td {
		padding: 10px;
	}

	.entry-content a[href^="tel:"] {
		width: 100%;
	}

	.elche-sticky-call {
		position: fixed;
		right: 14px;
		bottom: 14px;
		left: 14px;
		z-index: 9999;
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 54px;
		padding: 12px 18px;
		border-radius: 8px;
		background: var(--elche-green);
		color: #fff;
		font-weight: 800;
		line-height: 1.2;
		text-decoration: none;
		box-shadow: 0 10px 26px rgba(11, 31, 46, .22);
	}

	.elche-sticky-call:hover,
	.elche-sticky-call:focus {
		background: #0d6f4c;
		color: #fff;
	}
}
