/* Reused styles, layout, components, utilities (sin media queries) */

.sidebar,
article {
	background: var(--eerie-black-2);
	border: 1px solid var(--jet);
	border-radius: 20px;
	padding: 15px;
	box-shadow: var(--shadow-1);
	z-index: 1;
}

.separator {
	width: 100%;
	height: 1px;
	background: var(--jet);
	margin: 16px 0;
}

.icon-box {
	position: relative;
	background: var(--border-gradient-onyx);
	width: 30px;
	height: 30px;
	border-radius: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 16px;
	color: var(--orange-yellow-crayola);
	box-shadow: var(--shadow-1);
	z-index: 1;
}

.icon-box::before {
	content: "";
	position: absolute;
	inset: 1px;
	background: var(--eerie-black-1);
	border-radius: inherit;
	z-index: -1;
}

.icon-box ion-icon {
	--ionicon-stroke-width: 35px;
	padding: 5px;
	font-size: 1.5rem;
}

article {
	display: none;
}
article.active {
	display: block;
	animation: fade 0.5s ease backwards;
}
@keyframes fade {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

.h2,
.h3,
.h4,
.h5 {
	color: var(--white-2);
	text-transform: capitalize;
}
.h2 {
	font-size: var(--fs-1);
}
.h3 {
	font-size: var(--fs-2);
}
.h4 {
	font-size: var(--fs-4);
}
.h5 {
	font-size: var(--fs-7);
	font-weight: var(--fw-500);
}

.article-title {
	position: relative;
	padding-bottom: 7px;
}
.article-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 30px;
	height: 3px;
	background: var(--text-gradient-yellow);
	border-radius: 3px;
}

.has-scrollbar::-webkit-scrollbar {
	width: 5px;
	height: 5px;
}
.has-scrollbar::-webkit-scrollbar-track {
	background: var(--onyx);
	border-radius: 5px;
}
.has-scrollbar::-webkit-scrollbar-thumb {
	background: var(--orange-yellow-crayola);
	border-radius: 5px;
}
.has-scrollbar::-webkit-scrollbar-button {
	width: 20px;
}

.content-card {
	position: relative;
	background: var(--border-gradient-onyx);
	padding: 15px;
	padding-top: 45px;
	border-radius: 14px;
	box-shadow: var(--shadow-2);
	cursor: pointer;
	z-index: 1;
}
.content-card::before {
	content: "";
	position: absolute;
	inset: 1px;
	background: var(--bg-gradient-jet);
	border-radius: inherit;
	z-index: -1;
}

/* MAIN */
main {
	margin: 15px 12px;
	margin-bottom: 75px;
	min-width: 259px;
}

/* SIDEBAR */
.sidebar {
	margin-bottom: 15px;
	max-height: 112px;
	overflow: hidden;
	transition: var(--transition-2);
}
.sidebar.active {
	max-height: 405px;
}
.sidebar-info {
	position: relative;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 15px;
}
.info-content .name {
	color: var(--white-2);
	font-size: var(--fs-1);
	font-weight: var(--fw-500);
	letter-spacing: -0.25px;
	margin-bottom: 10px;
}
.info-content .title {
	color: var(--white-1);
	background: var(--onyx);
	font-size: var(--fs-8);
	font-weight: var(--fw-300);
	width: max-content;
	padding: 3px 12px;
	border-radius: 8px;
}
.info_more-btn {
	position: absolute;
	top: -15px;
	right: -15px;
	border-radius: 0 15px;
	font-size: 13px;
	color: var(--orange-yellow-crayola);
	background: var(--border-gradient-onyx);
	padding: 10px;
	box-shadow: var(--shadow-2);
	transition: var(--transition-1);
	z-index: 1;
}
.info_more-btn::before {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: inherit;
	background: var(--bg-gradient-jet);
	transition: var(--transition-1);
	z-index: -1;
}
.info_more-btn:hover,
.info_more-btn:focus {
	background: var(--bg-gradient-yellow-1);
}
.info_more-btn:hover::before,
.info_more-btn:focus::before {
	background: var(--bg-gradient-yellow-2);
}
.info_more-btn span {
	display: none;
}
.sidebar-info_more {
	opacity: 0;
	visibility: hidden;
	transition: var(--transition-2);
}
.sidebar.active .sidebar-info_more {
	opacity: 1;
	visibility: visible;
}
.contacts-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
.contact-item {
	min-width: 100%;
	display: flex;
	align-items: center;
	gap: 16px;
}
.contact-info {
	max-width: calc(100% - 46px);
	width: calc(100% - 46px);
}
.contact-title {
	color: var(--light-gray-70);
	font-size: var(--fs-6);
	text-transform: uppercase;
	margin-bottom: 2px;
}
.contact-info :is(.contact-link, time, address) {
	color: var(--white-2);
	font-size: var(--fs-6);
}
.contact-info address {
	font-style: normal;
}
.social-list {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 15px;
	padding-bottom: 4px;
	padding-left: 7px;
}
.social-item .social-link {
	color: var(--light-gray-70);
	font-size: 18px;
}
.social-item .social-link:hover {
	color: var(--light-gray);
}
.avatar-box {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 3px solid var(--orange-yellow-crayola);
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}
.avatar-box img {
	height: 100%;
	object-fit: contain;
}

