/* ============================================
   INDEX - HOMEPAGE CUSTOM STYLES
   ============================================ */

/* ============================================
   BUTTONS - GENERAL ALIGNMENT
   ============================================ */
.button, button, input[type="submit"], input[type="reset"], input[type="button"] {
	text-align: center !important;
	display: inline-block !important;
	vertical-align: middle !important;
}

/* ============================================
   VIDEO BACKGROUND
   ============================================ */
.intro-video {
	width: 100%;
	overflow: hidden;
	height: 100%;
	position: relative;
}

/* ============================================
   LOGOS - DESKTOP & MOBILE
   ============================================ */
#logo-desktop {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	font-size: 70px;
	font-weight: lighter;
	margin-bottom: -10px;
}

#logo-desktop a img {
	max-height: 160px;
	width: auto;
}

#logo-mobile {
	display: none;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	font-size: 48px;
	font-weight: 100;
	margin-bottom: -10px;
	color: white;
	text-shadow: 0 0 20px rgba(255,255,255,0.5);
	letter-spacing: 3px;
}

#logo-mobile a {
	color: white;
	text-decoration: none;
}

header.major > p {
	margin-top: -15px;
}

/* ============================================
   BANNER - QUIENES SOMOS SECTION
   ============================================ */
#banner {
	min-height: 0 !important;
	height: auto !important;
	padding-top: 5rem !important;
	padding-bottom: 2rem !important;
}

#banner:before {
	display: none !important;
	height: 0 !important;
}

#banner .content {
	text-align: center;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0.5rem 2rem 1rem 2rem;
	display: block !important;
	vertical-align: top !important;
}

#banner .content header {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

#banner .goto-next {
	position: absolute !important;
	bottom: 2rem !important;
}

#banner .content header h2 {
	font-size: 3em;
	margin-bottom: 1.5em;
	margin-top: 0 !important;
	padding-top: 0 !important;
	font-weight: 300;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

#banner .content .quienes-somos-intro {
	background: rgba(255, 255, 255, 0.08);
	padding: 2rem;
	border-radius: 15px;
	margin-bottom: 1.5rem;
	backdrop-filter: blur(15px);
	box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

#banner .content .quienes-somos-intro p {
	font-size: 1.1em;
	line-height: 1.8;
	margin-bottom: 1.2em;
	font-weight: 300;
}

#banner .content .quienes-somos-intro p:last-child {
	font-size: 1.05em;
	margin-bottom: 0;
}

#banner .content .quienes-somos-intro strong {
	color: #4da5f5;
}

#banner .content .mision-vision-container {
	display: inline-block;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
}

#banner .content .mision-box,
#banner .content .vision-box {
	background: rgba(255, 255, 255, 0.05);
	padding: 1.5rem;
	border-radius: 10px;
	backdrop-filter: blur(10px);
}

#banner .content .mision-box {
	margin-bottom: 1.2rem;
}

#banner .content .mision-box h3,
#banner .content .vision-box h3 {
	font-size: 1.8em;
	margin-bottom: 0.8em;
	font-weight: 300;
	color: #4da5f5;
}

#banner .content .mision-box p,
#banner .content .vision-box p {
	font-size: 1em;
	line-height: 1.7;
	font-weight: 300;
	margin-bottom: 0;
}

/* ============================================
   PRODUCT PREVIEW IMAGES
   ============================================ */
.product-preview-container {
	position: relative;
	height: 250px;
	overflow: hidden;
}

.product-preview-container img {
	height: 209px;
	display: block;
}

/* Product preview reflection effect */
.product-reflection {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 50px;
	background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
	transform: scaleY(-1);
	opacity: 0.7;
}

.product-reflection img {
	height: 209px;
	display: block;
	transform: scaleY(-1);
	opacity: 0.3;
}

/* ============================================
   PRODUCTS SECTION - ECOTOOL FEATURES
   ============================================ */

/* Agregar separación entre columnas */
#one .col-4 {
	padding-left: 1rem !important;
	padding-right: 1rem !important;
	margin-bottom: 2rem;
}

