/* ============================================
   ECOTOOL - LEFT SIDEBAR CUSTOM STYLES
   ============================================ */

/* Logo positioning - Integrado con el header */
#header {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	z-index: 10000 !important;
	display: flex !important;
	align-items: center !important;
}

#logo {
	position: relative !important;
	left: 0 !important;
	top: 0 !important;
	transform: none !important;
	margin: 0 2rem !important;
	z-index: 10001 !important;
	display: flex !important;
	align-items: center !important;
}

#logo a {
	display: flex !important;
	align-items: center !important;
	height: 100%;
}

#logo img {
	display: block !important;
	max-height: 40px !important;
	width: auto !important;
	filter: brightness(1);
	transition: all 0.3s ease;
	vertical-align: middle;
}

#logo img:hover {
	filter: brightness(1.1);
	transform: scale(1.05);
}

/* Ajustar navegación para que no se solape con el logo */
#nav {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

/* Hero Header Styles */
.hero-header {
	position: relative;
	padding: 2.5rem 2rem !important;
	margin-bottom: 3rem !important;
	overflow: hidden;
	border-radius: 15px;
}

.hero-background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		linear-gradient(135deg, #1a1d23 0%, #2E3842 50%, #3d4f5c 100%),
		repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(74, 158, 255, 0.03) 35px, rgba(74, 158, 255, 0.03) 70px);
	z-index: 0;
}

.hero-background::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(circle at 15% 20%, rgba(74, 158, 255, 0.15) 0%, transparent 40%),
		radial-gradient(circle at 85% 80%, rgba(53, 122, 189, 0.15) 0%, transparent 40%),
		radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
	animation: pulse 10s ease-in-out infinite;
}

.gradient-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(circle at 20% 50%, rgba(74, 158, 255, 0.12) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(74, 158, 255, 0.08) 0%, transparent 50%),
		linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
	animation: pulse 10s ease-in-out infinite;
	will-change: opacity;
}

@keyframes pulse {
	0%, 100% { 
		opacity: 0.5;
	}
	50% { 
		opacity: 1;
	}
}

.floating-shapes {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
}

.shape {
	position: absolute;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(74, 158, 255, 0.25), rgba(255,255,255,0.08));
	backdrop-filter: blur(10px);
	box-shadow: 
		0 0 30px rgba(74, 158, 255, 0.2),
		inset 0 0 20px rgba(255,255,255,0.1);
	border: 1px solid rgba(74, 158, 255, 0.2);
}

.shape-1 {
	width: 150px;
	height: 150px;
	top: -50px;
	left: 10%;
	animation: float 25s ease-in-out infinite, glow 3s ease-in-out infinite alternate;
	will-change: transform;
}

.shape-2 {
	width: 100px;
	height: 100px;
	top: 50%;
	right: 15%;
	animation: float 20s ease-in-out infinite reverse, glow 4s ease-in-out infinite alternate;
	will-change: transform;
}

.shape-3 {
	width: 80px;
	height: 80px;
	bottom: -20px;
	left: 60%;
	animation: float 22s ease-in-out infinite, glow 3.5s ease-in-out infinite alternate;
	will-change: transform;
}

@keyframes glow {
	0% {
		box-shadow: 0 0 20px rgba(74, 158, 255, 0.2), inset 0 0 20px rgba(255,255,255,0.1);
	}
	100% {
		box-shadow: 0 0 40px rgba(74, 158, 255, 0.4), inset 0 0 30px rgba(255,255,255,0.2);
	}
}

@keyframes float {
	0%, 100% { 
		transform: translateY(0) rotate(0deg);
	}
	50% { 
		transform: translateY(-30px) rotate(180deg);
	}
}

.hero-header-content {
	position: relative;
	z-index: 2;
	text-align: center;
	color: white;
}

.animated-title {
	font-size: 3rem !important;
	font-weight: 700 !important;
	margin-bottom: 1rem !important;
	color: white !important;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	text-shadow: 0 4px 20px rgba(0,0,0,0.5);
	animation: slideInDown 1s ease-out;
}

