* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins';
	text-decoration: none;
	scroll-behavior: smooth;
	list-style: none;
}

:root {
	--bg-color: #121212;
	--text-color: #ffffff;
	--accent-color: #00AFFF;
	--accent-color-2: #FF00FF;
	--gradient: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
	--gradient-reverse: linear-gradient(to right, rgb(255, 0, 255), rgb(0, 157, 255));
}

a {
	color: inherit;
	text-decoration: none;
}

/*p {
	display: -webkit-box;
	-webkit-line-clamp: 12;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
*/
header {
	position: fixed;
	top: 1rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5rem;
	background-color: rgba(35, 35, 35, 0.8);
	backdrop-filter: blur(8px);
	color: white;
	padding: 0.5rem 1.5rem;
	transition: background 0.6s ease, backdrop-filter 0.6s ease;
	/* transición suave */
	border-radius: 3rem;
	z-index: 1000;
}

header.scrolled {

	background: rgba(17, 17, 17, 0.7);
	/* translucent black */
	backdrop-filter: blur(10px);
	/* nice glassy effect */
}

header .logo {
	color: white;
	font-size: 1.3rem;
	font-weight: 600;
	text-wrap: nowrap;
	transition: 0.3s ease-in-out;
}

header .logo:hover {
	transform: scale(1.04);
}

.nav-links {
	display: flex;
	gap: 2rem;
	justify-content: center;
	align-items: center;
}

li a {
	position: relative;
	color: white;
	font-weight: 300;
}

li a::before {
	position: absolute;
	content: '';
	width: 0;
	left: 0;
	height: 5px;
	top: 25px;
	border-radius: 1rem;
	transition: 0.3s ease-in-out;
	background: var(--gradient);
}

li a:hover::before {
	width: 100%;
}

.visit-btn-container {
	display: flex;
	gap: 0.5rem;
	/* ajusta este valor según lo juntos que quieras */
}

.visit-btn {
	width: 2.5rem;
	/* make button width = height */
	height: 2.5rem;
	/* circular shape */
	border-radius: 50%;
	/* fully circular */
	border: none;
	font-weight: 500;
	font-size: 1rem;
	color: white;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: 0.3s ease-in-out;
	background: transparent;
}

.visit-btn:hover {
	background: var(--gradient);
	transform: scale(1.05);
	/* slightly bigger on hover */
}

.visit-btn i {
	font-size: 1.5rem;
	/* bigger icon size */
}


#menu-icon {
	display: none;
	font-size: 2rem;
}

section {
	min-height: 100vh;
	width: 100%;
	position: relative;
	padding: 3rem 12%;
}

.hero {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2rem;
}

.hero .hero-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10rem;
}

.hero img {
	width: 25vw;
	border-radius: 50%;
}

.info-box {
	display: flex;
	flex-direction: column;
	text-align: center;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
}

/*.info-box h3 {
	font-size: 1.8rem;
	font-weight: 500;
	opacity: 0.8;
}*/

.info-box h1 {
	font-size: 3rem;
	font-weight: 500;
}

.info-box span {
	background: linear-gradient(to right, rgb(255, 0, 255), rgb(0, 157, 255));
	background-clip: text;
	color: transparent;
	font-size: 2rem;
}

.btn-group {
	display: flex;
	gap: 1rem;
}

.btn-group a {
	color: black;
}

.btn {
	border-radius: 3rem;
	padding: 0.5rem 1.5rem;
	border: 2px solid black;
	cursor: pointer;
	font-weight: 500;
	text-wrap: nowrap;
	transition: 0.2s ease-in-out;
}

.btn-primary:hover {
	background-color: black;
	color: white;
}

.btn-secondary {
	color: white;
	background: black;
}

.btn-secondary:hover {
	background-color: white;
	color: black;
}

.socials {
	display: flex;
	gap: 1rem;
}

.socials i {
	font-size: 2.5rem;
	cursor: pointer;
	transition: transform 0.2s;
}

.socials i:hover {
	transform: scale(1.2);
}

.contact .socials {
	justify-content: center;
}

.presection-title {
	text-align: center;
	font-size: 1rem;
	font-weight: 600;
	color: grey;
}

.section-title {
	text-align: center;
	font-size: 4rem;
	font-weight: 600;
	margin-bottom: 3rem;
}