/* NAVBAR */
.navbar {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: var(--bg-secondary);
	backdrop-filter: blur(10px);
	border: 1px solid var(--border-color);
	border-radius: 12px 12px 0 0;
	box-shadow: var(--shadow-2);
	z-index: 5;
}
.navbar-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	padding: 0 10px;
}
.navbar-link {
	color: var(--text-secondary);
	font-size: var(--fs-8);
	padding: 20px 7px;
	transition: color var(--transition-1);
}
.navbar-link:hover,
.navbar-link:focus {
	color: var(--text-primary);
}
.navbar-link.active {
	color: var(--accent-color);
}

/* ABOUT */
.about .article-title {
	margin-bottom: 15px;
}
.about-text {
	color: var(--light-gray);
	font-size: var(--fs-4);
	font-weight: var(--fw-300);
	line-height: 1.6;
}
.about-text p {
	margin-bottom: 15px;
}
.service {
	margin-bottom: 20px;
}
.service-title {
	margin-bottom: 20px;
}
.service-list,
.contact-me-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	padding-bottom: 20px;
}
.service-item,
.contact-me-item {
	position: relative;
	background: var(--border-gradient-onyx);
	padding: 20px;
	border-radius: 14px;
	box-shadow: var(--shadow-2);
	z-index: 1;
}
.service-item::before,
.contact-me-item::before {
	content: "";
	position: absolute;
	inset: 1px;
	background: var(--bg-gradient-jet);
	border-radius: inherit;
	z-index: -1;
}
.service-icon-box {
	margin-bottom: 10px;
}
.service-icon-box img {
	margin: auto;
	filter: brightness(0) saturate(100%) invert(20%) sepia(90%) saturate(2000%) hue-rotate(260deg) brightness(100%) contrast(100%);
}
.service-content-box {
	text-align: center;
}
.service-item-title,
.contact-me-item-title {
	margin-bottom: 7px;
}
.contact-me-item-description {
	color: var(--light-gray);
	font-size: var(--fs-6);
	font-weight: var(--fw-300);
	line-height: 1.6;
}
.service-item-text {
	color: var(--light-gray);
	font-size: var(--fs-5);
	font-weight: var(--fw-3);
	line-height: 1.6;
}

