.cfdi-hero {
	background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-tertiary-dark) 100%);
	padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
	position: relative;
	overflow: hidden;

	&::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
		opacity: 0.3;
	}

	.cfdi-hero-container {
		max-width: 1400px;
		margin: 0 auto;
		display: grid;
		grid-template-columns: 1.2fr 1fr;
		gap: 4rem;
		align-items: center;
		position: relative;
		z-index: 1;
	}

	.cfdi-hero-content {
		.cfdi-badge {
			display: inline-block;
			background: rgba(255, 255, 255, 0.2);
			backdrop-filter: blur(10px);
			color: var(--text-on-dark);
			padding: 0.5rem 1.5rem;
			border-radius: 9999px;
			font-size: 0.9rem;
			font-weight: 700;
			margin-bottom: 2rem;
			border: 1px solid rgba(255, 255, 255, 0.3);
		}

		.cfdi-hero-title {
			font-size: clamp(2.5rem, 6vw, 4rem);
			font-weight: 900;
			color: var(--text-on-dark);
			line-height: 1.1;
			margin-bottom: 1.5rem;
		}

		.cfdi-hero-subtitle {
			font-size: clamp(1.1rem, 2.5vw, 1.5rem);
			color: rgba(255, 255, 255, 0.95);
			line-height: 1.6;
			margin-bottom: 2rem;
		}

		.cfdi-hero-stats {
			display: grid;
			grid-template-columns: repeat(3, 1fr);
			gap: 2rem;
			margin-bottom: 3rem;

			.stat-item {
				text-align: center;

				.stat-value {
					display: block;
					font-size: clamp(2rem, 4vw, 3rem);
					font-weight: 900;
					color: var(--color-primary);
					line-height: 1;
					margin-bottom: 0.5rem;
				}

				.stat-label {
					display: block;
					font-size: 0.9rem;
					color: rgba(255, 255, 255, 0.9);
				}
			}
		}

		.cfdi-hero-cta {
			display: flex;
			gap: 1.5rem;
			flex-wrap: wrap;
		}

		.btn-primary {
			background: var(--bg-primary);
			color: var(--color-tertiary-dark);
			padding: 1.25rem 2.5rem;
			border-radius: 9999px;
			font-size: 1.2rem;
			font-weight: 700;
			gap: 0.75rem;
			box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
			transition: all var(--transition-base);
			min-height: 56px;

			i {
				font-size: 1.5em;
				transition: transform var(--transition-base);
			}

			&:hover {
				transform: translateY(-4px);
				box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);

				i {
					transform: translateX(4px);
				}
			}
		}

		.btn-secondary {
			background: rgba(255, 255, 255, 0.15);
			backdrop-filter: blur(10px);
			padding: 1.25rem 2.5rem;
			border-radius: 9999px;
			font-size: 1.2rem;
			gap: 0.75rem;
			border: 2px solid rgba(255, 255, 255, 0.3);
			transition: all var(--transition-base);
			min-height: 56px;

			&:hover {
				background: rgba(255, 255, 255, 0.25);
				transform: translateY(-4px);
			}
		}
	}

	.cfdi-hero-image {
		display: flex;
		align-items: center;
		justify-content: center;

		.cfdi-mockup {
			width: 300px;
			height: 400px;
			background: rgba(255, 255, 255, 0.1);
			backdrop-filter: blur(20px);
			border-radius: 1.5rem;
			border: 2px solid rgba(255, 255, 255, 0.2);
			display: flex;
			align-items: center;
			justify-content: center;
			box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

			i {
				font-size: 8rem;
				color: rgba(255, 255, 255, 0.8);
			}
		}
	}

	@media (max-width: 968px) {
		.cfdi-hero-container {
			grid-template-columns: 1fr;
		}

		.cfdi-hero-image {
			display: none;
		}

		.cfdi-hero-content {
			.cfdi-hero-stats {
				grid-template-columns: 1fr;
				gap: 1.5rem;
			}

			.cfdi-hero-cta {
				flex-direction: column;
			}

			.btn-cfdi-primary,
			.btn-cfdi-secondary {
				width: 100%;
				justify-content: center;
			}
		}
	}
}

/* ===== CONTAINER REUTILIZABLE ===== */
.cfdi-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2rem);
}

.section-header {
	text-align: center;
	margin-bottom: 4rem;

	h2 {
		font-size: clamp(2rem, 5vw, 3rem);
		font-weight: 800;
		color: var(--text-primary);
		margin-bottom: 1rem;
		line-height: 1.2;
	}

	p {
		font-size: clamp(1.1rem, 2vw, 1.3rem);
		color: var(--text-secondary);
		max-width: 700px;
		margin: 0 auto;
	}
}

