:root {
	--font-heading: "Segoe UI", Arial, sans-serif;
	--font-body: system-ui, sans-serif;

	/* Clean Light Color Palette */
	--color-primary: #f1f5f9;     /* Light Surface */
	--color-secondary: #e2e8f0;   /* Subtle Gray */
	--color-accent: #0284c7;      /* Clean Electric Blue */
	--color-accent-hover: #0369a1;
	--color-accent-light: rgba(2, 132, 199, 0.08);

	--color-bg: #ffffff;          /* Pure White Background */
	--color-bg-light: #f1f5f9;    /* Light Gray Surface */
	--color-text-primary: #0f172a; /* Deep Slate Text */
	--color-text-secondary: #475569; /* Muted Slate Text */

	--glass-bg: rgba(255, 255, 255, 0.85);
	--glass-border: rgba(0, 0, 0, 0.08);
	--glass-shadow: rgba(0, 0, 0, 0.08);

	--transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--border-radius-sm: 8px;
	--border-radius-md: 16px;
	--border-radius-lg: 24px;
}

/* Reset & Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	scroll-behavior: smooth;
}

body {
	background-color: var(--color-bg);
	color: var(--color-text-primary);
	font-family: var(--font-body);
	line-height: 1.6;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font-family: inherit;
	border: none;
	background: none;
	cursor: pointer;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
	width: 10px;
}
::-webkit-scrollbar-track {
	background: var(--color-secondary);
}
::-webkit-scrollbar-thumb {
	background: #94a3b8;
	border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
	background: var(--color-accent);
}

/* Utility Classes */
.container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

.section-padding {
	padding: 100px 0;
}

.glass-card {
	background: var(--glass-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--glass-border);
	box-shadow: 0 8px 32px 0 var(--glass-shadow);
	border-radius: var(--border-radius-md);
}

.gradient-text {
	background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.accent-gradient-text {
	background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Topbar Header Info */
.topbar {
	background-color: var(--color-primary);
	border-bottom: 1px solid var(--glass-border);
	font-size: 0.85rem;
	color: var(--color-text-secondary);
	padding: 10px 0;
}

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

.topbar-right {
	display: flex;
	gap: 20px;
}

.topbar-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.topbar-item svg {
	width: 14px;
	height: 14px;
	fill: var(--color-accent);
}

/* Navigation Header */
.main-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: var(--transition-smooth);
	background-color: var(--color-bg);
	border-bottom: 1px solid var(--glass-border);
}

.main-header.scrolled {
	background-color: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--glass-border);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 16px 0;
	position: relative;
}

.logo img {
	height: 48px;
	width: auto;
	object-fit: contain;
	transition: var(--transition-smooth);
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.nav-link {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--color-text-secondary);
	position: relative;
	padding: 8px 0;
	transition: var(--transition-smooth);
}

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

.nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--color-accent);
	transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
	width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 6px;
	width: 30px;
	height: 24px;
	justify-content: space-between;
}

.menu-toggle span {
	display: block;
	width: 100%;
	height: 3px;
	background-color: var(--color-text-primary);
	border-radius: 2px;
	transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
	position: relative;
	height: calc(100vh - 104px); /* 40px topbar + ~64px header */
	min-height: 520px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow: hidden;
	padding-top: 8vh; /* Places the card around 15-20% from the top */
}

.hero-slideshow {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 1.5s ease-in-out;
	background-size: cover;
	background-position: center;
	transform: scale(1.1);
	transition: opacity 1.5s ease-in-out, transform 4s ease-out;
}

.hero-slide.active {
	opacity: 1;
	transform: scale(1);
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/* background: radial-gradient(circle at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.65) 100%); */
	z-index: 2;
}

.hero-content-wrapper {
	position: relative;
	z-index: 3;
	width: 100%;
	text-align: center;
	/* padding-top: 40px; */
	/* Subtle frosted backdrop so text is legible over any photo */
	display: inline-flex;
	flex-direction: column;
	align-items: center;
}

.hero-content-inner {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: var(--border-radius-lg);
	padding: 40px 56px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	animation: fadeIn 1s ease;
}

