/* ===== CSS Variables & Reset ===== */
:root {
	--bg-primary: #0f172a;
	--bg-secondary: #1e293b;
	--bg-card: rgba(30, 41, 59, 0.8);
	--accent-green: #10b981;
	--accent-green-hover: #059669;
	--accent-green-glow: rgba(16, 185, 129, 0.4);
	--text-primary: #ffffff;
	--text-body: #e2e8f0; /* Gris claro para textos largos - no cansa la vista */
	--text-secondary: #94a3b8;
	--text-muted: #64748b;
	--border-color: rgba(148, 163, 184, 0.2);
	--error-color: #ef4444;
	--gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
	--gradient-glow: radial-gradient(
		circle at center,
		var(--accent-green-glow) 0%,
		transparent 70%
	);

	/* Typography - Plus Jakarta Sans */
	--font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
		"Segoe UI", Roboto, sans-serif;
	--font-weight-regular: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;
	--font-weight-extrabold: 800;

	/* Transitions */
	--transition-fast: 0.2s ease;
	--transition-medium: 0.3s ease;
	--transition-slow: 0.5s ease;

	/* Spacing Scale */
	--space-xs: 4px;
	--space-sm: 8px;
	--space-md: 16px;
	--space-lg: 24px;
	--space-xl: 32px;
	--space-2xl: 48px;
	--space-3xl: 64px;
	--space-4xl: 80px;
	--space-5xl: 100px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	font-family: var(--font-family);
	background-color: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ===== Accessibility ===== */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100%;
	left: 50%;
	transform: translateX(-50%);
	background: var(--accent-green);
	color: white;
	padding: var(--space-md) var(--space-lg);
	border-radius: 0 0 8px 8px;
	font-weight: 600;
	text-decoration: none;
	z-index: 9999;
	transition: top var(--transition-medium);
}

.skip-link:focus {
	top: 0;
	outline: 2px solid white;
	outline-offset: 2px;
}

/* Focus styles for accessibility */
:focus-visible {
	outline: 2px solid var(--accent-green);
	outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.animate-float {
		animation: none !important;
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	:root {
		--border-color: rgba(255, 255, 255, 0.5);
	}

	.btn-primary {
		border: 2px solid white;
	}
}

/* ===== Container ===== */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
	.container {
		padding: 0 var(--space-xl);
	}
}

/* ===== Typography ===== */
/* Títulos - ExtraBold (800) o Bold (700) */
h1 {
	font-weight: var(--font-weight-extrabold);
	line-height: 1.1;
	color: var(--text-primary);
	letter-spacing: -0.02em;
}

h2 {
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
	color: var(--text-primary);
}

h3 {
	font-weight: var(--font-weight-bold);
	line-height: 1.3;
	color: var(--text-primary);
}

/* Cuerpo de texto - Medium (500) para modo oscuro */
p,
li,
label,
span {
	font-weight: var(--font-weight-medium);
}

/* Texto de párrafos largos usa color gris claro */
.hero-subtitle,
.benefit-card p,
.form-header p,
.call-message p,
.proof-text,
.form-footer span,
.footer-brand p {
	color: var(--text-body);
}

.highlight {
	background: var(--gradient-green);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ===== Animations ===== */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

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

@keyframes float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-20px);
	}
}

@keyframes pulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.5);
		opacity: 0;
	}
}

@keyframes soundWave {
	0%,
	100% {
		height: 8px;
	}
	50% {
		height: 24px;
	}
}

@keyframes gradientMove {
	0% {
		transform: translate(0, 0) scale(1);
	}
	50% {
		transform: translate(50px, -50px) scale(1.2);
	}
	100% {
		transform: translate(0, 0) scale(1);
	}
}

.animate-fade-in {
	animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
	animation: slideUp 0.8s ease forwards;
}

.animate-float {
	animation: float 6s ease-in-out infinite;
}

.delay-1 {
	animation-delay: 0.2s;
	opacity: 0;
}
.delay-2 {
	animation-delay: 0.4s;
	opacity: 0;
}
.delay-3 {
	animation-delay: 0.6s;
	opacity: 0;
}

