/*
Theme Name: Lilacs — hijo de Twenty Seventeen
Theme URI: https://lilacs.es/
Description: Tema hijo ligero y adaptable para Lilacs, basado en Twenty Seventeen.
Author: Lilacs
Template: twentyseventeen
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lilacs-child
*/

:root {
	--lilacs-purple: #8d078f;
	--lilacs-purple-dark: #2a0f31;
	--lilacs-purple-soft: #f8eef8;
	--lilacs-ink: #302a31;
	--lilacs-muted: #706873;
	--lilacs-border: #eee8ef;
	--lilacs-surface: #ffffff;
	--lilacs-width: 1120px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--lilacs-surface);
	color: var(--lilacs-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.75;
}

a {
	color: var(--lilacs-purple);
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

a:hover,
a:focus {
	color: #650568;
}

.lilacs-wrap {
	margin-inline: auto;
	max-width: var(--lilacs-width);
	padding-inline: 24px;
	width: 100%;
}

.lilacs-skip-link {
	background: var(--lilacs-purple-dark);
	color: #fff;
	left: 16px;
	padding: 10px 16px;
	position: fixed;
	top: -100px;
	z-index: 100000;
}

.lilacs-skip-link:focus {
	top: 16px;
}

.lilacs-topbar {
	background: var(--lilacs-purple);
	color: #fff;
	font-size: 14px;
}

.lilacs-topbar__inner {
	display: flex;
	gap: 24px;
	justify-content: flex-end;
	padding-block: 7px;
}

.lilacs-topbar a {
	color: #fff;
	text-decoration: none;
}

.lilacs-topbar a:hover,
.lilacs-topbar a:focus {
	text-decoration: underline;
}

.lilacs-header {
	background: #fff;
	border-bottom: 6px solid #7d0fe2;
	position: relative;
	z-index: 100;
}

.lilacs-header__inner {
	align-items: center;
	display: flex;
	justify-content: space-between;
	min-height: 96px;
}

.lilacs-brand {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	text-decoration: none;
}

.lilacs-brand img {
	height: 56px;
	object-fit: contain;
	width: auto;
}

.lilacs-nav .menu {
	align-items: center;
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lilacs-nav .menu-item {
	margin: 0;
	position: relative;
}

.lilacs-nav a {
	border-radius: 5px;
	color: #514a53;
	display: block;
	font-size: 15px;
	font-weight: 500;
	padding: 12px 13px;
	text-decoration: none;
}

.lilacs-nav .current-menu-item > a,
.lilacs-nav .current-menu-ancestor > a,
.lilacs-nav a:hover,
.lilacs-nav a:focus {
	background: var(--lilacs-purple-soft);
	color: var(--lilacs-purple);
}

.lilacs-nav .menu-item-has-children > a::after {
	content: " ▾";
	font-size: 0.8em;
}

.lilacs-nav .sub-menu {
	background: #fff;
	border: 1px solid var(--lilacs-border);
	border-radius: 6px;
	box-shadow: 0 12px 35px rgb(42 15 49 / 14%);
	left: 0;
	list-style: none;
	margin: 0;
	min-width: 245px;
	opacity: 0;
	padding: 7px;
	pointer-events: none;
	position: absolute;
	top: calc(100% + 4px);
	transform: translateY(-5px);
	transition: opacity 160ms ease, transform 160ms ease;
}

.lilacs-nav .sub-menu a {
	font-size: 14px;
	padding: 9px 11px;
}

.lilacs-nav .menu-item:hover > .sub-menu,
.lilacs-nav .menu-item:focus-within > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.lilacs-menu-toggle {
	align-items: center;
	background: #fff;
	border: 1px solid var(--lilacs-border);
	border-radius: 6px;
	color: var(--lilacs-purple-dark);
	cursor: pointer;
	display: none;
	font-size: 26px;
	height: 46px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 46px;
}

.lilacs-main {
	display: block;
	min-height: 55vh;
}

.lilacs-hero {
	align-items: center;
	background-color: #fff;
	background-image: url("https://lilacs.es/wp-content/uploads/2015/05/LilacsPortada.jpg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	display: flex;
	justify-content: center;
	min-height: clamp(440px, 38vw, 620px);
	padding: 56px 24px;
	text-align: center;
}

.lilacs-hero__content {
	max-width: 620px;
}

.lilacs-hero h1 {
	color: #3c353e;
	font-size: clamp(36px, 4vw, 58px);
	font-weight: 300;
	letter-spacing: -0.03em;
	line-height: 1.08;
	margin: 0 0 8px;
}

.lilacs-hero p {
	font-size: 20px;
	margin: 0 0 25px;
}

.lilacs-button {
	background: transparent;
	border: 2px solid var(--lilacs-purple);
	border-radius: 3px;
	color: var(--lilacs-purple);
	display: inline-block;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	padding: 12px 20px;
	text-decoration: none;
}

.lilacs-button:hover,
.lilacs-button:focus {
	background: var(--lilacs-purple);
	color: #fff;
}

.lilacs-services {
	padding-block: 74px;
}

.lilacs-services__grid {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lilacs-service {
	background: #fff;
	border: 1px solid var(--lilacs-border);
	border-radius: 8px;
	box-shadow: 0 12px 35px rgb(42 15 49 / 8%);
	overflow: hidden;
	text-decoration: none;
}

.lilacs-service img {
	display: block;
	height: 230px;
	object-fit: cover;
	width: 100%;
}

.lilacs-service span {
	color: var(--lilacs-ink);
	display: block;
	font-size: 18px;
	font-weight: 600;
	padding: 20px 22px;
}

.lilacs-service:hover,
.lilacs-service:focus {
	border-color: #d9bddb;
	box-shadow: 0 16px 44px rgb(42 15 49 / 14%);
	transform: translateY(-2px);
}

.lilacs-intro {
	background: var(--lilacs-purple-soft);
	padding: 82px 24px;
	text-align: center;
}

.lilacs-intro h2 {
	font-size: clamp(30px, 3vw, 42px);
	font-weight: 400;
	margin: 0 0 8px;
}

.lilacs-intro p {
	color: var(--lilacs-muted);
	font-size: 19px;
	margin: 0;
}

.lilacs-map {
	background: #e9e4ea;
	height: 470px;
	overflow: hidden;
}

.lilacs-map iframe {
	border: 0;
	display: block;
	height: 100%;
	width: 100%;
}

.lilacs-cta {
	background: var(--lilacs-purple);
	color: #fff;
	padding: 76px 24px;
	text-align: center;
}

.lilacs-cta h2 {
	color: #fff;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 400;
	margin: 0 0 22px;
}

.lilacs-cta .lilacs-button {
	border-color: #fff;
	color: #fff;
}

.lilacs-cta .lilacs-button:hover,
.lilacs-cta .lilacs-button:focus {
	background: #fff;
	color: var(--lilacs-purple);
}

.lilacs-page {
	padding-block: 64px 90px;
}

.lilacs-page__content {
	max-width: 900px;
}

.lilacs-page h1 {
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.18;
	margin: 0 0 38px;
}

.lilacs-entry-content > :first-child {
	margin-top: 0;
}

.lilacs-entry-content img {
	border-radius: 6px;
	height: auto;
	max-width: 100%;
}

.lilacs-entry-content table {
	border-collapse: collapse;
	max-width: 100%;
	width: 100% !important;
}

.lilacs-entry-content td {
	border: 0;
	padding: 18px;
	vertical-align: top;
}

.lilacs-contact-grid {
	display: grid;
	gap: 34px;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.lilacs-contact-card {
	background: var(--lilacs-purple-soft);
	border-radius: 8px;
	padding: 32px;
}

.lilacs-contact-card h2 {
	font-size: 22px;
	margin: 0 0 22px;
}

.lilacs-contact-card p {
	margin: 0 0 14px;
}

.lilacs-contact-card a {
	font-weight: 600;
	text-decoration: none;
}

.lilacs-contact-map {
	border: 0;
	border-radius: 8px;
	box-shadow: 0 12px 35px rgb(42 15 49 / 10%);
	height: 410px;
	width: 100%;
}

.lilacs-footer {
	background: var(--lilacs-purple-dark);
	color: #d9cedd;
	font-size: 14px;
}

.lilacs-footer__top {
	align-items: center;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	padding-block: 30px;
}

.lilacs-footer .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lilacs-footer a {
	color: #fff;
	text-decoration: none;
}

.lilacs-footer a:hover,
.lilacs-footer a:focus {
	text-decoration: underline;
}

.lilacs-footer__bottom {
	border-top: 1px solid rgb(255 255 255 / 10%);
	display: flex;
	gap: 20px;
	justify-content: space-between;
	padding-block: 18px;
}

.lilacs-footer p {
	margin: 0;
}

@media (max-width: 800px) {
	.lilacs-topbar__inner {
		justify-content: center;
	}

	.lilacs-menu-toggle {
		display: inline-flex;
	}

	.lilacs-nav {
		background: #fff;
		border-top: 1px solid var(--lilacs-border);
		display: none;
		left: 0;
		padding: 12px 20px 20px;
		position: absolute;
		top: 100%;
		width: 100%;
	}

	.lilacs-nav.is-open {
		display: block;
	}

	.lilacs-nav .menu {
		align-items: stretch;
		display: block;
	}

	.lilacs-nav a {
		padding: 10px 12px;
	}

	.lilacs-nav .sub-menu {
		border: 0;
		box-shadow: none;
		margin-left: 14px;
		min-width: 0;
		opacity: 1;
		padding: 0;
		pointer-events: auto;
		position: static;
		transform: none;
	}

	.lilacs-services__grid,
	.lilacs-contact-grid {
		grid-template-columns: 1fr;
	}

	.lilacs-service img {
		height: min(60vw, 330px);
	}

	.lilacs-page {
		padding-block: 45px 70px;
	}

	.lilacs-footer__top,
	.lilacs-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 520px) {
	.lilacs-wrap {
		padding-inline: 18px;
	}

	.lilacs-topbar__inner {
		align-items: center;
		flex-direction: column;
		gap: 1px;
	}

	.lilacs-header__inner {
		min-height: 80px;
	}

	.lilacs-brand img {
		height: 48px;
	}

	.lilacs-hero {
		background-image: linear-gradient(rgb(255 255 255 / 68%), rgb(255 255 255 / 68%)), url("https://lilacs.es/wp-content/uploads/2015/05/LilacsPortada.jpg");
		min-height: 460px;
	}

	.lilacs-services,
	.lilacs-intro,
	.lilacs-cta {
		padding-block: 55px;
	}

	.lilacs-map {
		height: 360px;
	}

	.lilacs-entry-content td {
		display: block;
		padding: 12px 0;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