@keyframes slideInDown {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.title-icon {
	font-size: 2.8rem;
	animation: rotate 4s ease-in-out infinite;
	will-change: transform;
}

@keyframes rotate {
	0%, 100% { 
		transform: rotate(0deg) scale(1);
	}
	50% { 
		transform: rotate(10deg) scale(1.1);
	}
}

.title-badge {
	background: linear-gradient(135deg, #4a9eff 0%, #357abd 100%);
	backdrop-filter: blur(10px);
	padding: 0.2rem 0.8rem;
	border-radius: 20px;
	font-size: 1.5rem;
	border: 2px solid rgba(255,255,255,0.3);
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.animated-subtitle {
	font-size: 1.15rem !important;
	color: rgba(255,255,255,0.9) !important;
	max-width: 800px;
	margin: 0 auto 1.5rem auto !important;
	line-height: 1.6 !important;
	text-shadow: 0 2px 10px rgba(0,0,0,0.3);
	animation: slideInUp 1s ease-out 0.3s both;
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.header-stats {
	display: flex;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
	animation: slideInUp 1s ease-out 0.6s both;
}

.stat-badge {
	background: rgba(255,255,255,0.1);
	backdrop-filter: blur(15px);
	padding: 1rem 1.5rem;
	border-radius: 12px;
	border: 2px solid rgba(255,255,255,0.15);
	box-shadow: 0 6px 20px rgba(0,0,0,0.3);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 110px;
}

.stat-badge:hover {
	transform: translateY(-5px) scale(1.05);
	background: rgba(74, 158, 255, 0.2);
	border-color: rgba(74, 158, 255, 0.4);
	box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
}

.stat-number {
	font-size: 1.75rem;
	font-weight: 700;
	color: white;
	display: block;
	margin-bottom: 0.25rem;
}

.stat-label {
	font-size: 0.75rem;
	color: rgba(255,255,255,0.85);
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Hero Section */
.product-hero {
	position: relative;
	margin-bottom: 3rem;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.hero-image {
	width: 100%;
	height: auto;
	display: block;
}

.hero-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
	padding: 2rem;
	color: white;
}

.hero-content h2 {
	margin: 0 0 0.5rem 0;
	font-size: 2.5rem;
	font-weight: 700;
}

.hero-subtitle {
	margin: 0;
	font-size: 1.1rem;
	opacity: 0.95;
}

/* Features Cards */
.features-modern {
	margin-bottom: 3rem;
	position: relative;
}

.features-modern::before {
	content: '';
	position: absolute;
	top: -100px;
	left: 50%;
	transform: translateX(-50%);
	width: 150px;
	height: 150px;
	background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
	border-radius: 50%;
	z-index: -1;
}

.features-modern h3 {
	text-align: center;
	font-size: 2rem;
	margin-bottom: 2rem;
	color: #2c3e50;
}

.feature-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
}

.feature-card {
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	text-align: center;
	border-top: 4px solid #3498db;
	border: 1px solid rgba(52, 152, 219, 0.1);
	position: relative;
	overflow: hidden;
}

.feature-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, transparent 0%, rgba(52, 152, 219, 0.03) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.feature-card:hover::before {
	opacity: 1;
}

.feature-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 30px rgba(52, 152, 219, 0.25);
	border-color: rgba(52, 152, 219, 0.3);
}

.feature-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
}

.feature-card h4 {
	color: #2c3e50;
	margin-bottom: 0.75rem;
	font-size: 1.3rem;
}

.feature-card p {
	color: #7f8c8d;
	line-height: 1.6;
	margin: 0;
}

/* Requirements */
.requirements-modern {
	background: linear-gradient(135deg, #1a1d23 0%, #2E3842 50%, #3d4f5c 100%);
	padding: 2.5rem 2rem;
	border-radius: 15px;
	margin-bottom: 3rem;
	color: white;
	box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.requirements-modern h3 {
	text-align: center;
	font-size: 1.8rem;
	margin-bottom: 1.75rem;
	color: white;
	text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.req-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.25rem;
	max-width: 1100px;
	margin: 0 auto;
}

.req-card {
	background: rgba(255,255,255,0.08);
	backdrop-filter: blur(10px);
	padding: 1.25rem 1.5rem;
	border-radius: 12px;
	display: flex;
	align-items: center;
	gap: 1rem;
	transition: all 0.3s ease;
	border: 1px solid rgba(255,255,255,0.1);
}

.req-card:hover {
	background: rgba(74, 158, 255, 0.15);
	border-color: rgba(74, 158, 255, 0.3);
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(74, 158, 255, 0.2);
}

.req-icon {
	font-size: 2.2rem;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.req-details {
	display: flex;
	flex-direction: column;
}

.req-details strong {
	font-size: 0.8rem;
	opacity: 0.85;
	margin-bottom: 0.25rem;
	letter-spacing: 0.5px;
}

.req-details span {
	font-size: 1.05rem;
	font-weight: 600;
}

/* Modules */
.modules-modern {
	margin-bottom: 3rem;
	position: relative;
}

.modules-modern::after {
	content: '';
	position: absolute;
	top: 50%;
	right: -100px;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(74, 158, 255, 0.08) 0%, transparent 70%);
	border-radius: 50%;
	z-index: -1;
}

.modules-modern h3 {
	text-align: center;
	font-size: 2rem;
	margin-bottom: 2rem;
	color: #2c3e50;
}

.modules-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.module-card {
	background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
	padding: 2rem;
	border-radius: 12px;
	transition: all 0.3s ease;
	border: 1px solid rgba(52, 152, 219, 0.15);
	box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.module-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 30px rgba(52, 152, 219, 0.2);
	border-color: rgba(52, 152, 219, 0.3);
}

.module-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.module-icon {
	font-size: 2.5rem;
}

.module-card h4 {
	margin: 0;
	color: #2c3e50;
	font-size: 1.4rem;
}

.module-card p {
	color: #34495e;
	margin: 0;
	line-height: 1.6;
}

/* Benefits */
.benefits-modern {
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	padding: 3rem 2rem;
	border-radius: 12px;
	margin-bottom: 3rem;
	border: 1px solid rgba(52, 152, 219, 0.1);
	box-shadow: 0 4px 20px rgba(0,0,0,0.05);
	position: relative;
}

.benefits-modern::before {
	content: '';
	position: absolute;
	bottom: -80px;
	left: -80px;
	width: 180px;
	height: 180px;
	background: radial-gradient(circle, rgba(52, 152, 219, 0.08) 0%, transparent 70%);
	border-radius: 50%;
	z-index: -1;
}

.benefits-modern h3 {
	text-align: center;
	font-size: 2rem;
	margin-bottom: 2rem;
	color: #2c3e50;
}

.benefits-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1rem;
	max-width: 900px;
	margin: 0 auto;
}

.benefit-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: white;
	padding: 1.25rem;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	transition: all 0.3s ease;
}

.benefit-item:hover {
	transform: translateX(5px);
	box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

.check-icon {
	font-size: 1.5rem;
	color: #27ae60;
	font-weight: bold;
}

.benefit-item span:last-child {
	color: #2c3e50;
	font-size: 1rem;
}

/* CTA Section */
.cta-section {
	background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
	padding: 3rem;
	border-radius: 12px;
	text-align: center;
	color: white;
	margin-bottom: 2rem;
}

.cta-section h3 {
	font-size: 2rem;
	margin-bottom: 1rem;
	color: white;
}

.cta-section p {
	font-size: 1.1rem;
	margin-bottom: 2rem;
	opacity: 0.9;
}

.cta-section .button {
	font-size: 1.1rem;
	padding: 1rem 2.5rem;
}

/* Fondo General de la Página */
body {
	background: 
		linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
	position: relative;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(52, 152, 219, 0.03) 2px, rgba(52, 152, 219, 0.03) 4px),
		repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(52, 152, 219, 0.03) 2px, rgba(52, 152, 219, 0.03) 4px),
		radial-gradient(circle at 20% 30%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(74, 158, 255, 0.05) 0%, transparent 50%);
	pointer-events: none;
	z-index: 0;
}

#page-wrapper {
	position: relative;
	z-index: 1;
}