.desc-container {
	text-align: center;
	justify-content: center;
}

.about-container {
	width: 100%;
	padding-top: 30px
}

.about-container h2 {
	text-align: center;
	margin-bottom: 2rem;
}

.row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-column-gap: 20px;
}

.col .contents {
	padding: 0 30px;
	border-left: 0.8px solid black;
	margin-left: 2rem;
}

.col h2 {
	font-weight: 250;
}

.col .contents .box {
	position: relative;
	padding: 20px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 2rem;
	background-color: #ffffff;
	cursor: pointer;
	transition: 0.2s ease-in-out;
	margin-bottom: 20px;
	background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
	transition:
		box-shadow 0.25s cubic-bezier(0.2, 0.9, 0.3, 1),
		border-color 0.25s ease,
		background-color 0.25s ease;
}

.col .contents .box:hover,
.col .contents .box:focus {
	box-shadow: 0 0 10px #FF00FF,
		0 0 10px #00AFFF;
	border-color: rgba(0, 0, 0, 0.1);
}

/*.col .contents .box:after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	right: calc(100% + 22px);
	top: 0;
	border: 1px solid rgb(0, 0, 2);
	background-color: black;
	left:-10%;
}*/

/* 3️⃣ Add the circular marker for each box */
.col .contents .box::before {
	content: "";
	position: absolute;
	top: 25px;
	/* vertically aligns roughly with the box title */
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: linear-gradient(135deg, #00AFFF, #FF00FF);
	/* gradient marker */
	border: 2px solid #fff;
	/* white border to separate from the line */
	z-index: 2;
	pointer-events: none;
	/* ensures hover doesn't affect it */
	transition: background 0.3s ease;
	/* optional color transition */
}

/* 4️⃣ Position the marker on the correct side of the center line */
.col:nth-child(1) .contents .box::before {
	top: 20px;
	left: -41px;
	/* positions marker near center line (left column) */
}

.col:nth-child(2) .contents .box::before {
	top: 20px;
	left: -41px;
	/* positions marker near center line (right column) */
}

/* Optional: slightly brighten the dot on hover (without moving it) 
.col .contents .box:hover::before {
	background: linear-gradient(135deg, #3f14fc, #ff33aa);
}
*/

.box h4 {
	position: relative;
	background: var(--gradient);
	background-clip: text;
	color: transparent;
	font-weight: 500;
}

.box h3 {
	font-size: 19px;
	padding: 10px 0 6px;
	color: #444;
	font-weight: 500;
	margin-bottom: 1rem;

}

.box p {
	line-height: 1.2;
	color: #666;
	font-size: 17px;
}

.box .company {
	margin-bottom: 1rem;
}

.experience-info {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5rem;
}

/*.experience-info img {
	width: 24vw;
	border-radius: 3rem;
}*/

.grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.grid-card {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 2rem;
	padding: 2rem;
	/*padding: 3rem;*/
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
	transition:
		transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1),
		box-shadow 0.25s cubic-bezier(0.2, 0.9, 0.3, 1),
		border-color 0.25s ease,
		background-color 0.25s ease;
	overflow: hidden;
}


.grid-card:hover,
.grid-card:focus {
	transform: translateY(-5px)scale(1.02);
	box-shadow: 0 0 30px #FF00FF,
		/* sombra más cercana, naranja */
		0 0 30px #00AFFF;
	border-color: rgba(0, 0, 0, 0.1);
}

.grid-card i {
	font-size: 2.2rem;
	background: var(--gradient);
	background-clip: text;
	color: transparent;
	margin-bottom: 1rem;
}

.grid-card span {
	font-size: 1.2rem;
	font-weight: 600;
	text-align: center;
	/*background: var(--gradient);
	background-clip: text;
	color: transparent;*/
}

.grid-card p {
	margin-top: 1rem;
	justify-content: center;
	text-align: center;
}

::-webkit-scrollbar {
	width: 5px;
}

::-webkit-scrollbar-track {
	background-color: rgb(219, 219, 219);
}

::-webkit-scrollbar-thumb {
	background: var(--gradient);
}

