/* === OneClickShuttles - Main Stylesheet === */

/* Importar módulos */
@import 'variables.css';
@import 'typography.css';
@import 'buttons.css';
@import 'forms.css';
@import 'cards.css';
@import 'header.css';
@import 'footer.css';
@import 'home.css';
@import 'responsive.css';

/* === Estilos globales === */

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

body {
	font-family: var(--font-body);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	color: var(--text-dark);
	background-color: var(--background);
	margin: 0;
	padding-top: calc(var(--header-height) + 48px);
	/* header height + top bar height */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* === FIX ICONOS === */
/* Asegurar que nadie sobrescriba la fuente de los iconos */
.fas,
.far,
.fa {
	font-family: "Font Awesome 5 Free" !important;
	font-weight: 900;
}

.fab {
	font-family: "Font Awesome 5 Brands" !important;
}

#main-content {
	flex: 1;
}

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

.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 20px;
}

.section {
	padding: var(--section-padding) 0;
}

/* === Fondos reutilizables === */

.bg-white {
	background-color: var(--white);
}

.bg-light {
	background-color: var(--background);
}

.bg-gradient-light {
	background: var(--light-gradient);
}

.bg-dark {
	background: var(--dark-gradient);
	color: var(--white);
}

/* === Titulos de seccion (patron del referencia) === */

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 40px;
}

.section-title {
	font-family: var(--font-heading);
	font-size: 36px;
	font-weight: 700;
	color: var(--text-dark);
	line-height: 1.2;
}

.section-title span {
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.section-nav {
	display: flex;
	gap: 10px;
}

.nav-arrow {
	width: 45px;
	height: 45px;
	border-radius: var(--border-radius-full);
	background: var(--white);
	border: 1px solid var(--border-light);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: var(--text-light);
	cursor: pointer;
	transition: var(--transition);
}

.nav-arrow:hover {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: var(--white);
}

/* === Utilidades === */

.text-center {
	text-align: center;
}

.text-primary {
	color: var(--primary-color);
}

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

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* === Tooltips === */

.ocs-tooltip {
	position: absolute;
	background: var(--text-dark);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	font-size: 0.875rem;
	z-index: 10000;
	display: none;
	white-space: nowrap;
	box-shadow: var(--shadow-md);
}

.ocs-tooltip::before {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 1rem;
	border: 6px solid transparent;
	border-bottom-color: var(--text-dark);
}

/* === Animaciones AOS === */

.aos-element {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.aos-element.aos-animate {
	opacity: 1;
	transform: translateY(0);
}

/* === Loading general === */

.ocs-loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

/* === Smooth transitions === */

.page-loaded * {
	transition-property: none !important;
}