/* Directorio MEDCLIC PRO — estilo basado en medclic.mx/servicios.php */
::-webkit-scrollbar { display: none; }
html { font-size: max(12px, 0.833333vw); scroll-behavior: smooth; }
body {
	margin: 0; overflow-x: hidden; -ms-overflow-style: none; scrollbar-width: none;
	background-color: #f6fafe; color: #000; font-family: 'Sarabun', sans-serif;
}
.top-fade {
	position: fixed; top: 0; left: 0; width: 100%; height: 10rem; z-index: 90; pointer-events: none;
	background: linear-gradient(to bottom, #f6fafe 0%, #f6fafe 55%, rgba(246, 250, 254, 0) 100%);
}
.top-bar {
	position: fixed; top: 2rem; left: 3.125rem; right: 3.125rem; z-index: 100;
	display: flex; justify-content: space-between; align-items: flex-start;
}
.top-logo { height: 4.2rem; width: auto; }
.top-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; }
.top-nav a {
	color: #000; text-decoration: none; font-size: 1.05rem; text-transform: uppercase;
	transition: transform 0.2s ease;
}
.top-nav a:hover { transform: translateX(-4px); }
.content-wrapper { position: relative; z-index: 2; padding-top: 12rem; }
.section-pad { padding-left: 3.125rem; padding-right: 3.125rem; box-sizing: border-box; }
.big-title {
	font-weight: 200; font-size: max(2.4rem, 5vw); letter-spacing: -0.02em; color: #000;
	margin: 0 0 1.4rem; line-height: 1.1; text-wrap: balance;
}
.big-title .b { font-weight: 500; }
.clients-line {
	height: 1px; max-width: 76rem; margin: 3rem auto;
	background: linear-gradient(to right, #001f3f, #003b73, #0056b3, #007bff, #33ccff);
}
.glass {
	background: rgba(255, 255, 255, 0.45); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
	border-radius: 2rem; border: 1px solid rgba(255, 255, 255, 0.55);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* ── Home ── */
.dir-hero { max-width: 60rem; margin: 0 auto 4rem; text-align: center; }
.dir-hero .logo-big { height: 8.5rem; width: auto; margin-bottom: 2rem; }
.dir-hero p.lead { font-size: 1.1rem; opacity: 0.7; max-width: 40rem; margin: 0 auto 2.4rem; line-height: 1.6; }
.dir-buscador { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin: 0 auto 1rem; }
.dir-buscador input {
	font-family: 'Sarabun', sans-serif; font-size: 1.05rem; padding: 0.9rem 1.4rem;
	border: 1px solid rgba(0, 59, 115, 0.25); border-radius: 2.5rem; min-width: 16rem;
	background: #fff; outline: none;
}
.dir-buscador input:focus { border-color: #0056b3; box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.12); }
.dir-buscador button {
	font-family: 'Sarabun', sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer;
	padding: 0.9rem 2.4rem; border: none; border-radius: 2.5rem; color: #fff;
	background: linear-gradient(135deg, #001f3f, #0056b3);
	box-shadow: 0 10px 26px -10px rgba(0, 86, 179, 0.6); transition: transform 0.15s;
}
.dir-buscador button:hover { transform: translateY(-2px); }
.dir-confianza { max-width: 72rem; margin: 0 auto 4rem; padding: 3rem; }
.dir-confianza h2 { font-weight: 200; font-size: max(1.8rem, 3vw); margin: 0 0 1.6rem; text-align: center; }
.dir-confianza h2 .b { font-weight: 500; }
.conf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; }
.conf-item { position: relative; padding-left: 20px; }
.conf-item::before {
	content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
	background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2) 10%, rgba(0,0,0,0.2) 90%, rgba(0,0,0,0));
}
.conf-item h3 { font-size: 0.92rem; font-weight: 500; text-transform: uppercase; margin: 0 0 0.4rem; display: flex; align-items: center; gap: 0.45rem; }
.conf-item h3 svg { color: #0056b3; flex-shrink: 0; }
.conf-item p { font-size: 0.93rem; line-height: 1.55; opacity: 0.7; margin: 0; }

/* ── Resultados / tarjeta de doctor ── */
.dir-lista { max-width: 62rem; margin: 0 auto; }
.dir-lista h1 { font-weight: 200; font-size: max(1.9rem, 3.4vw); margin: 0 0 0.4rem; }
.dir-lista .crumbs { font-size: 0.9rem; opacity: 0.6; margin-bottom: 2rem; }
.dr-card {
	position: relative; margin: 4.2rem auto 2.6rem; padding: 2.2rem 2.6rem 2rem;
	max-width: 56rem;
}
.dr-head { display: flex; align-items: center; gap: 2rem; margin-top: -4.6rem; }
.dr-foto {
	width: 10.5rem; height: 10.5rem; border-radius: 50%; object-fit: cover; flex-shrink: 0;
	border: 5px solid #fff; box-shadow: 0 14px 34px -12px rgba(0, 31, 63, 0.45);
	background: linear-gradient(135deg, #001f3f, #0056b3); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 3rem; font-weight: 300; text-decoration: none;
}
.dr-head-tx h2 { font-weight: 500; font-size: 1.6rem; margin: 0 0 0.2rem; }
.dr-head-tx h2 a { color: #000; text-decoration: none; }
.dr-esp { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.65; }
.dr-quote {
	margin: 1.4rem 0 0.6rem; font-style: italic; font-size: 1.15rem; color: #003b73;
	text-align: center;
}
.dr-quote.fx-palpita span { display: inline-block; animation: quotePulse 2.6s ease-in-out infinite; }
@keyframes quotePulse { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.025); } }
.dr-quote.fx-brillo span {
	background: linear-gradient(90deg, #003b73 30%, #33ccff 50%, #003b73 70%);
	background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; animation: quoteBrillo 3s linear infinite; display: inline-block;
}
@keyframes quoteBrillo { to { background-position: -200% center; } }
.dr-quote.fx-escribe span {
	display: inline-block; overflow: hidden; white-space: nowrap; max-width: 100%;
	vertical-align: bottom; border-right: 2px solid #003b73;
	animation: quoteEscribe 3.4s steps(44) infinite alternate;
}
@keyframes quoteEscribe { from { width: 1ch; } 60%, 100% { width: 100%; } }
.dr-loc { font-size: 0.95rem; line-height: 1.6; margin: 1rem 0; }
.dr-loc a { color: #0056b3; font-weight: 700; text-decoration: none; }
.dr-tels { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 0.6rem 0; }
.dr-tel {
	display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.2rem;
	border-radius: 2rem; border: 1.5px solid rgba(0, 59, 115, 0.3); color: #003b73;
	text-decoration: none; font-weight: 700; font-size: 0.9rem; background: #fff;
}
.dr-tel.wa { border-color: #25d366; color: #128c7e; }
.dr-secc { margin: 1.6rem 0 0; padding-top: 1.2rem; border-top: 1px dashed rgba(0, 59, 115, 0.2); }
.dr-secc h3 { font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; margin: 0 0 0.7rem; }
.dr-cred { font-size: 0.9rem; line-height: 1.7; }
.dr-cred b { font-weight: 700; }
.dir-vacio { max-width: 40rem; margin: 3rem auto; text-align: center; opacity: 0.7; font-size: 1.05rem; line-height: 1.7; }

/* Botón flotante de agenda */
.dr-agendar {
	position: fixed; bottom: 2rem; right: 2rem; z-index: 120;
	padding: 1.05rem 2.4rem; border-radius: 3rem; text-decoration: none;
	background: linear-gradient(135deg, #0a7a3d, #16a34a); color: #fff; font-weight: 800; font-size: 1.05rem;
	box-shadow: 0 16px 36px -10px rgba(22, 163, 74, 0.65); animation: agendaPulse 2.4s ease-in-out infinite;
}
@keyframes agendaPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ── Quiero ser Pro ── */
.qsp { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
.qsp h1 { font-weight: 200; font-size: max(2rem, 4vw); }
.qsp h1 .b { font-weight: 500; }
.qsp .paso { display: flex; gap: 1rem; margin: 1.4rem 0; align-items: flex-start; }
.qsp .paso .n {
	width: 2.1rem; height: 2.1rem; border-radius: 50%; flex-shrink: 0; font-weight: 700;
	background: #003b73; color: #fff; display: flex; align-items: center; justify-content: center;
}
.qsp .paso p { margin: 0.2rem 0 0; line-height: 1.6; opacity: 0.8; }
.qsp .req { padding: 0.4rem 0 0.4rem 0.2rem; display: flex; gap: 0.6rem; align-items: flex-start; line-height: 1.55; }
.qsp .req svg { color: #16a34a; flex-shrink: 0; margin-top: 0.2rem; }
.qsp .cta {
	display: inline-block; margin: 2rem 0; padding: 1rem 2.8rem; border-radius: 3rem; text-decoration: none;
	background: linear-gradient(135deg, #001f3f, #0056b3); color: #fff; font-weight: 800; font-size: 1.05rem;
	box-shadow: 0 14px 30px -10px rgba(0, 86, 179, 0.6);
}

.dir-foot { text-align: center; padding: 2rem 1rem 3rem; font-size: 0.9rem; opacity: 0.85; }
.dir-foot-legal { font-size: 0.78rem; opacity: 0.7; max-width: 44rem; margin: 0.5rem auto 0; line-height: 1.6; }
.dir-foot-legal a { color: #0056b3; text-decoration: none; }

@media (max-width: 700px) {
	.top-bar { left: 1.2rem; right: 1.2rem; }
	.section-pad { padding-left: 1.2rem; padding-right: 1.2rem; }
	.dir-hero .logo-big { height: 5.5rem; }
	.dr-head { flex-direction: column; text-align: center; gap: 0.9rem; }
	.dr-card { padding: 1.6rem 1.2rem; }
	.dr-foto { width: 8.5rem; height: 8.5rem; }
	.dr-agendar { left: 1rem; right: 1rem; text-align: center; }
}
