:root {
	--color-primary-blue: #003d99;
	--color-dark-blue: #002653;
	--color-light-blue: #1a5fa0;
	--color-white: #ffffff;
	--color-black: #000000;
	--color-dark-gray: #2c3e50;
	--color-light-gray: #f8f9fa;
}

html {
	scroll-behavior: smooth;
}

body {
	background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-dark-blue) 100%);
	color: var(--color-dark-gray);
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	min-height: 100vh;
}

/* Navbar */
.navbar {
	background-color: rgba(0, 61, 153, 0.95) !important;
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	padding: 1rem 0;
}

.navbar-brand {
	font-weight: bold;
	font-size: 1.5rem;
	color: var(--color-white) !important;
}

.navbar-nav .nav-link {
	color: var(--color-white) !important;
	margin: 0 0.5rem;
	transition: color 0.3s ease;
	text-transform: uppercase;
	font-size: 0.9rem;
	font-weight: 500;
}

.navbar-nav .nav-link:hover {
	color: #ffc107 !important;
}

/* Hero Section */
#hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 80px 0 60px 0;
	background: linear-gradient(135deg, rgba(0, 61, 153, 0.9) 0%, rgba(0, 38, 83, 0.9) 100%);
}

.hero-content h1 {
	font-size: 3.5rem;
	font-weight: 700;
	color: var(--color-white);
	margin-bottom: 1.5rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	line-height: 1.2;
}

.hero-content p {
	font-size: 1.3rem;
	color: var(--color-white);
	margin-bottom: 2rem;
	opacity: 0.95;
	line-height: 1.6;
}

.btn-primary-light {
	background-color: #ffc107;
	border: none;
	color: var(--color-dark-blue);
	font-weight: 600;
	padding: 0.75rem 2rem;
	border-radius: 50px;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
}

.btn-primary-light:hover {
	background-color: #ffb300;
	transform: translateY(-2px);
	box-shadow: 0 5px 20px rgba(255, 193, 7, 0.3);
}

.contact-badges {
	display: flex;
	gap: 2rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.badge-item {
	color: var(--color-white);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1rem;
}

.badge-item a {
	color: #ffc107;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.badge-item a:hover {
	text-decoration: underline;
}

/* Section background */
.section-white {
	background-color: var(--color-white);
	color: var(--color-dark-gray);
}

.section-blue {
	background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-dark-blue) 100%);
	color: var(--color-white);
}

section {
	padding: 80px 0;
}

section h2 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.section-blue h2 {
	color: var(--color-white);
}

.section-white h2 {
	color: var(--color-dark-blue);
}

.section-subtitle {
	font-size: 1.1rem;
	margin-bottom: 3rem;
	opacity: 0.9;
}

/* Service Cards */
.service-card {
	background: var(--color-white);
	border: none;
	border-radius: 10px;
	padding: 2rem;
	text-align: center;
	transition: all 0.3s ease;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	height: 100%;
}

.service-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-card i {
	font-size: 3rem;
	color: var(--color-primary-blue);
	margin-bottom: 1rem;
}

.service-card h3 {
	color: var(--color-dark-blue);
	font-weight: 600;
	margin-bottom: 1rem;
}

.service-card p {
	color: var(--color-dark-gray);
	margin-bottom: 0;
	line-height: 1.6;
}

/* Why Us Section */
.why-us-item {
	padding: 1.5rem;
	border-left: 4px solid #ffc107;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 5px;
	margin-bottom: 1.5rem;
}

.why-us-item h4 {
	color: var(--color-white);
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.why-us-item p {
	color: var(--color-white);
	opacity: 0.95;
	margin-bottom: 0;
}

/* Contact Form Section */
#contacto {
	background-color: var(--color-white);
}

