﻿/* ============================================
   ESTILOS ESPECÍFICOS DE LA PÁGINA HOME
   ============================================ */

/* Hero Section - Asegurar texto blanco y visible */
.hero-2-single .hero-2-content h1,
.hero-2-single .hero-2-content h2 {
	color: #ffffff !important;
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
	font-weight: 800;
}

.hero-2-single .hero-2-content p {
	color: #ffffff !important;
	text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Asegurar overlay oscuro para mejor contraste */
.hero-2-single.hero-overlay::before {
	background: #030a15;
	opacity: 0.5 !important;
}

/* Featured Products Area */
.featured-products-area {
	background: #f8f9fa;
}

.featured-products-slider {
	margin-top: 4rem;
	padding-bottom: 2rem;
}

.featured-products-slider .owl-stage-outer {
	padding: 10px 0;
}

.featured-product-item {
	padding: 0 15px;
}

.featured-product-item .products-box {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	border: 1px solid #e9ecef;
}

.featured-product-item .products-box:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
	border-color: var(--clr-def, #007bff);
}

.featured-product-item .products-pic {
	width: 100%;
	height: 220px;
	overflow: hidden;
	position: relative;
	background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 25px;
}

.featured-product-item .products-pic img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-product-item .products-box:hover .products-pic img {
	transform: scale(1.08);
}

.featured-product-item .products-desc {
	padding: 1.75rem 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	background: #ffffff;
}

.featured-product-item .products-desc h3 {
	margin-bottom: 0.5rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
}

.featured-product-item .products-desc h3 a {
	color: #212529;
	text-decoration: none;
	transition: color 0.3s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.featured-product-item .products-desc h3 a:hover {
	color: var(--clr-def, #007bff);
}

.featured-product-item .products-desc .text-muted {
	font-size: 1.1rem;
	color: #6c757d;
	margin-bottom: 0.5rem;
	line-height: 1.4;
}

.featured-product-item .products-desc .text-muted:last-of-type {
	margin-bottom: 0.75rem;
}

.featured-product-item .product-excerpt {
	font-size: 1.25rem;
	color: #495057;
	line-height: 1.6;
	margin-bottom: 1.25rem;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.featured-product-item .add-to-cart {
	margin-top: auto;
}

.featured-product-item .cart-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 12px 24px;
	background: var(--clr-def, #007bff);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 1.35rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 3px 10px rgba(0, 123, 255, 0.25);
	letter-spacing: 0.3px;
}

.featured-product-item .cart-btn:hover {
	background: #0056b3;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
	color: #ffffff;
}

/* Mejorar los dots del carousel de productos destacados */
.featured-products-slider.owl-theme .owl-dots {
	margin-top: 3rem;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	max-width: 100%;
	overflow: hidden;
}

.featured-products-slider.owl-theme .owl-dots .owl-dot {
	outline: none;
}

.featured-products-slider.owl-theme .owl-dots .owl-dot span {
	width: 8px;
	height: 8px;
	margin: 0 3px;
	background: #dee2e6;
	display: block;
	border-radius: 50%;
	transition: all 0.3s ease;
	opacity: 0.6;
}

.featured-products-slider.owl-theme .owl-dots .owl-dot.active span,
.featured-products-slider.owl-theme .owl-dots .owl-dot:hover span {
	background: var(--clr-def, #007bff);
	width: 24px;
	border-radius: 6px;
	opacity: 1;
	box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

@media (max-width: 767px) {
	.featured-products-slider.owl-theme .owl-dots {
		display: none !important;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.featured-products-slider.owl-theme .owl-dots .owl-dot:nth-child(n+7) {
		display: none;
	}
}

@media (min-width: 992px) {
	.featured-products-slider.owl-theme .owl-dots .owl-dot:nth-child(n+8) {
		display: none;
	}
}

@media (max-width: 768px) {
	.featured-product-item .products-pic {
		height: 200px;
	}

	.featured-product-item .products-desc {
		padding: 1.5rem;
	}
}

.partner-sldr-2 .sika-industry-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px;
}

.partner-sldr-2 .sika-industry-logo img {
	max-height: 120px !important;
	max-width: 200px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: .85;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	transform: scale(1);
}

.partner-sldr-2 .sika-industry-logo:hover img {
	filter: grayscale(0%);
	opacity: 1;
	transform: scale(1.08) translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Home projects + blog carousels */
.work-area.home-work-section {
	margin-top: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	background-color: #f5f5f5;
}

.work-area.home-work-section .work-title-para {
	padding-right: 0;
	max-width: 52rem;
}

.home-projects-all,
.home-blog-all {
	display: inline-flex;
	align-items: center;
	font-size: 1.5rem;
	font-weight: 700;
	color: #cd0b0b !important;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.home-projects-all:hover,
.home-blog-all:hover {
	color: #9e0808 !important;
	border-bottom-color: #9e0808;
	text-decoration: none;
}

.home-projects-slider,
.home-blog-slider {
	margin-top: 0.5rem;
	padding-bottom: 1rem;
}

.home-projects-slider .owl-stage,
.home-blog-slider .owl-stage {
	display: flex;
	align-items: stretch;
}

.home-projects-slider .owl-item,
.home-blog-slider .owl-item {
	display: flex;
	height: auto;
}

.home-projects-slide,
.home-blog-slide {
	width: 100%;
	height: 100%;
	display: flex;
}

.home-projects-slider .project-card,
.home-blog-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(27, 31, 36, 0.08);
	border: 1px solid #eee;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	margin-bottom: 0;
}

.home-projects-slider .project-card:hover,
.home-blog-card:hover {
	box-shadow: 0 10px 28px rgba(205, 11, 11, 0.14);
	transform: translateY(-4px);
}

.home-projects-slider .project-img-link,
.home-blog-img-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.home-projects-slider .project-img,
.home-blog-img {
	position: relative;
	z-index: 1;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f0f0f0;
}

.home-blog-img {
	aspect-ratio: 16 / 10;
}

.home-projects-slider .project-img img,
.home-blog-img img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 0 !important;
	transition: transform 0.35s ease;
}

.home-projects-slider .project-card:hover .project-img img,
.home-blog-card:hover .home-blog-img img {
	transform: scale(1.04);
}

.home-projects-slider .project-content,
.home-blog-content {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 2rem 2rem 2.2rem;
	background: #fff;
}

.home-projects-slider .project-title,
.home-blog-title {
	font-size: 1.8rem;
	font-weight: 700;
	color: #1b1f24 !important;
	margin: 0 0 1rem;
	line-height: 1.35;
	text-transform: none;
	letter-spacing: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 4.8rem;
}

.home-projects-slider .project-title a,
.home-blog-title a {
	color: inherit !important;
	text-decoration: none;
}

.home-projects-slider .project-card:hover .project-title,
.home-blog-card:hover .home-blog-title {
	color: #cd0b0b !important;
}

.home-projects-slider .project-description,
.home-blog-excerpt {
	font-size: 1.55rem;
	color: #555 !important;
	line-height: 1.55;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
}

.home-blog-excerpt {
	margin-bottom: 1.4rem;
}

.home-projects-slider .project-meta {
	margin-top: 1.4rem;
	padding-top: 1.2rem;
	border-top: 1px solid #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.home-projects-slider .project-location,
.home-blog-author {
	font-size: 1.35rem;
	color: #777;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-width: 0;
}

.home-blog-author {
	margin-bottom: 0.85rem;
}

.home-projects-slider .project-location i,
.home-blog-author i {
	color: #cd0b0b;
	flex-shrink: 0;
}

.home-projects-slider .project-more,
.home-blog-more {
	font-size: 1.4rem;
	font-weight: 700;
	color: #cd0b0b !important;
	text-decoration: none;
	white-space: nowrap;
	margin-top: auto;
}

.home-projects-slider .project-more:hover,
.home-blog-more:hover {
	color: #9e0808 !important;
	text-decoration: none;
}

.home-blog-date {
	position: absolute;
	left: 1.2rem;
	bottom: 1.2rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 1rem;
	background: #fff;
	color: #1b1f24;
	font-size: 1.25rem;
	font-weight: 700;
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	text-transform: capitalize;
}

.home-projects-slider.owl-theme .owl-nav,
.home-blog-slider.owl-theme .owl-nav {
	margin-top: 0;
}

.home-projects-slider.owl-theme .owl-nav [class*='owl-'],
.home-blog-slider.owl-theme .owl-nav [class*='owl-'] {
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background: #cd0b0b !important;
	color: #fff !important;
	font-size: 1.8rem;
	line-height: 44px;
	text-align: center;
	box-shadow: 0 6px 18px rgba(205, 11, 11, 0.28);
	transition: background 0.2s ease;
}

.home-projects-slider.owl-theme .owl-nav .owl-prev,
.home-blog-slider.owl-theme .owl-nav .owl-prev {
	left: -8px;
}

.home-projects-slider.owl-theme .owl-nav .owl-next,
.home-blog-slider.owl-theme .owl-nav .owl-next {
	right: -8px;
}

.home-projects-slider.owl-theme .owl-nav [class*='owl-']:hover,
.home-blog-slider.owl-theme .owl-nav [class*='owl-']:hover {
	background: #9e0808 !important;
}

.home-projects-slider.owl-theme .owl-dots,
.home-blog-slider.owl-theme .owl-dots {
	margin-top: 2.4rem;
	text-align: center;
}

.home-projects-slider.owl-theme .owl-dots .owl-dot span,
.home-blog-slider.owl-theme .owl-dots .owl-dot span {
	width: 10px;
	height: 10px;
	margin: 0 4px;
	background: #d0d0d0;
	transition: background 0.2s ease, transform 0.2s ease;
}

.home-projects-slider.owl-theme .owl-dots .owl-dot.active span,
.home-blog-slider.owl-theme .owl-dots .owl-dot.active span,
.home-projects-slider.owl-theme .owl-dots .owl-dot:hover span,
.home-blog-slider.owl-theme .owl-dots .owl-dot:hover span {
	background: #cd0b0b;
	transform: scale(1.15);
}

@media (max-width: 767.98px) {
	.home-projects-slider.owl-theme .owl-nav .owl-prev,
	.home-blog-slider.owl-theme .owl-nav .owl-prev {
		left: 0;
	}

	.home-projects-slider.owl-theme .owl-nav .owl-next,
	.home-blog-slider.owl-theme .owl-nav .owl-next {
		right: 0;
	}

	.home-projects-slider .project-title,
	.home-blog-title {
		font-size: 1.65rem;
		min-height: 0;
	}

	.home-projects-slider .project-description,
	.home-blog-excerpt {
		font-size: 1.35rem;
		-webkit-line-clamp: 2;
	}

	.home-projects-slider .project-content,
	.home-blog-content {
		padding: 1.6rem;
	}
}
