/* ==========================================================================
   HOJA DE ESTILOS DEDICADA A LA VISTA SOBRE NOSOTROS (nosotros.css)
   Aplica exclusivamente para la vista: nosotros.php
   ========================================================================== */

/* ==========================================================================
   SECCIÓN 1: CONTENEDOR GENERAL Y ESTRUCTURA BASE
   ========================================================================== */

.nosotros-page {
	width: 100%;
	background-color: var(--bg-site-light);
	color: var(--text-primary);
}

/* ==========================================================================
   SECCIÓN 2: HERO BANNER (Conozca Consultancy)
   ========================================================================== */

/* Imagen de fondo pendiente: assets/img/nosotros/hero.png
   Mientras no exista, se muestra solo el degradado de respaldo. */
.nosotros-hero {
	width: 100%;
	min-height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-image: url('../img/nosotros/noso-hero.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.nosotros-hero-container {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding: 60px 20px;
}

/* Etiqueta morada superior */
.nosotros-hero-label {
	display: inline-block;
	margin-bottom: 12px;
	color: var(--color-primary);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Título H1: "Conozca" oscuro + "Consultancy" morado en segunda línea */
.nosotros-hero-title {
	margin: 0 0 22px;
	color: var(--text-primary);
	font-size: var(--fs-h1);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.nosotros-hero-accent {
	display: block;
	color: var(--color-primary);
}

.nosotros-hero-description {
	max-width: 640px;
	margin: 0 auto;
	color: var(--text-secondary);
	font-size: var(--fs-lg);
	line-height: var(--lh-body);
}

/* Frase inferior con línea decorativa a la izquierda */
.nosotros-hero-tagline {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 26px;
	color: var(--text-secondary);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.nosotros-hero-tagline::before {
	content: '';
	width: 28px;
	height: 2px;
	background-color: var(--color-primary);
	border-radius: 2px;
}

/* ==========================================================================
   SECCIÓN 3: QUIÉNES SOMOS
   ========================================================================== */

.nosotros-about {
	padding: 30px 0 70px;
	background-color: var(--bg-site-light);
}

/* Tarjeta única que contiene imagen + texto */
.nosotros-about-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	align-items: center;
	padding: 70px 40px 45px;
	background: var(--bg-site-light);
	border-radius: 20px;
	border: 1px solid var(--border-light-subtle);
	box-shadow: var(--shadow-card-soft);
}

.nosotros-about-image {
	width: 100%;
	height: 300px;
	overflow: hidden;
	border-radius: 6px;
	box-shadow: var(--shadow-image);
}

.nosotros-about-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.nosotros-section-title {
	margin: 0 0 22px;
	color: var(--text-primary);
	font-size: var(--fs-h2);
	font-weight: 800;
	line-height: var(--lh-heading);
}

.nosotros-about-text {
	margin: 0;
	color: var(--text-secondary);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
}

/* Fila inferior: insignia + valores, separada por una línea */
.nosotros-about-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 26px;
	padding-top: 16px;
	border-top: 1px solid var(--border-light-subtle);
}

.nosotros-highlight {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 18px 9px 14px;
	border-radius: 10px;
	background-color: rgba(var(--color-primary-rgb), 0.07);
	color: var(--color-primary);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nosotros-check {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: var(--color-primary);
	color: var(--text-light);
	font-size: 0.75rem;
}

.nosotros-values {
	color: var(--text-navy);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* ==========================================================================
   SECCIÓN 4: MISIÓN Y VISIÓN
   ========================================================================== */

.nosotros-pillars {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-top: 100px;
}

.nosotros-pillar-card {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 30px 30px 32px;
	background: var(--bg-site-light);
	border-radius: 12px;
	border: 1px solid var(--border-light-subtle);
	box-shadow: var(--shadow-card);
}

.nosotros-pillar-icon {
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: 10px;
	background-color: rgba(var(--color-primary-rgb), 0.1);
	color: var(--color-primary);
	font-size: 1.3rem;
}

.nosotros-pillar-content {
	flex: 1;
}

.nosotros-pillar-content h3 {
	margin: 4px 0 10px;
	color: var(--text-primary);
	font-size: var(--fs-h3);
	font-weight: 700;
}

.nosotros-pillar-content p {
	margin: 0;
	color: var(--text-secondary);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
}

/* ==========================================================================
   SECCIÓN 5: NUESTRO EQUIPO (2 integrantes)
   ========================================================================== */

.nosotros-team {
	padding: 50px 0 110px;
	background-color: var(--bg-section-soft);
}

.nosotros-section-header {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 70px;
}

.nosotros-section-title-center {
	margin: 0;
	color: var(--text-primary);
	font-size: var(--fs-h2);
	font-weight: 800;
	line-height: var(--lh-heading);
}

.nosotros-title-line-center {
	width: 46px;
	height: 3px;
	margin: 10px auto 22px;
	background-color: var(--color-primary);
	border-radius: 10px;
}

.nosotros-section-description {
	margin: 0;
	color: var(--text-secondary);
	font-size: var(--fs-lg);
	line-height: var(--lh-body);
}

/* Dos tarjetas centradas */
.nosotros-team-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 26px;
	max-width: 1040px;
	margin: 0 auto;
}

.nosotros-team-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 34px 36px 30px;
	text-align: left; /* párrafos largos: alineados a la izquierda se leen mejor */
	background: var(--bg-site-light);
	border-radius: 12px;
	border: 1px solid var(--border-light-subtle);
	box-shadow: var(--shadow-card);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.nosotros-team-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-card-hover);
}

/* Área de dirección (etiqueta superior de la tarjeta) */
.nosotros-team-area {
	display: inline-block;
	margin-bottom: 14px;
	padding: 4px 12px;
	border-radius: 50px;
	background: rgba(var(--color-primary-rgb), 0.08);
	color: var(--color-primary);
	font-size: var(--fs-xs);
	font-weight: 600;
}

.nosotros-team-name {
	margin: 0;
	color: var(--text-primary);
	font-size: var(--fs-h3);
	font-weight: 700;
}

.nosotros-team-position {
	display: block;
	min-height: 2.8em; /* reserva 2 líneas: las descripciones empiezan a la misma altura */
	margin: 6px 0 16px;
	line-height: 1.4;
	color: var(--color-primary);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.nosotros-team-text {
	margin: 0 0 18px;
	color: var(--text-secondary);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
}

/* Ícono de LinkedIn sin fondo, en azul oscuro (siempre al pie de la tarjeta) */
.nosotros-team-social {
	margin-top: auto;
	align-self: center; /* centrado en la tarjeta */
	display: inline-flex;
	color: var(--text-navy);
	font-size: 1.9rem;
	line-height: 1;
	text-decoration: none;
	transition:
		color 0.25s ease,
		transform 0.25s ease;
}

.nosotros-team-social:hover {
	color: var(--color-primary);
	transform: translateY(-2px);
}

/* ==========================================================================
   SECCIÓN 6: NUESTRA HISTORIA (Línea de tiempo)
   ========================================================================== */

.nosotros-history {
	padding: 0 0 80px;
	background-color: var(--bg-section-soft);
}

.nosotros-history-card {
	padding: 45px 45px 55px;
	border-radius: 20px;
	border: 1px solid var(--border-light-subtle);
	background: linear-gradient(135deg, var(--bg-lavender-soft) 0%, var(--bg-site-light) 55%, var(--bg-section-soft) 100%);
}

/* Encabezado: título a la izquierda, lema a la derecha */
.nosotros-history-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 30px;
}

.nosotros-history-title {
	margin: 0 0 10px;
	color: var(--text-primary);
	font-size: var(--fs-h2);
	font-weight: 800;
	line-height: var(--lh-heading);
}

.nosotros-history-title span {
	color: var(--color-primary);
}

.nosotros-history-subtitle {
	max-width: 460px;
	margin: 0;
	color: var(--text-secondary);
	font-size: var(--fs-base);
	line-height: 1.6;
}

.nosotros-history-tag {
	flex-shrink: 0;
	padding-bottom: 6px;
	color: var(--text-navy);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: linear-gradient(var(--color-primary), var(--color-primary)) right bottom / 36px 2px no-repeat;
}

/* Cuerpo: imagen + línea de tiempo */
.nosotros-history-body {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 30px;
	align-items: center;
}

.nosotros-history-image {
	position: relative;
	height: 340px;
	overflow: hidden;
	border-radius: 14px;
	box-shadow: var(--shadow-image);
}

.nosotros-history-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.nosotros-history-overlay {
	position: absolute;
	inset: auto 0 0 0;
	padding: 60px 20px 22px;
	background: linear-gradient(to top, rgba(var(--bg-neutral-dark-rgb), 0.85), rgba(var(--bg-neutral-dark-rgb), 0));
	color: var(--text-light);
}

.nosotros-history-overlay span {
	display: block;
	margin-bottom: 6px;
	color: var(--color-primary-light);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.nosotros-history-overlay strong {
	font-size: var(--fs-base);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Línea de tiempo horizontal (escritorio) */
.nosotros-timeline {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Línea conectora entre íconos (::before = base gris, ::after = recorrido morado) */
.nosotros-timeline {
	--progreso: 0; /* Lo actualiza main.js al pasar el cursor por un nodo (0 a 1) */
}

.nosotros-timeline::after {
	content: '';
	position: absolute;
	top: 24px;
	left: 10%;
	width: calc(80% * var(--progreso));
	height: 2px;
	background-color: var(--color-primary);
	transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nosotros-timeline::before {
	content: '';
	position: absolute;
	top: 24px;
	left: 10%;
	right: 10%;
	height: 2px;
	background-color: rgba(var(--color-primary-rgb), 0.2);
}

.nosotros-timeline-item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.nosotros-timeline-icon {
	position: relative;
	z-index: 1;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1.5px solid rgba(var(--color-primary-rgb), 0.45);
	background-color: var(--bg-site-light);
	color: var(--color-primary);
	font-size: 1.15rem;
}

/* Transiciones de los nodos para la animación de recorrido */
.nosotros-timeline-icon {
	transition:
		transform 0.35s ease,
		background-color 0.35s ease,
		border-color 0.35s ease,
		box-shadow 0.35s ease;
}

.nosotros-timeline-year {
	transition: color 0.35s ease;
}

/* Nodos alcanzados por el recorrido: fondo sólido (tinte lavanda sobre blanco)
   para que la línea morada no se vea a través del círculo */
.nosotros-timeline-item.is-reached .nosotros-timeline-icon {
	border-color: var(--color-primary);
	background:
		linear-gradient(rgba(var(--color-primary-rgb), 0.08), rgba(var(--color-primary-rgb), 0.08)),
		var(--bg-site-light);
}

/* El texto de cada hito se levanta al ser alcanzado, uno tras otro */
.nosotros-timeline-content {
	transition: transform 0.4s ease;
}

.nosotros-timeline-item.is-reached .nosotros-timeline-content {
	transform: translateY(-6px);
	transition-delay: calc(var(--i, 0) * 90ms);
}

/* Nodo sobre el que está el cursor */
.nosotros-timeline-item.is-active .nosotros-timeline-icon {
	transform: scale(1.15);
	box-shadow: var(--shadow-primary-glow);
}

.nosotros-timeline-item.is-active .nosotros-timeline-year {
	color: var(--color-primary);
}

.nosotros-timeline-item {
	cursor: default;
}

/* Hito actual ("Hoy") relleno en morado */
.nosotros-timeline-item.is-current .nosotros-timeline-icon,
.nosotros-timeline-item.is-current.is-reached .nosotros-timeline-icon {
	border-color: var(--color-primary);
	background: var(--color-primary);
	color: var(--text-light);
	box-shadow: var(--shadow-primary-glow);
}

/* Punto morado bajo el ícono */
.nosotros-timeline-content::before {
	content: '';
	display: block;
	width: 7px;
	height: 7px;
	margin: 12px auto 10px;
	border-radius: 50%;
	background-color: var(--color-primary);
}

.nosotros-timeline-year {
	display: block;
	color: var(--text-primary);
	font-size: var(--fs-lg);
	font-weight: 800;
}

.nosotros-timeline-title {
	display: block;
	margin-bottom: 6px;
	color: var(--color-primary);
	font-size: var(--fs-sm);
	font-weight: 700;
}

.nosotros-timeline-text {
	margin: 0;
	color: var(--text-secondary);
	font-size: var(--fs-sm);
	line-height: 1.55;
}

/* ==========================================================================
   SECCIÓN 7: MEDIA QUERIES (Adaptabilidad Responsiva)
   ========================================================================== */

/* Tablets (<= 991.98px) */
@media (max-width: 991.98px) {
	.nosotros-hero {
		min-height: 360px;
	}

	/* Quiénes somos: imagen arriba, texto abajo */
	.nosotros-about-card {
		grid-template-columns: 1fr;
		padding: 30px;
	}

	.nosotros-about-image {
		height: 320px;
	}

	.nosotros-pillars {
		margin-top: 50px;
		gap: 20px;
	}

	/* Historia: imagen arriba a todo lo ancho */
	.nosotros-history-card {
		padding: 35px 30px 40px;
	}

	.nosotros-history-body {
		grid-template-columns: 1fr;
		gap: 35px;
	}

	.nosotros-history-image {
		height: 260px;
	}
}

/* Teléfonos (<= 767.98px) */
@media (max-width: 767.98px) {
	/* Hero: velo blanco sobre la imagen para asegurar legibilidad */
	.nosotros-hero {
	min-height: 0;
	background-image: url('../img/nosotros/noso-hero.png');
	background-size: cover;
	background-position: center;
	}

	.nosotros-hero-container {
		padding: 50px 20px;
	}

	.nosotros-about {
		padding: 30px 0 50px;
	}

	.nosotros-about-card {
		padding: 18px 18px 24px;
		gap: 22px;
	}

	.nosotros-about-image {
		height: 220px;
		border-radius: 12px;
	}

	.nosotros-section-title {
		margin-bottom: 14px;
	}

	.nosotros-about-footer {
		flex-direction: column;
		align-items: flex-start;
	}

	/* Misión y Visión apiladas */
	.nosotros-pillars {
		grid-template-columns: 1fr;
		margin-top: 30px;
	}

	.nosotros-pillar-card {
		padding: 22px;
		gap: 16px;
	}

	/* Equipo: una tarjeta por fila */
	.nosotros-team {
		padding: 50px 0 60px;
	}

	.nosotros-section-header {
		margin-bottom: 35px;
	}

	.nosotros-team-grid {
		grid-template-columns: 1fr;
		gap: 18px;
		max-width: 420px;
	}

	/* Historia */
	.nosotros-history {
		padding-bottom: 50px;
	}

	.nosotros-history-card {
		padding: 26px 20px 30px;
	}

	.nosotros-history-header {
		flex-direction: column;
		gap: 14px;
		margin-bottom: 24px;
	}

	.nosotros-history-tag {
		background-position: left bottom;
	}

	.nosotros-history-image {
		height: 220px;
	}

	/* Línea de tiempo vertical: ícono a la izquierda, texto a la derecha */
	.nosotros-timeline {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.nosotros-timeline::before {
		top: 24px;
		bottom: 24px;
		left: 23px;
		right: auto;
		width: 2px;
		height: auto;
	}

	.nosotros-timeline::after {
		top: 24px;
		left: 23px;
		width: 2px;
		height: calc((100% - 48px) * var(--progreso));
		transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.nosotros-timeline-item {
		flex-direction: row;
		align-items: flex-start;
		gap: 16px;
		text-align: left;
	}

	.nosotros-timeline-icon {
		flex-shrink: 0;
	}

	.nosotros-timeline-content {
		padding-top: 2px;
	}

	.nosotros-timeline-content::before {
		display: none;
	}

	.nosotros-timeline-text {
		line-height: var(--lh-body);
	}
}

/* Teléfonos pequeños (<= 400px) */
@media (max-width: 400px) {
	.nosotros-pillar-card {
		flex-direction: column;
	}
}

/* Respeta la preferencia del sistema de reducir movimiento */
@media (prefers-reduced-motion: reduce) {
	.nosotros-timeline::after,
	.nosotros-timeline-icon,
	.nosotros-timeline-content {
		transition: none;
	}
}