/* ===== PROBLEMA/SOLUCIÓN ===== */
.cfdi-problem {
	padding: clamp(4rem, 8vw, 6rem) 0;
	background: var(--bg-secondary);

	.problem-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 3rem;
	}

	.problem-card {
		background: var(--bg-primary);
		border-radius: 1rem;
		padding: 3rem 2rem;
		box-shadow: var(--shadow-md);
		border-top: 4px solid;

		&.danger {
			border-top-color: var(--color-danger);

			.problem-icon {
				background: var(--color-danger-lighter);
				color: var(--color-danger-dark);
			}

			ul li i {
				color: var(--color-danger);
			}
		}

		&.success {
			border-top-color: var(--color-success);

			.problem-icon {
				background: var(--color-success-lighter);
				color: var(--color-success-dark);
			}

			ul li i {
				color: var(--color-success);
			}
		}

		.problem-icon {
			width: 80px;
			height: 80px;
			border-radius: 0.75rem;
			display: flex;
			align-items: center;
			justify-content: center;
			margin-bottom: 2rem;

			i {
				font-size: 3rem;
			}
		}

		h3 {
			font-size: 1.75rem;
			font-weight: 700;
			margin-bottom: 2rem;
			color: var(--text-primary);
		}

		ul li {
			display: flex;
			align-items: flex-start;
			gap: 1rem;
			margin-bottom: 1rem;
			font-size: 1.05rem;
			line-height: 1.6;
			color: var(--text-secondary);

			i {
				font-size: 1.25rem;
				flex-shrink: 0;
				margin-top: 0.25rem;
			}
		}
	}

	@media (max-width: 968px) {
		.problem-grid {
			grid-template-columns: 1fr;
		}
	}
}

/* ===== BENEFICIOS ===== */
.cfdi-benefits {
	padding: clamp(4rem, 8vw, 6rem) 0;

	.benefits-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
		gap: 2rem;
	}

	.benefit-card {
		background: var(--bg-primary);
		border-radius: 1rem;
		padding: 2.5rem 2rem;
		box-shadow: var(--shadow-sm);
		border: 1px solid var(--gray-200);
		transition: all var(--transition-base);

		&:hover {
			transform: translateY(-8px);
			box-shadow: var(--shadow-xl);
			border-color: var(--color-tertiary);

			.benefit-icon {
				transform: scale(1.1);
			}
		}

		.benefit-icon {
			width: 70px;
			height: 70px;
			background: linear-gradient(135deg, var(--color-secondary-lighter), var(--color-tertiary-lighter));
			border-radius: 0.75rem;
			display: flex;
			align-items: center;
			justify-content: center;
			margin-bottom: 1.5rem;
			transition: transform var(--transition-base);

			i {
				font-size: 2.5rem;
				color: var(--color-tertiary-dark);
			}
		}

		h3 {
			font-size: 1.5rem;
			font-weight: 700;
			margin-bottom: 1rem;
			color: var(--text-primary);
		}

		p {
			font-size: 1.05rem;
			line-height: 1.6;
			color: var(--text-secondary);
		}
	}
}

/* ===== CARACTERÍSTICAS TÉCNICAS ===== */
.cfdi-features {
	padding: clamp(4rem, 8vw, 6rem) 0;
	background: var(--bg-secondary);

	.features-list {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
		gap: 2rem;
	}

	.feature-item {
		background: var(--bg-primary);
		padding: 2rem;
		border-radius: 0.5rem;
		display: flex;
		gap: 1.5rem;
		box-shadow: var(--shadow-sm);
		transition: all var(--transition-base);

		i {
			font-size: 2rem;
			color: var(--color-success);
			flex-shrink: 0;
		}

		h4 {
			font-size: 1.25rem;
			font-weight: 700;
			margin-bottom: 0.5rem;
			color: var(--text-primary);
		}

		p {
			font-size: 1rem;
			line-height: 1.6;
			color: var(--text-secondary);
		}

		&:hover {
			transform: translateX(8px);
			box-shadow: var(--shadow-md);
		}
	}
}

/* ===== CTA FINAL ===== */
.cfdi-final-cta {
	padding: clamp(5rem, 10vw, 8rem) 0;
	background: linear-gradient(135deg, var(--color-tertiary-dark) 0%, var(--color-secondary-dark) 100%);
	position: relative;

	&::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
		opacity: 0.3;
	}

	.final-cta-content {
		text-align: center;
		position: relative;
		z-index: 1;

		h2 {
			font-size: clamp(2rem, 5vw, 3.5rem);
			font-weight: 800;
			color: var(--text-on-dark);
			margin-bottom: 1.5rem;
			line-height: 1.2;
		}

		p {
			font-size: clamp(1.1rem, 2.5vw, 1.5rem);
			color: rgba(255, 255, 255, 0.95);
			margin-bottom: 3rem;
		}

		.cta-buttons {
			display: flex;
			flex-direction: column;
			align-items: center;
			gap: 2rem;
		}

		.btn-cfdi-large {
			background: var(--bg-primary);
			color: var(--color-tertiary-dark);
			padding: 1.5rem 3rem;
			border-radius: 9999px;
			font-size: 1.3rem;
			font-weight: 700;
			gap: 1rem;
			box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
			transition: all var(--transition-base);
			min-height: 64px;

			i {
				font-size: 1.75em;
			}

			&:hover {
				transform: translateY(-6px);
				box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
			}
		}

		.cta-contact {
			p {
				font-size: 1rem;
				margin-bottom: 0.75rem;
			}

			.phone-link {
				color: var(--text-on-dark);
				font-size: 1.75rem;
				font-weight: 700;
				display: inline-flex;
				align-items: center;
				gap: 0.5rem;
				transition: all var(--transition-base);

				&:hover {
					color: var(--color-primary);
				}
			}
		}
	}
}