.ecotool-features-box {
	background: rgba(255,255,255,0.03);
	padding: 1.2rem;
	border-radius: 10px;
	height: 100%;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.ecotool-features-box h3 {
	color: #4da5f5;
	font-size: 1.05em;
	margin-bottom: 0.6em;
	font-weight: 600;
	line-height: 1.2;
}

.ecotool-features-box > p {
	font-size: 0.88em;
	line-height: 1.4;
	margin-bottom: 1em;
	color: #ccc;
}

.ecotool-features-box > p strong {
	color: #fff;
}

.features-list {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	flex-grow: 1;
}

.feature-item-row {
	display: flex;
	gap: 0.5rem;
	align-items: start;
}

.feature-icon-box {
	min-width: 24px;
	height: 24px;
	background: rgba(77, 165, 245, 0.15);
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.feature-icon-box i {
	color: #4da5f5;
	font-size: 0.75em;
}

.feature-text strong {
	color: #fff;
	display: block;
	margin-bottom: 0.15em;
	font-size: 0.88em;
	line-height: 1.2;
}

.feature-text span {
	font-size: 0.8em;
	color: #aaa;
	line-height: 1.3;
	display: block;
}

/* Estilo para la imagen de EcoTool */
.ecotool-preview-box {
	text-align: center;
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-sizing: border-box;
	height: 100%;
}

.ecotool-preview-box img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* CTA Box for EcoTool - "El Compañero Ideal" */
.ecotool-cta-box {
	background: linear-gradient(135deg, rgba(77, 165, 245, 0.15) 0%, rgba(77, 165, 245, 0.08) 100%);
	padding: 1.5rem 1.2rem;
	border-radius: 15px;
	border: 1px solid rgba(77, 165, 245, 0.3);
	height: 100%;
	min-height: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	box-sizing: border-box;
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.ecotool-cta-box::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(77, 165, 245, 0.1) 0%, transparent 70%);
	animation: pulse 3s ease-in-out infinite;
	pointer-events: none;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); opacity: 0.5; }
	50% { transform: scale(1.1); opacity: 0.8; }
}

.ecotool-cta-box:hover {
	transform: translateY(-5px);
	border-color: rgba(77, 165, 245, 0.5);
	box-shadow: 0 12px 40px rgba(77, 165, 245, 0.3);
}

.ecotool-cta-icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, rgba(77, 165, 245, 0.3) 0%, rgba(77, 165, 245, 0.15) 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
	position: relative;
	z-index: 1;
	box-shadow: 0 4px 20px rgba(77, 165, 245, 0.4);
	transition: all 0.3s ease;
}

.ecotool-cta-box:hover .ecotool-cta-icon {
	transform: scale(1.1) rotate(5deg);
	box-shadow: 0 6px 30px rgba(77, 165, 245, 0.6);
}

.ecotool-cta-icon i {
	color: #4da5f5;
	font-size: 1.5em;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.ecotool-cta-box h3 {
	font-size: 1.25em;
	margin-bottom: 0.7em;
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.5px;
	position: relative;
	z-index: 1;
	text-shadow: 0 2px 10px rgba(0,0,0,0.3);
	line-height: 1.2;
}

.ecotool-cta-box p {
	font-size: 0.9em;
	line-height: 1.5;
	margin-bottom: 1.3em;
	color: rgba(255, 255, 255, 0.9);
	max-width: 100%;
	position: relative;
	z-index: 1;
	font-weight: 300;
}

.ecotool-cta-box .button.primary {
	padding: 0.85rem 2rem;
	font-size: 0.9em;
	font-weight: 600;
	background: linear-gradient(135deg, #4da5f5 0%, #3a8fd9 100%);
	border: none;
	box-shadow: 0 6px 20px rgba(77, 165, 245, 0.4);
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 30px;
	text-align: center;
	display: inline-block;
	vertical-align: middle;
	line-height: 1.2;
}

.ecotool-cta-box .button.primary:hover {
	background: linear-gradient(135deg, #5bb5ff 0%, #4da5f5 100%);
	box-shadow: 0 8px 30px rgba(77, 165, 245, 0.6);
	transform: translateY(-2px);
}

/* ============================================
   WHY US SECTION
   ============================================ */
#three .content p {
	font-size: 1.05em;
	line-height: 1.6;
	margin-bottom: 1.5em;
}

#three .content strong {
	color: #4da5f5;
}

.experience-badge {
	background: rgba(77, 165, 245, 0.1);
	padding: 1rem 1.5rem;
	border-radius: 8px;
	border-left: 4px solid #4da5f5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5em;
}

.experience-number {
	font-size: 2em;
	font-weight: bold;
	color: #4da5f5;
}

.experience-text {
	font-size: 0.9em;
	color: #ccc;
}

#three .content > p:last-of-type {
	margin-bottom: 1.5em;
}