.hero-logo {
	max-width: 260px;
	margin: 0 auto 28px;
	animation: fadeInDown 1s ease;
	drop-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero-title {
	font-size: 3rem;
	font-weight: 800;
	margin-bottom: 15px;
	color: var(--color-text-primary);
	/* text-shadow: 0 1px 4px rgba(255,255,255,0.6); */
	animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
	font-size: 1.25rem;
	color: var(--color-text-secondary);
	max-width: 560px;
	margin: 0 auto 36px;
	text-shadow: 0 1px 3px rgba(255,255,255,0.5);
	animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
	display: flex;
	justify-content: center;
	gap: 20px;
	animation: fadeInUp 1s ease 0.6s both;
}

.btn {
	display: inline-block;
	padding: 14px 28px;
	font-weight: 600;
	border-radius: var(--border-radius-sm);
	transition: var(--transition-smooth);
	font-size: 0.95rem;
}

.btn-primary {
	background-color: var(--color-accent);
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-primary:hover {
	background-color: var(--color-accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6);
}

.btn-outline {
	border: 1px solid var(--color-text-secondary);
	color: var(--color-text-primary);
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(4px);
}

.btn-outline:hover {
	background-color: rgba(255, 255, 255, 0.95);
	border-color: var(--color-text-primary);
	transform: translateY(-2px);
}

.hero-badge-container {
	position: absolute;
	top: 20px;
	right: 24px;
	z-index: 3;
	animation: fadeIn 1s ease 1s both;
}

.hero-badge {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.7);
	padding: 6px;
	border-radius: 50%;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.hero-badge img {
	height: 130px;
	width: 130px;
	min-width: 130px;   /* prevents shrinking in any context */
	border-radius: 50%;
	display: block;
	object-fit: cover;
	flex-shrink: 0;
}

.hero-badge span {
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: #1e293b;
}

/* Quienes Somos Section */
.about-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 60px;
	align-items: center;
}

.section-title {
	font-size: 2.5rem;
	margin-bottom: 24px;
	position: relative;
	display: inline-block;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 60px;
	height: 4px;
	background: var(--color-accent);
	border-radius: 2px;
}

.about-text p {
	font-size: 1.1rem;
	color: var(--color-text-secondary);
	margin-bottom: 24px;
}

/* Custom Mini Slider inside About */
.about-slider-container {
	position: relative;
	border-radius: var(--border-radius-md);
	overflow: hidden;
	aspect-ratio: 4/3;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
	border: 1px solid var(--glass-border);
	background: #ffffff;
}

.about-slider {
	width: 100%;
	height: 100%;
	position: relative;
}

.about-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.8s ease-in-out;
}

.about-slide.active {
	opacity: 1;
}

.about-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-slider-nav {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 5;
}

.about-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: var(--transition-smooth);
}

.about-dot.active {
	background: var(--color-accent);
	width: 24px;
	border-radius: 5px;
}

/* Brands Marquee Carousel */
.brands-section {
	background-color: var(--color-primary);
	padding: 60px 0;
	border-top: 1px solid var(--glass-border);
	border-bottom: 1px solid var(--glass-border);
	overflow: hidden;
}

.brands-title {
	text-align: center;
	font-size: 1rem;
	color: var(--color-text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.15em;
	margin-bottom: 30px;
}

.marquee-container {
	width: 100%;
	display: flex;
	overflow: hidden;
	user-select: none;
	mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.marquee-content {
	display: flex;
	gap: 60px;
	animation: scrollMarquee 30s linear infinite;
	min-width: 100%;
	align-items: center;
}

.marquee-item {
	flex-shrink: 0;
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition-smooth);
}

.marquee-item:hover {
	border-color: rgba(0, 0, 0, 0.2);
}

.marquee-item img {
	height: 40px;
	width: auto;
	mix-blend-mode: multiply;
	transition: var(--transition-smooth);
}

/* Products Section */
.products-section {
	background-color: var(--color-bg);
}

.products-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 50px;
}

.products-header p {
	color: var(--color-text-secondary);
	margin-top: 12px;
}

.products-list {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.product-category-group {
	width: 100%;
}

.product-category-content {
	background-color: var(--color-bg-light);
	border: 1px solid var(--glass-border);
	border-radius: var(--border-radius-lg);
	padding: 40px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Side-by-side layout: Text Description on left, Image Carousel on right */
.product-category-content.side-by-side {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 40px;
	align-items: center;
}

@media (max-width: 991px) {
	.product-category-content.side-by-side {
		grid-template-columns: 1fr;
	}
}

.carousel-wrapper-half {
	width: 100%;
	order: 2;
}

.category-info-half {
	order: 1;
}

.category-info-half h3 {
	font-size: 1.8rem;
	margin-bottom: 15px;
	color: var(--color-text-primary);
}

.category-info-half p {
	color: var(--color-text-secondary);
	font-size: 1.05rem;
	line-height: 1.6;
}

/* Horno grids container side-by-side */
.horno-grids-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-top: 30px;
}

@media (max-width: 768px) {
	.horno-grids-container {
		grid-template-columns: 1fr;
	}
}

.horno-col {
	display: flex;
	flex-direction: column;
}

.category-info.full-width {
	margin-bottom: 20px;
}

.category-info.full-width h3 {
	font-size: 1.8rem;
	margin-bottom: 12px;
}

.category-info.full-width p {
	color: var(--color-text-secondary);
	font-size: 1.05rem;
	line-height: 1.6;
}

.subcategory-heading {
	font-size: 1.2rem;
	margin: 0 0 15px;
	color: var(--color-text-primary);
	text-align: center;
}

/* Custom Slideshow Carousel styling */
.product-carousel-container {
	position: relative;
	width: 100%;
	border-radius: var(--border-radius-md);
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--glass-border);
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-carousel-viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 3/2;
	overflow: hidden;
}