/* MODAL */
.modal-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow-y: auto;
	overscroll-behavior: contain;
	z-index: 20;
	pointer-events: none;
	visibility: hidden;
	padding: 20px;
}
.modal-container::-webkit-scrollbar {
	display: none;
}
.modal-container.active {
	pointer-events: all;
	visibility: visible;
}
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: hsl(0, 0%, 5%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 1;
	transition: var(--transition-1);
}
.overlay.active {
	opacity: 0.8;
	visibility: visible;
	pointer-events: all;
}
.projects-modal {
	background: var(--eerie-black-2);
	position: relative;
	padding: 30px;
	margin: 15px 12px;
	border: 1px solid var(--jet);
	border-radius: 20px;
	box-shadow: var(--shadow-5);
	transform: scale(1.2);
	opacity: 0;
	transition: var(--transition-1);
	z-index: 2;
	display: flex;
	justify-content: flex-start;
	align-items: stretch;
	gap: 25px;
	width: min(1600px, 96vw);
	max-height: 95vh;
	overflow: auto;
}
.modal-container.active .projects-modal {
	transform: scale(1);
	opacity: 1;
}
.modal-close-btn {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 10;
	background: var(--eerie-black-1);
	border-radius: 8px;
	width: 32px;
	height: 32px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--orange-yellow-crayola);
	font-size: 18px;
	opacity: 0.7;
}
.modal-close-btn:hover,
.modal-close-btn:focus {
	opacity: 1;
}
.modal-close-btn ion-icon {
	--ionicon-stroke-width: 50px;
}
.modal-avatar-box {
	border-radius: 18px;
	margin-bottom: 15px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--eerie-black-1);
}
.modal-title {
	margin-bottom: 4px;
}
.modal-content time {
	font-size: var(--fs-6);
	color: var(--light-gray-70);
	font-weight: var(--fw-300);
	margin-bottom: 10px;
}
.modal-content p {
	color: var(--light-gray);
	font-size: var(--fs-6);
	font-weight: var(--fw-300);
	line-height: 1.6;
}
/* Imagen dentro del modal: limitar ancho en pantallas grandes */
.modal-avatar-box img {
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

/* CLIENTS */
.clients {
	margin-bottom: 15px;
}
.clients-list {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 15px;
	margin: 0 -15px;
	padding: 25px;
	padding-bottom: 25px;
	overflow-x: auto;
	scroll-behavior: smooth;
	overscroll-behavior-inline: contain;
	scroll-snap-type: inline mandatory;
	scroll-padding-inline: 25px;
}
.clients-item {
	min-width: 50%;
	scroll-snap-align: start;
}
.clients-item img {
	width: 100%;
	filter: grayscale(1);
	transition: var(--transition-1);
}
.clients-item img:hover {
	filter: grayscale(0);
}

/* RESUME */
.article-title {
	margin-bottom: 30px;
}
.timeline {
	margin-bottom: 30px;
}
.timeline .title-wrapper {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 25px;
}
.timeline-list {
	font-size: var(--fs-6);
	margin-left: 45px;
}
.timeline-item {
	position: relative;
}
.timeline-item:not(:last-child) {
	margin-bottom: 20px;
}
.timeline-item-title {
	font-size: var(--fs-6);
	line-height: 1.3;
	margin-bottom: 7px;
}
.timeline-list span {
	color: var(--accent-color);
	font-weight: var(--fw-400);
	line-height: 1.6;
}
.timeline-item:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 0;
	left: -30px;
	width: 3px;
	height: 100%;
	background: var(--accent-color);
}
.timeline-item::after {
	content: "";
	position: absolute;
	top: 5px;
	left: -33.5px;
	height: 10px;
	width: 10px;
	background: var(--text-gradient-yellow);
	border-radius: 50%;
	box-shadow: 0 0 0 6px var(--jet);
}
.timeline-text {
	color: var(--light-gray);
	font-weight: var(--fw-300);
	line-height: 1.6;
}