.project-card .btn-group .btn {
	display: inline-flex;
	/* make icon + text inline and horizontal */
	align-items: center;
	/* vertically center them */
	justify-content: center;
	/* optional: center content inside the button */
	background: #f4f4f4;
	color: #000;
	border-radius: 2rem;
	padding: 0.5rem 0.5rem;
	font-weight: 500;
	font-size: 0.95rem;
	text-decoration: none;
	transition: all 0.3s ease;
	overflow: hidden;
	white-space: nowrap;
}

.project-card .btn-group .btn:hover span {
	max-width: 200px;
	opacity: 1;
	transform: translateX(0);
}

.project-card:hover .btn-group .btn {
	gap: 8px;
}

.project-card .btn-group .btn:hover {
	background: #000;
	color: #fff;
}

.project-card .btn-group .btn:hover i {
	color: #fff;
}

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

.project-card {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 2rem;
	cursor: pointer;

	background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
	transition:
		transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1),
		box-shadow 0.25s cubic-bezier(0.2, 0.9, 0.3, 1),
		border-color 0.25s ease,
		background-color 0.25s ease;
	overflow: hidden;
}

/* --- Collapsible content --- */
.project-info {
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	transition: all 0.4s ease;
}

/* --- Reveal on hover --- */
.project-card:hover .project-info {
	opacity: 1;
	margin-top: 1rem;

}


.project-card:hover,
.project-card:focus {
	transform: translateY(-5px)scale(1.02);
	box-shadow: 0 0 30px #FF00FF,
		/* sombra más cercana, naranja */
		0 0 30px #00AFFF;
	border-color: rgba(0, 0, 0, 0.1);

}

.project-card img {
	width: 20vw;
	border-radius: 1rem;
}


/* Hide text by default */
.project-card .btn-group span {
	max-width: 0;
	opacity: 0;
	transition: all 0.3s ease;
}

/* On project hover — reveal text */
.project-card:hover .btn-group span {
	max-width: 200px;
	/* enough for the text */
	opacity: 1;

}

.project-card h3 {
	font-size: 1.2rem;
	font-weight: 600;
}

.projects-disclaimer {
	margin-top: 3rem;
	font-size: 0.85rem;
	color: #666;
	text-align: center;
	max-width: 800px;
	margin-inline: auto;
	line-height: 1.5;
}

.projects-disclaimer strong {
	color: #333;
	font-weight: 600;
}

.project-card .logo {
	width: 240px;
	height: 120px;
	object-fit: contain;
}

.project-card .logo-zennio {

	color: #001111;
	/* cambia el color */
}

.project-card .logo-santander {

	color: #EA1D25;
	;
}

.project-card .logo-moeve {}

.project-card .logo-bme {}

.project-card .logo-website {
	/*	width: 440px;
	height: 220px;*/
	width: 100%;
	height: auto;
	/* keeps the aspect ratio */
	object-fit: contain;
	/* ensures it fits inside even if smaller */
	border-radius: 0.5rem;
	margin: 0.5rem;
	/* small inner margin */
	max-width: 100%;
	/* prevents overflow */
	max-height: 100%;
}

.project-card .logo-module {
	width: 100%;
	height: auto;
	/* keeps the aspect ratio */
	object-fit: contain;
	/* ensures it fits inside even if smaller */
	border-radius: 0.5rem;
	margin: 0.5rem;
	/* small inner margin */
	max-width: 100%;
	/* prevents overflow */
	max-height: 100%;
}



.input-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 2rem;
	margin-top: 5rem;
}

.input {
	display: flex;
	align-items: center;
	gap: 2rem;
	/* espacio entre pares */
	border-radius: 3rem;
	border: 1px solid black;
	padding: 1rem;
	font-size: 1rem;
	box-sizing: border-box;
	transition: transform 0.2s;

}

.input:hover {
	transform: scale(1.03);
}

/* Cada icono + enlace */
.contact-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.input a {
	color: black;
	text-decoration: none;
}

.input i {
	font-size: 1.5rem;
	color: black;
}


footer {
	bottom: 0;
	left: 0;
	height: 10rem;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
	justify-content: center;
}

footer ul {
	display: flex;
	align-items: center;
	gap: 3rem;
}

footer ul li a {
	color: black;
	font-weight: 600;
}

.bmc-container {
	text-align: right;
	/* Alinea el botón a la derecha */
	padding: 20px 0;
	/* Espacio arriba y abajo */
}

