/* ========================================================================
   1. CONFIGURACIÓN GENERAL Y FUENTES
   ======================================================================== */
@font-face {
	font-family: 'helvetica_ce_55_romanregular';
	src: url('../fonts/helvetica_neue_ce_55_roman-webfont.eot');
	src: url('../fonts/helvetica_neue_ce_55_roman-webfont.eot?#iefix') format('embedded-opentype'),
		url('../fonts/helvetica_neue_ce_55_roman-webfont.woff2') format('woff2'),
		url('../fonts/helvetica_neue_ce_55_roman-webfont.woff') format('woff'),
		url('../fonts/helvetica_neue_ce_55_roman-webfont.ttf') format('truetype'),
		url('../fonts/helvetica_neue_ce_55_roman-webfont.svg#helvetica_ce_55_romanregular') format('svg');
	font-weight: normal;
	font-style: normal;
}

/* Agrega aquí tus otras fuentes si las necesitas */

body {
	font-family: 'helvetica_ce_55_romanregular', sans-serif;
	overflow-x: hidden;
	/* Evita scroll horizontal indeseado */
}

/* Selección de texto */
::selection {
	background: #e73131;
	color: #fff;
}

::-moz-selection {
	background: #e73131;
	color: #fff;
}

/* Tipografía General */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'helvetica_ce_55_romanregular', sans-serif;
}

h1 {
	color: #fff;
	font-size: 51px;
	text-transform: uppercase;
}

h2 {
	color: #555;
	font-size: 35px;
	text-transform: uppercase;
	font-weight: bolder;
}

h3 {
	color: #333;
	font-size: 23px;
}

p {
	font-size: 18px;
	/* Ajustado para mejor lectura */
	color: #666;
	line-height: 1.6;
	font-family: 'helvetica_ce_55_romanregular', sans-serif;
}

span {
	color: #e73131;
}

strong {
	font-weight: bolder;
}

.line {
	border: 1px solid #e73131;
	width: 15%;
	margin: 10px auto;
}

/* ========================================================================
   2. BOTONES Y UTILIDADES
   ======================================================================== */
a {
	text-decoration: none;
	transition: all 0.3s;
}

a:hover {
	color: #e73131;
	text-decoration: none;
}

a.btn-down {
	display: inline-block;
	color: #fff;
	border: 2px solid #fff;
	border-radius: 10px;
	padding: 10px 20px;
	font-size: 18px;
	margin-top: 20px;
	text-align: center;
}

a.btn-down:hover {
	background: #fff;
	color: #e73131;
	text-decoration: none;
}

.btn-send {
	background: transparent;
	color: #e73131;
	border: 2px solid #e73131;
	padding: 10px 0;
	font-size: 15px;
	transition: all 0.5s;
	width: 100%;
}

.btn-send:hover {
	background: #e73131;
	color: #fff;
}

/* Preloader (Nueva versión) */
#preloader {
	color: #e73131;
	background-color: #fff;
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 100vw;
	z-index: 99999;
	display: flex;
	justify-content: center;
	align-items: center;
}
.preloader-img {
	position: absolute;
}
.spinner-border {
	width: 6rem;
	height: 6rem;
}
.fade-out {
	opacity: 0;
	transition: opacity 1500ms;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* ========================================================================
   3. NAVBAR (EFECTO INMERSIVO)
   ======================================================================== */
#navbar-main {
	/* Fondo negro con 60% opacidad para que se vea la imagen de fondo */
	background: rgba(0, 0, 0, 0.6);
	padding: 15px 0;
	transition: all 0.4s ease;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Estado al hacer scroll (se compacta y oscurece más) */
#navbar-main.on-scroll {
	padding: 5px 0;
	background: rgba(0, 0, 0, 0.95);
	/* Casi negro sólido para leer mejor */
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* --- LOGO GRANDE --- */
.navbar-brand img.logo {
	height: 120px;
	/* Tamaño inicial GRANDE como pediste */
	width: auto;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	/* Efecto rebote suave */
	margin-top: 5px;
}

/* El logo se achica al bajar para no molestar */
#navbar-main.on-scroll .navbar-brand img.logo {
	height: 60px;
	margin-top: 0;
}

