/* Paleta de Colores Corporativa FaresTech */
:root {
	--white: #ffffff;
	--neon-green: #0ff271;
	--teal: #1c8c6c;
	--dark-blue: #12262d;
	--deep-blue: #031a28;
	--black: #000000;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Poppins', sans-serif;
	background-color: var(--deep-blue);
	color: var(--white);
	line-height: 1.6;
	overflow-x: hidden;
}

/* Personalización Scrollbar */
::-webkit-scrollbar {
	width: 8px;
}
::-webkit-scrollbar-track {
	background: var(--black);
}
::-webkit-scrollbar-thumb {
	background: var(--teal);
	border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
	background: var(--neon-green);
	box-shadow: 0 0 10px var(--neon-green);
}

/* Cursor Tecnológico (Solo Escritorio) */
@media (min-width: 992px) {
	body {
		cursor: none;
	}
	a,
	button,
	.card {
		cursor: none !important;
	}
}

.cursor-dot {
	width: 6px;
	height: 6px;
	background-color: var(--neon-green);
	position: fixed;
	top: 0;
	left: 0;
	border-radius: 50%;
	pointer-events: none;
	z-index: 99999;
	transform: translate(-50%, -50%);
}

.cursor-outline {
	width: 30px;
	height: 30px;
	border: 1px solid var(--neon-green);
	position: fixed;
	top: 0;
	left: 0;
	border-radius: 50%;
	pointer-events: none;
	z-index: 99998;
	transform: translate(-50%, -50%);
	transition:
		width 0.2s,
		height 0.2s,
		background-color 0.2s;
}

body.hovered .cursor-outline {
	width: 45px;
	height: 45px;
	background-color: rgba(15, 242, 113, 0.15);
}

/* Navegación */
.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 5%;
	background-color: rgba(0, 0, 0, 0.95);
	backdrop-filter: blur(8px);
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid rgba(28, 140, 108, 0.3);
}

.logo img {
	height: 40px;
	width: auto;
	display: block;
	transition: transform 0.3s ease;
}

.logo img:hover {
	transform: scale(1.05);
}

.nav-links {
	display: flex;
	list-style: none;
	align-items: center;
	gap: 20px;
}

.nav-links a {
	color: var(--white);
	text-decoration: none;
	transition: color 0.3s;
	font-weight: 400;
}

.nav-links a:hover {
	color: var(--neon-green);
}

.btn-primary {
	background-color: var(--neon-green);
	color: var(--black) !important;
	padding: 10px 22px;
	border-radius: 5px;
	font-weight: 600 !important;
	text-decoration: none;
	transition: all 0.3s ease;
	display: inline-block;
	box-shadow: 0 0 10px rgba(15, 242, 113, 0.2);
}

.btn-primary:hover {
	background-color: var(--teal);
	color: var(--white) !important;
	box-shadow: 0 0 15px rgba(28, 140, 108, 0.5);
}

/* Botón Hamburguesa */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	flex-direction: column;
	gap: 5px;
	padding: 5px;
}

.menu-toggle .bar {
	width: 25px;
	height: 3px;
	background-color: var(--white);
	border-radius: 2px;
	transition: all 0.3s ease;
}

.menu-toggle.open .bar:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
	opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--deep-blue), var(--dark-blue));
	padding: 0 20px;
}

#tech-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
}

.tagline {
	color: var(--neon-green);
	font-weight: 600;
	letter-spacing: 3px;
	margin-bottom: 10px;
	font-size: 0.9rem;
}

.hero h1 {
	font-size: 3.2rem;
	margin: 10px 0;
	line-height: 1.2;
}

.hero h2 {
	font-weight: 300;
	font-size: 1.2rem;
	color: #ccc;
	margin-bottom: 30px;
}

/* Estilos para el Layout de 2 Columnas */
.sobre-mi-grid {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.5rem;
}

/* En pantallas grandes (PC/Laptops) cambia automáticamente a 2 columnas */
@media (min-width: 768px) {
	.sobre-mi-grid {
		flex-direction: row;
		align-items: center;
		justify-content: center;
	}

	.sobre-mi-foto-col {
		flex: 0 0 250px; /* Ancho fijo para la columna de la foto */
	}

	.sobre-mi-texto-col {
		flex: 1; /* El texto ocupa el resto del espacio */
		text-align: left;
	}
}

/* Wrapper con fondo oscuro profundo para que el rostro resalte */
.profile-avatar-wrapper {
	width: 300px;
	height: 300px;
	margin: 0 auto;
	border-radius: 50%;
	padding: 5px;
	background: #121212; /* Fondo gris carbón oscuro interno */
	border: 3px solid #0ff271; /* Borde verde neón */
	box-shadow:
		0 0 15px rgba(57, 255, 20, 0.6),
		0 0 30px rgba(57, 255, 20, 0.3);
	transition:
		transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
		box-shadow 0.3s ease;
	cursor: pointer;
	overflow: hidden; /* Mantiene la foto dentro del círculo */
	-webkit-tap-highlight-color: transparent;
}

/* Imagen con corrección de color e iluminación automática */
.profile-avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;

	/* Retoque digital por CSS */
	filter: contrast(108%) brightness(103%) saturate(95%);
}

/* Efecto al tocar o pasar el cursor */
.profile-avatar-wrapper:hover,
.profile-avatar-wrapper:active {
	transform: scale(1.02);
	box-shadow:
		0 0 25px #0ff271,
		0 0 50px #0ff271,
		0 0 75px rgba(57, 255, 20, 0.7);
}
/* Secciones */
.section {
	padding: 100px 10%;
}

.bg-dark {
	background-color: var(--dark-blue);
}

