/* =====================================================================
   Extras de widgets Industrio — equipo y testimonios
   Paleta: verde #006414 · oscuro #181818 · gris #5b6167
   Tipografía: Poppins (títulos) / Roboto (texto), heredadas del tema.
   ===================================================================== */

/* =====================================================================
   1. Equipo — bdevs-team
   ===================================================================== */
.bdevs-team {
	position: relative;
	padding: 96px 0;
	background: #fff;
}

.bdevs-team .team-grid {
	row-gap: 30px;
}

.bdevs-team .single-team {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #f4f6f8;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(20, 24, 22, 0.06);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bdevs-team .single-team:hover,
.bdevs-team .single-team:focus-within {
	transform: translateY(-6px);
	box-shadow: 0 24px 46px rgba(20, 24, 22, 0.15);
}

/* --- Retrato --- */
.bdevs-team .team-thumb {
	position: relative;
	padding: 30px 20px 0;
	background: radial-gradient(120% 96% at 50% 4%, #ffffff 0%, #eaf0f2 58%, #dbe4e9 100%);
	overflow: hidden;
}

.bdevs-team .team-thumb::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -168px;
	width: 300px;
	height: 300px;
	transform: translateX(-50%);
	background: rgba(0, 100, 20, 0.07);
	border-radius: 50%;
	z-index: 0;
	transition: transform 0.45s ease, background-color 0.45s ease;
}

.bdevs-team .single-team:hover .team-thumb::after {
	transform: translateX(-50%) scale(1.1);
	background: rgba(0, 100, 20, 0.12);
}

.bdevs-team .team-photo {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 300px;
	margin: 0 auto;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.45s ease;
}

.bdevs-team .single-team:hover .team-photo {
	transform: translateY(-8px) scale(1.02);
}

.bdevs-team .team-photo--empty {
	display: block;
	height: 300px;
	background: linear-gradient(160deg, #eef2f4, #dfe6ea);
}

/* --- Redes sociales --- */
.bdevs-team .team-social {
	position: absolute;
	top: 18px;
	right: 14px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateX(14px);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.bdevs-team .single-team:hover .team-social,
.bdevs-team .single-team:focus-within .team-social {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.bdevs-team .team-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: #fff;
	color: #006414;
	border-radius: 50%;
	box-shadow: 0 6px 16px rgba(20, 24, 22, 0.16);
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.bdevs-team .team-social-link svg {
	width: 15px;
	height: 15px;
	display: block;
}

.bdevs-team .team-social-link:hover,
.bdevs-team .team-social-link:focus-visible {
	background: #006414;
	color: #fff;
	transform: translateY(-2px);
}

/* --- Datos --- */
.bdevs-team .team-info {
	position: relative;
	flex: 1 1 auto;
	padding: 34px 16px 28px;
	background: #fff;
	text-align: center;
}

.bdevs-team .team-info::before {
	content: "";
	position: absolute;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	width: 44px;
	height: 3px;
	border-radius: 2px;
	background: #006414;
}

.bdevs-team .team-name {
	margin: 0 0 6px;
	font-family: var(--font-head, "Poppins", sans-serif);
	font-size: 18.5px;
	font-weight: 600;
	line-height: 1.35;
	color: #181818;
	transition: color 0.25s ease;
}

.bdevs-team .single-team:hover .team-name {
	color: #006414;
}

.bdevs-team .team-role {
	display: inline-block;
	font-family: var(--font-body, "Roboto", sans-serif);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #5b6167;
}

/* --- Variante 2: tarjeta clara con foto a sangre --- */
.bdevs-team.team-style-2 {
	background: #f4f6f8;
}

.bdevs-team.team-style-2 .single-team {
	background: #fff;
}

.bdevs-team.team-style-2 .team-thumb {
	padding: 0;
	background: #e7edf0;
}

.bdevs-team.team-style-2 .team-thumb::after {
	display: none;
}

.bdevs-team.team-style-2 .team-photo {
	height: 320px;
	object-fit: cover;
	object-position: top center;
}

.bdevs-team.team-style-2 .team-photo--empty {
	height: 320px;
}

/* --- Variante 3: foto a sangre con datos superpuestos --- */
.bdevs-team.team-style-3 {
	background: #181818;
}

.bdevs-team.team-style-3 .sec-title {
	color: #fff;
}

.bdevs-team.team-style-3 .sec-title span {
	color: #8ee08a;
}

.bdevs-team.team-style-3 .sec-subtitle {
	color: rgba(255, 255, 255, 0.78);
}

.bdevs-team.team-style-3 .single-team {
	background: #22282e;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.bdevs-team.team-style-3 .team-thumb {
	padding: 0;
	background: #22282e;
}

.bdevs-team.team-style-3 .team-thumb::after {
	display: none;
}

.bdevs-team.team-style-3 .team-photo {
	height: 360px;
	object-fit: cover;
	object-position: top center;
}

.bdevs-team.team-style-3 .team-photo--empty {
	height: 360px;
}

.bdevs-team.team-style-3 .team-info {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 48px 18px 22px;
	background: linear-gradient(to top, rgba(9, 14, 12, 0.94) 0%, rgba(9, 14, 12, 0) 100%);
}

.bdevs-team.team-style-3 .team-info::before {
	display: none;
}

.bdevs-team.team-style-3 .team-name,
.bdevs-team.team-style-3 .single-team:hover .team-name {
	color: #fff;
}

.bdevs-team.team-style-3 .team-role {
	color: #8ee08a;
}

/* =====================================================================
   2. Testimonios — bdevs-testimonial
   ===================================================================== */
.bdevs-testimonial {
	position: relative;
	padding: 96px 0;
	background-color: #f4f6f8;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.bdevs-testimonial .testi-track {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	align-items: stretch;
}

.bdevs-testimonial .testi-item {
	display: flex;
	flex: 0 0 calc(50% - 15px);
	max-width: calc(50% - 15px);
}

.bdevs-testimonial.cols-3 .testi-item {
	flex: 0 0 calc(33.3333% - 20px);
	max-width: calc(33.3333% - 20px);
}

.bdevs-testimonial.cols-1 .testi-item {
	flex: 0 0 100%;
	max-width: 100%;
}

/* --- Tarjeta --- */
.bdevs-testimonial .testi-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	height: 100%;
	padding: 54px 40px 38px;
	text-align: center;
	background: #fff;
	border-top: 3px solid #006414;
	border-radius: 4px;
	box-shadow: 0 14px 36px rgba(20, 24, 22, 0.07);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bdevs-testimonial .testi-item:hover .testi-card {
	transform: translateY(-4px);
	box-shadow: 0 22px 44px rgba(20, 24, 22, 0.12);
}

.bdevs-testimonial .testi-quote {
	position: absolute;
	top: -26px;
	left: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	transform: translateX(-50%);
	background: #006414;
	color: #fff;
	border-radius: 50%;
	box-shadow: 0 10px 24px rgba(0, 100, 20, 0.32);
}

.bdevs-testimonial .testi-quote svg {
	width: 24px;
	height: 24px;
	display: block;
}

.bdevs-testimonial .testi-content {
	flex: 1 1 auto;
	color: #5b6167;
	font-size: 16px;
	line-height: 1.85;
}

.bdevs-testimonial .testi-content h3,
.bdevs-testimonial .testi-content h4 {
	margin: 0 0 12px;
	font-family: var(--font-head, "Poppins", sans-serif);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.4;
	color: #181818;
}

.bdevs-testimonial .testi-content p {
	margin: 0 0 12px;
}

.bdevs-testimonial .testi-content p:last-child {
	margin-bottom: 0;
}

.bdevs-testimonial .testi-content strong {
	color: #181818;
}

/* --- Valoración --- */
.bdevs-testimonial .testi-rating {
	display: flex;
	gap: 3px;
	margin-top: 16px;
	color: #f2a41d;
}

.bdevs-testimonial .testi-rating svg {
	width: 16px;
	height: 16px;
	display: block;
}

/* --- Autor --- */
.bdevs-testimonial .testi-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid #e6e9ec;
}

.bdevs-testimonial .testi-avatar {
	flex: 0 0 62px;
	width: 62px;
	height: 62px;
	object-fit: cover;
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(20, 24, 22, 0.18);
}

.bdevs-testimonial .testi-author {
	text-align: left;
}

.bdevs-testimonial .testi-name {
	margin: 0 0 2px;
	font-family: var(--font-head, "Poppins", sans-serif);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	color: #181818;
}

.bdevs-testimonial .testi-role {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #006414;
}

.bdevs-testimonial .testi-lead {
	max-width: 720px;
	margin: 10px auto 0;
	color: #5b6167;
	font-size: 15px;
}

/* --- Estilo 3: carrusel centrado (scroll-snap, sin JS) --- */
.bdevs-testimonial.testimonial-style-3 {
	background-color: #fff;
}

.bdevs-testimonial.is-carousel .testi-track {
	flex-wrap: nowrap;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 30px 0 20px;
	scrollbar-width: thin;
	scrollbar-color: #006414 #dfe5e8;
}

.bdevs-testimonial.is-carousel .testi-track::-webkit-scrollbar {
	height: 6px;
}

.bdevs-testimonial.is-carousel .testi-track::-webkit-scrollbar-button {
	display: none;
	width: 0;
	height: 0;
}

.bdevs-testimonial.is-carousel .testi-track::-webkit-scrollbar-track {
	background: #dfe5e8;
	border-radius: 3px;
}

.bdevs-testimonial.is-carousel .testi-track::-webkit-scrollbar-thumb {
	background: #006414;
	border-radius: 3px;
}

.bdevs-testimonial.is-carousel .testi-track--scroll:focus-visible {
	outline: 2px solid #006414;
	outline-offset: 6px;
}

.bdevs-testimonial.is-carousel .testi-item {
	flex: 0 0 100%;
	max-width: 100%;
	scroll-snap-align: center;
}

.bdevs-testimonial.is-carousel .testi-card {
	max-width: 860px;
	margin: 0 auto;
	padding: 58px 56px 42px;
}

.bdevs-testimonial.is-carousel .testi-content {
	max-width: 660px;
	margin-right: auto;
	margin-left: auto;
	font-size: 17px;
}

/* --- Estilo 4: banda oscura con imagen --- */
.bdevs-testimonial.testimonial-style-4,
.bdevs-testimonial.has-bg {
	background-color: #181818;
}

.bdevs-testimonial.testimonial-style-4::before,
.bdevs-testimonial.has-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(118deg, rgba(9, 14, 12, 0.93) 0%, rgba(9, 14, 12, 0.8) 52%, rgba(0, 40, 14, 0.9) 100%);
	z-index: 0;
}

.bdevs-testimonial.testimonial-style-4 > .container,
.bdevs-testimonial.has-bg > .container {
	position: relative;
	z-index: 2;
}

.bdevs-testimonial.testimonial-style-4 .sec-title,
.bdevs-testimonial.has-bg .sec-title {
	color: #fff;
}

.bdevs-testimonial.testimonial-style-4 .sec-title span,
.bdevs-testimonial.has-bg .sec-title span {
	color: #8ee08a;
}

.bdevs-testimonial.testimonial-style-4 .sec-subtitle,
.bdevs-testimonial.has-bg .sec-subtitle {
	color: rgba(255, 255, 255, 0.8);
}

.bdevs-testimonial.testimonial-style-4 .testi-card,
.bdevs-testimonial.has-bg .testi-card {
	background: rgba(255, 255, 255, 0.06);
	border-top-color: #8ee08a;
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	border-left: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: none;
}

.bdevs-testimonial.testimonial-style-4 .testi-quote,
.bdevs-testimonial.has-bg .testi-quote {
	background: #8ee08a;
	color: #0b2415;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.bdevs-testimonial.testimonial-style-4 .testi-content,
.bdevs-testimonial.has-bg .testi-content {
	color: rgba(255, 255, 255, 0.86);
}

.bdevs-testimonial.testimonial-style-4 .testi-content h3,
.bdevs-testimonial.testimonial-style-4 .testi-content h4,
.bdevs-testimonial.has-bg .testi-content h3,
.bdevs-testimonial.has-bg .testi-content h4 {
	color: #fff;
}

.bdevs-testimonial.testimonial-style-4 .testi-meta,
.bdevs-testimonial.has-bg .testi-meta {
	border-top-color: rgba(255, 255, 255, 0.16);
}

.bdevs-testimonial.testimonial-style-4 .testi-name,
.bdevs-testimonial.has-bg .testi-name {
	color: #fff;
}

.bdevs-testimonial.testimonial-style-4 .testi-role,
.bdevs-testimonial.has-bg .testi-role {
	color: #8ee08a;
}

.bdevs-testimonial.testimonial-style-4 .testi-track,
.bdevs-testimonial.has-bg .testi-track {
	scrollbar-color: #8ee08a rgba(255, 255, 255, 0.18);
}

.bdevs-testimonial.testimonial-style-4 .testi-track::-webkit-scrollbar-track,
.bdevs-testimonial.has-bg .testi-track::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.18);
}

.bdevs-testimonial.testimonial-style-4 .testi-track::-webkit-scrollbar-thumb,
.bdevs-testimonial.has-bg .testi-track::-webkit-scrollbar-thumb {
	background: #8ee08a;
}

/* =====================================================================
   3. Responsive
   ===================================================================== */
@media (max-width: 991px) {
	.bdevs-team,
	.bdevs-testimonial {
		padding: 64px 0;
	}

	.bdevs-team .team-photo {
		height: 260px;
	}

	.bdevs-testimonial .testi-item {
		flex: 0 0 calc(50% - 15px);
		max-width: calc(50% - 15px);
	}

	.bdevs-testimonial.cols-3 .testi-item {
		flex: 0 0 calc(50% - 15px);
		max-width: calc(50% - 15px);
	}

	.bdevs-testimonial.is-carousel .testi-card {
		padding: 52px 34px 34px;
	}
}

@media (max-width: 767px) {
	.bdevs-team,
	.bdevs-testimonial {
		padding: 52px 0;
	}

	.bdevs-team .team-thumb {
		padding: 24px 16px 0;
	}

	.bdevs-team .team-photo {
		height: 280px;
	}

	.bdevs-testimonial .testi-item,
	.bdevs-testimonial.cols-3 .testi-item {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.bdevs-testimonial .testi-card,
	.bdevs-testimonial.is-carousel .testi-card {
		padding: 46px 22px 30px;
	}

	.bdevs-testimonial .testi-content h3,
	.bdevs-testimonial .testi-content h4 {
		font-size: 18.5px;
	}

	.bdevs-testimonial .testi-meta {
		flex-direction: column;
		gap: 10px;
	}

	.bdevs-testimonial .testi-author {
		text-align: center;
	}
}

/* En dispositivos sin hover los accesos sociales deben estar visibles. */
@media (hover: none) {
	.bdevs-team .team-social {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bdevs-team .single-team,
	.bdevs-team .team-photo,
	.bdevs-team .team-thumb::after,
	.bdevs-team .team-social,
	.bdevs-team .team-social-link,
	.bdevs-testimonial .testi-card {
		transition: none;
	}

	.bdevs-testimonial.is-carousel .testi-track {
		scroll-behavior: auto;
	}
}