/* --- ENLACES DEL MENÚ --- */
.navbar-nav .nav-link {
	color: #fff !important;
	font-size: 16px;
	font-weight: 600;
	/* Un poco más gruesa la letra */
	text-transform: uppercase;
	padding: 10px 15px !important;
	position: relative;
	transition: color 0.3s;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	/* Sombra para leer bien sobre fotos claras */
}

/* Hover Moderno (Línea roja) */
.navbar-nav .nav-link::after {
	content: '';
	position: absolute;
	width: 0;
	height: 3px;
	/* Línea un poco más gruesa */
	bottom: 5px;
	left: 50%;
	background-color: #e73131;
	transition: all 0.3s ease-in-out;
	transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
	width: 70%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
	color: #fff !important;
	/* Mantenemos blanco para contraste */
}

/* Ajuste para móvil */
.navbar-toggler {
	border: 1px solid rgba(255, 255, 255, 0.5);
	padding: 5px 10px;
}

/* ========================================================================
   4. SLIDER / CAROUSEL (SUPERPUESTO + ANIMACIONES)
   ======================================================================== */
section#slider {
	margin-top: 0 !important;
	padding-top: 0 !important;
	position: relative;
	top: 0;
}

#home-carousel .carousel-item {
	height: 100vh;
	min-height: 600px;
	background-size: cover;
	background-position: center center;
	position: relative;
	/* Importante para que la animación funcione suave */
	overflow: hidden;
}

/* Capa oscura (Overlay) */
#home-carousel .carousel-item:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.7) 100%);
}

.carousel-caption {
	top: 55%;
	transform: translateY(-50%);
	bottom: auto;
	text-align: left;
	z-index: 10;
}

/* --- ANIMACIONES DE TEXTO (ZOOM IN) --- */

/* 1. Estado inicial (invisible y pequeño) */
.carousel-caption h2,
.carousel-caption p,
.carousel-caption .btn-down {
	opacity: 0;
	transform: scale(0.5);
	/* Empieza a la mitad de tamaño ("adentro") */
	transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	/* Efecto rebote suave */
}

/* 2. Estado Activo (Cuando el slide se muestra) */
.carousel-item.active .carousel-caption h2,
.carousel-item.active .carousel-caption p,
.carousel-item.active .carousel-caption .btn-down {
	opacity: 1;
	transform: scale(1);
	/* Tamaño normal ("al frente") */
}

/* 3. Retardos (Para que aparezcan uno tras otro) */
.carousel-item.active .carousel-caption h2 {
	transition-delay: 0.2s;
	/* El título aparece primero */
}

.carousel-item.active .carousel-caption p {
	transition-delay: 0.5s;
	/* Luego el texto */
}

.carousel-item.active .carousel-caption .btn-down {
	transition-delay: 0.8s;
	/* Al final el botón */
}

/* Estilos de Tipografía del Slider */
.carousel-caption h2 {
	color: #fff;
	font-size: 65px;
	font-weight: 700;
	margin-bottom: 20px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.carousel-caption p {
	color: #f0f0f0;
	font-size: 22px;
	font-weight: 400;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
	max-width: 800px;
}

/* --- CONTROLES (FLECHAS) --- */

/* Sobrescribimos estilos base de BS5 para las flechas */
.home-carousel-left,
.home-carousel-right {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 60px;
	/* Cuadrado grande */
	height: 60px;
	/* Cuadrado grande */
	background-color: #e73131;
	/* Rojo corporativo */
	color: #fff;
	font-size: 30px;
	/* Icono grande */
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	opacity: 0;
	/* Oculto por defecto */
	transition: all 0.4s ease;
	z-index: 20;
}

/* Posición inicial (fuera de la pantalla) */
.home-carousel-left {
	left: -70px;
}

.home-carousel-right {
	right: -70px;
}

/* HOVER: Cuando pasas el mouse por el slider, las flechas entran */
#home-carousel:hover .home-carousel-left {
	left: 0;
	opacity: 1;
}

