html {
	scroll-padding-top: 50px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Poppins", sans-serif;
	background-color: #000;
	color: #e0e0e0;
	line-height: 1.6;
	scroll-behavior: smooth;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url("images/estudio.jpg") no-repeat center center/cover;
	z-index: -2;
}

body::after {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	z-index: -1;
}

a {
	text-decoration: none;
	color: inherit;
}

nav {
	position: fixed;
	top: 0;
	width: 100%;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(10px);
	z-index: 1000;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
	font-size: 1.4rem;
	font-weight: 600;
	color: #fff;
}

.logo::before {
	content: ".";
	color: #999;
	margin-right: 2px;
}

nav ul {
	display: flex;
	list-style: none;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
}

nav li {
	margin-bottom: 0;
}

nav li a {
	color: #ccc;
	transition: color 0.3s ease;
	display: block;
	padding: 0.25rem 0;
	font-size: 0.95rem;
}

nav li a:hover {
	color: #fff;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: #fff;
	font-size: 1.5rem;
}

header {
	padding: 6rem 2rem 0rem;
	text-align: center;
	background-color: #0a0a0a;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header h1 {
	font-size: 3rem;
	font-weight: 600;
	color: #f5f5f5;
	letter-spacing: -0.5px;
}

header p {
	font-size: 1.2rem;
	color: #bbb;
	max-width: 600px;
	margin: 1rem auto 0;
}

header h3 {
	font-size: 1.1rem;
	color: #999;
	font-weight: 300;
	margin-top: 0.75rem;
}

section {
	padding: 2.5rem 1.5rem;
	max-width: 960px;
	margin: auto;
}

section h2 {
	font-size: 1.8rem;
	margin-bottom: 1.5rem;
	color: #fff;
	font-weight: 500;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.service-card {
	background-color: rgba(255, 255, 255, 0.05);
	padding: 1.5rem;
	border-radius: 12px;
	transition:
		transform 0.3s ease,
		background-color 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.service-card:hover {
	background-color: rgba(255, 255, 255, 0.08);
	transform: translateY(-5px);
}

.service-icon {
	font-size: 1.5rem;
	color: #f5f5f5;
	margin-right: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.service-header {
	display: flex;
	align-items: center;
	margin-bottom: 0.75rem;
}

.service-title {
	font-size: 1.1rem;
}

.service-desc {
	color: #bbb;
	margin-left: 52px;
}

.carousel-container {
	width: 100%;
	overflow: hidden;
	position: relative;
	margin: 2rem 0;
}

.carousel {
	display: flex;
	animation: scroll 30s linear infinite;
	width: calc(250px * 10);
}

.carousel-item {
	width: 250px;
	height: 180px;
	margin-right: 10px;
	flex-shrink: 0;
}

.carousel-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
}

@keyframes scroll {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(calc(-250px * 5));
	}
}

.contact-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
	margin-top: 0;
	min-height: 220px;
	position: relative;
}

.contact-content {
	flex: 1;
	padding-top: 1rem;
}

.contact-buttons {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 1.5rem;
}

.contact-button {
	display: inline-flex;
	align-items: center;
	padding: 0.75rem 1.5rem;
	border-radius: 2rem;
	font-weight: 500;
	font-size: 1rem;
	transition:
		opacity 0.3s ease,
		transform 0.3s ease;
}

.contact-button:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}

.whatsapp-btn {
	background-color: #25d366;
	color: white;
}

.instagram-btn {
	background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
	color: white;
}

.profile-img {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid rgba(255, 255, 255, 0.1);
}

.profile-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.profile-caption {
	margin-top: 1rem;
	font-size: 0.9rem;
	color: #999;
	font-style: italic;
}

.projects-container {
	display: flex;
	gap: 1.5rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.project-embed {
	flex: 1 1 300px;
	min-width: 280px;
}

.highlight {
	color: #fff;
	font-weight: bold;
	display: block;
	margin-top: 1rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	background-color: rgba(255, 255, 255, 0.1);
	color: #f5f5f5;
	padding: 0.75rem 1.5rem;
	border-radius: 2rem;
	font-weight: 500;
	font-size: 1rem;
	transition:
		background-color 0.3s ease,
		transform 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.05);
	margin-top: 2rem;
}

.btn:hover {
	background-color: rgba(255, 255, 255, 0.15);
	transform: translateY(-2px);
}

.btn i {
	margin-right: 0.5rem;
}

footer {
	background-color: #111;
	color: #888;
	text-align: center;
	padding: 2rem 1rem;
	font-size: 0.9rem;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

ul {
	list-style: none;
	padding-left: 0;
}

li {
	margin-bottom: 1rem;
	font-size: 1rem;
	color: #ddd;
}

li span {
	color: #f5f5f5;
	font-weight: 500;
}

section p {
	font-size: 1rem;
	color: #ccc;
	margin-bottom: 1rem;
}

#contacto {
	position: relative;
}

@media (max-width: 860px) {
	.projects-container {
		flex-direction: column;
	}

	.project-embed {
		max-width: 100%;
	}
}

@media (max-width: 768px) {
	header {
		padding: 5rem 1rem 2rem;
	}

	header h1 {
		font-size: 2.5rem;
	}

	header p {
		font-size: 1.1rem;
	}

	section h2 {
		text-align: center;
	}

	#filosofia p,
	#producido p {
		text-align: center;
	}

	.menu-toggle {
		display: block;
	}

	.center-mobile {
		display: flex !important;
		justify-content: center !important;
	}

	nav {
		padding: 0.8rem 1rem;
	}

	nav ul {
		position: fixed;
		top: 56px;
		left: 0;
		width: 100%;
		flex-direction: column;
		background-color: rgba(0, 0, 0, 0.9);
		backdrop-filter: blur(10px);
		padding: 1rem 0;
		gap: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.05);
		display: none;
	}

	nav ul.active {
		display: flex;
	}

	nav li a {
		padding: 0.8rem 2rem;
		display: block;
		border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	}

	nav li:last-child a {
		border-bottom: none;
	}

	.contact-container {
		flex-direction: column;
		align-items: center;
		text-align: center;
		min-height: auto;
	}

	.contact-content {
		width: 100%;
		text-align: center;
	}

	.contact-buttons {
		justify-content: center;
	}

	.profile-container {
		margin-top: 2rem;
	}

	.carousel-item {
		width: 200px;
		height: 150px;
	}

	.carousel {
		width: calc(200px * 10);
	}

	@keyframes scroll {
		0% {
			transform: translateX(0);
		}

		100% {
			transform: translateX(calc(-200px * 5));
		}
	}
}

@media (max-width: 480px) {
	header h1 {
		font-size: 2rem;
	}

	.carousel-item {
		width: 160px;
		height: 120px;
	}

	.carousel {
		width: calc(160px * 10);
	}

	@keyframes scroll {
		0% {
			transform: translateX(0);
		}

		100% {
			transform: translateX(calc(-160px * 5));
		}
	}

	.profile-img {
		width: 200px;
		height: 200px;
	}

	.service-card {
		padding: 1.2rem;
	}

	.btn,
	.contact-button {
		width: 100%;
		justify-content: center;
		margin-bottom: 0.75rem;
	}
}