/* ===== Header ===== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: var(--space-md) 0;
	background: rgba(15, 23, 42, 0.9);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
}

.header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.logo-image {
	height: 40px;
	width: auto;
	object-fit: contain;
}

.header-nav {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
}

.nav-link {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
	color: var(--text-primary);
}

.nav-link.cta-link {
	color: var(--accent-green);
}

.nav-link.cta-link:hover {
	color: var(--accent-green-hover);
}

/* ===== Hero Section ===== */
.hero {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	padding: var(--space-4xl) 0;
	position: relative;
	overflow: hidden;
}

.hero-background {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.gradient-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.5;
	will-change: transform;
}

.orb-1 {
	width: min(600px, 80vw);
	height: min(600px, 80vw);
	background: var(--accent-green);
	top: -200px;
	right: -200px;
	opacity: 0.15;
	animation: gradientMove 15s ease-in-out infinite;
}

.orb-2 {
	width: min(400px, 60vw);
	height: min(400px, 60vw);
	background: #3b82f6;
	bottom: -100px;
	left: -100px;
	opacity: 0.1;
	animation: gradientMove 20s ease-in-out infinite reverse;
}

.orb-3 {
	width: min(300px, 40vw);
	height: min(300px, 40vw);
	background: var(--accent-green);
	bottom: 20%;
	right: 20%;
	opacity: 0.1;
	animation: gradientMove 12s ease-in-out infinite;
}

.hero .container {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-3xl);
	align-items: center;
	position: relative;
	z-index: 1;
}

@media (min-width: 992px) {
	.hero .container {
		grid-template-columns: 1fr 1fr;
	}
}

.hero-content {
	max-width: 600px;
	text-align: center;
}

@media (min-width: 992px) {
	.hero-content {
		text-align: left;
	}
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: var(--space-sm);
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	padding: var(--space-sm) var(--space-md);
	border-radius: 100px;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: var(--space-lg);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.pulse {
	width: 8px;
	height: 8px;
	background: var(--accent-green);
	border-radius: 50%;
	position: relative;
	flex-shrink: 0;
}

.pulse::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--accent-green);
	border-radius: 50%;
	animation: pulse 2s ease-in-out infinite;
}

.hero-title {
	font-size: clamp(1.75rem, 5vw, 3.5rem);
	font-weight: var(--font-weight-extrabold);
	margin-bottom: var(--space-lg);
	letter-spacing: -0.02em;
}

.hero-subtitle {
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	color: var(--text-secondary);
	margin-bottom: var(--space-xl);
	max-width: 540px;
}

@media (min-width: 992px) {
	.hero-subtitle {
		margin-left: 0;
		margin-right: auto;
	}
}

@media (max-width: 991px) {
	.hero-subtitle {
		margin-left: auto;
		margin-right: auto;
	}
}

.hero-subtitle strong {
	color: var(--text-primary);
}

.hero-cta {
	margin-bottom: var(--space-lg);
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--gradient-green);
	color: white;
	font-size: clamp(1rem, 2vw, 1.1rem);
	font-weight: var(--font-weight-semibold);
	padding: var(--space-md) var(--space-xl);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	text-decoration: none;
	transition: all var(--transition-medium);
	box-shadow: 0 4px 20px var(--accent-green-glow);
	font-family: inherit;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px var(--accent-green-glow);
}

.btn-primary:active {
	transform: translateY(0);
}

.btn-primary:focus-visible {
	outline: 2px solid white;
	outline-offset: 2px;
}

.scarcity-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--text-secondary);
	font-size: 0.95rem;
}

@media (min-width: 992px) {
	.scarcity-badge {
		justify-content: flex-start;
	}
}

.scarcity-badge svg {
	color: var(--accent-green);
	flex-shrink: 0;
}

.scarcity-badge strong {
	color: var(--accent-green);
}

/* Phone Mockup */
.hero-visual {
	display: flex;
	justify-content: center;
	order: -1;
}

@media (min-width: 992px) {
	.hero-visual {
		order: 0;
	}
}

.phone-mockup {
	width: min(300px, 80vw);
	aspect-ratio: 1/2;
	background: var(--bg-secondary);
	border-radius: 40px;
	padding: 12px;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1),
		0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	position: relative;
}

.phone-mockup::before {
	content: "";
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 100px;
	height: 24px;
	background: var(--bg-primary);
	border-radius: 20px;
}