/* ============================================
   SERVICES CAROUSEL SECTION
   ============================================ */
#four header.major {
	margin-bottom: 60px;
}

#four .row.gtr-uniform {
	margin-bottom: 40px;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
#five {
	background-color: #f4f4f4;
	color: #666;
}

#five h2 {
	color: #333;
	font-weight: 300;
}

#five p {
	color: #666;
	font-weight: 300;
}

#five input[type="email"] {
	background: white;
	border: 1px solid #ddd;
	color: #666;
}

#five input[type="submit"] {
	background: #333;
	color: white;
	border: none;
}

#five .form-notice {
	font-size: 0.8em;
	color: #999;
	margin-top: 15px;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET & MOBILE
   ============================================ */

/* RESOLUCIONES GRANDES - Ajustar espacios */
@media screen and (min-width: 1281px) {
	#banner {
		min-height: 0 !important;
		height: auto !important;
		padding-top: 5.5rem !important;
		padding-bottom: 2.5rem !important;
	}
	
	#banner:before {
		display: none !important;
	}
	
	#banner .content {
		padding: 0.5rem 2rem 1.5rem 2rem;
	}
	
	#banner .content header h2 {
		margin-top: 0 !important;
		padding-top: 0 !important;
	}
}

/* RESOLUCIONES MEDIAS - Laptop estándar */
@media screen and (max-width: 1280px) and (min-width: 981px) {
	#banner {
		min-height: 0 !important;
		height: auto !important;
		padding-top: 5rem !important;
		padding-bottom: 2rem !important;
	}
	
	#banner:before {
		display: none !important;
	}
	
	#banner .content {
		padding: 0.5rem 2rem 1rem 2rem;
	}
	
	#banner .content header h2 {
		font-size: 2.5em;
		margin-bottom: 1.3em;
		margin-top: 0 !important;
		padding-top: 0 !important;
	}
	
	/* Ajustar features box */
	.ecotool-features-box {
		padding: 1rem;
	}
	
	.ecotool-features-box h3 {
		font-size: 0.95em;
		margin-bottom: 0.5em;
	}
	
	.ecotool-features-box > p {
		font-size: 0.82em;
		margin-bottom: 0.8em;
	}
	
	.features-list {
		gap: 0.6rem;
	}
	
	.feature-icon-box {
		min-width: 22px;
		height: 22px;
	}
	
	.feature-text strong {
		font-size: 0.82em;
	}
	
	.feature-text span {
		font-size: 0.75em;
	}
	
	/* Ajustar CTA box */
	.ecotool-cta-box {
		padding: 1.2rem 1rem;
		min-height: auto;
	}
	
	.ecotool-cta-icon {
		width: 50px;
		height: 50px;
		margin-bottom: 0.8rem;
	}
	
	.ecotool-cta-icon i {
		font-size: 1.3em;
	}
	
	.ecotool-cta-box h3 {
		font-size: 1.1em;
		margin-bottom: 0.6em;
	}
	
	.ecotool-cta-box p {
		font-size: 0.85em;
		line-height: 1.4;
		margin-bottom: 1.1em;
	}
	
	.ecotool-cta-box .button.primary {
		padding: 0.75rem 1.5rem;
		font-size: 0.85em;
	}
}

