/* ==========================================================================
   Neyfa Estilistas — estilos del child theme
   Header/footer de respaldo, formulario, foco visible y ajustes globales.
   El contenido de las páginas y (con PRO Elements) el header/footer
   se estilizan desde Elementor.
   ========================================================================== */

:root {
	--neyfa-text: #272525;
	--neyfa-muted: #5E5A58;
	--neyfa-bg: #FAF8F5;
	--neyfa-white: #FFFFFF;
	--neyfa-rose: #9E5762;
	--neyfa-rose-hover: #874752;
	--neyfa-rose-soft: #B76E79;
	--neyfa-pink: #F3E4E5;
	--neyfa-green: #465447;
	--neyfa-gold: #B79A62;
	--neyfa-line: #E9E1DC;
	--neyfa-cream: #FAF8F5;
	--neyfa-font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--neyfa-font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--neyfa-header-height: 78px;
}

html {
	scroll-padding-top: calc(var(--neyfa-header-height) + 12px);
}

body {
	font-family: var(--neyfa-font-body);
	color: var(--neyfa-text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Foco visible en toda la web (teclado). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--neyfa-rose-soft);
	outline-offset: 3px;
	border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Botón genérico (header de respaldo, formulario)
   -------------------------------------------------------------------------- */

.neyfa-btn,
body a.neyfa-btn,
body button.neyfa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 28px;
	border: 1px solid var(--neyfa-rose);
	border-radius: 999px;
	background: var(--neyfa-rose);
	color: var(--neyfa-white);
	font-family: var(--neyfa-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.neyfa-btn:hover,
.neyfa-btn:focus-visible,
body a.neyfa-btn:hover,
body a.neyfa-btn:focus-visible,
body button.neyfa-btn:hover,
body button.neyfa-btn:focus-visible {
	background: var(--neyfa-rose-hover);
	border-color: var(--neyfa-rose-hover);
	color: var(--neyfa-white);
}

.neyfa-btn--sm,
body a.neyfa-btn--sm {
	min-height: 40px;
	padding: 8px 18px;
	font-size: 14px;
}

/* --------------------------------------------------------------------------
   Header de respaldo (sin Theme Builder)
   -------------------------------------------------------------------------- */

.neyfa-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--neyfa-line);
	transition: box-shadow .2s ease;
}

.neyfa-header.is-scrolled {
	box-shadow: 0 6px 24px rgba(39, 37, 37, 0.06);
}

.neyfa-header__inner {
	position: relative;
	max-width: 1140px;
	margin: 0 auto;
	padding: 8px 24px;
	min-height: var(--neyfa-header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.neyfa-header__brand,
body a.neyfa-header__brand,
body a.neyfa-header__brand:hover {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--neyfa-text);
}

.neyfa-header__logo {
	width: 62px;
	height: 62px;
	object-fit: contain;
	display: block;
}

.neyfa-header__name {
	font-family: var(--neyfa-font-heading);
	font-size: 26px;
	font-weight: 600;
	letter-spacing: .3px;
	line-height: 1;
	white-space: nowrap;
}

.neyfa-header__nav {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.neyfa-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
}

.neyfa-menu li {
	margin: 0;
}

.neyfa-header .neyfa-menu a,
body .neyfa-header .neyfa-menu li a {
	display: inline-block;
	padding: 8px 14px;
	color: var(--neyfa-text);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color .2s ease, border-color .2s ease;
}

.neyfa-header .neyfa-menu a:hover,
.neyfa-header .neyfa-menu a:focus-visible,
.neyfa-header .neyfa-menu .current-menu-item > a,
.neyfa-header .neyfa-menu .current_page_item > a {
	color: var(--neyfa-rose);
	border-bottom-color: var(--neyfa-rose);
}

.neyfa-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	order: 3;
}

.neyfa-header__cta-icon {
	font-size: 15px;
	line-height: 1;
}

.neyfa-header__toggle,
body button.neyfa-header__toggle,
body button.neyfa-header__toggle:hover,
body button.neyfa-header__toggle:focus {
	display: none;
	color: var(--neyfa-text);
	line-height: 1;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	background: transparent;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	border-radius: 8px;
}

.neyfa-header__toggle-bar {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--neyfa-text);
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}

.neyfa-header__toggle[aria-expanded="true"] .neyfa-header__toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.neyfa-header__toggle[aria-expanded="true"] .neyfa-header__toggle-bar:nth-child(2) {
	opacity: 0;
}

.neyfa-header__toggle[aria-expanded="true"] .neyfa-header__toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
	.neyfa-header__toggle,
	body button.neyfa-header__toggle,
	body button.neyfa-header__toggle:hover,
	body button.neyfa-header__toggle:focus {
		display: flex;
	}

	.neyfa-header__nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		margin: 0;
		padding: 8px 20px 20px;
		background: var(--neyfa-white);
		border-bottom: 1px solid var(--neyfa-line);
		box-shadow: 0 16px 32px rgba(39, 37, 37, 0.08);
	}

	.neyfa-header__nav.is-open {
		display: block;
	}

	.neyfa-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.neyfa-header .neyfa-menu a {
		display: block;
		padding: 14px 4px;
		font-size: 17px;
		border-bottom: 1px solid var(--neyfa-line);
	}

	.neyfa-header .neyfa-menu li:last-child a {
		border-bottom-color: transparent;
	}

	.neyfa-header .neyfa-menu .current-menu-item > a {
		border-bottom-color: var(--neyfa-line);
	}
}

