/* =========================================================================================================
   Mophys — portada y listados Tecnologías / Tratamientos (inc/portada.php). Medidas copiadas de la web anterior
   (Elementor): caja de 1280 px; tableta ≤1024 px; móvil ≤767 px; el carrusel cambia a 1 por vista por debajo de 1024 px.
   Las paddings «3em/2em» de Elementor dependen del tamaño de letra (16/15/14 px): aquí van en px por punto de corte.
   ========================================================================================================= */

.mophys-portada, .mophys-listado { --mp-titulo: #1E293B; --mp-fondo-tarjeta: #F9FAFA; --mp-texto-tarjeta: #3F444B; }
.mophys-portada__caja { display: flex; max-width: var(--m-ancho); margin: 0 auto; }

/* Títulos comunes (Fanwood con «negrita» sintética, como en la web anterior) */
.mophys-portada__antetitulo, .mophys-listado__marca { margin: 0 0 20px; color: var(--m-texto); font: italic 600 16px/1.25 var(--m-serif); letter-spacing: normal; }
.mophys-portada__antetitulo--centro, .mophys-listado__marca { text-align: center; }
.mophys-portada__h2, .mophys-encabezado__titulo, .mophys-listado__subtitulo { margin: 0 0 20px; color: var(--mp-titulo); font: 600 48px/1.3 var(--m-serif); letter-spacing: normal; text-transform: none; }
.mophys-portada__h2--centro { text-align: center; }

/* 1 · Bienvenida: foto con velo, saludo y caja verde con el formulario ---------------------------------------- */
.mophys-portada__bienvenida { position: relative; overflow: hidden; background: var(--m-texto); }
.mophys-portada__foto { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: -191px -624px; opacity: .6; }
.mophys-portada__bienvenida-in { position: relative; }
.mophys-portada__saludo { display: flex; flex-direction: column; justify-content: center; width: 60%; padding: 48px; box-sizing: border-box; color: #fff; }
.mophys-portada__antetitulo-grande { margin: 0 0 20px; color: #fff; font: 600 24px/1.2 var(--m-serif); }
.mophys-portada__titulo { margin: 0 0 20px; color: #fff; font: 500 60px/60px var(--m-serif); letter-spacing: -2px; text-transform: none; }
.mophys-portada__intro { margin: 0; color: #fff; }
.mophys-portada__cita { width: 40%; padding: 48px; box-sizing: border-box; background: var(--m-verde); border-radius: 2px; color: #fff; }
.mophys-portada__cita-titulo { margin: 0 0 20px; color: #fff; font: 600 36px/1.3 var(--m-serif); letter-spacing: normal; }
.mophys-portada__cita-texto { margin: 0 0 20px; color: #fff; font: 400 14px/1.6 var(--m-sans); }

/* Formulario «cita» (campos de inc/formulario.php) */
.mophys-portada__cita .mophys-form { margin: 0 -10px -20px; }
.mophys-portada__cita .mophys-form__campo { margin: 0 0 20px; padding: 0 10px; }
.mophys-portada__cita .mophys-form input, .mophys-portada__cita .mophys-form textarea {
	height: 40px; min-height: 40px; padding: 0 16px; border: 2px solid var(--m-azul-claro); border-radius: 2px; background: #fff; color: var(--m-morado);
	font: 400 16px/24px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05); outline: 0; transition: all .2s linear; -webkit-appearance: none; appearance: none; }
.mophys-portada__cita .mophys-form textarea { height: auto; padding: 5px 14px; font-size: 15px; line-height: 21px; resize: vertical; }
.mophys-portada__cita .mophys-form input:focus, .mophys-portada__cita .mophys-form textarea:focus { border-color: var(--m-azul-claro); background: #fff; color: #3C3C3C; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.mophys-portada__cita .mophys-form input[type="date"] { display: flex; align-items: center; }
.mophys-portada__cita .mophys-form__boton, .mophys-portada__cita .mophys-form__boton:hover, .mophys-portada__cita .mophys-form__boton:focus {
	display: block; width: 100%; min-height: 47px; margin: 0; padding: 0 30px; border: 0; border-radius: 2px; background: var(--m-morado); color: #fff;
	font: 500 16px/1 var(--m-sans); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: transform .3s; }
.mophys-portada__cita .mophys-form__boton:hover, .mophys-portada__cita .mophys-form__boton:focus-visible { transform: scale(1.1); }
.mophys-portada__cita .mophys-form__aviso { margin: 0 10px 20px; color: #fff; }

/* 2 · Nuestra esencia ----------------------------------------------------------------------------------------- */
.mophys-portada__esencia { padding: 48px 0; }
.mophys-portada__esencia-imagen { width: 50%; padding: 10px; box-sizing: border-box; }
.mophys-portada__marco { padding: 32px; background: var(--mophys-fondo) no-repeat 100% 0; }
.mophys-portada__esencia-img { display: block; width: 60%; height: auto; margin: 0 auto; border-radius: 2px; }
.mophys-portada__esencia-texto { width: 50%; padding: 48px; box-sizing: border-box; }
.mophys-portada__parrafo { margin: 0; }

/* 3 · Título de bloque (antes de las tarjetas) ----------------------------------------------------------------- */
.mophys-encabezado { max-width: var(--m-ancho); margin: 0 auto; padding: 16px 48px; box-sizing: border-box; }
.mophys-encabezado__titulo { margin: 30px 0 0; text-align: center; }

/* 4 · Tarjetas (grupos como los contenedores de Elementor: 20 px entre tarjetas, 40 px entre grupos) ----------- */
.mophys-tarjetas__grupo { padding: 10px; }
.mophys-tarjetas__filas { display: flex; flex-wrap: wrap; max-width: var(--m-ancho); margin: 0 auto; }
.mophys-tarjetas__celda { width: 33.3333%; padding: 10px; box-sizing: border-box; }
@media (min-width: 1025px) { .mophys-tarjetas__celda--sin-escritorio { display: none; } }
@media (min-width: 768px) and (max-width: 1024px) { .mophys-tarjetas__celda--sin-tableta { display: none; } }
@media (max-width: 767px) { .mophys-tarjetas__celda--sin-movil { display: none; } }

.mophys-tarjeta { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.mophys-tarjeta__foto { position: relative; height: 300px; overflow: hidden; }
.mophys-tarjeta__img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.5s; }
.mophys-tarjeta__velo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; transition: background-color 1.5s; }
.mophys-tarjeta:hover .mophys-tarjeta__img { transform: scale(1.2); }
.mophys-tarjeta:hover .mophys-tarjeta__velo { background-color: rgba(0, 0, 0, .3); }
.mophys-tarjeta__cuerpo { padding: 35px; background: var(--mp-fondo-tarjeta); text-align: center; }
.mophys-tarjeta__titulo { margin: 0 0 15px; color: var(--m-morado); font: 600 30px/1.1 var(--m-serif); letter-spacing: normal; text-transform: none; }
.mophys-tarjeta__texto { margin: 0 0 15px; color: var(--mp-texto-tarjeta); }
.mophys-tarjeta__accion { margin: 0; }
.mophys-tarjeta__boton, .mophys-tarjeta__boton:visited { display: inline-block; padding: 15px 30px; border: 2px solid var(--m-morado); border-radius: 2px; background: var(--m-morado);
	color: #fff; font: 500 16px/1 var(--m-sans); text-decoration: none; transition: all .3s; }
.mophys-tarjeta__boton:hover, .mophys-tarjeta__boton:focus { border-color: var(--m-verde); background: var(--m-verde); color: #fff; transform: scale(.94); } /* «Saber más» encoge al pasar, como el de Elementor (140×50 → 136×46 aprox.) */

/* Tarjeta de la portada: foto de fondo, título grande blanco; al pasar, la foto crece, se oscurece y el texto crece */
.mophys-tarjeta--portada .mophys-tarjeta__foto { position: absolute; top: 0; right: 0; bottom: 0; left: 0; height: auto; }
.mophys-tarjeta--portada .mophys-tarjeta__foto::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; background: rgba(0, 0, 0, .4); } /* velo fijo (antes CSS adicional del personalizador) */
.mophys-tarjeta--portada .mophys-tarjeta__velo { z-index: 2; }
.mophys-tarjeta--portada .mophys-tarjeta__cuerpo { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center; min-height: 400px; padding: 30px; box-sizing: border-box; background: none; color: #fff; }
.mophys-tarjeta--portada .mophys-tarjeta__titulo { color: #fff; font-size: 48px; transition: transform 1s; }
.mophys-tarjeta--portada .mophys-tarjeta__texto { margin: 0; color: #fff; transition: transform 1s; }
.mophys-tarjeta--portada:hover .mophys-tarjeta__titulo, .mophys-tarjeta--portada:hover .mophys-tarjeta__texto { transform: scale(1.1); }

/* 5 · Testimonios ---------------------------------------------------------------------------------------------- */
.mophys-portada__testimonios { padding: 48px 0; }
.mophys-portada__testimonios-in { position: relative; width: 100%; padding: 48px; box-sizing: border-box; }
.mophys-portada__testimonios-in::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--mophys-fondo) no-repeat 50% 0 / 10% auto; opacity: .2; pointer-events: none; }
.mophys-portada__testimonios-in > * { position: relative; }

.mophys-carrusel { --por-vista: 3; position: relative; }
.mophys-carrusel__ventana { margin: 0 20px; padding-bottom: 40px; overflow: hidden; }
.mophys-carrusel__pista { display: flex; margin: 0; padding: 0; list-style: none; }
.mophys-carrusel__diapo { flex: 0 0 auto; width: calc((100% - (var(--por-vista) - 1) * 10px) / var(--por-vista)); margin: 0 10px 0 0; padding: 20px; box-sizing: border-box; border-radius: 2px; }
.mophys-carrusel:not(.mophys-carrusel--js) .mophys-carrusel__ventana { overflow-x: auto; scroll-snap-type: x mandatory; }
.mophys-carrusel:not(.mophys-carrusel--js) .mophys-carrusel__diapo { scroll-snap-align: start; }
.mophys-carrusel--js .mophys-carrusel__pista { will-change: transform; }
.mophys-carrusel__diapo[inert] { pointer-events: none; }

.mophys-testimonio { margin: 0; }
.mophys-testimonio__texto { position: relative; margin: 0; padding: 48px; border: 0; background: var(--m-verde); color: #fff; font: italic 400 var(--m-t-cuerpo)/var(--m-lh-cuerpo) var(--m-sans); quotes: none; }
.mophys-testimonio__texto::before { content: none; }
.mophys-testimonio__texto::after { content: ""; position: absolute; top: calc(100% - 7px); left: 45px; width: 14px; height: 14px; background: var(--m-verde); transform: scaleX(.75) rotate(45deg); }
.mophys-testimonio__texto p { margin: 0; color: inherit; font: inherit; }
.mophys-testimonio__pie { display: flex; margin: 25px 0 0; padding: 0 48px; }
.mophys-testimonio__nombre { color: var(--m-texto); font: normal 500 15px/1.5 var(--m-sans); }

.mophys-carrusel__flecha, .mophys-carrusel__flecha:hover, .mophys-carrusel__flecha:focus {
	position: absolute; top: calc(50% - 20px); z-index: 1; display: flex; width: 20px; height: 20px; margin: 0; padding: 0; border: 0; background: none;
	color: rgba(238, 238, 238, .9); line-height: 1; cursor: pointer; transform: translateY(-50%); box-shadow: none; }
.mophys-carrusel__flecha[hidden], .mophys-carrusel__puntos[hidden] { display: none; }
.mophys-carrusel__flecha svg { width: 20px; height: 20px; fill: currentColor; }
.mophys-carrusel__flecha--anterior { left: 10px; }
.mophys-carrusel__flecha--siguiente { right: 10px; }
.mophys-carrusel__puntos { position: absolute; right: 0; bottom: calc(var(--m-lh-cuerpo) / 2); left: 0; display: flex; justify-content: center; }
.mophys-carrusel__punto, .mophys-carrusel__punto:hover, .mophys-carrusel__punto:focus { width: 6px; height: 6px; margin: 0 6px; padding: 0; border: 0; border-radius: 50%; background: #000; opacity: .2; cursor: pointer; box-shadow: none; }
.mophys-carrusel__punto[aria-current="true"] { opacity: 1; }

/* 6 · Listados Tecnologías / Tratamientos: cabecera --------------------------------------------------------------- */
.mophys-listado__in { display: flex; flex-direction: column; max-width: var(--m-ancho); margin: 0 auto; padding: 16px 48px; box-sizing: border-box; } /* flex: sin colapso de márgenes, como Elementor */
.mophys-listado--tecnologias .mophys-listado__marca { color: var(--m-morado); }
.mophys-listado__titulo { margin: 0 0 20px; color: var(--mp-titulo); font: 600 60px/1.4 var(--m-serif); letter-spacing: -2px; text-align: center; text-transform: none; }
.mophys-listado--tratamientos .mophys-listado__titulo { font-size: 50px; }
.mophys-listado__texto { display: flow-root; margin: 0 0 20px; text-align: justify; }
.mophys-listado__texto p { margin: 0 0 1.6em; }
.mophys-listado--tratamientos .mophys-listado__texto p { margin-bottom: 1.75em; }
.mophys-listado__texto strong { font-weight: 700; }
.mophys-listado__subtitulo { margin: 30px 0 0; text-align: center; }

/* Botones: Astra reduce la letra de la web al 91,2 % por debajo de 922 px (los botones de Elementor iban en rem) */
@media (max-width: 921px) {
	.mophys-portada__cita .mophys-form__boton, .mophys-portada__cita .mophys-form__boton:hover, .mophys-portada__cita .mophys-form__boton:focus,
	.mophys-tarjeta__boton, .mophys-tarjeta__boton:visited { font-size: 14.592px; }
}

/* Carrusel: 1 por vista por debajo de 1024 px (puntos de corte de Swiper en Elementor) */
@media (max-width: 1023px) {
	.mophys-carrusel { --por-vista: 1; }
}

/* Tableta ------------------------------------------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.mophys-portada__caja { max-width: 1024px; }
	.mophys-portada__foto { object-position: -150px -242px; }
	.mophys-portada__saludo { justify-content: flex-end; padding: 45px; }
	.mophys-portada__antetitulo-grande { font-size: 18px; }
	.mophys-portada__titulo { font-size: 50px; }
	.mophys-portada__cita { padding: 45px; }
	.mophys-portada__cita-titulo { font-size: 24px; }
	.mophys-portada__cita-texto { font-size: 13px; }

	.mophys-portada__antetitulo, .mophys-listado__marca { font-size: 13px; }
	.mophys-portada__h2, .mophys-encabezado__titulo, .mophys-listado__subtitulo { font-size: 36px; }

	.mophys-portada__esencia { padding: 45px 0; }
	.mophys-portada__esencia-in { flex-direction: column-reverse; }
	.mophys-portada__esencia-imagen, .mophys-portada__esencia-texto { width: 100%; }
	.mophys-portada__marco { padding: 30px; }
	.mophys-portada__esencia-texto { padding: 45px; }

	.mophys-encabezado { margin-bottom: 15px; padding: 30px 45px 15px; }
	.mophys-encabezado__titulo { margin: 20px; }

	.mophys-tarjetas__filas { max-width: 1024px; }
	.mophys-tarjetas__celda { width: 50%; }
	.mophys-tarjeta--portada .mophys-tarjeta__titulo { font-size: 36px; }

	.mophys-portada__testimonios { padding: 30px 0; }
	.mophys-portada__testimonios-in { padding: 45px; }
	.mophys-testimonio__texto { padding: 45px; }
	.mophys-testimonio__pie { padding: 0 45px; }

	.mophys-listado__in { margin-bottom: 15px; padding: 30px 45px 15px; }
	.mophys-listado__titulo, .mophys-listado--tratamientos .mophys-listado__titulo { font-size: 42px; line-height: 42px; }
	.mophys-listado__subtitulo { margin: 20px; }
}

/* Móvil -------------------------------------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.mophys-portada__bienvenida { padding-top: 70px; }
	.mophys-portada__foto { object-position: -282px -350px; }
	.mophys-portada__bienvenida-in { flex-direction: column; }
	.mophys-portada__saludo, .mophys-portada__cita { width: 100%; padding: 28px; }
	.mophys-portada__titulo { font-size: 40px; line-height: 50px; }
	.mophys-portada__cita-texto { font-size: 12px; }

	.mophys-portada__antetitulo, .mophys-listado__marca { font-size: 12px; }
	.mophys-portada__h2, .mophys-listado__subtitulo { font-size: 28px; }
	.mophys-encabezado__titulo, .mophys-listado__subtitulo { font-size: 26px; }

	.mophys-portada__esencia { padding: 0; }
	.mophys-portada__esencia-in { flex-direction: column; }
	.mophys-portada__marco { padding: 14px; background-size: 40% auto; }
	.mophys-portada__esencia-texto { padding: 28px; }

	.mophys-encabezado { margin-bottom: 0; padding: 28px; }
	.mophys-encabezado__titulo { margin: 0; }

	.mophys-tarjetas__celda { width: 100%; }
	.mophys-tarjeta--portada .mophys-tarjeta__titulo { font-size: 28px; }

	.mophys-portada__testimonios { padding: 0; }
	.mophys-portada__testimonios-in { padding: 14px; }
	.mophys-testimonio__texto { padding: 28px; }
	.mophys-testimonio__pie { padding: 0 28px; }
	.mophys-testimonio__nombre { font-size: 14px; }

	.mophys-listado__in { margin-bottom: 0; padding: 28px; }
	.mophys-listado__titulo, .mophys-listado--tratamientos .mophys-listado__titulo { font-size: 36px; line-height: 36px; }
	.mophys-listado__subtitulo { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.mophys-tarjeta__img, .mophys-tarjeta__velo, .mophys-tarjeta__titulo, .mophys-tarjeta__texto, .mophys-carrusel__pista { transition: none !important; }
}