.product-carousel-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.product-carousel-item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	z-index: 1;
	transition: opacity 1.5s ease-in-out;
	cursor: pointer;
}

.product-carousel-item.active {
	opacity: 1;
	z-index: 2;
}

.product-carousel-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}



/* Dots wrapper */
.carousel-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 12px 0;
	background: #fff;
}

.carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.15);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: var(--transition-smooth);
}

.carousel-dot.active {
	background: var(--color-accent);
	transform: scale(1.2);
}


/* Lightbox Modal */
.lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.88);
	z-index: 2000;
	display: none;
	justify-content: center;
	align-items: center;
	padding: 24px;
}

.lightbox.active {
	display: flex;
}

.lightbox-content {
	position: relative;
	max-width: 900px;
	width: 100%;
	max-height: 80vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

.lightbox-img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: var(--border-radius-sm);
	box-shadow: 0 10px 40px rgba(0,0,0,0.5);
	border: 1px solid var(--glass-border);
	animation: scaleIn 0.3s ease-out;
}

.lightbox-close {
	position: absolute;
	top: -40px;
	right: 0;
	color: #ffffff;
	font-size: 2rem;
	cursor: pointer;
	background: none;
	border: none;
	transition: var(--transition-smooth);
}

.lightbox-close:hover {
	color: var(--color-accent);
}

.lightbox-nav {
	position: absolute;
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0 20px;
	pointer-events: none;
}

.lightbox-btn {
	pointer-events: auto;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--transition-smooth);
}

.lightbox-btn:hover {
	background: var(--color-accent);
	color: #ffffff;
}

/* Como Llegar Section */
.map-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: stretch;
}

.map-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.map-info-card {
	padding: 40px;
	height: 100%;
}

.contact-detail-list {
	margin-top: 30px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.contact-detail-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.contact-icon-wrapper {
	background: var(--color-accent-light);
	border: 1px solid rgba(2, 132, 199, 0.2);
	width: 48px;
	height: 48px;
	border-radius: var(--border-radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.contact-icon-wrapper svg {
	width: 24px;
	height: 24px;
	fill: var(--color-accent);
}

.contact-item-title {
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 1.1rem;
}

.contact-item-desc {
	color: var(--color-text-secondary);
	font-size: 0.95rem;
}

.map-embed {
	border-radius: var(--border-radius-md);
	overflow: hidden;
	border: 1px solid var(--glass-border);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	min-height: 400px;
}

.map-embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* Footer styling */
.site-footer {
	background-color: var(--color-primary);
	border-top: 1px solid var(--glass-border);
	padding: 40px 0;
	color: var(--color-text-secondary);
	font-size: 0.9rem;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.footer-copyright {
	color: var(--color-text-secondary);
}

.footer-logo img {
	height: 35px;
	opacity: 0.7;
}

/* WhatsApp Floating Button */
.whatsapp-float {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background-color: #25d366;
	color: #ffffff;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
	z-index: 1000;
	transition: var(--transition-smooth);
}

.whatsapp-float:hover {
	transform: scale(1.1) rotate(10deg);
	box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
	width: 54px;
	height: 54px;
	fill: #ffffff;
}

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

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

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes scaleIn {
	from {
		transform: scale(0.9);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

@keyframes scrollMarquee {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
	.about-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.map-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.hero-title {
		font-size: 2.5rem;
	}

	.hero-subtitle {
		font-size: 1.2rem;
	}
}

@media (max-width: 768px) {
	.topbar {
		display: none;
	}

	.menu-toggle {
		display: flex;
		position: absolute;
		right: 0;
	}

	.main-nav {
		position: fixed;
		top: 80px;
		left: -100%;
		width: 100%;
		height: calc(100vh - 80px);
		background-color: var(--color-bg);
		flex-direction: column;
		align-items: center;
		padding-top: 50px;
		gap: 30px;
		transition: var(--transition-smooth);
		border-top: 1px solid var(--glass-border);
		box-shadow: 0 8px 30px rgba(0,0,0,0.08);
	}

	.main-nav.active {
		left: 0;
	}

	.menu-toggle.active span:nth-child(1) {
		transform: translateY(10.5px) rotate(45deg);
	}

	.menu-toggle.active span:nth-child(2) {
		opacity: 0;
	}

	.menu-toggle.active span:nth-child(3) {
		transform: translateY(-10.5px) rotate(-45deg);
	}

	.hero-buttons {
		flex-direction: column;
		align-items: center;
		width: 100%;
		max-width: 300px;
		margin: 0 auto 40px;
	}

	.btn {
		width: 100%;
		text-align: center;
	}

	.hero-badge-container {
		display: none;
	}

	.product-category-content {
		padding: 20px;
	}

	.tab-btn {
		padding: 10px 18px;
		font-size: 0.85rem;
	}
}
