/*
Theme Name: Endovida Chile
Theme URI: https://endovida.cl
Author: Endovida Chile
Description: Tema clásico para Endovida Chile — Centro médico especializado en salud integral de la mujer. Diseño "Serene Medical Excellence".
Version: 1.3.18
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: endovida-chile
Tags: custom-colors, custom-fonts, one-column, two-columns, responsive-layout
*/

/* ══════════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════════ */

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

body {
	margin: 0;
	padding: 0;
	font-family: "Inter", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #191c1e;
	background-color: #f7f9fb;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: #305ea2;
	transition: color 0.2s;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	line-height: 1.2;
	color: #191c1e;
}

p { margin: 0; }

ul, ol {
	margin: 0;
	padding: 0;
}

/* ── Neutraliza márgenes de block-layout que WordPress inyecta desde theme.json ── */
:where(.wp-site-blocks) > *,
:root :where(.is-layout-flow) > *,
:root :where(.is-layout-constrained) > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* ── Admin bar offset para header sticky ── */
body.admin-bar .endovida-header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar .endovida-header {
		top: 46px;
	}
}

/* ══════════════════════════════════════════════════════════════
   UTILIDADES
   ══════════════════════════════════════════════════════════════ */

.endovida-container {
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 48px);
}

/* Elevación */
.elevation-1 { box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.03); }
.elevation-2 { box-shadow: 0px 10px 30px rgba(43, 90, 158, 0.08); }

/* Glass */
.glass-nav,
.endovida-glass-card {
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
}
.endovida-glass-card {
	background: rgba(247, 249, 251, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Material Symbols */
.material-symbols-outlined {
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
	vertical-align: middle;
}
.material-symbols-outlined[data-weight="fill"] {
	font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Icon container circular */
.endovida-icon-container {
	width: 56px;
	height: 56px;
	min-width: 56px;
	border-radius: 9999px;
	background-color: #b8cad6;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #305ea2;
	transition: transform 0.25s ease;
}

/* Badge / chip */
.endovida-badge {
	display: inline-block;
	background-color: #b8cad6;
	color: #305ea2;
	padding: 4px 16px;
	border-radius: 9999px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
}

/* Rail flotante de redes sociales */
.endovida-social-rail {
	position: fixed;
	top: 50%;
	right: 24px;
	transform: translateY(-50%);
	z-index: 150;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.endovida-social-rail__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 9999px;
	background-color: #305ea2;
	color: #ffffff;
	box-shadow: 0px 10px 30px rgba(43, 90, 158, 0.2);
	transition: background 0.2s, transform 0.2s;
}
.endovida-social-rail__icon svg {
	width: 22px;
	height: 22px;
}
.endovida-social-rail__icon:hover {
	background-color: #0cc0df;
	transform: scale(1.08);
}
.endovida-social-rail__icon--whatsapp {
	background-color: #25d366;
}
.endovida-social-rail__icon--whatsapp:hover {
	background-color: #1ebe5b;
}

/* Overline de sección */
.endovida-overline {
	display: block;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #0cc0df;
}

/* Encabezado de sección centrado */
.endovida-section-header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 48px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.endovida-section-header h2 {
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 700;
}
.endovida-section-header p {
	font-size: 16px;
	color: #3c4b36;
}

/* Check list */
.endovida-check-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.endovida-check-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	font-size: 16px;
	color: #191c1e;
}
.endovida-check-list li .material-symbols-outlined {
	color: #0cc0df;
	font-size: 20px;
	flex-shrink: 0;
}

/* Stars */
.endovida-stars {
	display: flex;
	gap: 2px;
	color: #305ea2;
}
.endovida-stars .material-symbols-outlined { font-size: 18px; }

/* ══════════════════════════════════════════════════════════════
   BOTONES
   ══════════════════════════════════════════════════════════════ */

.endovida-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 28px;
	border-radius: 8px;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	transition: box-shadow 0.2s, transform 0.1s, background 0.2s;
	white-space: nowrap;
}
.endovida-btn:active { transform: scale(0.97); }

.endovida-btn--primary {
	background: #0cc0df;
	color: #191c1e;
	border-color: #0cc0df;
}
.endovida-btn--primary:hover {
	background: #0aa3be;
	color: #191c1e;
	box-shadow: 0 10px 30px rgba(12, 192, 223, 0.35);
}

.endovida-btn--outline {
	background: transparent;
	color: #305ea2;
	border-color: #305ea2;
}
.endovida-btn--outline:hover {
	background: rgba(48, 94, 162, 0.06);
	color: #305ea2;
}

/* ══════════════════════════════════════════════════════════════
   BARRA DE CONTACTO
   ══════════════════════════════════════════════════════════════ */

.endovida-topbar {
	background-color: #305ea2;
	color: #ffffff;
}
.endovida-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 8px;
	font-size: 14px;
	font-weight: 500;
}
.endovida-topbar__label {
	display: flex;
	align-items: center;
	gap: 6px;
	letter-spacing: 0.02em;
	white-space: nowrap;
}
.endovida-topbar__phones {
	display: flex;
	align-items: center;
	gap: 24px;
}
.endovida-topbar__phone {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #ffffff;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.2s;
}
.endovida-topbar__phone:hover { opacity: 0.75; }
.endovida-topbar__label .material-symbols-outlined,
.endovida-topbar__phone .material-symbols-outlined {
	font-size: 18px;
}