.wrapper.style1 {
	background: transparent !important;
}

/* Patrón decorativo en el contenedor */
.container {
	position: relative;
}

.container::before {
	content: '';
	position: absolute;
	top: -50px;
	right: -50px;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(74, 158, 255, 0.08) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
	z-index: -1;
}

.container::after {
	content: '';
	position: absolute;
	bottom: -50px;
	left: -50px;
	width: 250px;
	height: 250px;
	background: radial-gradient(circle, rgba(52, 152, 219, 0.06) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
	z-index: -1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media screen and (max-width: 768px) {
	.hero-header {
		padding: 2rem 1rem !important;
	}

	.animated-title {
		font-size: 1.8rem !important;
		flex-direction: column;
		gap: 0.5rem;
	}

	.title-icon {
		font-size: 2rem;
	}

	.title-badge {
		font-size: 1rem;
		padding: 0.15rem 0.6rem;
	}

	.animated-subtitle {
		font-size: 0.95rem !important;
	}

	.header-stats {
		gap: 0.75rem;
	}

	.stat-badge {
		padding: 0.75rem 1.25rem;
		min-width: 90px;
	}

	.stat-number {
		font-size: 1.3rem;
	}

	.stat-label {
		font-size: 0.7rem;
	}

	/* Mantener fondo atractivo pero sin animaciones en móvil */
	.hero-background::before {
		animation: none !important;
		opacity: 0.7;
	}

	/* Desactivar animaciones de formas flotantes en móvil */
	.shape-1,
	.shape-2,
	.shape-3 {
		animation: none !important;
		opacity: 0.5;
	}

	.shape-1 {
		width: 80px;
		height: 80px;
	}

	.shape-2 {
		width: 60px;
		height: 60px;
	}

	.shape-3 {
		width: 50px;
		height: 50px;
	}

	/* Desactivar animación del icono en móvil */
	.title-icon {
		animation: none !important;
	}

	/* Desactivar el brillo/pulso del fondo en móvil */
	.gradient-overlay {
		animation: none !important;
		opacity: 0.6;
	}

	/* Optimización de rendimiento en móvil */
	@keyframes float {
		0%, 100% { 
			transform: translateY(0) rotate(0deg);
		}
		50% { 
			transform: translateY(-20px) rotate(90deg);
		}
	}
}

/* Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
	.shape,
	.gradient-overlay,
	.title-icon,
	.animated-title,
	.animated-subtitle,
	.header-stats {
		animation: none !important;
	}
	
	.stat-badge:hover,
	.req-card:hover,
	.feature-card:hover,
	.module-card:hover,
	.benefit-item:hover {
		transform: none !important;
	}

	.hero-content h2 {
		font-size: 1.8rem;
	}

	.hero-subtitle {
		font-size: 0.95rem;
	}

	.features-modern h3,
	.requirements-modern h3,
	.modules-modern h3,
	.benefits-modern h3,
	.cta-section h3 {
		font-size: 1.5rem;
	}

	.feature-cards,
	.req-cards,
	.modules-grid,
	.benefits-list {
		grid-template-columns: 1fr;
	}

	.requirements-modern {
		padding: 2rem 1rem;
	}

	.cta-section {
		padding: 2rem 1rem;
	}
}

/* Estilos específicos para móviles */
@media screen and (max-width: 736px) {
	.hero-header {
		padding: 2rem 1rem !important;
	}

	.animated-title {
		font-size: 2rem !important;
		flex-wrap: wrap;
		justify-content: center;
	}

	.title-icon {
		font-size: 1.5rem !important;
	}

	.title-badge {
		font-size: 0.8rem !important;
		padding: 0.3rem 0.8rem !important;
	}

	.animated-subtitle {
		font-size: 0.9rem !important;
		line-height: 1.5 !important;
		padding: 0 0.5rem;
	}

	.header-stats {
		flex-direction: column !important;
		gap: 1rem !important;
		width: 100% !important;
		padding: 0 1rem;
	}

	.stat-badge {
		width: 100% !important;
		max-width: 280px !important;
		margin: 0 auto !important;
		padding: 1.2rem 1.5rem !important;
	}

	.stat-number {
		font-size: 2rem !important;
	}

	.stat-label {
		font-size: 0.9rem !important;
	}

	/* Ocultar botón "Solicitar Demo" en móviles */
	#header .button.primary {
		display: none !important;
	}

	/* Ajustar navegación en móvil */
	#nav {
		font-size: 0.9rem !important;
	}

	#nav ul li a {
		padding: 0.5rem 0.8rem !important;
	}

	/* Hero image */
	.hero-image {
		max-width: 100% !important;
		height: auto !important;
	}

	/* Features cards en móvil */
	.feature-cards {
		grid-template-columns: 1fr !important;
		gap: 1rem !important;
	}

	.feature-card {
		padding: 1.5rem !important;
	}

	/* Ajustar padding general en móvil */
	.container {
		padding: 0 1rem !important;
	}

	/* Hero content */
	.hero-content h2 {
		font-size: 1.8rem !important;
	}

	.hero-subtitle {
		font-size: 0.95rem !important;
	}
}

/* Para pantallas muy pequeñas */
@media screen and (max-width: 480px) {
	.animated-title {
		font-size: 1.75rem !important;
	}

	.stat-badge {
		padding: 1rem 1.2rem !important;
	}

	.stat-number {
		font-size: 1.75rem !important;
	}

	.stat-label {
		font-size: 0.85rem !important;
	}

	.title-badge {
		font-size: 0.7rem !important;
		padding: 0.25rem 0.6rem !important;
	}

	/* Mantener botón oculto en pantallas muy pequeñas */
	#header .button.primary {
		display: none !important;
	}
}

/* Ajustes adicionales para el header en todas las resoluciones móviles */
@media screen and (max-width: 980px) {
	#header {
		padding: 1rem 1.5rem !important;
		justify-content: center !important;
	}

	/* Ocultar logo en móviles */
	#logo {
		display: none !important;
	}

	/* Ocultar todos los enlaces del menú en la barra superior */
	#nav > ul > li {
		display: none !important;
	}
}
