/* Newsreader alojada en la propia web: no se pide nada a Google. */
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 400 500;
	font-display: swap;
	src: url("newsreader-normal-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 400 500;
	font-display: swap;
	src: url("newsreader-normal-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("newsreader-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("newsreader-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * Títulos de tarjeta y de portada que usan una tipografía global de Elementor.
 * Cambiar la variable los alcanza a todos sin editar cada widget.
 */
body[class*="elementor-kit-"] {
	--e-global-typography-314a3d6-font-family: "Newsreader", Georgia, serif;
	--e-global-typography-314a3d6-font-weight: 500;
	--e-global-typography-314a3d6-font-size: 25px;
	--e-global-typography-314a3d6-line-height: 1.18em;
	--e-global-typography-876a84b-font-family: "Newsreader", Georgia, serif;
	--e-global-typography-876a84b-font-weight: 400;
	--e-global-typography-876a84b-text-transform: none;
	--e-global-typography-876a84b-line-height: 1.06em;
}

/* Títulos de sección y de página. Muchos widgets fijan su letra: hace falta !important. */
body .elementor-widget-heading h2.elementor-heading-title,
body .elementor-widget-heading h3.elementor-heading-title,
body .elementor-widget-heading h4.elementor-heading-title,
body:not(.home) .elementor-widget-heading h1.elementor-heading-title,
body .elementor-widget-theme-post-title .elementor-heading-title,
body .elementor-widget-theme-archive-title .elementor-heading-title,
body .elementor-post__title,
body .elementor-post__title a,
body .elementor-icon-box-title,
body .elementor-icon-box-title a,
body .elementor-image-box-title,
body .elementor-image-box-title a {
	font-family: "Newsreader", Georgia, serif !important;
	font-weight: 400 !important;
	font-style: normal;
	text-transform: none !important;
	letter-spacing: normal;
}

body:not(.home) .elementor-widget-heading h1.elementor-heading-title,
body .elementor-widget-theme-post-title .elementor-heading-title,
body .elementor-widget-theme-archive-title .elementor-heading-title {
	font-size: clamp(38px, 5vw, 62px) !important;
	line-height: 1.06 !important;
}

body .elementor-widget-heading h2.elementor-heading-title {
	font-size: clamp(30px, 3.6vw, 46px) !important;
	line-height: 1.1 !important;
}

body .elementor-widget-heading h3.elementor-heading-title,
body .elementor-post__title,
body .elementor-post__title a,
body .elementor-icon-box-title,
body .elementor-icon-box-title a,
body .elementor-image-box-title,
body .elementor-image-box-title a {
	font-size: clamp(23px, 2.2vw, 27px) !important;
	line-height: 1.18 !important;
}

/* Frase principal de la portada. */
body.home .elementor-element-1011e0b .elementor-heading-title {
	font-family: "Newsreader", Georgia, serif !important;
	font-size: clamp(38px, 4.8vw, 66px) !important;
	font-weight: 400 !important;
	line-height: 1.05 !important;
	text-transform: none !important;
}

/*
 * Títulos de sección que en Elementor son un «div» y no un h2: «Encuentros
 * terapéuticos» y los cinco «Tarifas e información relevante».
 */
body .elementor-element-c0b3edf .elementor-heading-title,
body .elementor-element-edd1438 .elementor-heading-title,
body .elementor-element-fcbcf08 .elementor-heading-title,
body .elementor-element-98b1bde .elementor-heading-title,
body .elementor-element-9c91dd8 .elementor-heading-title,
body .elementor-element-340bb85 .elementor-heading-title {
	font-family: "Newsreader", Georgia, serif !important;
	font-size: clamp(30px, 3.6vw, 46px) !important;
	font-weight: 400 !important;
	line-height: 1.1 !important;
	text-transform: none !important;
}

/* Sin mayúsculas forzadas en botones y enlaces: «Contacta conmigo», «Leer más». */
body .elementor-button,
body .elementor-button-text,
body .elementor-post__read-more,
body .e-n-menu-title-text {
	text-transform: none !important;
}

/* ---------- Cabecera nueva: menú con paneles y barra del móvil ---------- */
.im-cabecera {
	background: #fff;
	border-bottom: 1px solid #E3DED2;
	position: relative;
	z-index: 50;
}
.im-cabecera-fila {
	--padding-top: 14px;
	--padding-bottom: 14px;
	--padding-left: 24px;
	--padding-right: 24px;
	--gap: 12px 24px;
	--row-gap: 12px;
	--column-gap: 24px;
	max-width: 1240px;
	margin-inline: auto;
	width: 100%;
}
.im-logo { flex: 0 0 190px; }
.im-logo img { width: 190px; height: auto; display: block; }
.im-menu { flex: 1 1 auto; min-width: 0; }

/* Elementos del menú */
.im-menu .e-n-menu-title { border-radius: 6px; }
.im-menu .e-n-menu-title-container,
.im-menu .e-n-menu-title-text { font-family: "Hind Siliguri", sans-serif; font-size: 17px; font-weight: 500; line-height: 1.3; }
.im-menu .e-n-menu-title:hover,
.im-menu .e-n-menu-title.e-current { background: #F4EEDD; }

/* Paneles */
.im-panel { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; background: #fff; border-top: 1px solid #E3DED2; box-shadow: 0 18px 30px rgba(67, 61, 45, .12); }
.im-panel-interior {
	--padding-top: 24px; --padding-bottom: 24px; --padding-left: 24px; --padding-right: 24px;
	--gap: 24px; --row-gap: 24px; --column-gap: 24px;
	max-width: 1240px; margin-inline: auto; width: 100%;
}
.im-panel-principal { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; flex: 1 1 0; width: auto; min-width: 0; --gap: 10px; --row-gap: 10px; }
.im-panel-rejilla { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; width: 100%; grid-auto-rows: max-content; align-content: start; }
.im-panel-enlace {
	--padding-top: 14px; --padding-bottom: 14px; --padding-left: 16px; --padding-right: 16px;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: background .15s ease;
}
.im-panel-enlace:hover,
.im-panel-enlace:focus-visible { background: #F4EEDD; }
.im-panel-enlace:focus-visible,
.im-menu a:focus-visible,
.im-menu button:focus-visible { outline: 2px solid #433D2D; outline-offset: 2px; }
body .im-panel-titulo .elementor-heading-title {
	font-family: "Hind Siliguri", sans-serif !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	color: #433D2D;
}
body .im-panel-desc .elementor-heading-title {
	font-family: "Hind Siliguri", sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: #6B6457;
}
.im-panel-todos .elementor-button {
	background: transparent;
	color: #433D2D;
	font-size: 16px;
	font-weight: 600;
	padding: 8px 16px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Tarjeta de orientación */
.im-promo {
	flex: 0 0 340px;
	width: 340px;
	background: #F4EEDD;
	border-radius: 10px;
	--padding-top: 22px; --padding-bottom: 22px; --padding-left: 22px; --padding-right: 22px;
	--gap: 10px; --row-gap: 10px;
	align-self: flex-start;
}
.im-promo-foto { width: 72px; height: 72px; overflow: hidden; border-radius: 50%; background: #d6d6d6; }
/* Encuadre de cabeza y hombros: en la foto original, Irene está a la derecha del centro. */
.im-promo-foto img { display: block; width: 265px; max-width: none; height: auto; margin: -13px 0 0 -114px; border-radius: 0; }
body .im-promo-titulo .elementor-heading-title {
	font-family: "Newsreader", Georgia, serif !important;
	font-size: 23px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	color: #433D2D;
}
.im-promo-texto p { margin: 0; font-size: 16px; line-height: 1.45; color: #4F493D; }
.im-promo-tel .elementor-button { background: transparent; color: #433D2D; font-size: 16px; font-weight: 600; padding: 4px 0; }

/* Teléfono y «Pedir cita» */
.im-telefono .elementor-button { background: transparent; color: #433D2D; font-size: 17px; font-weight: 500; padding: 10px 4px; white-space: nowrap; }
/* App de citas: pasos de instalación */
.im-pasos { margin: 0; padding-left: 1.3em; }
.im-pasos li { margin-bottom: 8px; padding-left: 4px; }
.im-pasos a { text-decoration: underline; text-underline-offset: 3px; }
.im-pedir-cita .elementor-button,
.im-barra-cita .elementor-button { background: #433D2D; color: #fff; font-size: 17px; font-weight: 600; border-radius: 6px; padding: 12px 22px; white-space: nowrap; }
.im-pedir-cita .elementor-button:hover,
.im-barra-cita .elementor-button:hover { background: #2E2A1F; color: #fff; }

/*
 * En ordenador el panel empieza donde acaba la cabecera, sin taparla. La distancia
 * es relleno transparente del panel, así que el ratón puede bajar sin que se cierre.
 * Ese relleno queda por encima de todo (Elementor le da un z-index enorme), por lo que
 * pestañas y «Pedir cita» miden lo mismo: el relleno empieza debajo de lo que se pulsa.
 * 24 px = relleno inferior de la fila (14) + el de la cabecera (10); la línea del panel
 * cae sobre la de la cabecera. El !important gana a la regla que genera Elementor.
 */
@media (min-width: 1025px) {
	body .im-menu.elementor-widget { --n-menu-title-distance-from-content: 24px !important; }
	.im-menu .e-n-menu-title { min-height: 48px; }
	.im-pedir-cita .elementor-button { display: inline-flex; align-items: center; min-height: 48px; padding-block: 8px; }
}

/* Menú desplegado y barra fija, hasta el ancho de tableta */
@media (max-width: 1024px) {
	.im-logo { flex-basis: 170px; }
	.im-logo img { width: 170px; }
	.im-menu { flex: 0 0 auto; margin-inline-start: auto; }
	.im-menu .e-n-menu-wrapper,
	.im-menu .e-n-menu-heading { background: #fff; }
	.im-menu .e-n-menu-title { min-height: 56px; border-radius: 0; }
	.im-panel { box-shadow: none; }
	.im-panel-interior { --padding-top: 0px; --padding-bottom: 8px; --padding-left: 0px; --padding-right: 0px; }
	.im-panel-enlace { --padding-top: 11px; --padding-bottom: 11px; }
	.im-barra-movil {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 9999;
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid #E3DED2;
	}
	.im-barra-movil .elementor-button { display: flex; justify-content: center; min-height: 48px; width: 100%; font-size: 17px; font-weight: 600; border-radius: 6px; padding: 12px; }
	.im-barra-llamar .elementor-button { background: #F4EEDD; color: #433D2D; border: 1px solid #433D2D; }
	body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}