/* ══════════════════════════════════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════════════════════════════════ */

.endovida-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(247, 249, 251, 0.88);
	box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
	overflow: visible;
}

.endovida-nav-inner {
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 48px);
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	overflow: visible;
}

.endovida-nav-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}
.endovida-nav-brand img { height: 100px; width: auto; }
.endovida-site-name {
	font-family: "Montserrat", sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #0cc0df;
	text-decoration: none;
}

/* Menú de navegación */
.endovida-nav-menu { flex: 1; }
.endovida-menu {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
}
.endovida-menu a {
	text-decoration: none;
	color: #3c4b36;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
}
.endovida-menu a:hover { color: #305ea2; }

/* Sub-menús nativos de WordPress */
.endovida-menu .sub-menu {
	display: none;
	position: absolute;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0px 10px 30px rgba(43, 90, 158, 0.12);
	padding: 8px 0;
	min-width: 200px;
	z-index: 200;
	flex-direction: column;
	gap: 0;
}
.endovida-menu li { position: relative; }
.endovida-menu li:hover > .sub-menu { display: flex; }
.endovida-menu .sub-menu a { padding: 10px 20px; display: block; }

/* Acciones del nav */
.endovida-nav-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

/* Toggle móvil */
.endovida-menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: #191c1e;
	padding: 4px;
	line-height: 1;
}
.endovida-menu-toggle .material-symbols-outlined { font-size: 28px; }

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */

.endovida-hero {
	position: relative;
	background: #ffffff;
	padding-block: 80px;
}
.endovida-hero__carousel {
	display: grid;
}
.endovida-hero__slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.7s ease, visibility 0s 0.7s;
}
.endovida-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.7s ease;
}
.endovida-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
.endovida-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 9999px;
	border: none;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(8px);
	color: #305ea2;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0px 10px 30px rgba(43, 90, 158, 0.15);
	transition: background 0.2s, color 0.2s;
	z-index: 5;
}
.endovida-hero__arrow:hover {
	background: #0cc0df;
	color: #191c1e;
}
.endovida-hero__arrow--prev { left: 8px; }
.endovida-hero__arrow--next { right: 8px; }
.endovida-hero__dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 32px;
}
.endovida-hero__dot {
	width: 10px;
	height: 10px;
	min-width: 10px;
	padding: 0;
	border: none;
	border-radius: 9999px;
	background: #b8cad6;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}
.endovida-hero__dot:hover { background: #305ea2; }
.endovida-hero__dot.is-active {
	background: #0cc0df;
	transform: scale(1.3);
}
.endovida-hero__title {
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 700;
	line-height: 1.167;
	color: #191c1e;
	margin-bottom: 24px;
}
.endovida-hero__subtitle {
	font-size: 18px;
	line-height: 1.6;
	color: #3c4b36;
	margin-bottom: 32px;
}
.endovida-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.endovida-hero__image-wrap {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
}
.endovida-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.endovida-hero__image-placeholder {
	width: 100%;
	height: 100%;
	min-height: 480px;
	background: #e0e3e5;
}
.endovida-hero__badge {
	position: absolute;
	bottom: 24px;
	left: 24px;
	right: 24px;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	border-radius: 12px;
}
.endovida-hero__badge-icon {
	width: 48px;
	height: 48px;
	min-width: 48px;
	border-radius: 9999px;
	background: rgba(9, 110, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0cc0df;
}
.endovida-hero__badge-title {
	font-weight: 700;
	font-size: 14px;
	color: #191c1e;
	margin-bottom: 2px;
}
.endovida-hero__badge-sub {
	font-size: 13px;
	color: #3c4b36;
}

/* ══════════════════════════════════════════════════════════════
   STATS
   ══════════════════════════════════════════════════════════════ */

.endovida-stats {
	background: #f7f9fb;
	padding-block: 64px;
	border-top: 1px solid rgba(187, 204, 176, 0.35);
	border-bottom: 1px solid rgba(187, 204, 176, 0.35);
}
.endovida-stats__inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	text-align: center;
}
.endovida-stats__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 24px;
}
.endovida-stats__item + .endovida-stats__item {
	border-left: 1px solid rgba(187, 204, 176, 0.45);
}
.endovida-stats__number {
	font-family: "Montserrat", sans-serif;
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 700;
	color: #0cc0df;
	line-height: 1.167;
}
.endovida-stats__label {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #3c4b36;
}

/* ══════════════════════════════════════════════════════════════
   ESPECIALIDADES
   ══════════════════════════════════════════════════════════════ */

.endovida-specialties {
	background: #ffffff;
	padding-block: 80px;
}
.endovida-specialties__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.endovida-specialty-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	border: 1px solid transparent;
	transition: box-shadow 0.25s, border-color 0.25s;
}
.endovida-specialty-card:hover {
	box-shadow: 0px 10px 30px rgba(43, 90, 158, 0.08);
	border-color: rgba(9, 110, 0, 0.18);
}
.endovida-specialty-card:hover .endovida-icon-container {
	transform: scale(1.1);
}
.endovida-specialty-card h3 {
	font-size: 22px;
	font-weight: 600;
	color: #191c1e;
}
.endovida-specialty-card p {
	font-size: 16px;
	line-height: 1.55;
	color: #3c4b36;
	flex-grow: 1;
}
.endovida-card-link {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
	color: #0cc0df;
	text-decoration: none;
	margin-top: auto;
}
.endovida-card-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   EQUIPO MÉDICO — carrusel crossfade
   ══════════════════════════════════════════════════════════════ */