/* SKILLS */
.skills-title {
	margin-bottom: 20px;
}
.skill .title-wrapper {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 8px;
}
.skill .title-wrapper data {
	color: var(--light-gray);
	font-size: var(--fs-7);
	font-weight: var(--fw-300);
}
.skill-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	padding-bottom: 20px;
}
.skill-icon-box,
.contact-me-icon-box {
	margin-bottom: 10px;
}
.skill-icon-box img,
.contact-me-icon-box img {
	margin: auto;
	max-width: 120px;
	max-height: 120px;
}
.rounded-background {
	width: 100%;
	height: 100%;
	padding: 2px;
	max-width: 120px;
	max-height: 120px;
	background-color: white;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.skill-icon-box,
.contact-me-icon-box {
	margin-bottom: 0;
	margin-top: 5px;
}
.skill-item {
	position: relative;
	background: var(--border-gradient-onyx);
	padding: 20px;
	border-radius: 14px;
	box-shadow: var(--shadow-2);
	z-index: 1;
}
.skill-item::before {
	content: "";
	position: absolute;
	inset: 1px;
	background: var(--bg-gradient-jet);
	border-radius: inherit;
	z-index: -1;
}
.skill-content-box,
.contact-me-content-box {
	text-align: center;
}
.skill-item-title {
	margin-bottom: 7px;
}

/* PORTFOLIO */
.filter-list {
	display: none;
}
.filter-select-box {
	position: relative;
	margin-bottom: 25px;
}
.filter-list.active {
	display: block;
	align-items: center;
	color: var(--light-gray);
}
.filter-list.active .filter-item {
	padding: 10px;
	cursor: pointer;
}
.filter-list.active .filter-item button {
	background: none;
	border: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	padding: 10px;
	text-align: left;
	width: 100%;
}
.filter-list.active .filter-item button:hover {
	background-color: #f0f0f0;
}
.filter-select {
	background: var(--eerie-black-2);
	color: var(--light-gray);
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--jet);
	border-radius: 14px;
	font-size: var(--fs-6);
	font-weight: var(--fw-300);
}
.filter-select.active .select-icon {
	transform: rotate(0.5turn);
}
.select-list {
	background: var(--eerie-black-2);
	position: absolute;
	top: calc(100% + 6px);
	width: 100%;
	padding: 6px;
	border: 1px solid var(--jet);
	border-radius: 14px;
	z-index: 2;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: 0.15s ease-in-out;
}
.filter-select.active + .select-list {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
}
.select-item button {
	background: var(--eerie-black-2);
	color: var(--light-gray);
	font-size: var(--fs-6);
	font-weight: var(--fw-300);
	text-transform: capitalize;
	width: 100%;
	padding: 8px 10px;
	border-radius: var(--br-1);
}
.select-item button:hover {
	--eerie-black-2: hsl(240, 2%, 20%);
}
.project-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	margin-bottom: 10px;
}
.project-item {
	display: none;
}
.project-item.active {
	display: block;
	animation: scaleUp 0.25s ease forwards;
	box-shadow: var(--shadow-1);
	padding: 13px;
	background: var(--border-gradient-onyx);
	border-radius: var(--br-3);
	transition: box-shadow 0.25s ease, border 0.25s ease;
}
.project-item::before {
	content: "";
	position: absolute;
	inset: 1px;
	background: var(--bg-gradient-jet);
	border-radius: inherit;
	z-index: -1;
}
.project-item.active:hover {
	box-shadow: 0 0 15px var(--orange-yellow-crayola);
	border: 0.2px solid var(--orange-yellow-crayola);
}
@keyframes scaleUp {
	0% {
		transform: scale(0.5);
	}
	100% {
		transform: scale(1);
	}
}
.project-item > a {
	width: 100%;
}
.project-img {
	position: relative;
	width: 100%;
	height: 200px;
	border-radius: var(--br-3);
	overflow: hidden;
	margin-bottom: 15px;
}
.project-img::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	z-index: 1;
	transition: var(--transition-1);
}
.project-item > a:hover .project-img::before {
	background: hsla(0, 0%, 0%, 0.5);
}
.project-item-icon-box {
	--scale: 0.8;
	background: var(--jet);
	color: var(--orange-yellow-crayola);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(var(--scale));
	font-size: 20px;
	padding: 18px;
	border-radius: var(--br-3);
	opacity: 0;
	z-index: 1;
	transition: var(--transition-1);
}
.project-item > a:hover .project-item-icon-box {
	--scale: 1;
	opacity: 1;
}
.project-item-icon-box ion-icon {
	--ionicon-stroke-width: 50px;
}
.project-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition-1);
}
.project-item > a:hover img {
	transform: scale(1.1);
}
.project-title {
	color: var(--white-2);
	font-size: var(--fs-4);
	font-weight: var(--fw-400);
	text-transform: capitalize;
	line-height: 1.3;
	margin-bottom: 5px;
}
.project-category,
.project-link {
	display: inline-block;
	background-color: var(--orange-yellow-crayola);
	color: var(--smoky-black);
	padding: 4px 10px;
	border-radius: var(--br-3);
	font-size: 12px;
	font-weight: bold;
	margin: 5px 0;
	text-align: center;
}