.bmc-button {
	background-color: #FFDD00;
	color: #000;
	padding: 12px 20px;
	border-radius: 8px;
	text-decoration: none;
	transition: transform 0.2s;
	/* Hover effect */
}

.bmc-button:hover {
	transform: scale(1.03);
	/* Slight grow on hover */
}

.copyright {
	font-size: 300;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

@media(max-width:1280px) {
	header {
		padding: 1rem 2rem;
		gap: 2rem;
	}

	.hero .hero-container {
		gap: 3rem;
	}

	.experience-info {
		flex-direction: column;
	}
}

@media(max-width:1100px) {
	.services .grid {
		grid-template-columns: repeat(2, 1fr);

	}

}

@media(max-width:968px) {
	header .visit-btn {
		display: none;
	}

	.row {
		grid-template-columns: 1fr;
	}

	.row .col:nth-child(2) {
		margin-top: 30px;
	}

}


@media(max-width:820px) {
	.info-box h1 {
		font-size: 2.8rem;
	}

	.info-box span {
		font-size: 1.7rem;
	}
}

@media(max-width:831px) {
	.info-box h1 {
		font-size: 2.8rem;
	}

	.info-box span {
		font-size: 1.7rem;
	}

}

@media(max-width:768px) {


	.hero-container {
		flex-direction: column;
	}

	.services .grid {
		grid-template-columns: repeat(1, 1fr);
	}
}

@media(max-width:710px) {
	header {
		padding: 1rem 5rem;
		gap: 8rem;
	}

	header .logo {
		font-size: 1.5rem;
	}

	header #menu-icon {
		display: block;
	}

	.nav-links {
		position: absolute;
		top: 100%;
		margin-top: 1rem;
		width: 100%;
		padding: .5rem;
		color: white;
		display: flex;
		flex-direction: column;
		text-align: center;
		/*background: rgba(0, 0, 0, 0.9);*/
		background: rgba(17, 17, 17, 0.8);
		/* translucent black */
		border-radius: 3rem;
		display: none;
	}

	.nav-links li {
		margin-top: 1.5rem;
		padding: 1rem;
	}

	.nav-links.active {
		display: block;
	}

	.visit-btn-container {
		display: none;
	}

}

@media(max-width:600px) {
	header {
		padding: 1rem 5rem;
		gap: 8rem;
	}

	header .logo {
		font-size: 1.5rem;
	}

	.hero img {
		width: 45%;
	}

	footer ul {
		gap: 1rem;
	}
}

@media(max-width:555px) {

	header {
		padding: 1rem 2rem;
	}

	.section-title {
		font-size: 3rem;

	}

		.input-box .input {
		font-size: .8rem;
				padding: 0.7rem;

	}

	

}

@media(max-width:460px) {

	header {
		gap: 4rem;
	}

	header .logo {
		font-size: 1.2rem;
	}

	header #menu-icon {
		font-size: 1.8rem;
	}

	.info-box h1 {
		font-size: 2.2rem;
	}

	.info-box span {
		font-size: 1.2rem;
	}

	.section-title {
		font-size: 2.8rem;

	}
}


@media(max-width:380px) {

	.section-title {
		font-size: 2.5rem;
	}

	.projects-grid {
		grid-template-columns: auto;
	}

	footer ul li a {
		font-size: .9rem;
	}

	.copyright {
		font-size: .9rem;
	}


	.info-box .btn {
		font-size: .8rem;
	}

	.socials i {
		font-size: 2rem;
	}

	.project-card .logo {

		width: 200px;
	}

		.input-box .input {
		font-size: 0.7rem;
		padding: 0.5rem;
	}

}

@media(max-width:345px) {
	.info-box h1 {
		font-size: 1.8rem;
	}

	header .logo {
		font-size: 1rem;

	}

	header #menu-icon {
		font-size: 1.2rem;
	}

	.input-box .input i {
		display: none;
	}
}

@media(max-width:314px) {

	.project-card .logo {
		width: 150px;
		height: 100px;
		object-fit: contain;
	}
}

@media(max-width:309px) {


	.section-title {
		font-size: 2.2rem;
	}

	.socials i {
		font-size: 1.8rem;
	}
}

@media (max-height: 765px) {
	.hero {
		height: auto;
		/* Avoid overflow on small laptop screens */
		padding: 4rem 2rem;
	}
}