.endovida-team {
	background: #f7f9fb;
	padding-block: 80px;
}

/* Apila todos los slides en la misma celda; el activo es opaco */
.endovida-team__carousel {
	display: grid;
}
.endovida-team__slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.7s ease, visibility 0s 0.7s;
}
.endovida-team__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.7s ease;
}

/* Avatares de navegación */
.endovida-team__nav {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}
.endovida-team__avatar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}
.endovida-team__avatar-ring {
	width: 72px;
	height: 72px;
	border-radius: 9999px;
	overflow: hidden;
	border: 3px solid transparent;
	transition: border-color 0.25s, transform 0.25s;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.endovida-team__avatar.is-active .endovida-team__avatar-ring {
	border-color: #305ea2;
	transform: scale(1.1);
}
.endovida-team__avatar:hover:not(.is-active) .endovida-team__avatar-ring {
	border-color: #b8cad6;
	transform: scale(1.05);
}
.endovida-team__avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.endovida-team__avatar-initials {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #b8cad6;
	font-family: "Montserrat", sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #305ea2;
}
.endovida-team__avatar-name {
	font-size: 12px;
	font-family: "Inter", sans-serif;
	font-weight: 500;
	color: #3c4b36;
	letter-spacing: 0.02em;
	transition: color 0.2s;
	max-width: 96px;
	text-align: center;
	line-height: 1.3;
}
.endovida-team__avatar.is-active .endovida-team__avatar-name {
	color: #305ea2;
	font-weight: 700;
}

/* Card del miembro (reutilizado dentro de cada slide) */
.endovida-doctor__card {
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr 1fr;
}
.endovida-doctor__image-col {
	min-height: 420px;
	overflow: hidden;
}
.endovida-doctor__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.endovida-doctor__image-placeholder {
	width: 100%;
	height: 100%;
	min-height: 420px;
	background: #e0e3e5;
}
.endovida-doctor__content {
	padding: 48px;
	display: flex;
	flex-direction: column;
}
.endovida-doctor__content h2 {
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 600;
	margin: 16px 0 4px;
}
.endovida-doctor__specialty {
	font-family: "Montserrat", sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: #0cc0df;
	margin-bottom: 20px;
}
.endovida-doctor__bio {
	font-size: 17px;
	line-height: 1.6;
	color: #3c4b36;
	margin-bottom: 28px;
}
.endovida-doctor__content .endovida-check-list {
	margin-bottom: 32px;
}
.endovida-doctor__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}


/* ══════════════════════════════════════════════════════════════
   TESTIMONIOS
   ══════════════════════════════════════════════════════════════ */

.endovida-testimonials {
	background: #f2f4f6;
	padding-block: 80px;
}
.endovida-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.endovida-testimonial {
	background: #ffffff;
	border-radius: 16px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: relative;
}
.endovida-quote-icon {
	position: absolute;
	top: 16px;
	left: 20px;
	font-size: 56px;
	line-height: 1;
	color: rgba(9, 110, 0, 0.15);
	pointer-events: none;
	font-family: Georgia, serif;
}
.endovida-testimonial__quote {
	font-size: 16px;
	line-height: 1.6;
	font-style: italic;
	color: #3c4b36;
	position: relative;
	z-index: 1;
}
.endovida-testimonial__author {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: #191c1e;
	margin-top: auto;
}

/* ══════════════════════════════════════════════════════════════
   CONTACTO
   ══════════════════════════════════════════════════════════════ */

.endovida-contact {
	background: #ffffff;
	padding-block: 80px;
}
.endovida-contact__card {
	max-width: 640px;
	margin-inline: auto;
	background: #f7f9fb;
	border-radius: 16px;
	padding: clamp(24px, 4vw, 48px);
}
.endovida-contact__placeholder {
	text-align: center;
	color: #3c4b36;
	font-size: 14px;
}

/* Formulario de Contact Form 7 */
.endovida-contact .wpcf7-form-control-wrap {
	display: block;
}
.endovida-contact .wpcf7-form p {
	margin-bottom: 20px;
}
.endovida-contact .wpcf7-form label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #3c4b36;
	margin-bottom: 6px;
}
.endovida-contact .wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]) {
	width: 100%;
	font-family: "Inter", sans-serif;
	font-size: 16px;
	color: #191c1e;
	background: #ffffff;
	border: 1px solid #bbccb0;
	border-radius: 8px;
	padding: 12px 16px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.endovida-contact textarea.wpcf7-form-control {
	min-height: 140px;
	resize: vertical;
}
.endovida-contact .wpcf7-form-control:focus {
	outline: none;
	border-color: #0cc0df;
	box-shadow: 0 0 0 3px rgba(12, 192, 223, 0.15);
}
.endovida-contact .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 28px;
	border-radius: 8px;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
	background: #0cc0df;
	color: #191c1e;
	border: 2px solid #0cc0df;
	cursor: pointer;
	transition: box-shadow 0.2s, transform 0.1s, background 0.2s;
}
.endovida-contact .wpcf7-submit:hover {
	background: #0aa3be;
	box-shadow: 0 10px 30px rgba(12, 192, 223, 0.35);
}
.endovida-contact .wpcf7-submit:active {
	transform: scale(0.97);
}
.endovida-contact .wpcf7-not-valid-tip {
	color: #b3261e;
	font-size: 13px;
	margin-top: 4px;
}
.endovida-contact .wpcf7-response-output {
	margin-top: 20px;
	border-radius: 8px;
	font-size: 14px;
	font-family: "Inter", sans-serif;
}

