/*
Theme Name: Depilación Láser Elche
Theme URI: https://depilacionlaserelche.es/
Description: Directorio de centros de depilación láser en Elche con mapa, filtros, propuestas públicas con moderación y tres idiomas (ES, EN, RU) sin plugins.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: depilacion-elche
*/

:root {
	--bg: #fbf8f5;
	--surface: #ffffff;
	--ink: #23182b;
	--muted: #6f6475;
	--line: #ebe3ea;
	--brand: #6b2d6f;
	--brand-ink: #ffffff;
	--accent: #ef6f5e;
	--accent-soft: #fde9e5;
	--ok: #1f7a4d;
	--ok-soft: #e3f4ea;
	--err: #b42318;
	--err-soft: #fdecea;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(35, 24, 43, .06), 0 6px 24px rgba(35, 24, 43, .06);
	--wrap: 1200px;
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100;
	top: 8px; left: 8px; padding: 8px 14px; background: var(--surface); border-radius: 8px;
}

/* Botones */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: .75em 1.3em; border: 2px solid var(--brand); border-radius: 999px;
	background: var(--brand); color: var(--brand-ink); font: 700 1rem/1.1 var(--font);
	text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--brand); border-color: var(--accent); }
.btn--small { padding: .5em 1em; font-size: .875rem; }
.btn--large { padding: 1em 1.8em; font-size: 1.05rem; }

/* Cabecera */
.site-header {
	position: sticky; top: 0; z-index: 1100;
	background: rgba(251, 248, 245, .92); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__logo { max-height: 44px; width: auto; }
.brand__mark {
	width: 28px; height: 28px; border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #fff 0 18%, var(--accent) 19% 45%, var(--brand) 46%);
	box-shadow: 0 0 0 4px var(--accent-soft);
}
.brand__name { font-weight: 800; letter-spacing: -.01em; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav > a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang-switch a { padding: .35em .7em; font-size: .8rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.lang-switch a[aria-current] { background: var(--brand); color: #fff; }

@media (max-width: 860px) {
	.nav-toggle {
		display: inline-flex; padding: .5em 1em; border: 1px solid var(--line); border-radius: 999px;
		background: var(--surface); font: 600 .9rem var(--font); color: var(--ink); cursor: pointer;
	}
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 16px 22px;
		background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
	}
	.nav-open .site-nav { display: flex; }
}

/* Portada */
.hero { padding: 56px 0 28px; }
.hero--compact { padding: 40px 0 12px; }
.kicker { margin: 0 0 .6em; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; margin: 0; }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 0 20px; }
.filters__search { flex: 1 1 260px; }
.filters__search input, .field input, .field textarea {
	width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 12px;
	background: var(--surface); font: 1rem var(--font); color: var(--ink);
}
.filters__search input:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(107, 45, 111, .12); }
.filters__count { margin: 0; font-weight: 700; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; gap: 6px; padding: .45em .9em;
	border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface);
	font: 600 .875rem var(--font); color: var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip--check:has(input:checked) { border-color: var(--brand); background: rgba(107, 45, 111, .08); }

/* Listado + mapa */
.listing__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cards--row { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.listing__map { position: sticky; top: 84px; }
.map { width: 100%; height: 420px; border-radius: var(--radius); overflow: hidden; background: #e9e4ea; box-shadow: var(--shadow); z-index: 0; }
.map--sticky { height: calc(100vh - 110px); min-height: 420px; }
.map--single { height: 360px; }
.map--picker { height: 320px; margin-top: 10px; }
.map[data-msg]::after {
	content: attr(data-msg); position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1000;
	padding: 8px 12px; border-radius: 10px; background: var(--err-soft); color: var(--err); font-size: .875rem;
}
@media (max-width: 960px) {
	.listing__grid { grid-template-columns: 1fr; }
	.listing__map { position: static; order: -1; }
	.map--sticky { height: 340px; min-height: 0; }
}

.card {
	display: flex; flex-direction: column; gap: 8px; padding: 18px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: #d9c8d8; box-shadow: var(--shadow); transform: translateY(-1px); }
.card--featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.card__title { margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--brand); }
.card__address { margin: 0; color: var(--muted); font-size: .9rem; }
.card__desc { margin: 0; font-size: .925rem; flex: 1; }
.card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.empty { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tag {
	display: inline-block; padding: .2em .65em; border-radius: 999px;
	background: rgba(107, 45, 111, .08); color: var(--brand); font-size: .78rem; font-weight: 700; text-decoration: none;
}
.tag--price { background: var(--accent-soft); color: #a3392b; }

/* Pines del mapa */
.pin {
	width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
	background: var(--brand); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.pin--active { background: var(--accent); }

/* Llamada a la acción y FAQ */
.cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
	margin-top: 56px; padding: 32px; border-radius: 22px;
	background: linear-gradient(120deg, var(--brand), #9a3f7e 60%, var(--accent)); color: #fff;
}
.cta h2 { margin-bottom: .25em; }
.cta p { margin: 0; max-width: 60ch; opacity: .92; }
.cta .btn { background: #fff; border-color: #fff; color: var(--brand); }
.cta .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.faq { margin: 56px auto; max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .6em 0 0; color: var(--muted); }

/* Ficha */
.salon { padding: 28px 16px 56px; }
.crumbs { margin: 0 0 18px; font-size: .9rem; }
.crumbs a { text-decoration: none; font-weight: 600; }
.salon__head { margin-bottom: 28px; }
.salon__head .tags { margin: 14px 0 0; }
.salon__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.salon__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.salon__side { position: sticky; top: 84px; }
.salon__photo { border-radius: var(--radius); margin-bottom: 20px; }
@media (max-width: 860px) {
	.salon__grid { grid-template-columns: 1fr; }
	.salon__side { position: static; }
}
.prose p { margin: 0 0 1em; }
.facts {
	display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px;
	margin: 24px 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.facts dt { font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
	.facts { grid-template-columns: 1fr; gap: 2px; }
	.facts dd { margin-bottom: 10px; }
}
.note { padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; font-size: .9rem; }
.nearby { margin-top: 56px; }

/* Formulario */
.form-wrap { max-width: 820px; padding-bottom: 56px; }
.form { display: flex; flex-direction: column; gap: 20px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__full { grid-column: 1 / -1; }
@media (max-width: 640px) {
	.form { padding: 18px; }
	.form__grid { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { font-weight: 700; font-size: .925rem; padding: 0; }
.field__label abbr { color: var(--accent); text-decoration: none; }
.field--error input, .field--error textarea { border-color: var(--err); }
.field__error { margin: -2px 0 0; color: var(--err); font-size: .85rem; }
.field textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: .3em; }
.check.field--error { color: var(--err); }
.hp { position: absolute; left: -9999px; }
.notice { margin-bottom: 20px; padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.notice--ok { background: var(--ok-soft); color: var(--ok); }
.notice--error { background: var(--err-soft); color: var(--err); }

/* Páginas genéricas */
.page { padding: 40px 16px 56px; max-width: 820px; }

/* Pie */
.site-footer { margin-top: 40px; padding: 36px 0 28px; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.site-footer__inner > div { max-width: 520px; }
.site-footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.site-footer__nav > a { color: var(--ink); font-weight: 600; text-decoration: none; }
