/* ==========================================================================
   TES · Página "Quiénes Somos"
   Estilos propios de quienes-somos.php (namespace .tes-qs__*).
   Se carga después de estilos.css; reutiliza los tokens de marca del sitio
   y el mismo lenguaje visual de la página "Cobertura Nacional".
   El parallax superior (Misión / Visión / Valores) reutiliza las clases
   .tes-parallax* definidas en estilos.css.
   ========================================================================== */

:root {
	--tes-orange: #c9932b;
	--tes-orange-dark: #b8801f;
	--tes-orange-2: #E35929;
	--tes-ink: #1c1a17;
	--tes-line: rgba(0, 0, 0, .08);
	--tes-radius: 18px;
	--tes-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45);
	--tes-shadow-sm: 0 10px 28px -14px rgba(0, 0, 0, .38);
	--tes-ease: cubic-bezier(.22, .61, .36, 1);
}

/* El <main> de esta página trae su propio espaciado (estilos.css añade
   márgenes por defecto a <main> y a sus <section>). */
main.tes-qs { margin: 0; }
main.tes-qs > section { margin: 0; }

/* El parallax superior usa <h2> (misma apariencia que los <h3> del Inicio):
   estilos.css solo colorea con #c73 los h3 del panel, así que lo replicamos. */
.tes-parallax--panel .texto h2 { color: #c73; }

.tes-qs__ancho { width: min(1200px, 100%); margin-inline: auto; }

.tes-qs__eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--tes-orange-2);
}

/* --------------------------------------------------------------------------
   A) Intro: texto + imagen
   -------------------------------------------------------------------------- */

.tes-qs__intro {
	padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 60px);
	background: #fff;
}

.tes-qs__intro-grid {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.tes-qs__titulo {
	margin: 0 0 18px;
	font-size: clamp(28px, 3.8vw, 46px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.5px;
	color: var(--tes-ink);
}

.tes-qs__texto p {
	margin: 0 0 15px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--tes-ink);
}

.tes-qs__texto .tes-qs__lead {
	font-size: clamp(16px, 1.5vw, 19px);
	line-height: 1.65;
	color: var(--tes-ink);
}

/* Chips de datos */
.tes-qs__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.tes-qs__chips li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	background: #DC7215; /* mismo naranja del pie de página */
	border: 1px solid transparent;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 10px 22px -14px rgba(220, 114, 21, .85);
}

.tes-qs__chips svg { width: 16px; height: 16px; flex: 0 0 auto; color: #fff; }

/* Imagen: limpia, sin marco */
.tes-qs__figura {
	margin: 0;
}

.tes-qs__figura img {
	display: block;
	width: 100%;
	height: auto;
}

/* --------------------------------------------------------------------------
   B) Fortalezas: tarjetas con icono
   -------------------------------------------------------------------------- */

.tes-qs__fortalezas {
	padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 60px) clamp(56px, 8vw, 104px);
	background: #fbf9f5;
}

.tes-qs__head {
	max-width: 780px;
	margin: 0 auto clamp(28px, 4vw, 44px);
	padding: 0;
	text-align: center;
}

.tes-qs__head h2 {
	margin: 0;
	font-size: clamp(26px, 3.2vw, 40px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.4px;
	color: var(--tes-ink);
}

.tes-qs__head p {
	margin: 12px 0 0;
	font-size: 17px;
	line-height: 1.55;
	color: var(--tes-ink);
}

.tes-qs__grid {
	width: min(1200px, 100%);
	margin-inline: auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(20px, 2.5vw, 28px);
}

.tes-qs__card {
	padding: clamp(26px, 3vw, 36px) clamp(22px, 2.5vw, 30px);
	text-align: center;
	background: #fff;
	border: 1px solid var(--tes-line);
	border-radius: var(--tes-radius);
	box-shadow: var(--tes-shadow-sm);
	transition: transform .35s var(--tes-ease), box-shadow .35s var(--tes-ease), border-color .35s var(--tes-ease);
}

.tes-qs__card:hover,
.tes-qs__card:focus-within {
	transform: translateY(-6px);
	border-color: rgba(201, 147, 43, .35);
	box-shadow: var(--tes-shadow);
}

.tes-qs__icono {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: rgba(201, 147, 43, .12);
}

.tes-qs__icono img {
	width: 42px;
	height: 42px;
	object-fit: contain;
}

.tes-qs__card h3 {
	margin: 0 0 10px;
	font-size: clamp(19px, 1.8vw, 22px);
	font-weight: 800;
	line-height: 1.2;
	color: var(--tes-ink);
}

.tes-qs__card p {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--tes-ink);
}

/* --------------------------------------------------------------------------
   C) Mascota: burbuja tipo cómic
   Es un componente compartido (.tes-mascota) definido en css/estilos.css e
   incluido con parciales/mascota.php.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Revelado al hacer scroll (lo activa js/site.js)
   -------------------------------------------------------------------------- */

.tes-qs [data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .75s var(--tes-ease), transform .75s var(--tes-ease);
}

.tes-qs [data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */

@media screen and (max-width: 1024px) {
	.tes-qs__intro-grid { grid-template-columns: 1fr; }
	.tes-qs__grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 640px) {
	.tes-qs__grid { grid-template-columns: 1fr; }
}

/* Accesibilidad: respeta la preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
	.tes-qs__card,
	.tes-qs [data-reveal] { transition: none; transform: none; }
	.tes-qs [data-reveal] { opacity: 1; }
}
