/**
 * Nosotros (page-nosotros) — rediseño «Minimal refinado» (Ola 2, Tanda A — 2026-06-15).
 *
 * SOLO lo específico de esta página. Los primitivos (.dm-eyebrow, .dm-section-head,
 * .dm-title, .dm-lead, .dm-card, .dm-chip, .dm-btn, .dm-bg-*, .dm-cta) son globales
 * (components.css / home.css). Tokens en main.css. Ver DESIGN.md.
 *
 * Depende de main.css + components.css (cascada garantizada en inc/enqueue.php).
 * @package Datamorfosis
 */

/* Container de Nosotros: 1140px como la Home (scoped, no toca el global 1280px). */
.dm-nos-hero .container,
.dm-nos-subnav .container,
.dm-nos-origen .container,
.dm-nos-mision .container,
.dm-nos-filosofia .container,
.dm-nos-equipo .container,
.dm-nos-presencia .container,
.dm-nos-alianzas .container,
.dm-nos-cta .container {
	max-width: 1140px;
	padding-left: 28px;
	padding-right: 28px;
}

/* ================================================
   1. HERO (verde profundo, textura de puntos)
   ================================================ */
.dm-nos-hero {
	position: relative;
	margin-top: 72px; /* offset del header fijo */
	color: #eaf1ef;
	background:
		radial-gradient(820px 420px at 82% -10%, rgba(255, 122, 91, 0.18), transparent 60%),
		radial-gradient(680px 460px at 4% 18%, rgba(90, 120, 114, 0.30), transparent 55%),
		linear-gradient(165deg, #1f3b38, #15302d);
	overflow: hidden;
	padding: clamp(56px, 7vw, 92px) 0 clamp(52px, 6vw, 80px);
}

.dm-nos-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(72% 70% at 50% 30%, #000, transparent);
	mask-image: radial-gradient(72% 70% at 50% 30%, #000, transparent);
	pointer-events: none;
}

.dm-nos-hero .container {
	position: relative;
}

.dm-nos-hero__title {
	font-size: clamp(34px, 4.6vw, 54px);
	line-height: 1.05;
	letter-spacing: -0.03em;
	font-weight: 900;
	color: #fff;
	margin: 16px 0 0;
}

.dm-nos-hero__sub {
	font-size: clamp(16px, 1.6vw, 19px);
	color: #c0d6d0;
	margin: 20px 0 0;
	max-width: 56ch;
	line-height: 1.6;
}

/* ── stat-chips sobre el verde (copiado idéntico de archive-driver.css, Fase 1).
   Scoped por convención del theme: home.css/archive no se encolan aquí. ─────── */
.dm-stat-chips {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.dm-stat-chip {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	background: var(--ondark-surface);
	border: 1px solid var(--ondark-line);
	border-radius: var(--r-pill);
	padding: 8px 16px;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.dm-stat-chip__num {
	color: #fff;
	font-weight: 900;
	font-size: 15px;
}

.dm-stat-chip__label {
	color: var(--ondark-text);
	font-size: 13px;
	font-weight: 700;
}

/* ================================================
   2. SUB-NAV INTERNA (banda clara con borde hairline)
   ================================================ */
.dm-nos-subnav {
	position: sticky;
	top: 72px; /* debajo del header fijo */
	z-index: 20;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}

.dm-nos-subnav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
	list-style: none;
	margin: 0;
	padding: 14px 0;
}

.dm-nos-subnav__list a {
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: var(--muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.dm-nos-subnav__list a:hover {
	color: var(--coral-600);
}

/* ================================================
   3. ORIGEN + STATS
   ================================================ */
.dm-nos-origen__body {
	max-width: 760px;
}

.dm-nos-origen__body p {
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--muted);
	margin: 0 0 20px;
}

.dm-nos-origen__lead {
	font-size: 18.5px !important;
	color: var(--ink) !important;
	font-weight: 500;
}

.dm-nos-origen__body p:last-child {
	margin-bottom: 0;
}

/* ================================================
   4. MISIÓN / VISIÓN / LO QUE HACEMOS
   ================================================ */
.dm-nos-mv {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}

.dm-nos-mv__card {
	border-left: 3px solid var(--coral);
}

.dm-nos-mv__kicker {
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--coral-600);
	margin-bottom: 10px;
}

.dm-nos-mv__card p {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--teal-700);
	font-weight: 500;
}

.dm-nos-hacemos {
	margin-top: clamp(36px, 4vw, 52px);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: clamp(28px, 3.5vw, 44px);
	box-shadow: var(--shadow-layer-sm);
}

.dm-nos-hacemos__title {
	font-size: 21px;
	font-weight: 800;
	color: var(--teal-700);
	letter-spacing: -0.01em;
	margin: 0 0 22px;
}

.dm-nos-hacemos__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 32px;
}

.dm-nos-hacemos__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--muted);
}

.dm-nos-hacemos__list svg {
	width: 20px;
	height: 20px;
	flex: none;
	margin-top: 2px;
	color: var(--coral-600);
}

.dm-nos-hacemos__list strong {
	color: var(--teal-700);
	font-weight: 800;
}

/* ================================================
   5. FILOSOFÍA (3 dm-card)
   ================================================ */
.dm-nos-values {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.dm-nos-value {
	padding-top: 30px;
}

.dm-nos-value__ic {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--teal-700);
	color: #fff;
	margin-bottom: 18px;
	box-shadow: 0 8px 18px -8px var(--teal-700);
}

.dm-nos-value__ic svg {
	width: 26px;
	height: 26px;
}

.dm-nos-value h3 {
	font-size: 18px;
	font-weight: 800;
	color: var(--teal-700);
	letter-spacing: -0.01em;
	margin: 0;
}