.form-label {
	color: var(--color-dark-blue);
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.form-control {
	border: 2px solid #e0e0e0;
	border-radius: 5px;
	padding: 0.75rem 1rem;
	transition: border-color 0.3s ease;
}

.form-control:focus {
	border-color: var(--color-primary-blue);
	box-shadow: 0 0 0 0.2rem rgba(0, 61, 153, 0.15);
}

.alert {
	border-radius: 5px;
	margin-bottom: 1.5rem;
}

.alert-danger {
	background-color: #f8d7da;
	border: 2px solid #f5c6cb;
	color: #721c24;
}

.alert-success {
	background-color: #d4edda;
	border: 2px solid #c3e6cb;
	color: #155724;
}

.btn-submit {
	background-color: var(--color-primary-blue);
	border: none;
	color: var(--color-white);
	font-weight: 600;
	padding: 0.75rem 2rem;
	border-radius: 5px;
	transition: all 0.3s ease;
	width: 100%;
}

.btn-submit:hover {
	background-color: var(--color-dark-blue);
	transform: translateY(-2px);
	box-shadow: 0 5px 20px rgba(0, 61, 153, 0.3);
}

/* Footer */
footer {
	background-color: var(--color-dark-blue);
	color: var(--color-white);
	padding: 2rem 0;
	text-align: center;
	border-top: 3px solid #ffc107;
}

footer a {
	color: #ffc107;
	text-decoration: none;
	transition: all 0.3s ease;
}

footer a:hover {
	text-decoration: underline;
}

/* Carrusel Styles */
#carrusel {
	background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-dark-blue) 100%);
	padding: 60px 0;
}

#carrusel h2 {
	color: var(--color-white);
	margin-bottom: 3rem;
	font-weight: 700;
	font-size: 2.5rem;
}

#carrusel-wrapper {
	width: 100%;
	margin: 0 auto;
}

.carousel-inner {
	min-height: 400px;
}

.carousel-item img {
	height: 500px;
	object-fit: cover;
}

.carousel-caption {
	left: 0;
	right: 0;
	bottom: 0;
	text-align: center;
}

.carousel-caption h5 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.carousel-caption p {
	font-size: 1rem;
	margin: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
	background-color: rgba(0, 61, 153, 0.7);
	border-radius: 50%;
	width: 50px;
	height: 50px;
}

.carousel-indicators button {
	background-color: rgba(0, 61, 153, 0.5);
	border-radius: 50%;
	width: 12px;
	height: 12px;
	border: none;
}

.carousel-indicators button.active {
	background-color: var(--color-primary-blue);
}

/* Responsive */
@media (max-width: 767px) {
	.hero-content h1 {
		font-size: 2.2rem;
	}

	.hero-content p {
		font-size: 1.1rem;
	}

	section {
		padding: 50px 0;
	}

	section h2 {
		font-size: 2rem;
	}

	.contact-badges {
		flex-direction: column;
		gap: 1rem;
	}

	/* Pantalla pequeña (móvil) - Carrusel Tamaño completo */
	#carrusel-wrapper {
		width: 100%;
	}

	.carousel-item img {
		height: 300px;
	}

	#carrusel h2 {
		font-size: 1.8rem;
	}

	#carouselTrabajos .carousel-caption {
		display: block !important;
	}

	.carousel-caption p {
		display: none !important;
	}
}

/* Pantalla mediana (tablet y superior) - 50% del tamaño */
@media (min-width: 768px) {
	#carrusel-wrapper {
		width: 50%;
		margin-left: auto;
		margin-right: auto;
	}

	.carousel-item img {
		height: 350px;
	}
}

/* Pantalla grande - 50% del tamaño */
@media (min-width: 992px) {
	#carrusel-wrapper {
		width: 50%;
	}

	.carousel-item img {
		height: 350px;
	}
}

/* Pantalla muy grande - 50% del tamaño */
@media (min-width: 1200px) {
	#carrusel-wrapper {
		width: 50%;
	}

	.carousel-item img {
		height: 350px;
	}
}