.phone-screen {
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, #1a1a2e 0%, #0f172a 100%);
	border-radius: 32px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.call-ui {
	text-align: center;
	padding: var(--space-xl) var(--space-lg);
}

.caller-avatar {
	width: clamp(80px, 20vw, 100px);
	height: clamp(80px, 20vw, 100px);
	background: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto var(--space-md);
	position: relative;
	overflow: hidden;
	box-shadow: 0 0 30px var(--accent-green-glow);
}

.avatar-ring {
	position: absolute;
	inset: -8px;
	border: 3px solid var(--accent-green);
	border-radius: 50%;
	animation: pulse 2s ease-in-out infinite;
}

.avatar-image {
	width: 75%;
	height: 75%;
	object-fit: contain;
}

.caller-name {
	font-size: clamp(1.25rem, 3vw, 1.5rem);
	font-weight: 600;
	margin-bottom: var(--space-sm);
}

.call-status {
	color: var(--accent-green);
	font-size: 0.9rem;
	margin-bottom: var(--space-lg);
}

.sound-waves {
	display: flex;
	justify-content: center;
	gap: 6px;
	height: 32px;
	margin-bottom: var(--space-xl);
}

.sound-waves span {
	width: 4px;
	height: 8px;
	background: var(--accent-green);
	border-radius: 4px;
	animation: soundWave 0.8s ease-in-out infinite;
}

.sound-waves span:nth-child(1) {
	animation-delay: 0s;
}
.sound-waves span:nth-child(2) {
	animation-delay: 0.1s;
}
.sound-waves span:nth-child(3) {
	animation-delay: 0.2s;
}
.sound-waves span:nth-child(4) {
	animation-delay: 0.3s;
}
.sound-waves span:nth-child(5) {
	animation-delay: 0.4s;
}

.call-message {
	background: var(--bg-card);
	border-radius: 16px;
	padding: var(--space-md);
	border: 1px solid var(--border-color);
}

.call-message p {
	font-size: clamp(0.75rem, 2vw, 0.85rem);
	color: var(--text-secondary);
	font-style: italic;
}

/* ===== Benefits Section ===== */
.benefits {
	padding: var(--space-5xl) 0;
	background: linear-gradient(
		180deg,
		var(--bg-primary) 0%,
		var(--bg-secondary) 100%
	);
}

.section-title {
	text-align: center;
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	margin-bottom: var(--space-3xl);
}

.benefits-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-xl);
	list-style: none;
}

@media (min-width: 576px) {
	.benefits-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.benefits-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.benefit-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 20px;
	padding: var(--space-2xl) var(--space-xl);
	text-align: center;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: all var(--transition-medium);
}

