/* ===== Sobre nosotros (page-sobre-nosotros.php): se apoya en blog.css y components.css ===== */

/* Texto bajo el título del hero */
.page-hero__text { display: block; max-width: 720px; font-size: var(--fs-md); line-height: 1.6; color: rgba(255, 255, 255, .92); }

/* ---------- Introducción ---------- */
.about-intro { padding-top: var(--space-8); }
.page--about .page-hero__box { min-height: 480px; }
.about-intro__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--space-8); align-items: center; }
.about-intro__grid--full { grid-template-columns: minmax(0, 860px); justify-content: center; }
.about-intro__media { position: relative; min-height: 380px; align-self: stretch; border-radius: 20px; overflow: hidden; background: #efe9dc; }
.about-intro__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.about-intro__body > p:first-child { font-size: var(--fs-lg); line-height: 1.7; color: var(--c-secondary); }

/* ---------- Por qué trabajar con nosotros (un solo fondo: la sección; sin tarjetas) ---------- */
.about-why__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--space-8); align-items: stretch; }
.about-why__grid--full { grid-template-columns: 1fr; }
.about-why__media { position: relative; min-height: 440px; border-radius: 20px; overflow: hidden; background: #efe9dc; }
.about-why__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.about-why__head { margin-bottom: var(--space-6); }
.about-why__title { margin: 0 0 var(--space-4); font-size: var(--fs-xl); line-height: 1.2; }
.about-why__text { font-size: var(--fs-md); line-height: 1.65; color: var(--c-text); }
.about-why__text > :last-child { margin-bottom: 0; }
.about-why__list { display: grid; margin: 0; padding: 0; list-style: none; }
.about-why__item { display: flex; align-items: flex-start; gap: var(--space-5); padding: var(--space-5) 0; border-top: 1px solid #e6dfd0; }
.about-why__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-primary); color: var(--c-secondary); }
.about-why__icon .bi { width: 22px; height: 22px; display: block; }
.about-why__item-title { margin: 0 0 var(--space-2); font-size: var(--fs-lg); line-height: 1.3; }
.about-why__item-text { font-size: var(--fs-sm); line-height: 1.7; color: var(--c-text); }
.about-why__item-text > :last-child { margin-bottom: 0; }

/* ---------- Trayectoria en cifras ---------- */
.about-stats__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.about-stats__item { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-4); border-top: 1px solid rgba(255, 255, 255, .18); text-align: center; }
.about-stats__number { font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; line-height: 1; color: var(--c-primary); }
.about-stats__label { font-size: var(--fs-sm); line-height: 1.4; color: rgba(255, 255, 255, .8); }

/* ---------- Equipo ---------- */
.about-team__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }

/* El CTA del final comparte la caja de la entrada */
.page--about .post-cta { background-color: #faf7f2; }

@media (max-width: 1000px) {
	.about-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.about-why__grid, .about-intro__grid { grid-template-columns: 1fr; gap: var(--space-6); }
	.about-intro__media { min-height: 0; aspect-ratio: 16 / 10; }
	.about-why__media { min-height: 0; aspect-ratio: 16 / 10; }
}

@media (max-width: 640px) {
	.about-intro { padding-top: var(--space-7); }
	.page--about .page-hero__box { min-height: 360px; }
	.about-team__grid { grid-template-columns: 1fr; }
	.about-stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
}
