.equipo-grid-section {
	padding: 0;
}

.equipo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.equipo-card {
	position: relative;
	outline: none;
}

.equipo-card__frame {
	position: relative;
	padding-top: 12px;
}

.equipo-card__photo {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 999px;
	overflow: hidden;
	background: #f7f2f7;
	border: 10px solid rgba(255, 255, 255, 0.96);
	box-shadow: 0 22px 36px rgba(39, 22, 45, 0.1);
}

.equipo-card__photo::before {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 999px;
	border: 4px solid #8b1f96;
	border-right-color: transparent;
	border-bottom-color: rgba(139, 31, 150, 0.18);
	pointer-events: none;
}

.equipo-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.equipo-card__fallback {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	font-size: 3rem;
	font-weight: 700;
	color: #8b1f96;
	background: linear-gradient(180deg, #f7f2f7, #ece4f1);
}

.equipo-card__label {
	position: relative;
	z-index: 3;
	margin: -40px auto 0;
	width: calc(100% - 20px);
	text-align: center;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 18px 28px rgba(26, 12, 29, 0.12);
}

.equipo-card__label h3,
.equipo-card__label p {
	margin: 0;
	padding: 0.95rem 1rem;
}

.equipo-card__label h3 {
	background: #8b1f96;
	color: #fff !important;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 1rem;
	line-height: 1.2;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
}

.equipo-card__label p {
	background: #6d7988;
	color: #fff;
	line-height: 1.25;
	font-size: 0.98rem;
}

.equipo-card__hover {
	position: absolute;
	inset: 28px 18px 122px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.7rem;
	padding: 1.4rem 1.2rem 1.15rem;
	border-radius: 34px;
	background: linear-gradient(180deg, rgba(51, 16, 59, 0.18), rgba(51, 16, 59, 0.84));
	color: #fff;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.22s ease, transform 0.22s ease;
	pointer-events: none;
}

.equipo-card:hover .equipo-card__hover,
.equipo-card:focus-within .equipo-card__hover {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.equipo-card__hover strong {
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 1rem;
	line-height: 1.2;
	color: #fff;
}

.equipo-card__hover span {
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.94rem;
}

.equipo-card__bio {
	font-size: 0.85rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.equipo-card__cta {
	align-self: flex-start;
	border: 0;
	border-radius: 999px;
	padding: 0.7rem 1rem;
	background: rgba(255, 255, 255, 0.96);
	color: #5a1968;
	font-family: "Hanken Grotesk", sans-serif;
	font-weight: 700;
	cursor: pointer;
}

.equipo-card__cta:hover {
	background: #fff;
}

.equipo-modal[hidden] {
	display: none;
}

.equipo-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.equipo-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(23, 13, 28, 0.68);
	backdrop-filter: blur(6px);
}

.equipo-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(980px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	margin: 44px auto 16px;
	padding: 1.25rem;
	border-radius: 28px;
	background: #fbf8f5;
	box-shadow: 0 30px 60px rgba(15, 10, 18, 0.24);
	overflow: auto;
}

.equipo-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: rgba(109, 40, 120, 0.08);
	color: #5d1a6b;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.equipo-modal__grid {
	display: grid;
	gap: 1.5rem;
}

.equipo-modal__media {
	border-radius: 28px;
	overflow: hidden;
	background: #f1e9f1;
	min-height: 280px;
}

.equipo-modal__media img,
.equipo-modal__media .equipo-card__fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.equipo-modal__content h3 {
	margin: 0;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	line-height: 1.05;
	color: #5d1a6b;
}

.equipo-modal__role {
	margin: 0.5rem 0 1.2rem;
	font-size: 1.02rem;
	font-weight: 700;
	color: #6d7988;
}

.equipo-modal__bio {
	color: #5d5c63;
	line-height: 1.75;
}

.equipo-modal__bio > :first-child {
	margin-top: 0;
}

.equipo-modal__contact {
	display: grid;
	gap: 0.8rem;
	margin-top: 1.35rem;
}

.equipo-modal__contact a {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	width: fit-content;
	padding: 0.8rem 1rem;
	border-radius: 14px;
	background: rgba(109, 40, 120, 0.08);
	color: #5d1a6b;
	text-decoration: none;
	font-weight: 600;
}

.equipo-empty {
	padding: 1.25rem 1.5rem;
	border: 1px solid rgba(232, 223, 231, 0.9);
	border-radius: 22px;
	background: #fff;
	color: #6f6672;
}

body.equipo-modal-open {
	overflow: hidden;
}

@media (min-width: 860px) {
	.equipo-modal__grid {
		grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
		align-items: start;
	}
}