.benefit-card:hover {
	transform: translateY(-8px);
	border-color: var(--accent-green);
	box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

.benefit-icon {
	width: 72px;
	height: 72px;
	background: linear-gradient(
		135deg,
		rgba(16, 185, 129, 0.2) 0%,
		rgba(16, 185, 129, 0.05) 100%
	);
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto var(--space-lg);
	color: var(--accent-green);
}

.benefit-card h3 {
	font-size: 1.25rem;
	margin-bottom: var(--space-sm);
}

.benefit-card p {
	color: var(--text-secondary);
	margin-bottom: var(--space-md);
}

.benefit-value {
	display: inline-block;
	background: var(--gradient-green);
	color: white;
	font-size: 0.85rem;
	font-weight: var(--font-weight-semibold);
	padding: 6px 16px;
	border-radius: 100px;
}

/* ===== Form Section ===== */
.form-section {
	padding: var(--space-5xl) 0;
	background: var(--bg-secondary);
}

.form-container {
	max-width: 560px;
	margin: 0 auto;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 24px;
	padding: var(--space-2xl);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

@media (min-width: 576px) {
	.form-container {
		padding: var(--space-2xl) var(--space-2xl);
	}
}

.form-header {
	text-align: center;
	margin-bottom: var(--space-xl);
}

.form-header h2 {
	font-size: clamp(1.5rem, 3vw, 1.75rem);
	margin-bottom: var(--space-sm);
}

.form-header p {
	color: var(--text-secondary);
}

.whitelist-form {
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

.form-group label {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	gap: var(--space-xs);
}

.required {
	color: var(--error-color);
}

.optional {
	color: var(--text-muted);
	font-weight: 400;
	font-size: 0.8rem;
}

.form-group input,
.form-group select {
	background: var(--bg-primary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 1rem;
	color: var(--text-primary);
	font-family: var(--font-family);
	transition: all var(--transition-fast);
	width: 100%;
}

.form-group input::placeholder {
	color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus {
	outline: none;
	border-color: var(--accent-green);
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group input.error {
	border-color: var(--error-color);
}

.form-group select {
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 48px;
}

.form-group select option {
	background: var(--bg-primary);
	color: var(--text-primary);
}

.error-message {
	color: var(--error-color);
	font-size: 0.8rem;
	min-height: 1.2em;
}

.help-text {
	color: var(--text-muted);
	font-size: 0.8rem;
}

.btn-submit {
	width: 100%;
	margin-top: var(--space-sm);
	font-size: 1rem;
	padding: 18px var(--space-xl);
}

.form-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm);
	margin-top: var(--space-lg);
	color: var(--text-muted);
	font-size: 0.85rem;
	text-align: center;
}

/* ===== Social Proof Section ===== */
.social-proof {
	padding: var(--space-4xl) 0;
	background: var(--bg-primary);
	border-top: 1px solid var(--border-color);
}

.proof-text {
	text-align: center;
	color: var(--text-muted);
	font-size: clamp(0.8rem, 2vw, 0.95rem);
	margin-bottom: var(--space-xl);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.logos-grid {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: var(--space-xl);
	flex-wrap: wrap;
	list-style: none;
}

@media (min-width: 768px) {
	.logos-grid {
		gap: var(--space-3xl);
	}
}

.logo-item {
	opacity: 0.5;
	transition: opacity var(--transition-medium);
	display: flex;
	align-items: center;
	justify-content: center;
}

.logo-item:hover,
.logo-item:focus-within {
	opacity: 0.8;
}

.partner-logo {
	height: 35px;
	width: auto;
	max-width: 120px;
	object-fit: contain;
	filter: grayscale(100%) brightness(1.5);
	transition: filter var(--transition-medium);
}

.logo-item:hover .partner-logo {
	filter: grayscale(0%) brightness(1);
}

/* ===== Footer ===== */
.footer {
	padding: var(--space-xl) 0;
	background: var(--bg-primary);
	border-top: 1px solid var(--border-color);
}

.footer-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-lg);
	text-align: center;
}

@media (min-width: 768px) {
	.footer-content {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	align-items: center;
}

@media (min-width: 768px) {
	.footer-brand {
		align-items: flex-start;
	}
}

.footer-logo-image {
	height: 35px;
	width: auto;
	object-fit: contain;
}

.footer-brand p {
	color: var(--text-muted);
	font-size: 0.85rem;
}

.footer-links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-lg);
}

@media (min-width: 768px) {
	.footer-links {
		flex-direction: row;
		gap: var(--space-xl);
	}
}

.social-links {
	display: flex;
	gap: var(--space-md);
}

.social-links a {
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	color: var(--text-secondary);
	transition: all var(--transition-medium);
}

.social-links a:hover,
.social-links a:focus {
	color: var(--accent-green);
	border-color: var(--accent-green);
	transform: translateY(-2px);
}

.footer-email {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	color: var(--text-secondary);
	text-decoration: none;
	transition: color var(--transition-fast);
	padding: var(--space-sm);
}

.footer-email:hover,
.footer-email:focus {
	color: var(--accent-green);
}

/* ===== Modal ===== */
.modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.9);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 1000;
	align-items: center;
	justify-content: center;
	padding: var(--space-lg);
}

.modal.active {
	display: flex;
}

.modal-content {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 24px;
	padding: var(--space-2xl);
	text-align: center;
	max-width: 400px;
	width: 100%;
	animation: slideUp 0.3s ease;
}

.modal-icon {
	font-size: 64px;
	margin-bottom: var(--space-lg);
}

.modal-content h3 {
	font-size: 1.5rem;
	margin-bottom: var(--space-sm);
}

.modal-content p {
	color: var(--text-secondary);
	margin-bottom: var(--space-xl);
}

.modal-content .btn-primary {
	width: 100%;
}

/* ===== Print Styles ===== */
@media print {
	.header,
	.hero-background,
	.hero-visual,
	.modal {
		display: none !important;
	}

	body {
		background: white;
		color: black;
	}

	.hero {
		min-height: auto;
		padding: 20px 0;
	}
}