.dm-nos-value p {
	font-size: 14.5px;
	color: var(--muted);
	line-height: 1.55;
	margin: 8px 0 0;
}

/* ================================================
   6. EQUIPO (avatares con iniciales, swap-in a <img>)
   ================================================ */
/* Sub-encabezado de grupo (Estrategia / DM Labs). */
.dm-nos-team-group {
	font-size: 18px;
	font-weight: 800;
	color: var(--teal-700);
	letter-spacing: -0.01em;
	margin: 0 0 18px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
}

/* El 2.º grupo (DM Labs) separa del primero. */
.dm-nos-team-group--labs {
	margin-top: clamp(36px, 5vw, 56px);
}

.dm-nos-team {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

/* Dirección destacada: acento coral superior. La tarjeta no tiene overflow:hidden,
   así que el border-top respeta el radio (no se necesita el inset-shadow). */
.dm-nos-member--lead {
	border-top: 3px solid var(--coral);
}

.dm-nos-member {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: 26px 24px;
	box-shadow: var(--shadow-layer-sm);
	transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
	display: flex;
	flex-direction: column;
}

.dm-nos-member:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-layer-lg);
	border-color: transparent;
}

.dm-nos-member__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

/* Avatar de iniciales (gradiente espejo de los testimonios de la Home). */
.dm-nos-member__av {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 800;
	font-size: 21px;
	letter-spacing: 0.01em;
	flex: none;
}

.dm-nos-member__av--primary {
	background: linear-gradient(140deg, var(--teal-700), var(--teal-300));
}

.dm-nos-member__av--teal {
	background: linear-gradient(140deg, var(--teal-500), var(--teal-300));
}

.dm-nos-member__av--coral {
	background: linear-gradient(140deg, var(--coral), #ffb89f);
}

.dm-nos-member__av--sage {
	background: linear-gradient(140deg, var(--teal-300), var(--color-cream));
	color: var(--teal-900);
}

/* Foto real (swap-in): cuando exista <img>, ocupa el lugar del avatar. */
.dm-nos-member__photo {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	flex: none;
	box-shadow: var(--shadow-layer-sm);
}

.dm-nos-member__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dm-nos-member__dept {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--teal-700);
	background: rgba(34, 61, 59, 0.07);
	border-radius: var(--r-pill);
	padding: 5px 11px;
}

.dm-nos-member__dept--labs {
	color: var(--coral-600);
	background: rgba(255, 122, 91, 0.12);
}

.dm-nos-member__name {
	font-size: 18px;
	font-weight: 800;
	color: var(--teal-700);
	letter-spacing: -0.01em;
	margin: 0;
}

.dm-nos-member__role {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--coral-600);
	margin-top: 3px;
}

/* Bio colapsable */
.dm-nos-member__bio-wrap {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.dm-nos-member__bio-wrap.is-expanded {
	max-height: 420px;
}

.dm-nos-member__bio {
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted);
	margin: 14px 0 0;
}

.dm-nos-member__toggle {
	align-self: flex-start;
	margin-top: 14px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 800;
	color: var(--coral-600);
	transition: color 0.2s ease;
}

.dm-nos-member__toggle:hover {
	color: var(--coral);
}

.dm-nos-member__toggle:focus-visible {
	outline: 3px solid var(--coral);
	outline-offset: 3px;
	border-radius: 4px;
}

.dm-nos-member__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.dm-nos-member__tags .dm-chip {
	font-size: 11.5px;
	padding: 4px 10px;
}

/* ================================================
   7. PRESENCIA + 8. ALIANZAS (chips / wordmarks)
   ================================================ */
.dm-nos-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.dm-nos-chips .dm-chip {
	font-size: 14px;
	padding: 8px 18px;
}

.dm-nos-presencia__note {
	text-align: center;
	margin: 26px auto 0;
	max-width: 58ch;
	font-size: 15px;
	color: var(--muted);
	line-height: 1.6;
}

/* ── dm-trust-band (copiado idéntico de archive-driver.css, Fase 1) para las
   alianzas. La banda vive dentro del .container ya acotado de §8, así que su
   .container interno va a ancho completo (sin doble max-width). ─────────────── */
.dm-nos-alianzas .dm-trust-band {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}

.dm-nos-alianzas .dm-trust-band .container {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
	padding-top: 36px;
	padding-bottom: 36px;
}

.dm-nos-alianzas .dm-trust-band .dm-trustbar__label {
	text-align: center;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 20px;
}

.dm-nos-alianzas .dm-trust-band .dm-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 46px;
	align-items: center;
}

.dm-nos-alianzas .dm-trust-band .dm-logos span {
	font-family: var(--font-serif);
	font-size: 23px;
	font-weight: 500;
	color: var(--teal-700);
	opacity: 0.45;
	letter-spacing: 0.01em;
	transition: opacity 0.2s ease;
}

.dm-nos-alianzas .dm-trust-band .dm-logos span:hover {
	opacity: 0.9;
}

/* ================================================
   9. Footer: fundir el CTA verde con el footer (igual que la Home).
   El margin-top global del .site-footer mete una banda blanca. Lo anulamos
   SOLO en esta página (clase de slug portable, ver functions.php).
   ================================================ */
body.page-slug-nosotros .site-footer {
	margin-top: 0;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 980px) {
	.dm-nos-team {
		grid-template-columns: repeat(2, 1fr);
	}
	.dm-nos-values {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.dm-nos-mv {
		grid-template-columns: 1fr;
	}
	.dm-nos-hacemos__list {
		grid-template-columns: 1fr;
	}
	.dm-nos-team {
		grid-template-columns: 1fr;
	}
}
