/* ============================================================================
   PROYECTOS (carrusel con scroll nativo)
   - Desktop: 3 tarjetas, tablet: 2, mobile: 1 (asomando la siguiente).
   - Si todas las tarjetas entran, los controles se ocultan (projects-carousel.js).
   ============================================================================ */

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

/* ============================================================================
   PROYECTO DESTACADO (bloque ancho: texto + mockup)
   ============================================================================ */

.featured-project {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 4rem;
	margin: 3rem 0 5rem;
	padding: 3rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--border-color);
	border-radius: 24px;
	position: relative;
	overflow: hidden;
}

.featured-project::before {
	content: '';
	position: absolute;
	top: -40%;
	right: -5%;
	width: 520px;
	height: 520px;
	background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.featured-content {
	position: relative;
	z-index: 1;
}

.featured-badge {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	margin-bottom: 1.25rem;
	border-radius: 999px;
	background: rgba(0, 212, 255, 0.12);
	border: 1px solid rgba(0, 212, 255, 0.3);
	color: var(--primary-color);
	font-size: 0.8rem;
	font-weight: 600;
}

.featured-title {
	font-size: clamp(2.2rem, 5vw, 3.2rem);
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 0.5rem;
}

.featured-tagline {
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.featured-desc {
	color: var(--text-secondary);
	font-size: 1.05rem;
	max-width: 48ch;
	margin-bottom: 1.75rem;
}

.featured-project .project-tech {
	margin-bottom: 2rem;
}

.featured-project .btn {
	padding: 0.85rem 2.4rem;
	font-size: 1.05rem;
}

/* ---------- Mockup de navegador ---------- */

.featured-visual {
	position: relative;
	z-index: 1;
}

.browser-mockup {
	border: 1px solid var(--border-color);
	border-radius: 14px;
	overflow: hidden;
	background: var(--dark-tertiary);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.browser-mockup:hover {
	transform: translateY(-6px);
	box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.browser-bar {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.6rem 0.85rem;
	background: var(--dark-secondary);
	border-bottom: 1px solid var(--border-color);
}

.browser-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	flex: 0 0 auto;
}

.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #febc2e; }
.browser-dot:nth-child(3) { background: #28c840; }

.browser-url {
	margin-left: 0.6rem;
	flex: 1;
	padding: 0.25rem 0.75rem;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--text-secondary);
	font-size: 0.78rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.browser-mockup img {
	width: 100%;
	display: block;
}

@media (max-width: 1023px) {
	.featured-project {
		gap: 2.5rem;
		padding: 2rem;
	}
}

@media (max-width: 767px) {
	.featured-project {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 1.5rem;
		margin: 2rem 0 3.5rem;
	}

	.featured-content {
		order: 1;
	}

	.featured-visual {
		order: 2;
	}
}

/* Nota: los estilos genéricos del carrusel (track, controles, flechas, puntos
   y el tamaño de tarjeta por --cards-per-view) viven en components/carousel.css */

.project-card {
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--border-color);
	border-radius: 15px;
	overflow: hidden;
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
	transform: translateY(-6px);
	border-color: var(--primary-color);
	box-shadow: 0 12px 28px rgba(0, 212, 255, 0.12);
}

.project-image {
	aspect-ratio: 16 / 10;
	background-color: rgba(255, 255, 255, 0.04);
	border-bottom: 1px solid var(--border-color);
}

.project-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.project-content {
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.project-content h3 {
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
}

.project-content p {
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
	flex: 1;
}

.project-tech {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.project-tech span {
	background: rgba(102, 126, 234, 0.2);
	color: #a5b4fc;
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
	.project-content {
		padding: 1.5rem;
	}
}