/* TABLET - Media Queries */
@media screen and (max-width: 980px) and (min-width: 769px) {
	/* Ajustar Banner en tablets */
	#banner {
		min-height: 0 !important;
		height: auto !important;
		padding-top: 5rem !important;
		padding-bottom: 2rem !important;
	}
	
	#banner:before {
		display: none !important;
	}
	
	#banner .content {
		padding: 0.5rem 1.5rem 1rem 1.5rem;
	}
	
	#banner .content header h2 {
		font-size: 2.2em;
		margin-bottom: 1.2em;
		margin-top: 0 !important;
		padding-top: 0 !important;
	}
	
	#banner .content .quienes-somos-intro {
		padding: 1.5rem;
		margin-bottom: 1.2rem;
	}
	
	#banner .content .quienes-somos-intro p {
		font-size: 1em;
		line-height: 1.6;
		margin-bottom: 1em;
	}
	
	#banner .content .mision-box h3,
	#banner .content .vision-box h3 {
		font-size: 1.6em;
		margin-bottom: 0.7em;
	}
	
	#banner .content .mision-box p,
	#banner .content .vision-box p {
		font-size: 0.95em;
		line-height: 1.6;
	}
	
	/* Ajustar CTA Box en tablets */
	.ecotool-cta-box {
		padding: 1.8rem;
		min-height: 320px;
	}
	
	.ecotool-cta-icon {
		width: 70px;
		height: 70px;
		margin-bottom: 1.3rem;
	}
	
	.ecotool-cta-icon i {
		font-size: 1.8em;
	}
	
	.ecotool-cta-box h3 {
		font-size: 1.35em;
		margin-bottom: 0.9em;
	}
	
	.ecotool-cta-box p {
		font-size: 0.95em;
		margin-bottom: 1.8em;
	}
	
	.ecotool-cta-box .button.primary {
		padding: 0.9rem 2.2rem;
		font-size: 0.95em;
	}
}