.title-section {
	font-size: 2.2rem;
	color: var(--neon-green);
	margin-bottom: 40px;
	border-bottom: 2px solid var(--teal);
	display: inline-block;
	padding-bottom: 5px;
}

.bio {
	font-size: 1.1rem;
	color: #e0e0e0;
	max-width: 900px;
}

/* Timeline */
.timeline {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.timeline-item {
	border-left: 3px solid var(--neon-green);
	padding-left: 25px;
	position: relative;
}

.timeline-item::before {
	content: '';
	position: absolute;
	left: -8px;
	top: 0;
	width: 13px;
	height: 13px;
	background-color: var(--neon-green);
	border-radius: 50%;
	box-shadow: 0 0 10px var(--neon-green);
}

.timeline-item .date {
	color: var(--teal);
	font-weight: 700;
	font-size: 0.95rem;
}

.timeline-item h3 {
	font-size: 1.3rem;
	margin: 5px 0 10px 0;
	color: var(--white);
}

.timeline-item ul {
	padding-left: 20px;
	margin-top: 10px;
}

.timeline-item li {
	margin-bottom: 8px;
	color: #ccc;
}

/* Filtros de Portafolio */
.filter-container {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 40px;
}

.btn-filter {
	background-color: var(--dark-blue);
	color: var(--white);
	border: 1px solid var(--teal);
	padding: 8px 22px;
	border-radius: 20px;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.9rem;
	transition: all 0.3s ease;
}

.btn-filter:hover,
.btn-filter.active {
	background-color: var(--neon-green);
	color: var(--black);
	border-color: var(--neon-green);
	font-weight: 600;
	box-shadow: 0 0 12px rgba(15, 242, 113, 0.4);
}

/* Grid de Portafolio */
.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 25px;
}

.card {
	background-color: var(--dark-blue);
	border: 1px solid rgba(28, 140, 108, 0.4);
	border-radius: 10px;
	overflow: hidden;
	transition:
		transform 0.3s ease,
		border-color 0.3s ease,
		box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.card:hover {
	transform: translateY(-8px);
	border-color: var(--neon-green);
	box-shadow: 0 8px 20px rgba(15, 242, 113, 0.15);
}

.card img {
	width: 100%;
	height: 210px;
	object-fit: cover;
}

.video-container {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	background-color: var(--black);
}

.video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Contenedor Poster para TikTok */
.tiktok-poster-container {
	position: relative;
	width: 100%;
	height: 210px;
	overflow: hidden;
	background-color: var(--black);
	border-radius: 8px 8px 0 0;
}

.tiktok-poster-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.tiktok-poster-container:hover img {
	transform: scale(1.08);
}

/* Botón de Reproducción Central */
.btn-play-tiktok {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 50px;
	height: 50px;
	background-color: rgba(0, 0, 0, 0.7);
	border: 2px solid var(--neon-green);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--neon-green);
	transition: all 0.3s ease;
	box-shadow: 0 0 15px rgba(15, 242, 113, 0.4);
}

.play-icon {
	width: 16px;
	height: 16px;
	margin-left: 3px;
}

.tiktok-poster-container:hover .btn-play-tiktok {
	background-color: var(--neon-green);
	color: var(--black);
	transform: translate(-50%, -50%) scale(1.15);
	box-shadow: 0 0 25px var(--neon-green);
}

/* Badge distintivo de TikTok */
.tiktok-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background-color: rgba(0, 0, 0, 0.8);
	color: var(--white);
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.card-body h3 {
	color: var(--white);
	font-size: 1.2rem;
	margin: 5px 0;
}

.card-body .category {
	font-size: 0.8rem;
	color: var(--neon-green);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.card-body p {
	color: #bbb;
	font-size: 0.9rem;
	margin-top: 10px;
	flex-grow: 1;
}

.btn-card {
	display: inline-block;
	margin-top: 15px;
	color: var(--neon-green);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: color 0.3s ease;
}

.btn-card:hover {
	color: var(--white);
}

/* Animaciones Scroll Reveal */
.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition:
		opacity 0.8s ease,
		transform 0.8s ease;
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Footer */
.footer {
	background-color: var(--black);
	text-align: center;
	padding: 60px 10% 40px;
	border-top: 1px solid rgba(28, 140, 108, 0.2);
}

.footer h2 {
	color: var(--neon-green);
	margin-bottom: 10px;
}

.contact-info {
	margin: 20px 0;
}

.contact-info a {
	color: var(--neon-green);
	text-decoration: none;
	transition: color 0.3s;
}

.contact-info a:hover {
	color: var(--white);
}

.copyright {
	font-size: 0.85rem;
	color: #777;
	margin-top: 30px;
}

/* Botón Flotante WhatsApp */
.whatsapp-float {
	position: fixed;
	bottom: 25px;
	right: 25px;
	width: 58px;
	height: 58px;
	background-color: #25d366;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
	z-index: 9999;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.whatsapp-float:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 16px rgba(15, 242, 113, 0.5);
}

.whatsapp-icon {
	width: 32px;
	height: 32px;
	fill: var(--white);
}

/* Responsividad Móvil */
@media (max-width: 768px) {
	.menu-toggle {
		display: flex;
	}

	.nav-links {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background-color: var(--black);
		flex-direction: column;
		align-items: center;
		padding: 25px 0;
		gap: 20px;
		display: none;
		border-bottom: 2px solid var(--neon-green);
	}

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

	.hero h1 {
		font-size: 2.2rem;
	}

	.hero h2 {
		font-size: 1rem;
	}

	.section {
		padding: 60px 6%;
	}

	.whatsapp-float {
		bottom: 15px;
		right: 15px;
		width: 52px;
		height: 52px;
	}

	.whatsapp-icon {
		width: 28px;
		height: 28px;
	}
}
