/* 1. SETUP & VARIABLES */
:root {
	--primary-color: #04AA6D;
	--primary-dark: #038c5a;
	--secondary-color: #f2a900;
	--text-dark: #2c3e50;
	--text-light: #f1f1f1;
	--background-color: #ffffff;
	--surface-color: #f8f9fa;
	--font-family: 'Poppins', sans-serif;
	--box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-family);
	background-color: var(--background-color);
	color: var(--text-dark);
	line-height: 1.6;
}

html {
	scroll-behavior: smooth;
}

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

/* 2. LAYOUT & GENERAL COMPONENTS */
.section-title {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 1rem;
	color: var(--primary-dark);
}

.cta-button {
	display: inline-block;
	background-color: var(--secondary-color);
	color: var(--text-dark);
	padding: 12px 30px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(242, 169, 0, 0.4);
}

/* 3. HEADER & NAVBAR */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 5%;
	background-color: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	z-index: 1000;
}

.logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-dark);
	text-decoration: none;
}

.navbar {
	display: flex;
	gap: 2rem;
}

.navbar a {
	color: var(--text-dark);
	text-decoration: none;
	font-weight: 600;
	position: relative;
	padding-bottom: 5px;
}

.navbar a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 3px;
	background-color: var(--primary-color);
	transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
	width: 100%;
}

.hamburger-menu {
	display: none;
	background: none;
	border: none;
	font-size: 2rem;
	color: var(--text-dark);
	cursor: pointer;
	z-index: 1001;
}

/* 4. HERO SECTION CAROUSEL */
.hero {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--text-light);
}

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

.hero-carousel-img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

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

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

.hero-slide::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.hero-content {
	position: relative;
	/* background: #038c5a; */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	z-index: 2;
	height: 100%;
	padding: 7rem;
}

.hero-title {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.hero-subtitle {
	font-size: 1.25rem;
	margin-bottom: 2rem;
	font-weight: 300;
}

/* 5. ABOUT SECTION */
.about {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
	padding: 6rem 5%;
}

.about-content h2 {
	font-size: 2.5rem;
	color: var(--primary-dark);
	margin-bottom: 1rem;
}

.about-content p {
	font-size: 1.1rem;
}

.about-gallery {
	position: relative;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: var(--box-shadow);
	width: 100%;
	height: 450px;
	background-color: #eee;
}

#gallery-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.5s ease-in-out;
}

.gallery-controls {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	padding: 0 1rem;
	z-index: 5;
}

.gallery-controls button {
	background-color: rgba(255, 255, 255, 0.7);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 1.5rem;
	cursor: pointer;
	transition: background-color 0.3s;
}

.gallery-controls button:hover {
	background-color: white;
}

/* 6. SERVICES SECTION */
.services {
	padding: 6rem 5%;
	background-color: var(--surface-color);
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.service-card {
	background-color: var(--background-color);
	border-radius: 15px;
	box-shadow: var(--box-shadow);
	overflow: hidden;
	text-align: center;
	padding-bottom: 2rem;
	transition: transform 0.3s ease;
}

.service-card:hover {
	transform: translateY(-10px);
}

.service-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.service-card h3 {
	font-size: 1.5rem;
	margin: 1.5rem 0 1rem;
	color: var(--primary-color);
}

.service-card p {
	padding: 0 1.5rem;
}

/* 7. FEATURES SECTION (TABLE & VIDEO) */
.features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	padding: 6rem 5%;
	align-items: flex-start;
}

.models-table p,
.video-feature p {
	margin-top: 1rem;
}

.models-table table {
	width: 100%;
	border-collapse: collapse;
	text-align: center;
	margin-top: 1.5rem;
}

.models-table th,
.models-table td {
	padding: 12px;
	border-bottom: 1px solid #ddd;
}

.models-table thead {
	background-color: var(--primary-color);
	color: var(--text-light);
}

.models-table tbody tr:nth-child(even) {
	background-color: var(--surface-color);
}

.video-container {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 15px;
	box-shadow: var(--box-shadow);
	margin-top: 1.5rem;
}

.video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.video-feature .section-title,
.models-table .section-title {
	text-align: left;
}

/* 8. FOOTER */
.footer {
	background-color: var(--text-dark);
	color: var(--text-light);
	padding: 4rem 5% 2rem;
	text-align: center;
}

.footer h2 {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.contact-buttons {
	margin: 2rem 0;
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.contact-button {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 10px 25px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	transition: background-color 0.3s;
}

.contact-button.whatsapp {
	background-color: #25D366;
	color: white;
}

.contact-button.phone {
	background-color: var(--surface-color);
	color: var(--text-dark);
}

.contact-button i {
	font-size: 1.2rem;
}

.social-icons {
	margin: 2rem 0;
}

.social-icons a {
	color: var(--text-light);
	font-size: 2rem;
	margin: 0 1rem;
	transition: color 0.3s;
}

.social-icons a:hover {
	color: var(--secondary-color);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	padding-top: 2rem;
	margin-top: 1rem;
	font-size: 0.9rem;
}

/* 9. RESPONSIVE DESIGN */
@media (max-width: 992px) {

	.about,
	.features {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.video-feature .section-title,
	.models-table .section-title {
		text-align: center;
	}
}

@media (max-width: 768px) {
	.navbar {
		position: fixed;
		top: 0;
		left: -100%;
		width: 100%;
		height: 100vh;
		background-color: var(--background-color);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transition: left 0.4s ease-in-out;
	}

	.navbar.is-open {
		left: 0;
	}

	.hamburger-menu {
		display: block;
	}

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

	.section-title {
		font-size: 2rem;
	}
}

/* ====================================================== */
/* INICIO: ESTILOS PARA CARRUSEL DE VIDEOS (CSS)       */
/* ====================================================== */

.video-carousel-section {
	padding: 1rem 5%;
	/* background-color: var(--surface-color); */
	/* O el color que prefieras */
}

.video-carousel {
	position: relative;
	max-width: 900px;
	/* Ancho máximo para el video */
	margin: 1.5rem auto 0;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: var(--box-shadow);
}

#video-slides-container {
	position: relative;
	width: 100%;
	/* 16:9 Aspect Ratio */
	padding-top: 56.25%;
	background-color: #000;
}

.video-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease-in-out;
}

.video-slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 10;
}

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

/* Estilos para los controles, similares a la galería */
.carousel-controls {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	padding: 0 1rem;
	z-index: 20;
	/* Asegura que estén sobre el video */
}

.carousel-controls button {
	background-color: rgba(255, 255, 255, 0.7);
	border: none;
	border-radius: 50%;
	width: 45px;
	height: 45px;
	font-size: 1.8rem;
	cursor: pointer;
	transition: background-color 0.3s;
}

.carousel-controls button:hover {
	background-color: white;
}


/* ====================================================== */
/* FIN: ESTILOS PARA CARRUSEL DE VIDEOS (CSS)        */
/* ====================================================== */