/* Podosalut · Servicios — estilos de tarjetas, listado y ficha.
   Identidad corporativa: #43474A (logo), #EAE7E4 (líneas), Montserrat (titulares). */

/* La fuente Montserrat la carga el plugin «Podosalut · Tema». */

:root {
	--ps-brand: #43474A;
	--ps-brand-d: #2e3133;
	--ps-text: #5f6366;
	--ps-muted: #8c9093;
	--ps-bg: #F5F4F2;
	--ps-line: #EAE7E4;
	--ps-wa: #25D366;
	--ps-r: 22px;
	--ps-r-l: 32px;
	--ps-head: "Montserrat", system-ui, sans-serif;
	--ps-ease: cubic-bezier(.2, .7, .2, 1);
	--ps-shadow: 0 24px 60px -28px rgba(46, 49, 51, .35);
}

/* ---------- Botones ---------- */
.ps-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-family: var(--ps-head); font-weight: 600; font-size: .93rem; line-height: 1.2;
	padding: 14px 24px; border-radius: 999px; white-space: nowrap;
	background: var(--ps-brand); color: #fff !important; border: 1.5px solid var(--ps-brand);
	text-decoration: none !important; transition: .3s var(--ps-ease);
}
.ps-btn svg { width: 16px; height: 16px; }
.ps-btn:hover { background: var(--ps-brand-d); border-color: var(--ps-brand-d); }
.ps-btn--sm { padding: 10px 18px; font-size: .84rem; }
.ps-btn--white { background: #fff; color: var(--ps-brand) !important; border-color: #fff; }
.ps-btn--white:hover { background: var(--ps-line); border-color: var(--ps-line); }
.ps-btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); }
.ps-btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.ps-btn--wa { background: var(--ps-wa); border-color: var(--ps-wa); }
.ps-btn--wa:hover { background: #1fb457; border-color: #1fb457; }
.ps-btn--block { display: flex; width: 100%; }

/* ---------- Tarjetas ---------- */
.ps-wrap { width: 100%; }
.ps-cards { display: grid; grid-template-columns: repeat(var(--ps-cols, 3), minmax(0, 1fr)); gap: 26px; }
.ps-card {
	background: #fff; border: 1px solid var(--ps-line); border-radius: var(--ps-r);
	overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s;
}
.ps-card:hover { border-color: #d9d5d1; }
.ps-card__im { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--ps-bg); }
.ps-card__im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-card__num {
	position: absolute; top: 14px; left: 14px; font-family: var(--ps-head); font-size: .75rem; font-weight: 700;
	background: rgba(255,255,255,.92); color: var(--ps-brand); border-radius: 999px; padding: 5px 11px; letter-spacing: .05em;
}
.ps-card__ic {
	width: 56px; height: 56px; border-radius: 50%; background: var(--ps-brand); border: 5px solid #fff;
	display: grid; place-items: center; margin: -28px 0 0 24px; position: relative; z-index: 2;
}
.ps-card__ic img { width: 26px; height: auto; filter: brightness(0) invert(1); }
.ps-card__ic img[src*="/iconos/"] { width: 30px; height: 30px; } /* iconos propios de cada servicio (cuadrados) */
.ps-card__body { padding: 14px 26px 26px; display: flex; flex-direction: column; flex: 1; }
html body .ps-card__title { font-family: var(--ps-head); font-size: 1.2rem; font-weight: 700; line-height: 1.2; margin: 0 0 8px; color: var(--ps-brand); }
html body .ps-card__title a { color: inherit; text-decoration: none; }
html body .ps-card__text { color: var(--ps-text); font-size: .94rem; line-height: 1.6; flex: 1; margin: 0; }
.ps-card .ps-btn { margin-top: 20px; align-self: flex-start; }
.ps-hint { display: none; }

/* ---------- Listas ---------- */
.ps-chips, .ps-links { list-style: none; margin: 0; padding: 0; }
.ps-chips { display: grid; grid-template-columns: repeat(var(--ps-cols, 2), minmax(0, 1fr)); gap: 10px; }
.ps-chips a {
	display: flex; align-items: center; gap: 10px; background: var(--ps-bg); border-radius: 14px; padding: 12px 14px;
	font-family: var(--ps-head); font-weight: 600; font-size: .86rem; color: var(--ps-brand); text-decoration: none; transition: .3s var(--ps-ease);
}
.ps-chips a::before {
	content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
	background: var(--ps-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ps-chips a:hover { background: var(--ps-line); }
.ps-links li { border-bottom: 1px solid var(--ps-line); }
.ps-links a { display: flex; justify-content: space-between; align-items: center; padding: 11px 2px; color: var(--ps-text); text-decoration: none; font-size: .95rem; transition: .25s; }
.ps-links a::after { content: "→"; opacity: 0; }
.ps-links a:hover, .ps-links .is-current a { color: var(--ps-brand); font-weight: 600; }
.ps-links a:hover::after, .ps-links .is-current a::after { opacity: 1; }

/* ---------- Ficha ---------- */
.ps-single { color: var(--ps-brand); }
.ps-container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.ps-kicker { font-family: var(--ps-head); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ps-muted); }
html body .ps-h2 { font-family: var(--ps-head); font-weight: 300; font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.12; letter-spacing: -.015em; margin: 12px 0 0; color: var(--ps-brand); }
html body .ps-h2 b { font-weight: 700; }

.ps-hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; color: #fff; border-radius: 0 0 var(--ps-r-l) var(--ps-r-l); background: var(--ps-brand); }
.ps-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ps-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(46,49,51,.9) 0%, rgba(46,49,51,.65) 45%, rgba(46,49,51,.2) 100%); }
.ps-hero__lines { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.ps-hero__lines path { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1.2; }
.ps-hero__in { position: relative; z-index: 3; width: 100%; padding-top: 110px; padding-bottom: 64px; }
.ps-crumbs { font-family: var(--ps-head); font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.75); display: flex; flex-wrap: wrap; gap: 8px; }
.ps-crumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.ps-crumbs a:hover { color: #fff; }
html body .ps-hero__title { font-family: var(--ps-head); font-weight: 700; font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em; margin: 16px 0 14px; color: #fff; max-width: 860px; }
html body .ps-hero__sub { font-family: var(--ps-head); font-weight: 300; font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: rgba(255,255,255,.9); max-width: 620px; margin: 0; }
.ps-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.ps-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 70px; padding-top: 90px; padding-bottom: 40px; align-items: start; }
html body .ps-content { font-size: 1.04rem; line-height: 1.75; color: var(--ps-text); max-width: 760px; }
.ps-content > * + * { margin-top: 1.1em; }
html body .ps-content .ps-lead { font-family: var(--ps-head); font-weight: 400; font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.55; color: var(--ps-brand); margin: 0 0 1.4em; }
html body .ps-content h2 { font-family: var(--ps-head); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; color: var(--ps-brand); margin: 2.2em 0 .7em; padding-top: 1.6em; border-top: 1px solid var(--ps-line); }
html body .ps-content h3 { font-family: var(--ps-head); font-weight: 600; font-size: 1.15rem; color: var(--ps-brand); }
.ps-content ul, .ps-content ol { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.ps-content ul li { position: relative; padding-left: 32px; }
.ps-content ul li::before {
	content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%;
	background: var(--ps-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ps-content ol { counter-reset: ps; }
.ps-content ol li { counter-increment: ps; position: relative; padding: 16px 18px 16px 64px; background: var(--ps-bg); border-radius: 16px; }
.ps-content ol li::before { content: counter(ps, decimal-leading-zero); position: absolute; left: 18px; top: 15px; font-family: var(--ps-head); font-weight: 700; color: var(--ps-brand); }
.ps-content ol li strong { color: var(--ps-brand); }
.ps-content details { border: 1px solid var(--ps-line); border-radius: 16px; padding: 0 20px; transition: background .3s; }
.ps-content details + details { margin-top: 10px; }
.ps-content details[open] { background: var(--ps-bg); border-color: transparent; }
.ps-content summary { cursor: pointer; list-style: none; font-family: var(--ps-head); font-weight: 600; color: var(--ps-brand); padding: 18px 34px 18px 0; position: relative; }
.ps-content summary::-webkit-details-marker { display: none; }
.ps-content summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; transition: transform .3s; }
.ps-content details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ps-content details > :not(summary) { margin: 0 0 18px; }
.ps-note { font-size: .85rem !important; color: var(--ps-muted) !important; border-left: 3px solid var(--ps-line); padding-left: 14px; margin-top: 2.4em !important; }

.ps-aside { position: sticky; top: 110px; display: grid; gap: 18px; }
.ps-box { border: 1px solid var(--ps-line); border-radius: var(--ps-r); padding: 26px; background: #fff; }
html body .ps-box h2 { font-family: var(--ps-head); font-weight: 700; font-size: 1.2rem; margin: 0 0 10px; color: inherit; }
html body .ps-box p { font-size: .94rem; color: var(--ps-text); margin: 0 0 18px; }
.ps-box--dark { background: var(--ps-brand); border-color: var(--ps-brand); color: #fff; }
html body .ps-box--dark p { color: rgba(255,255,255,.82); }
.ps-box--dark .ps-btn + .ps-btn { margin-top: 10px; }
.ps-box__pie { width: 40px; height: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
html body .ps-box__dir { font-size: .82rem !important; margin: 18px 0 0 !important; color: rgba(255,255,255,.7) !important; }

.ps-related { padding: 110px 0 130px; }
.ps-related__head { text-align: center; margin-bottom: 52px; }
.ps-related__all { text-align: center; margin-top: 44px; }

/* ---------- Animación suave al hacer scroll ---------- */
.ps-js .ps-rv { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.ps-js .ps-rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.ps-js .ps-rv { opacity: 1; transform: none; transition: none; }
	.ps-card, .ps-btn, .ps-chips a { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ps-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ps-body { grid-template-columns: 1fr; gap: 50px; }
	.ps-aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	.ps-container { padding: 0 18px; }
	.ps-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0; padding: 4px 0 14px; scrollbar-width: none; }
	.ps-cards::-webkit-scrollbar { display: none; }
	.ps-card { flex: 0 0 82%; scroll-snap-align: start; }
	.ps-hint { display: flex; gap: 8px; align-items: center; font-family: var(--ps-head); font-weight: 600; font-size: .82rem; color: var(--ps-muted); margin-top: 10px; }
	.ps-hint i { flex: 1; height: 2px; background: var(--ps-line); border-radius: 2px; position: relative; overflow: hidden; }
	.ps-hint b { position: absolute; left: 0; top: 0; bottom: 0; width: 12%; background: var(--ps-brand); border-radius: 2px; }
	.ps-chips { grid-template-columns: 1fr; }
	.ps-hero { min-height: 520px; border-radius: 0 0 26px 26px; }
	.ps-hero::before { background: linear-gradient(0deg, rgba(46,49,51,.94) 0%, rgba(46,49,51,.6) 60%, rgba(46,49,51,.25) 100%); }
	.ps-hero__ctas { flex-direction: column; }
	.ps-body { padding-top: 56px; }
	.ps-aside { grid-template-columns: 1fr; }
	.ps-related { padding: 70px 0 110px; }
	.ps-related__head { text-align: left; }
}

/* Asegura que el texto de la ficha no herede tamaños del kit de Elementor */
html body .ps-content p, html body .ps-content li { font-size: inherit; line-height: inherit; color: inherit; }
html body .ps-single h1, html body .ps-single h2, html body .ps-single h3, html body .ps-wrap h3 { font-family: var(--ps-head); }

/* Enlaces de las migas de pan sobre la foto */
html body .ps-crumbs a { color: rgba(255,255,255,.85); }
html body .ps-crumbs a:hover { color: #fff; }

/* ------------------------------------------------------------------ */
/* Blog: listado y artículos (mismo lenguaje que las fichas)          */
/* ------------------------------------------------------------------ */
.ps-card__meta { font-size: .82rem; letter-spacing: .02em; color: var(--ps-muted, #7a7f83); margin: 0 0 6px; }
.ps-hero--short { min-height: 380px; }
.ps-blog-list { padding-top: 80px; }
.ps-pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.ps-pager .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ps-line); color: var(--ps-brand); text-decoration: none; font-family: var(--ps-head); font-weight: 600; }
.ps-pager .page-numbers.current { background: var(--ps-brand); border-color: var(--ps-brand); color: #fff; }
.ps-empty { text-align: center; font-size: 1.1rem; color: var(--ps-brand); }
.ps-single--post .ps-hero__sub { font-size: 1rem; opacity: .9; }
html body .ps-single--post .ps-content h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.ps-single--post .ps-content a { color: var(--ps-brand); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
	/* En el listado del blog, las tarjetas van en columna (no en carrusel). */
	.ps-cards--grid { display: grid; grid-template-columns: 1fr; overflow: visible; gap: 18px; }
	.ps-cards--grid > .ps-card { min-width: 0; }
	.ps-hero--short { min-height: 360px; }
	.ps-blog-list { padding-top: 50px; }
}

/* Firma de revisión de los artículos del blog. */
.ps-revisor { display: flex; gap: 18px; align-items: center; margin-top: 2.4em; padding: 20px 22px; border-radius: 22px; background: var(--ps-bg); }
.ps-revisor__foto { width: 64px !important; height: 64px !important; border-radius: 50% !important; object-fit: cover; object-position: 50% 35%; flex: none; }
html body .ps-revisor__tit { font-family: var(--ps-head); font-weight: 600; font-size: .98rem; color: var(--ps-brand); margin: 0 0 4px; }
html body .ps-revisor__tit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
html body .ps-revisor__txt { font-size: .86rem; color: var(--ps-text); margin: 0; line-height: 1.5; }
.ps-revisor + .ps-note { margin-top: 1.4em !important; }

/* ---------- Página 404 ---------- */
.ps-404__hero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.ps-404__in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ps-404__num { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 22px); margin: 0; font-family: var(--ps-head); font-weight: 700; font-size: clamp(5.5rem, 16vw, 10rem); line-height: 1; color: var(--ps-brand); letter-spacing: -.02em; }
.ps-404__num img { width: .66em; height: auto; transform: rotate(-8deg); }
html body .ps-404 .ps-404__title { margin: 6px 0 0; font-family: var(--ps-head); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--ps-brand); text-wrap: balance; }
html body .ps-404 .ps-404__lead { margin: 0; max-width: 52ch; color: var(--ps-muted, #65696C); font-size: 1.05rem; line-height: 1.6; }
.ps-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.ps-btn--line { background: transparent; color: var(--ps-brand) !important; border-color: var(--ps-brand); }
.ps-btn--line:hover { background: var(--ps-brand); color: #fff !important; }
.ps-404__more { padding: 0 0 clamp(56px, 8vw, 96px); }
html body .ps-404 .ps-404__h2 { text-align: center; margin: 0 0 24px; font-family: var(--ps-head); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ps-brand); }
.ps-404__list { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ps-404__list a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; font-family: var(--ps-head); font-weight: 600; font-size: .95rem; color: var(--ps-brand) !important; text-decoration: none !important; background: #fff; border: 1px solid var(--ps-line); transition: box-shadow .25s, transform .25s; }
.ps-404__list a:hover { box-shadow: var(--ps-shadow); }
.ps-404__list a:focus-visible { outline: 2px solid var(--ps-brand); outline-offset: 3px; }
.ps-404__ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #F4F2F0; }
.ps-404__ic img { width: 22px; height: 22px; }
.ps-404__contact { text-align: center; margin: 28px 0 0; color: var(--ps-muted, #65696C); }
.ps-404__contact a { color: var(--ps-brand); font-weight: 600; }
/* Con el estilo neumórfico (neu.css): superficies en relieve suave. */
.ps-tema .ps-404__list a { background: var(--neu-bg, #fff); border: 0; box-shadow: var(--neu-out-sm, none); }
.ps-tema .ps-404__list a:hover { box-shadow: var(--neu-in, var(--ps-shadow)); }
.ps-tema .ps-404__ic { background: var(--neu-bg, #F4F2F0); box-shadow: 0 6px 14px rgba(46,49,51,.18); }
@media (max-width: 560px) { .ps-404__actions .ps-btn { flex: 1 1 100%; } }

/* Diez servicios en escritorio: el primero (Podología general) como tarjeta ancha, foto a la izquierda
   (ocupa el ancho de dos columnas) y los otros nueve en 3 × 3, sin tarjeta suelta. Solo con exactamente 10. */
@media (min-width: 1025px) {
	.ps-cards > .ps-card:first-child:nth-last-child(10) {
		--ps-feat-im: calc((100% - 52px) * 2 / 3 + 26px);
		grid-column: 1 / -1; position: relative; justify-content: center; min-height: 360px; padding-left: var(--ps-feat-im);
	}
	.ps-cards > .ps-card:first-child:nth-last-child(10) > .ps-card__im { position: absolute; left: 0; top: 0; bottom: 0; width: var(--ps-feat-im); aspect-ratio: auto; }
	.ps-cards > .ps-card:first-child:nth-last-child(10) > .ps-card__ic { margin: 0 0 0 28px; }
	.ps-cards > .ps-card:first-child:nth-last-child(10) > .ps-card__body { flex: 0 0 auto; padding: 16px 28px 0; }
	.ps-cards > .ps-card:first-child:nth-last-child(10) .ps-card__text { flex: 0 0 auto; }
	.ps-cards > .ps-card:first-child:nth-last-child(10) .ps-card__title { font-size: 1.45rem; }
}