#home-carousel:hover .home-carousel-right {
	right: 0;
	opacity: 1;
}

/* Efecto hover sobre la propia flecha */
.home-carousel-left:hover,
.home-carousel-right:hover {
	background-color: #fff;
	/* Fondo blanco */
	color: #e73131;
	/* Icono rojo */
	cursor: pointer;
}

/* --- RESPONSIVE PARA SLIDER --- */
@media (max-width: 767px) {
	.carousel-caption h2 {
		font-size: 32px;
	}

	.carousel-caption p {
		font-size: 16px;
	}

	/* En móvil mostramos las flechas siempre porque no hay "hover" */
	.home-carousel-left {
		left: 0;
		opacity: 1;
		width: 40px;
		height: 40px;
		font-size: 20px;
	}

	.home-carousel-right {
		right: 0;
		opacity: 1;
		width: 40px;
		height: 40px;
		font-size: 20px;
	}
}

/* ========================================================================
   5. SECCIONES (SERVICIOS - ICONOS ROJOS Y GIRO)
   ======================================================================== */

#service {
	padding: 80px 0;
}

/* Caja principal del servicio */
.service-box {
	margin-bottom: 20px;
	cursor: default;
	/* Para que se note que puedes pasar el mouse */
}

/* Estilo del contenedor del icono */
.icon-wrapper i {
	width: 70px;
	/* Ancho del círculo */
	height: 70px;
	/* Alto del círculo */
	line-height: 70px;
	/* Centrado vertical del icono */
	text-align: center;
	/* Centrado horizontal */
	font-size: 28px;
	/* Tamaño del icono */
	color: #e73131;
	/* Color ROJO del icono */
	border: 1px solid #ddd;
	/* Borde gris suave */
	border-radius: 50%;
	/* Lo hace redondo */
	background-color: #fff;

	/* ANIMACIÓN */
	transition: all 0.5s ease;
}

/* EFECTO HOVER: Cuando pasas el mouse sobre la caja del servicio */
.service-box:hover .icon-wrapper i {
	background-color: #e73131;
	/* Fondo se pone rojo */
	color: #fff;
	/* Icono se pone blanco */
	border-color: #e73131;

	/* EL GIRO */
	transform: rotate(360deg);
}

/* Títulos y texto */
.service-title {
	font-weight: 700;
	margin-bottom: 10px;
	color: #333;
	text-transform: uppercase;
	font-size: 18px;
}

.service-box p {
	color: #666;
	text-align: left;
	/* Alineado a la izquierda para leer mejor */
	font-size: 16px;
	line-height: 1.6;
}

/* ========================================================================
   6. OTROS COMPONENTES (CLIENTS, FUN FACTS, CONTACT)
   ======================================================================== */

/* --- FUN FACTS (DATOS CURIOSOS) --- */
#fun-facts {
	background-color: #f8f8f8;
	padding: 60px 0;
}

.fun-fact h3 {
	color: #333;
	font-size: 40px;
	font-weight: bold;
	margin-bottom: 5px;
}

.fun-fact i {
	color: #e73131;
	margin-right: 10px;
}

.fun-fact h6 {
	text-transform: uppercase;
	color: #666;
	letter-spacing: 1px;
}

/* --- CLIENTS CAROUSEL (MODERNO) --- */
#client {
	background-color: #fff;
	padding: 50px 0;
}

/* Contenedor individual del logo (Caja flexible para centrar) */
.client-item {
	padding: 10px;
	height: 120px;
	/* Altura fija del carril */
	display: flex;
	align-items: center;
	/* Centrado vertical */
	justify-content: center;
	/* Centrado horizontal */
}

