/* ============================================================================
   BASE — variables, reset, tipografía, botones y utilidades compartidas
   ============================================================================ */

:root {
	--primary-color: #00d4ff;
	--secondary-color: #667eea;
	--accent-color: #f5576c;
	--dark-bg: #0a0e27;
	--dark-secondary: #1a1f3a;
	--dark-tertiary: #242e4b;
	--text-primary: #ffffff;
	--text-secondary: #a0a5b8;
	--border-color: rgba(255, 255, 255, 0.1);
	--shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	--navbar-height: 72px;
}

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

[hidden] {
	display: none !important;
}

html {
	scroll-behavior: smooth;
	/* Evita que la navbar fija tape los títulos al navegar con anclas */
	scroll-padding-top: var(--navbar-height);
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
	color: var(--text-primary);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
	margin-bottom: 0.5rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

p {
	margin-bottom: 1rem;
}

img,
svg {
	vertical-align: middle;
}

button,
input,
textarea {
	font: inherit;
	color: inherit;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 3px;
}

/* ============================================================================
   SECCIONES (común)
   ============================================================================ */

/* El margen lateral lo da .container (20px), no la sección */
section {
	padding: 96px 0;
	position: relative;
}

.section-title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	text-align: center;
	margin-bottom: 1rem;
	color: var(--text-primary);
	letter-spacing: -0.02em;
}

.section-subtitle {
	text-align: center;
	color: var(--text-secondary);
	font-size: 1.1rem;
	max-width: 600px;
	margin: 0 auto 3rem;
}

.gradient-text {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ============================================================================
   BOTONES
   ============================================================================ */

.btn {
	padding: 0.75rem 2rem;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 1rem;
	line-height: 1.5;
	text-align: center;
	display: inline-block;
	user-select: none;
}

.btn-primary {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: var(--dark-bg);
	box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
	background: transparent;
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
	background: var(--primary-color);
	color: var(--dark-bg);
	transform: translateY(-2px);
}

/* ============================================================================
   ANIMACIONES
   ============================================================================ */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* ============================================================================
   RESPONSIVE / ACCESIBILIDAD
   ============================================================================ */

@media (max-width: 768px) {
	.section-title {
		font-size: 2rem;
	}

	section {
		padding: 64px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