/* ══════════════════════════════════════════════════════════════
   PERFIL DE PROFESIONAL (patrón de bloques, páginas genéricas)
   ══════════════════════════════════════════════════════════════ */

.endovida-profile-hero {
	background: linear-gradient(135deg, rgba(12, 192, 223, 0.08), rgba(48, 94, 162, 0.05));
	border-radius: 24px;
	padding: clamp(20px, 4vw, 40px);
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
	align-items: start;
	margin-bottom: 48px;
}
.endovida-profile-hero__image {
	border-radius: 24px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	margin: 0;
}
.endovida-profile-hero__image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover;
	display: block;
	border-radius: 24px;
}
.endovida-profile-section {
	max-width: 720px;
	margin-bottom: 40px;
}
.endovida-profile-section h3 {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 12px;
}
.endovida-profile-section p {
	font-size: 17px;
	line-height: 1.6;
	color: #3c4b36;
}
.endovida-profile-closing {
	text-align: center;
	max-width: 640px;
	margin-inline: auto;
	padding-block: 32px;
	border-top: 1px solid rgba(187, 204, 176, 0.35);
}
.endovida-profile-closing p {
	color: #3c4b36;
	margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
	.endovida-profile-hero {
		grid-template-columns: 1fr;
	}
	.endovida-profile-hero__image {
		aspect-ratio: 16 / 10;
	}
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

.endovida-footer {
	background: #ffffff;
	border-top: 1px solid rgba(187, 204, 176, 0.35);
}
.endovida-footer-inner {
	max-width: 1280px;
	margin-inline: auto;
	padding: 48px clamp(16px, 4vw, 48px) 32px;
}
.endovida-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}
.endovida-footer-logo {
	font-family: "Montserrat", sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #0cc0df;
	display: block;
	margin-bottom: 12px;
	text-decoration: none;
}
.endovida-footer-brand p {
	font-size: 15px;
	color: #3c4b36;
	line-height: 1.6;
	max-width: 340px;
}
.endovida-footer-heading {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #191c1e;
	display: block;
	margin-bottom: 16px;
}
.endovida-footer-links {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.endovida-footer-links a {
	font-size: 15px;
	color: #3c4b36;
	text-decoration: none;
	opacity: 0.85;
}
.endovida-footer-links a:hover {
	color: #0cc0df;
	opacity: 1;
}
.endovida-footer-bottom {
	padding-top: 28px;
	border-top: 1px solid rgba(187, 204, 176, 0.3);
	text-align: center;
}
.endovida-footer-bottom p {
	font-size: 14px;
	color: #3c4b36;
	opacity: 0.75;
}

/* ══════════════════════════════════════════════════════════════
   GINECOLOGÍA — PÁGINA
   ══════════════════════════════════════════════════════════════ */

.endovida-gine-hero {
	background: #ffffff;
	padding-block: 80px;
}
.endovida-gine-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
.endovida-gine-hero__title {
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 700;
	line-height: 1.167;
	color: #191c1e;
	margin: 12px 0 24px;
}
.endovida-gine-hero__subtitle {
	font-size: 18px;
	line-height: 1.6;
	color: #3c4b36;
	margin-bottom: 32px;
}
.endovida-gine-hero__image-wrap {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
}
.endovida-gine-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.endovida-gine-doctors {
	background: #f7f9fb;
	padding-block: 80px;
	border-top: 1px solid rgba(187, 204, 176, 0.35);
	border-bottom: 1px solid rgba(187, 204, 176, 0.35);
}
.endovida-gine-doctors__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
/* Con el 4º profesional el grid pasa a 2×2 (en vez de 3+1 descentrado) y se
   angosta para que las tarjetas no queden desproporcionadamente anchas. */
.endovida-gine-doctors__grid--count-4 {
	grid-template-columns: repeat(2, 1fr);
	max-width: 900px;
	margin-inline: auto;
}
.endovida-gine-doctor__card {
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.endovida-gine-doctor__image-wrap {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.endovida-gine-doctor__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.endovida-gine-doctor__image-placeholder {
	width: 100%;
	height: 100%;
	background: #e0e3e5;
}
.endovida-gine-doctor__content {
	padding: 28px;
	display: flex;
	flex-direction: column;
}
.endovida-gine-doctor__name {
	font-size: 20px;
	font-weight: 600;
	margin: 12px 0 2px;
}
.endovida-gine-doctor__bio {
	font-size: 15px;
	line-height: 1.6;
	color: #3c4b36;
	margin-bottom: 20px;
}
.endovida-gine-doctor__content .endovida-check-list {
	gap: 10px;
	margin-bottom: 20px;
}
.endovida-gine-doctor__content .endovida-check-list li {
	font-size: 14px;
	align-items: flex-start;
}
.endovida-gine-doctor__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.endovida-gine-closing {
	background: #ffffff;
	padding-block: 64px;
}
.endovida-gine-closing__inner {
	max-width: 760px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}
.endovida-gine-closing__inner p {
	font-size: 18px;
	line-height: 1.7;
	color: #3c4b36;
}

/* ══════════════════════════════════════════════════════════════
   KINESIOLOGÍA — PÁGINA
   ══════════════════════════════════════════════════════════════ */

.endovida-kine-hero {
	background: #ffffff;
	padding-block: 80px;
}
.endovida-kine-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
.endovida-kine-hero__text {
	min-width: 0;
}
.endovida-kine-hero__title {
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 700;
	line-height: 1.167;
	color: #191c1e;
	margin: 12px 0 24px;
}
.endovida-kine-hero__subtitle {
	font-size: 18px;
	line-height: 1.6;
	color: #3c4b36;
	margin-bottom: 32px;
}
.endovida-kine-hero__pro {
	margin: -16px 0 32px;
	padding-top: 20px;
	border-top: 1px solid rgba(187, 204, 176, 0.5);
}
.endovida-kine-hero__pro-name {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #305ea2;
	letter-spacing: 0.02em;
	margin-bottom: 12px;
}
.endovida-kine-hero__pro-name .material-symbols-outlined {
	font-size: 18px;
	color: #0cc0df;
}
.endovida-kine-hero__pro-bio {
	font-size: 15px;
	line-height: 1.6;
	color: #3c4b36;
	margin-bottom: 16px;
}
.endovida-kine-hero__pro-creds {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.endovida-kine-hero__pro-creds .endovida-badge {
	font-size: 12px;
	padding: 4px 12px;
}
.endovida-kine-hero__image-wrap {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	min-width: 0;
}
.endovida-kine-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.endovida-kine-mapeo {
	background: #f7f9fb;
	padding-block: 64px;
	border-top: 1px solid rgba(187, 204, 176, 0.35);
	border-bottom: 1px solid rgba(187, 204, 176, 0.35);
}
.endovida-kine-mapeo__inner {
	max-width: 760px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.endovida-kine-mapeo__inner h2 {
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 600;
}
.endovida-kine-mapeo__inner p {
	font-size: 18px;
	line-height: 1.7;
	color: #3c4b36;
}

.endovida-kine-treatments {
	background: #ffffff;
	padding-block: 80px;
}
.endovida-kine-treatments__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.endovida-kine-closing {
	background: #f7f9fb;
	padding-block: 64px;
}
.endovida-kine-closing__inner {
	max-width: 760px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}
.endovida-kine-closing__inner p {
	font-size: 18px;
	line-height: 1.7;
	color: #3c4b36;
}

/* ══════════════════════════════════════════════════════════════
   NUTRICIÓN — PÁGINA
   ══════════════════════════════════════════════════════════════ */

.endovida-nutri-hero {
	background: #ffffff;
	padding-block: 80px;
}
.endovida-nutri-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
.endovida-nutri-hero__title {
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 700;
	line-height: 1.167;
	color: #191c1e;
	margin: 12px 0 24px;
}
.endovida-nutri-hero__subtitle {
	font-size: 18px;
	line-height: 1.6;
	color: #3c4b36;
	margin-bottom: 32px;
}
.endovida-nutri-hero__image-wrap {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
}
.endovida-nutri-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.endovida-nutri-hero__pro {
	margin: -16px 0 32px;
	padding-top: 20px;
	border-top: 1px solid rgba(187, 204, 176, 0.5);
}
.endovida-nutri-hero__pro-name {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #305ea2;
	letter-spacing: 0.02em;
	margin-bottom: 12px;
}
.endovida-nutri-hero__pro-name .material-symbols-outlined {
	font-size: 18px;
	color: #0cc0df;
}
.endovida-nutri-hero__pro-bio {
	font-size: 15px;
	line-height: 1.6;
	color: #3c4b36;
	margin-bottom: 16px;
}
.endovida-nutri-hero__pro-creds {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.endovida-nutri-hero__pro-creds .endovida-badge {
	font-size: 12px;
	padding: 4px 12px;
}

.endovida-nutri-benefits {
	background: #f7f9fb;
	padding-block: 64px;
	border-top: 1px solid rgba(187, 204, 176, 0.35);
	border-bottom: 1px solid rgba(187, 204, 176, 0.35);
}
.endovida-nutri-benefits__inner {
	max-width: 760px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.endovida-nutri-benefits__inner h2 {
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 600;
}
.endovida-nutri-benefits__inner .endovida-check-list {
	margin-top: 8px;
	gap: 12px;
}
.endovida-nutri-benefits__inner .endovida-check-list li {
	font-size: 18px;
	align-items: flex-start;
}

.endovida-nutri-guide {
	background: #ffffff;
	padding-block: 80px;
}
.endovida-nutri-guide__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
}
.endovida-nutri-guide__col h3 {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 20px;
}
.endovida-nutri-guide__col .endovida-check-list li {
	font-size: 16px;
}
.endovida-check-list--avoid li .material-symbols-outlined {
	color: #3c4b36;
}

.endovida-nutri-closing {
	background: #f7f9fb;
	padding-block: 64px;
}
.endovida-nutri-closing__inner {
	max-width: 960px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}
.endovida-nutri-closing__steps {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 20px;
	list-style: none;
}
.endovida-nutri-closing__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: 220px;
}
.endovida-nutri-closing__step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 9999px;
	background: #0cc0df;
	color: #191c1e;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 18px;
}
.endovida-nutri-closing__step-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 18px;
	color: #305ea2;
}
.endovida-nutri-closing__step-desc {
	font-size: 16px;
	line-height: 1.6;
	color: #3c4b36;
}
.endovida-nutri-closing__arrow {
	display: flex;
	align-items: center;
	height: 40px;
	color: #0cc0df;
}
.endovida-nutri-closing__arrow .material-symbols-outlined {
	font-size: 28px;
}

@media (max-width: 768px) {
	.endovida-nutri-closing__steps {
		flex-direction: column;
		align-items: center;
	}
	.endovida-nutri-closing__arrow {
		height: auto;
		transform: rotate(90deg);
	}
}

/* ══════════════════════════════════════════════════════════════
   PSICOLOGÍA — PÁGINA
   ══════════════════════════════════════════════════════════════ */

.endovida-psico-hero {
	background: #ffffff;
	padding-block: 80px;
}
.endovida-psico-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
.endovida-psico-hero__title {
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 700;
	line-height: 1.167;
	color: #191c1e;
	margin: 12px 0 24px;
}
.endovida-psico-hero__subtitle {
	font-size: 18px;
	line-height: 1.6;
	color: #3c4b36;
	margin-bottom: 32px;
}
.endovida-psico-hero__image-wrap {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
}
.endovida-psico-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.endovida-psico-intro {
	background: #f7f9fb;
	padding-block: 64px;
	border-top: 1px solid rgba(187, 204, 176, 0.35);
	border-bottom: 1px solid rgba(187, 204, 176, 0.35);
}
.endovida-psico-intro__inner {
	max-width: 760px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.endovida-psico-intro__inner h2 {
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 600;
}
.endovida-psico-intro__inner p {
	font-size: 18px;
	line-height: 1.7;
	color: #3c4b36;
}

.endovida-psico-goals {
	background: #ffffff;
	padding-block: 80px;
}
.endovida-psico-goals__list {
	max-width: 640px;
	margin-inline: auto;
	gap: 12px;
}
.endovida-psico-goals__list li {
	font-size: 18px;
	align-items: flex-start;
}

.endovida-psico-closing {
	background: #f7f9fb;
	padding-block: 64px;
}
.endovida-psico-closing__inner {
	max-width: 760px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}
.endovida-psico-closing__inner p {
	font-size: 18px;
	line-height: 1.7;
	color: #3c4b36;
}

/* ══════════════════════════════════════════════════════════════
   ACERCA DE NOSOTROS — PÁGINA
   ══════════════════════════════════════════════════════════════ */

.endovida-acerca-hero {
	background: #ffffff;
	padding-block: 80px;
}
.endovida-acerca-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
.endovida-acerca-hero__title {
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 700;
	line-height: 1.167;
	color: #191c1e;
	margin: 12px 0 24px;
}
.endovida-acerca-hero__subtitle {
	font-size: 18px;
	line-height: 1.6;
	color: #3c4b36;
	margin-bottom: 32px;
}
.endovida-acerca-hero__image-wrap {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
}
.endovida-acerca-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.endovida-acerca-who {
	background: #f7f9fb;
	padding-block: 72px;
	border-top: 1px solid rgba(187, 204, 176, 0.35);
	border-bottom: 1px solid rgba(187, 204, 176, 0.35);
}
.endovida-acerca-who__inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 48px;
	align-items: center;
}
.endovida-acerca-who__text {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.endovida-acerca-who__text h2 {
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 600;
	margin-top: 4px;
}
.endovida-acerca-who__text p {
	font-size: 18px;
	line-height: 1.7;
	color: #3c4b36;
}
.endovida-acerca-who__team {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.endovida-acerca-who__badge {
	background: #ffffff;
	border-radius: 16px;
	padding: 24px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	transition: transform 0.25s ease;
}
.endovida-acerca-who__badge:hover {
	transform: translateY(-4px);
}
.endovida-acerca-who__badge:hover .endovida-icon-container {
	background-color: #0cc0df;
	color: #191c1e;
}
.endovida-acerca-who__badge-label {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #191c1e;
}

.endovida-acerca-mission {
	background: #ffffff;
	padding-block: 80px;
}
.endovida-acerca-mission__panel {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-radius: 16px;
	overflow: hidden;
}
.endovida-acerca-mission__card {
	position: relative;
	padding: 48px 40px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	overflow: hidden;
	border-top: 4px solid transparent;
}
.endovida-acerca-mission__card--mission {
	background: rgba(12, 192, 223, 0.07);
	border-top-color: #0cc0df;
}
.endovida-acerca-mission__card--vision {
	background: rgba(48, 94, 162, 0.07);
	border-top-color: #305ea2;
}
.endovida-acerca-mission__watermark {
	position: absolute;
	right: -14px;
	bottom: -22px;
	font-size: 140px;
	line-height: 1;
	z-index: 0;
	pointer-events: none;
}
.endovida-acerca-mission__card--mission .endovida-acerca-mission__watermark {
	color: rgba(12, 192, 223, 0.12);
}
.endovida-acerca-mission__card--vision .endovida-acerca-mission__watermark {
	color: rgba(48, 94, 162, 0.12);
}
.endovida-acerca-mission__card > .endovida-icon-container,
.endovida-acerca-mission__card > h3,
.endovida-acerca-mission__card > p {
	position: relative;
	z-index: 1;
}
.endovida-acerca-mission__card h3 {
	font-family: 'Montserrat', sans-serif;
	font-size: 22px;
	font-weight: 600;
	color: #305ea2;
}
.endovida-acerca-mission__card p {
	font-size: 16px;
	line-height: 1.7;
	color: #3c4b36;
	max-width: 42ch;
}
@media (min-width: 769px) {
	.endovida-acerca-mission__card--mission {
		border-right: 1px solid rgba(187, 204, 176, 0.4);
	}
}

.endovida-acerca-values {
	background: #f7f9fb;
	padding-block: 80px;
	border-top: 1px solid rgba(187, 204, 176, 0.35);
	border-bottom: 1px solid rgba(187, 204, 176, 0.35);
}
.endovida-acerca-values__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.endovida-acerca-value-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.endovida-acerca-value-card h3 {
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: #191c1e;
}
.endovida-acerca-value-card p {
	font-size: 15px;
	line-height: 1.6;
	color: #3c4b36;
}

.endovida-acerca-closing {
	background: #ffffff;
	padding-block: 80px;
}
.endovida-acerca-closing__card {
	max-width: 820px;
	margin-inline: auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding: 56px 40px;
	border-radius: 24px;
	background: linear-gradient(135deg, rgba(12, 192, 223, 0.08), rgba(48, 94, 162, 0.08));
	border: 1px solid rgba(12, 192, 223, 0.18);
}
.endovida-acerca-closing__card p {
	font-size: 20px;
	line-height: 1.6;
	color: #191c1e;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   BLOG / SINGLE / PAGE
   ══════════════════════════════════════════════════════════════ */

.endovida-blog-index,
.endovida-single,
.endovida-page {
	background: #ffffff;
	padding-block: 80px;
}
.endovida-blog-title,
.endovida-single__title,
.endovida-page__title {
	font-size: clamp(28px, 5vw, 48px);
	font-weight: 700;
	color: #191c1e;
	margin-bottom: 48px;
}
.endovida-no-posts {
	font-size: 18px;
	color: #3c4b36;
}
.endovida-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.endovida-post-card {
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.endovida-post-card__image img {
	width: 100%;
	height: 220px;
	object-fit: cover;
}
.endovida-post-card__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex-grow: 1;
}
.endovida-post-card__date {
	font-size: 13px;
	color: #6c7c64;
	letter-spacing: 0.04em;
}
.endovida-post-card__title {
	font-family: "Montserrat", sans-serif;
	font-size: 19px;
	font-weight: 600;
	color: #191c1e;
}
.endovida-post-card__title a { color: inherit; text-decoration: none; }
.endovida-post-card__title a:hover { color: #305ea2; }
.endovida-post-card__excerpt { font-size: 15px; color: #3c4b36; line-height: 1.55; }
.endovida-pagination {
	margin-top: 48px;
	text-align: center;
}
.endovida-single__container,
.endovida-page__container {
	max-width: 800px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 48px);
}
.endovida-single__meta {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 14px;
	color: #6c7c64;
	margin-bottom: 20px;
}
.endovida-single__featured-image {
	margin-bottom: 40px;
}
.endovida-single__featured-image img {
	width: 100%;
	border-radius: 16px;
}
.endovida-single__content {
	font-size: 18px;
	line-height: 1.75;
	color: #191c1e;
}
.endovida-single__content p { margin-bottom: 1.5em; }
.endovida-single__content h2,
.endovida-single__content h3 { margin: 1.5em 0 0.5em; }
.endovida-single__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid rgba(187, 204, 176, 0.4);
}

/* ══════════════════════════════════════════════════════════════
   POPUP DE DERIVACIÓN (Clínica Colonial, portada)
   ══════════════════════════════════════════════════════════════ */

.endovida-popup {
	position: fixed;
	inset: 0;
	z-index: 500;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.endovida-popup.is-open {
	display: flex;
}
.endovida-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(25, 28, 30, 0.55);
	backdrop-filter: blur(2px);
	animation: endovida-popup-fade 0.25s ease;
}
.endovida-popup__card {
	position: relative;
	background: #ffffff;
	border-radius: 16px;
	max-width: 440px;
	width: 100%;
	padding: 40px 32px 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	animation: endovida-popup-rise 0.3s ease;
}
.endovida-popup__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 9999px;
	background: #f7f9fb;
	color: #3c4b36;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.endovida-popup__close:hover {
	background: #b8cad6;
	color: #191c1e;
}
.endovida-popup__icon {
	width: 64px;
	height: 64px;
	border-radius: 9999px;
	background-color: #b8cad6;
	color: #305ea2;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 4px;
}
.endovida-popup__icon .material-symbols-outlined {
	font-size: 32px;
}
.endovida-popup__title {
	font-size: 24px;
	font-weight: 600;
}
.endovida-popup__text {
	font-size: 16px;
	color: #3c4b36;
}
.endovida-popup__text strong,
.endovida-popup__text b {
	color: #191c1e;
	font-weight: 600;
}
.endovida-popup__text a {
	color: #0cc0df;
	font-weight: 500;
	text-decoration: underline;
}
.endovida-popup__text a:hover {
	color: #0aa3be;
}
.endovida-popup__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin-top: 8px;
}
.endovida-popup__actions .endovida-btn {
	width: 100%;
	justify-content: center;
}
.endovida-popup__dismiss {
	background: none;
	border: none;
	color: #3c4b36;
	font-size: 14px;
	font-weight: 500;
	text-decoration: underline;
	cursor: pointer;
	padding: 4px;
}
.endovida-popup__dismiss:hover {
	color: #191c1e;
}

body.has-popup-open {
	overflow: hidden;
}

@keyframes endovida-popup-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes endovida-popup-rise {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
	.endovida-specialties__grid    { grid-template-columns: repeat(2, 1fr); }
	.endovida-posts-grid           { grid-template-columns: repeat(2, 1fr); }
	.endovida-kine-treatments__grid { grid-template-columns: repeat(2, 1fr); }
	.endovida-gine-doctors__grid    { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
	.endovida-acerca-values__grid   { grid-template-columns: repeat(2, 1fr); }

	/* El hero de Kinesiología y Nutrición pasa a 1 columna antes que el resto (1024px, no 768px):
	   el bloque del profesional (bio + chips) alarga bastante la columna de texto,
	   y a un ancho de tablet la imagen quedaba angosta y desproporcionada junto a ese texto. */
	.endovida-kine-hero__inner      { grid-template-columns: 1fr; }
	.endovida-kine-hero__image-wrap { aspect-ratio: 4 / 3; }
	.endovida-nutri-hero__inner      { grid-template-columns: 1fr; }
	.endovida-nutri-hero__image-wrap { aspect-ratio: 4 / 3; }
}

@media (max-width: 768px) {
	/* Barra de contacto */
	.endovida-topbar__inner  { justify-content: center; }
	.endovida-topbar__label  { display: none; }
	.endovida-topbar__phones { gap: 20px; }

	/* Header — menú móvil */
	.endovida-header { position: relative; }
	.endovida-nav-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: rgba(247, 249, 251, 0.98);
		padding: 16px clamp(16px, 4vw, 48px) 24px;
		box-shadow: 0 10px 30px rgba(43, 90, 158, 0.1);
		z-index: 99;
	}
	.endovida-nav-menu.is-open { display: block; }
	.endovida-nav-menu .endovida-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.endovida-nav-menu .endovida-menu a {
		display: block;
		padding: 10px 0;
		font-size: 16px;
	}
	.endovida-menu-toggle { display: flex; }
	.endovida-nav-actions .endovida-btn { display: none; }

	/* Secciones */
	.endovida-hero__inner         { grid-template-columns: 1fr; }
	.endovida-hero__image-wrap    { aspect-ratio: 4 / 3; min-height: unset; }
	.endovida-hero__arrow         { width: 40px; height: 40px; }
	.endovida-stats__inner        { grid-template-columns: repeat(2, 1fr); }
	.endovida-stats__item + .endovida-stats__item { border-left: none; }
	.endovida-stats__item:nth-child(n+3) { border-top: 1px solid rgba(187, 204, 176, 0.4); }
	.endovida-specialties__grid   { grid-template-columns: 1fr; }
	.endovida-kine-treatments__grid { grid-template-columns: 1fr; }
	.endovida-nutri-guide__grid   { grid-template-columns: 1fr; gap: 32px; }
	.endovida-psico-hero__inner   { grid-template-columns: 1fr; }
	.endovida-psico-hero__image-wrap { aspect-ratio: 4 / 3; }
	.endovida-acerca-hero__inner  { grid-template-columns: 1fr; }
	.endovida-acerca-hero__image-wrap { aspect-ratio: 4 / 3; }
	.endovida-acerca-who__inner    { grid-template-columns: 1fr; }
	.endovida-acerca-mission__panel { grid-template-columns: 1fr; }
	.endovida-acerca-mission__card--mission { border-right: none; }
	.endovida-acerca-values__grid  { grid-template-columns: 1fr; }
	.endovida-acerca-closing__card { padding: 40px 24px; }
	.endovida-gine-hero__inner    { grid-template-columns: 1fr; }
	.endovida-gine-hero__image-wrap { aspect-ratio: 4 / 3; }
	.endovida-doctor__card        { grid-template-columns: 1fr; }
	.endovida-doctor__content     { padding: 32px 24px; }
	.endovida-team__nav           { gap: 12px; }
	.endovida-team__avatar-ring   { width: 56px; height: 56px; }
	.endovida-testimonials__grid  { grid-template-columns: 1fr; }
	.endovida-footer-grid         { grid-template-columns: 1fr; gap: 32px; }
	.endovida-posts-grid          { grid-template-columns: 1fr; }

	/* Rail de redes sociales — fila horizontal inferior */
	.endovida-social-rail {
		top: auto;
		bottom: 16px;
		right: 50%;
		transform: translateX(50%);
		flex-direction: row;
	}
}

@media (max-width: 480px) {
	.endovida-hero__actions { flex-direction: column; }
	.endovida-btn           { justify-content: center; }
	.endovida-popup__card   { padding: 32px 20px 24px; }
}
