.pde-profiles,
.pde-profiles * {
	box-sizing: border-box;
}

.pde-designer-widget {
	--pde-interaction: #f8690e;
}

.pde-profiles {
	--pde-columns: 3;
	display: grid;
	grid-template-columns: repeat(var(--pde-columns), minmax(0, 1fr));
	column-gap: 44px;
	row-gap: 55px;
	width: 100%;
	margin-inline: auto;
	font-family: "Century Gothic", Montserrat, Arial, sans-serif;
}

.pde-profile {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background-color: #608a98;
	border-radius: 9px;
	box-shadow: 5px 3px 7px rgba(0, 0, 0, 0.26);
}

.pde-profile__top {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	justify-content: flex-start;
	min-height: 166px;
	padding: 27px 22px 17px;
	background-color: #608a98;
}

.pde-profile__accent {
	display: block;
	width: 108px;
	height: 10px;
	flex: 0 0 10px;
	border-radius: 999px;
	background-color: #00c98d;
}

.pde-profile__identity {
	display: flex;
	align-items: center;
	min-width: 0;
	margin-top: 22px;
	gap: 9px;
}

.pde-profile__photo {
	display: block;
	width: 80px;
	height: 80px;
	flex: 0 0 80px;
	overflow: hidden;
	background-color: #fff;
	border-radius: 50%;
	box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.28);
}

.pde-profile__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.pde-profile__name {
	display: flex;
	min-width: 0;
	flex-direction: column;
	margin: 0;
	color: #fff;
	font-family: inherit;
	font-size: 30px;
	font-weight: 700;
	line-height: 0.84;
	letter-spacing: -0.04em;
}

.pde-profile__name span,
.pde-profile__name small {
	display: block;
	overflow-wrap: anywhere;
}

.pde-profile__name small {
	margin-top: 4px;
	font-size: 0.55em;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}

.pde-profile__content {
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
	min-height: 138px;
	padding: 10px 14px 12px;
	background-color: #ff6507;
}

.pde-profile__skills-row {
	display: grid;
	grid-template-columns: 82px minmax(0, 1fr);
	align-items: center;
	gap: 9px;
}

.pde-profile__profession {
	display: flex;
	min-width: 0;
	flex-direction: column;
	color: #050505;
	font-size: 16px;
	font-weight: 700;
	line-height: 0.94;
}

.pde-profile__profession span,
.pde-profile__profession strong {
	display: block;
	overflow-wrap: anywhere;
}

.pde-profile__profession strong {
	font-size: 1.58em;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
}

.pde-profile__badges {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	min-width: 0;
	gap: 5px;
}

.pde-profile__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 33px;
	padding: 2px 7px;
	overflow: hidden;
	font-family: Arial, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	border-radius: 7px;
}

.pde-profile__badge--one {
	height: 41px;
	padding-inline: 9px;
	color: #ff9a00;
	font-size: 26px;
	background-color: #3b0800;
}

.pde-profile__badge--two {
	color: #ff3366;
	background-color: #4b003b;
}

.pde-profile__badge--three {
	color: #31a8ff;
	background-color: #001e36;
}

.pde-profile__description {
	max-width: 190px;
	margin: 14px auto 0;
	color: #fff;
	font-size: 11.5px;
	font-weight: 400;
	line-height: 1.12;
	text-align: center;
}

.pde-profile__button {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 28px;
	padding: 5px 14px;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	background-color: #004c3f;
	border: 0;
	cursor: pointer;
	transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.pde-profile__button:hover,
.pde-profile__button:focus-visible,
.pde-profile__button:active {
	color: #fff;
	text-decoration: none;
	background-color: var(--pde-interaction);
}

.pde-profile__button:focus-visible {
	outline: 3px solid var(--pde-interaction);
	outline-offset: -4px;
}

.pde-profile__button:active {
	transform: scale(0.985);
}

.pde-detail-modal {
	position: fixed;
	z-index: 999990;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 18px;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 200ms ease, visibility 200ms ease;
}

.pde-detail-modal.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.pde-detail-modal__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	appearance: none;
	background-color: rgba(0, 42, 35, 0.82);
	background-image: none;
	cursor: pointer;
}

.pde-detail-modal__backdrop:hover,
.pde-detail-modal__backdrop:focus,
.pde-detail-modal__backdrop:active {
	background-color: #00c577 !important;
	background-image: none !important;
}

.pde-detail-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(780px, 96vw);
	max-height: 96vh;
	overflow: auto;
	border: 4px solid #f8690e;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
	scrollbar-color: #f8690e #ededed;
	scrollbar-width: thin;
}

.pde-detail-modal__close {
	position: sticky;
	z-index: 80;
	top: 12px;
	float: right;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 12px 12px -56px 0;
	padding: 0 0 3px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #f8690e;
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	font-family: Arial, sans-serif;
	font-size: 30px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.pde-detail-modal__close:hover,
.pde-detail-modal__close:focus-visible,
.pde-detail-modal__close:active {
	background: var(--pde-interaction);
	color: #fff;
}

.pde-detail-modal__close:focus-visible {
	outline: 3px solid var(--pde-interaction);
	outline-offset: 3px;
}

.pde-detail-modal__content {
	clear: both;
	padding: 22px 84px 26px;
}

body.pde-detail-modal-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.pde-profiles {
		--pde-columns: 2;
		column-gap: 32px;
		row-gap: 38px;
	}
}

@media (max-width: 767px) {
	.pde-profiles {
		--pde-columns: 1;
		max-width: 320px;
		row-gap: 28px;
	}

	.pde-detail-modal {
		padding: 8px;
	}

	.pde-detail-modal__dialog {
		width: 100%;
		max-height: 98vh;
		border-width: 3px;
		border-radius: 14px;
	}

	.pde-detail-modal__content {
		padding: 14px 8px 18px;
	}

	.pde-detail-modal__close {
		top: 7px;
		width: 40px;
		height: 40px;
		margin: 7px 7px -47px 0;
		font-size: 27px;
	}
}

@media (max-width: 330px) {
	.pde-profile__top {
		padding-inline: 18px;
	}

	.pde-profile__content {
		padding-inline: 11px;
	}

	.pde-profile__skills-row {
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 5px;
	}

	.pde-profile__badges {
		gap: 3px;
	}

	.pde-profile__badge {
		padding-inline: 5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pde-profile__button {
		transition-duration: 0.01ms !important;
	}

	.pde-detail-modal {
		transition-duration: 0.01ms !important;
	}
}

/* Perfiles organizados por cuadrícula según el dispositivo. */
@media (min-width: 768px) and (max-width: 1024px) {
	.pde-profiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pde-profile__identity,
	.pde-profile__skills-row {
		min-width: 0;
	}
}

@media (max-width: 767px) {
	.pde-profiles {
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
		max-width: 390px;
	}

	.pde-profile__name {
		font-size: clamp(23px, 9vw, 30px);
	}

	.pde-profile__badges {
		flex-wrap: wrap;
	}
}

@media (max-width: 380px) {
	.pde-profile__identity {
		display: grid;
		grid-template-columns: 72px minmax(0, 1fr);
	}

	.pde-profile__photo {
		width: 72px;
		height: 72px;
		flex-basis: 72px;
	}

	.pde-profile__skills-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.pde-profile__badges {
		justify-content: flex-start;
	}
}