/* BLOG */
.blog-posts {
	margin-bottom: 10px;
}
.blog-posts-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
.blog-post-item > a {
	position: relative;
	background: var(--border-gradient-onyx);
	height: 100%;
	box-shadow: var(--shadow-4);
	border-radius: var(--br-3);
	z-index: 1;
}
.blog-post-item > a::before {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: inherit;
	background: var(--eerie-black-1);
	z-index: -1;
}
.blog-banner-box {
	width: 100%;
	height: 200px;
	border-radius: 12px;
	overflow: hidden;
}
.blog-banner-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition-1);
}
.blog-post-item > a:hover .blog-banner-box img {
	transform: scale(1.1);
}
.blog-content {
	padding: 15px;
}
.blog-meta {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 7px;
	margin-bottom: 10px;
}
.blog-meta :is(.blog-category, time) {
	color: var(--light-gray-70);
	font-size: var(--fs-6);
	font-weight: var(--fw-300);
}
.blog-meta .dot {
	background: var(--light-gray-70);
	width: 4px;
	height: 4px;
	border-radius: 4px;
}
.blog-item-title {
	margin-bottom: 10px;
	line-height: 1.3;
	transition: var(--transition-1);
}
.blog-post-item > a:hover .blog-item-title {
	color: var(--orange-yellow-crayola);
}
.blog-text {
	color: var(--light-gray);
	font-size: var(--fs-6);
	font-weight: var(--fw-300);
	line-height: 1.6;
}

/* CONTACT */
.mapbox {
	position: relative;
	height: 250px;
	width: 100%;
	border-radius: 16px;
	margin-bottom: 30px;
	border: 1px solid var(--jet);
	overflow: hidden;
}
.mapbox figure {
	height: 100%;
}
.mapbox iframe {
	width: 100%;
	height: 100%;
	border: none;
	filter: grayscale(1) invert(1);
}
.contact-form {
	margin-bottom: 10px;
}
.form-title {
	margin-bottom: 20px;
}
.input-wrapper {
	display: grid;
	grid-template-columns: 1fr;
	gap: 25px;
	margin-bottom: 25px;
}
.form-input {
	color: var(--white-2);
	font-size: var(--fs-6);
	font-weight: var(--fw-400);
	padding: 13px 20px;
	border: 1px solid var(--jet);
	border-radius: 14px;
	outline: none;
}
.form-input::placeholder {
	font-weight: var(--fw-500);
}
.form-input:focus {
	border-color: var(--orange-yellow-crayola);
}
textarea.form-input {
	min-height: 100px;
	height: 120px;
	max-height: 200px;
	resize: vertical;
	margin-bottom: 25px;
}
textarea.form-input::-webkit-resizer {
	display: none;
}
.form-input:focus:invalid {
	border-color: var(--bittersweet-shimmer);
}
.form-btn {
	position: relative;
	width: 100%;
	background: var(--border-gradient-onyx);
	color: var(--orange-yellow-crayola);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	padding: 13px 20px;
	border-radius: 14px;
	font-size: var(--fs-6);
	text-transform: capitalize;
	box-shadow: var(--shadow-3);
	z-index: 1;
	transition: var(--transition-1);
}
.form-btn::before {
	content: "";
	position: absolute;
	inset: 1px;
	background: var(--bg-gradient-jet);
	border-radius: inherit;
	z-index: -1;
	transition: var(--transition-1);
}
.form-btn ion-icon {
	font-size: 16px;
}
.form-btn:hover {
	background: var(--bg-gradient-yellow-1);
}
.form-btn:hover::before {
	background: var(--bg-gradient-yellow-2);
}
.form-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}
.form-btn:disabled:hover {
	background: var(--border-gradient-onyx);
}
.form-btn:disabled:hover::before {
	background: var(--bg-gradient-jet);
}