/* Estilo de la imagen del logo */
.client-item img {
	max-width: 100%;
	max-height: 80px;
	opacity: 0.5;
	/* Control de altura máxima */
	width: auto !important;
	/* Importante para OwlCarousel */
	display: block;

	/* Filtro: Gris y un poco transparente */
	filter: grayscale(100%);
	transition: all 0.4s ease;
}

/* Efecto Hover: A color, opacidad total y un poquito más grande */
.client-item:hover img {
	filter: grayscale(0%);
	opacity: 1;
	transform: scale(1.1);
	cursor: pointer;
}

/* --- CONTACTO --- */
#contact {
	padding-top: 60px;
}

#contact .contact-form i {
	color: #e73131;
	margin-right: 15px;
	font-size: 18px;
	width: 25px;
	text-align: center;
}

#contact .contact-form h6 {
	display: inline-block;
	color: #666;
	font-size: 16px;
	margin: 0;
}

#contact ul.contact-form {
	list-style: none;
	padding-left: 0;
	margin-top: 20px;
}

#contact ul.contact-form li {
	margin-bottom: 25px;
	display: flex;
	align-items: center;
}

/* Inputs del formulario */
.form-control {
	border-radius: 4px;
	padding: 12px;
	border: 1px solid #ddd;
	background-color: #f9f9f9;
}

.form-control:focus {
	border-color: #e73131;
	background-color: #fff;
	box-shadow: none;
}

/* Footer */
#footer-down {
	padding: 40px 0;
	text-align: center;
	background: #f9f9f9;
}

.social-icon {
	padding: 0;
	list-style: none;
	margin-bottom: 20px;
}

.social-icon li {
	display: inline-block;
	margin: 0 10px;
}

.social-icon li a i {
	width: 40px;
	height: 40px;
	line-height: 40px;
	border: 2px solid #ccc;
	border-radius: 50%;
	color: #ccc;
	font-size: 18px;
	transition: all 0.3s;
}

.social-icon li a:hover i {
	border-color: #e73131;
	color: #e73131;
}

/* ========================================================================
   7. RESPONSIVE (INTEGRADO - ADIÓS responsive.css)
   ======================================================================== */
@media (max-width: 991px) {
	.navbar-collapse {
		background: rgba(0, 0, 0, 0.95);
		padding: 20px;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
	}

	.carousel-caption h2 {
		font-size: 40px;
	}

	#home-carousel .carousel-item {
		height: 70vh;
		min-height: 400px;
	}
}

@media (max-width: 767px) {
	h1 {
		font-size: 36px;
	}

	h2 {
		font-size: 28px;
	}

	.carousel-caption {
		bottom: 10%;
		top: auto;
		transform: none;
	}

	.carousel-caption h2 {
		font-size: 24px;
		margin-bottom: 10px;
	}

	.carousel-caption p {
		font-size: 14px;
		display: none;
		/* Ocultar texto largo en móvil */
	}

	.btn-down {
		margin-top: 10px;
		font-size: 14px;
		padding: 8px 15px;
	}

	/* Ajuste de tarjetas en móvil */
	.card img {
		height: 200px;
	}

	/* Logos clientes */
	#client-slider .item {
		text-align: center;
	}
}

/* ========================================================================
   ESTILOS DE TÍTULOS (GLOBAL PARA TODAS LAS SECCIONES)
   ======================================================================== */

.heading {
	text-align: center !important;
	/* ¡ESTO ES LO QUE CENTRA EL TEXTO! */
	width: 100%;
	margin-bottom: 50px;
	position: relative;
}

.heading h2 {
	font-size: 35px;
	font-weight: 700;
	text-transform: uppercase;
	color: #333;
	margin: 0 0 15px 0;
	/* Margen inferior para separar de la línea */
}

/* Estilo para la palabra destacada en rojo (ej: NOSOTROS) */
.heading h2 span {
	color: #e73131;
}

/* La línea roja debajo del título */
.line {
	border-bottom: 2px solid #e73131;
	width: 80px;
	/* El ancho de la línea */
	height: 1px;
	margin: 0 auto;
	/* "auto" a los lados es OBLIGATORIO para centrar bloques */
	display: block;
}