@media (max-width: 767px) {
	:root {
		--neyfa-header-height: 66px;
	}

	.neyfa-header__inner {
		padding: 6px 16px;
	}

	.neyfa-header__logo {
		width: 50px;
		height: 50px;
	}

	.neyfa-header__name {
		display: none;
	}

	.neyfa-header__cta {
		padding: 8px 14px;
	}
}

/* --------------------------------------------------------------------------
   Footer de respaldo (sin Theme Builder)
   -------------------------------------------------------------------------- */

.neyfa-footer {
	background: var(--neyfa-green);
	color: rgba(250, 248, 245, 0.8);
	font-size: 14.5px;
	line-height: 1.75;
}

.neyfa-footer a,
body .neyfa-footer a {
	color: var(--neyfa-cream);
	text-decoration: none;
}

.neyfa-footer a:hover,
.neyfa-footer a:focus-visible,
body .neyfa-footer a:hover,
body .neyfa-footer a:focus-visible {
	color: #E5B8BE;
	text-decoration: underline;
}

.neyfa-footer__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 64px 24px 40px;
	display: grid;
	grid-template-columns: 1.4fr 1.2fr 1.1fr 0.9fr;
	gap: 32px;
}

.neyfa-footer__col p {
	margin: 0 0 8px;
}

.neyfa-footer__logo {
	width: 84px;
	height: 84px;
	object-fit: contain;
	display: block;
	margin-bottom: 12px;
}

.neyfa-footer__name,
.neyfa-footer p.neyfa-footer__name {
	font-family: var(--neyfa-font-heading);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--neyfa-cream);
	margin: 0 0 4px;
}

.neyfa-footer__tagline {
	color: rgba(250, 248, 245, 0.62);
}

.neyfa-footer__social {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: flex;
	gap: 16px;
}

.neyfa-footer__heading,
.neyfa-footer h2.neyfa-footer__heading {
	font-family: var(--neyfa-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(250, 248, 245, 0.62);
	margin: 0 0 12px;
}

.neyfa-footer__schedule,
.neyfa-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.neyfa-footer__schedule li {
	font-size: 13.5px;
}

.neyfa-footer__menu li {
	margin-bottom: 6px;
}

.neyfa-footer__bottom {
	border-top: 1px solid rgba(250, 248, 245, 0.15);
	text-align: center;
	padding: 18px 24px;
	font-size: 13px;
	color: rgba(250, 248, 245, 0.62);
}

.neyfa-footer__bottom p {
	margin: 0;
}

@media (max-width: 1024px) {
	.neyfa-footer__inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.neyfa-footer__inner {
		grid-template-columns: 1fr;
		padding: 44px 20px 32px;
	}
}

/* --------------------------------------------------------------------------
   Formulario de contacto [neyfa_contact_form]
   -------------------------------------------------------------------------- */

.neyfa-form-wrap {
	scroll-margin-top: calc(var(--neyfa-header-height) + 24px);
}

.neyfa-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.neyfa-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 600px) {
	.neyfa-form__row {
		grid-template-columns: 1fr;
	}
}

.neyfa-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.neyfa-form__field label {
	font-size: 14px;
	font-weight: 600;
	color: var(--neyfa-text);
}

.neyfa-form__field input,
.neyfa-form__field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--neyfa-line);
	border-radius: 10px;
	background: var(--neyfa-white);
	color: var(--neyfa-text);
	font-family: var(--neyfa-font-body);
	font-size: 16px;
	line-height: 1.4;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.neyfa-form__field input:focus,
.neyfa-form__field textarea:focus {
	outline: none;
	border-color: var(--neyfa-rose);
	box-shadow: 0 0 0 3px rgba(158, 87, 98, 0.18);
}

.neyfa-form__field textarea {
	min-height: 140px;
	resize: vertical;
}

.neyfa-form__legal {
	margin: 0;
	font-size: 13px;
	color: var(--neyfa-muted);
}

.neyfa-form__actions {
	align-items: flex-start;
}

.neyfa-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.neyfa-form__notice {
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: 10px;
	font-size: 15px;
}

.neyfa-form__notice--ok {
	background: #E7F0E8;
	color: #2F4A33;
	border: 1px solid #C9DBCC;
}

.neyfa-form__notice--error {
	background: var(--neyfa-pink);
	color: #7A3A44;
	border: 1px solid #E5C7CB;
}

/* --------------------------------------------------------------------------
   Ajustes Elementor
   -------------------------------------------------------------------------- */

/* El logo del header (PNG con transparencia) no debe recortarse. */
.elementor-widget-image img.neyfa-logo,
.elementor-widget-image[data-id] img[src*="logo-neyfa"] {
	object-fit: contain;
}

/* Nombre del salón en el header del Theme Builder: siempre en una línea. */
.elementor-location-header .elementor-widget-heading .elementor-heading-title {
	white-space: nowrap;
}

/* Desplegable del menú móvil del Theme Builder por encima del contenido. */
.elementor-nav-menu--dropdown.elementor-nav-menu__container {
	z-index: 1000;
}

/* Páginas que no son Elementor (legales): ancho de lectura. */
body:not(.elementor-page) .page .entry-content,
body:not(.elementor-page) .site-main > .page {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}