/* UTILIDADES Y EXTRAS */
.project-description {
	display: none;
}
.modal-active .project-description {
	display: block;
	color: var(--light-gray);
	font-size: var(--fs-6);
	font-weight: var(--fw-300);
	padding: 0 0 1em 0;
	line-height: 1.6;
}
.custom-link {
	color: #0000ee;
	text-decoration: none;
}
.custom-link:hover {
	color: lightgray;
}
#lang-toggle {
	margin: 0 0 0 5px;
	cursor: pointer;
	transition: transform 0.3s ease, opacity 0.3s ease;
	animation: scaleUp 0.25s ease forwards;
}
#lang-toggle:hover {
	transform: scale(1.08);
	opacity: 0.8;
}
.timeline-details {
	list-style-type: disc;
	padding-left: 20px;
}
.timeline-details .timeline-text {
	margin-bottom: 5px;
}
.timeline-details .timeline-text::before {
	content: "•";
	color: #f0f0f0;
	display: inline-block;
	width: 1em;
	margin-left: -1em;
}
.project-language,
.project-framework,
.project-library {
	display: inline-block;
	padding: 4px 12px;
	border-radius: var(--br-3);
	font-size: 13px;
	font-weight: 500;
	margin: 4px 6px 4px 0px;
	text-align: center;
	letter-spacing: 0.02em;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: background 0.2s, color 0.2s;
}
.project-language {
	background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
	color: #1a1a1a;
	border: 1px solid #38f9d7;
}
.project-framework {
	background: linear-gradient(90deg, #3a7bd5 0%, #00d2ff 100%);
	color: #fff;
	border: 1px solid #3a7bd5;
}
.project-library {
	background: linear-gradient(90deg, #ff6a00 0%, #ee0979 100%);
	color: #fff;
	border: 1px solid #ee0979;
}
@media (prefers-color-scheme: light) {
	.project-language {
		background: linear-gradient(90deg, #b2ffda 0%, #e0ffe0 100%);
		color: #0a3d2c;
		border: 1px solid #43e97b;
	}
	.project-framework {
		background: linear-gradient(90deg, #b2d8ff 0%, #e0f7ff 100%);
		color: #003366;
		border: 1px solid #3a7bd5;
	}
	.project-library {
		background: linear-gradient(90deg, #ffd6b2 0%, #ffe0e0 100%);
		color: #7a1a1a;
		border: 1px solid #ee0979;
	}
}
.project-framework {
	background-color: var(--blue-framework);
}
.project-library {
	background-color: var(--pink-library);
}
.project-link {
	font-size: 12px;
	font-weight: bold;
	background-color: var(--eerie-black-2);
	border: 1px solid var(--orange-yellow-crayola);
	margin: 5px 0px;
	color: var(--orange-yellow-crayola);
}
.project-link:hover {
	background-color: var(--orange-yellow-crayola);
	color: var(--smoky-black);
}
.project-details-title {
	color: var(--white-2);
	font-size: var(--fs-4);
	font-weight: var(--fw-400);
	text-transform: capitalize;
	line-height: 1.3;
	margin-bottom: 5px;
}
.project-details {
	display: inline-block;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin: 0px 0px 15px 0px;
}
.project-links {
	display: inline-block;
	margin: 0px;
	padding: 0px;
}
.hidden {
	display: none;
}
.img-project {
	width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: var(--br-3);
	transition: var(--transition-1);
}
.contact-link:hover {
	color: var(--orange-yellow-crayola);
}
.project-container {
	display: flex;
	margin: 0px;
	padding: 0px;
	width: 100%;
	justify-content: space-between;
}
@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Loader */
.loader-container {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	background-color: var(--smoky-black);
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 9999;
}
.loader {
	color: #fff;
	font-size: 10px;
	width: 1em;
	height: 1em;
	border-radius: 50%;
	position: relative;
	text-indent: -9999em;
	animation: mulShdSpin 1.3s infinite linear;
	transform: translateZ(0);
}
@keyframes mulShdSpin {
	0%,
	100% {
		box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0;
	}
	12.5% {
		box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
	}
	25% {
		box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
	}
	37.5% {
		box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
	}
	50% {
		box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
	}
	62.5% {
		box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
	}
	75% {
		box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;
	}
	87.5% {
		box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
	}
}

/* SWIPER */
.modal-img-wrapper {
	width: 100%;
	max-width: none;
	margin: 0 auto;
}
.swiper {
	width: 100%;
	padding: 0 0 2em 0;
	overflow: hidden;
}
.swiper-slide {
	width: 100% !important;
	flex-shrink: 0;
}
.swiper-slide img {
	width: 100%;
	height: auto;
	display: block;
}

/* Modal: evitar recorte de imágenes y respetar proporciones */
.projects-modal .img-project {
	width: 100%;
	height: 100%;
	object-fit: contain; /* no crop, añade letterbox si hace falta */
	background: transparent; /* usa el fondo del figure */
}
/* Asegurar que el slide y el figure llenen la altura asignada al swiper */
.modal-img-wrapper .swiper-wrapper,
.modal-img-wrapper .swiper-slide,
.modal-avatar-box {
	height: 100%;
}
.swiper-pagination,
.swiper-button-next,
.swiper-button-prev {
	color: var(--orange-yellow-crayola);
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
	color: var(--white-2);
}
.swiper-pagination-bullet-active {
	background-color: var(--orange-yellow-crayola);
}
.swiper-pagination-bullet:hover {
	color: var(--white-2);
}

/* TIMELINE GRID IMPROVED */
.timeline-item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 24px;
	align-items: flex-start;
}
.timeline-col-left {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding-top: 4px;
}
.timeline-col-right {
	min-width: 0;
	width: 100%;
}
.timeline-logo {
	width: 60px;
	height: 60px;
	padding: 5px;
	object-fit: contain;
	border-radius: 8px;
	margin-bottom: 8px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.349);
	display: block;
}

/* CERTIFICATIONS */
.certifications .title-wrapper { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.cert-grid { list-style: none; padding: 0; margin: 0 0 20px 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.cert-card { position: relative; background: var(--border-gradient-onyx); border-radius: 14px; box-shadow: var(--shadow-2); padding: 16px; z-index: 1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.cert-card::before { content: ""; position: absolute; inset: 1px; background: var(--bg-gradient-jet); border-radius: inherit; z-index: -1; }
.cert-media { display: flex; align-items: center; justify-content: center; }
.cert-logo { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.cert-content { display: flex; flex-direction: column; gap: 6px; }
.cert-title { margin: 0; }
.cert-provider { color: var(--light-gray-70); font-size: var(--fs-7); }
.cert-card-body { display: flex; flex-direction: column; gap: 10px; }
.cert-meta { display: flex; flex-direction: column; gap: 6px; color: var(--light-gray); font-size: var(--fs-6); }
.cert-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Button styles reused */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-size: var(--fs-6); cursor: pointer; transition: var(--transition-1); text-decoration: none; }
.btn-outline { background: var(--eerie-black-2); color: var(--orange-yellow-crayola); border: 1px solid var(--orange-yellow-crayola); }
.btn-outline:hover { background: var(--orange-yellow-crayola); color: var(--smoky-black); }

/* Stacking fallback para pantallas muy pequeñas */
@media (max-width: 470px) {
	.cert-card { grid-template-columns: 1fr; }
	.cert-actions { justify-content: flex-start; }
	.cert-media { justify-content: flex-start; }
}

/* Button styles reused */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-size: var(--fs-6); cursor: pointer; transition: var(--transition-1); text-decoration: none; }
.btn-outline { background: var(--eerie-black-2); color: var(--orange-yellow-crayola); border: 1px solid var(--orange-yellow-crayola); }
.btn-outline:hover { background: var(--orange-yellow-crayola); color: var(--smoky-black); }