/* CSS PARA MÓVILES - FONDO FIJO Y SIN VIDEO */
@media screen and (max-width: 768px) {
	/* OCULTAR VIDEO EN MÓVILES */
	.intro-video {
		display: none !important;
		visibility: hidden !important;
	}
	
	/* FONDO SÓLIDO ELEGANTE PARA MÓVILES */
	body {
		background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 70%, #1a1a2e 100%) !important;
		background-attachment: fixed !important;
		min-height: 100vh !important;
	}
	
	/* NOMBRE SERVINSIS FIJO EN EL FONDO */
	body::before {
		content: "SERVINSIS";
		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		font-size: 15vw;
		font-weight: 100;
		color: rgba(255, 255, 255, 0.05);
		z-index: 1;
		pointer-events: none;
		font-family: 'Arial', sans-serif;
		letter-spacing: 4px;
		white-space: nowrap;
	}
	
	/* ASEGURAR QUE TODO EL CONTENIDO ESTÉ ENCIMA */
	#page-wrapper {
		position: relative;
		z-index: 10;
		background: transparent !important;
	}
	
	/* HACER EL BANNER TRANSPARENTE EN MÓVILES */
	#banner {
		background: rgba(0, 0, 0, 0.3) !important;
		backdrop-filter: blur(5px) !important;
		padding: 4rem 1rem 2rem 1rem !important;
		min-height: auto !important;
		display: block !important;
	}
	
	/* OPTIMIZAR CONTENIDO DEL BANNER PARA MÓVILES */
	#banner .content {
		text-align: center !important;
		max-width: 100% !important;
		padding: 0.5rem 1rem 1rem 1rem !important;
		margin-top: 0 !important;
	}
	
	#banner .content header {
		margin-top: 0 !important;
		padding-top: 0 !important;
	}
	
	#banner .content header h2 {
		font-size: 1.8rem !important;
		line-height: 1.2 !important;
		margin-bottom: 1.5rem !important;
		margin-top: 0 !important;
		padding-top: 0 !important;
		color: #ffffff !important;
		text-shadow: 0 2px 10px rgba(0,0,0,0.7) !important;
		font-weight: 300 !important;
	}
	
	#banner .content header h3 {
		font-size: 1.4rem !important;
		line-height: 1.3 !important;
		margin-bottom: 1rem !important;
		margin-top: 2rem !important;
		color: #ffffff !important;
		text-shadow: 0 2px 10px rgba(0,0,0,0.7) !important;
		font-weight: 400 !important;
	}
	
	#banner .content header p {
		font-size: 0.9rem !important;
		line-height: 1.5 !important;
		color: rgba(255,255,255,0.9) !important;
		text-shadow: 0 1px 5px rgba(0,0,0,0.8) !important;
		margin-bottom: 2rem !important;
		padding: 0 0.5rem !important;
		font-weight: 300 !important;
	}
	
	/* HACER TEXTO MÁS LEGIBLE EN MÓVILES */
	#banner .content header p strong {
		color: #4da5f5 !important;
		font-weight: 600 !important;
		text-shadow: 0 1px 3px rgba(0,0,0,0.9) !important;
	}
	
	/* MEJORAR ESPACIADO EN MÓVILES */
	#banner .content header p br {
		display: none !important;
	}
	
	/* BOTÓN GOTO-NEXT MÁS VISIBLE EN MÓVILES */
	#banner .goto-next {
		background: rgba(77, 165, 245, 0.8) !important;
		border-radius: 50% !important;
		padding: 15px !important;
		bottom: 2rem !important;
	}
	
	/* OPTIMIZAR "EL COMPAÑERO IDEAL" PARA MÓVILES */
	.ecotool-cta-box {
		padding: 2rem 1.5rem !important;
		min-height: auto !important;
		margin-bottom: 2rem !important;
		background: linear-gradient(135deg, rgba(77, 165, 245, 0.2) 0%, rgba(77, 165, 245, 0.1) 100%) !important;
	}
	
	.ecotool-cta-icon {
		width: 70px !important;
		height: 70px !important;
		margin-bottom: 1.3rem !important;
	}
	
	.ecotool-cta-icon i {
		font-size: 1.8em !important;
	}
	
	.ecotool-cta-box h3 {
		font-size: 1.4em !important;
		margin-bottom: 0.8em !important;
		line-height: 1.3 !important;
	}
	
	.ecotool-cta-box p {
		font-size: 1em !important;
		line-height: 1.6 !important;
		margin-bottom: 1.5em !important;
		max-width: 100% !important;
		padding: 0 0.5rem !important;
	}
	
	.ecotool-cta-box .button.primary {
		padding: 1rem 2rem !important;
		font-size: 0.95em !important;
		width: auto !important;
		max-width: 100% !important;
	}
	
	/* Ajustar features box también en móviles */
	.ecotool-features-box {
		padding: 1.5rem 1rem !important;
		margin-bottom: 1.5rem !important;
	}
	
	/* CONTROL DE LOGOS */
	#logo-desktop {
		display: none !important;
	}
	
	#logo-mobile {
		display: block !important;
		position: static !important;
		transform: none !important;
		opacity: 1 !important;
		transition: none !important;
		animation: none !important;
	}
	
	/* FORZAR QUE EL LOGO MÓVIL NUNCA SE MUEVA */
	#logo-mobile, #logo-mobile * {
		position: static !important;
		transform: none !important;
		opacity: 1 !important;
		transition: none !important;
		animation: none !important;
		will-change: auto !important;
	}
}

/* MÓVILES PEQUEÑOS - Extra ajustes */
@media screen and (max-width: 480px) {
	.ecotool-cta-box {
		padding: 1.8rem 1.2rem !important;
	}
	
	.ecotool-cta-icon {
		width: 60px !important;
		height: 60px !important;
		margin-bottom: 1rem !important;
	}
	
	.ecotool-cta-icon i {
		font-size: 1.6em !important;
	}
	
	.ecotool-cta-box h3 {
		font-size: 1.25em !important;
		margin-bottom: 0.7em !important;
	}
	
	.ecotool-cta-box p {
		font-size: 0.95em !important;
		margin-bottom: 1.3em !important;
	}
	
	.ecotool-cta-box .button.primary {
		padding: 0.9rem 1.8rem !important;
		font-size: 0.9em !important;
	}
}

/* DESKTOP - MANTENER VIDEO NORMAL Y LOGO ORIGINAL */
@media screen and (min-width: 769px) {
	.intro-video {
		display: block !important;
	}
	
	#logo-desktop {
		display: block !important;
	}
	
	#logo-mobile {
		display: none !important;
	}
}
