@import url(./bussiness-guide-style/normalize.css);
@import url(./bussiness-guide-style/variables.css);
@import url(https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap);

/* ========================================
   CONFIGURACIÓN BASE
   ======================================== */
body {
	font-family: var(--font-family-base);
	background-color: #f8f9fa;
	min-height: 100vh;
}
.bg-secondary {
	background-color: var(--color-secondary) !important;
}
.bg-primary {
	background-color: var(--color-primary) !important;
}
.link-primary{
	color: var(--color-primary) !important;
}
.link-secondary{
	color: var(--color-secondary) !important;
}
.text-primary{
	color: var(--color-primary) !important;
}
.text-secondary{
	color: var(--color-secondary) !important;
}
/* Utilidad para ocultar visualmente pero mantener accesibilidad */
.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ========================================
   HEADER ESTILOS
   ======================================== */
header:not(.hd-carousel) {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	background-color: white;
}

.logo {
	display: flex;
	align-items: center;
}

header span.navbar-brand {
	font-weight: 700;
	font-size: 26px;
	margin: 0;
}

.icono-header {
	font-size: 30px;
	color: var(--color-primary);
	position: relative;
	left: -2px;
}

.icono-header + .right {
	left: -10px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar-nav .nav-link {
	font-size: 16px;
	font-weight: 500;
	color: var(--color-text-dark);
	padding: 1rem 1.3rem !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-link.active {
	background-color: var(--color-secondary);
	color: var(--color-text-light);
}

.navbar-nav .nav-link i {
	display: none;
	margin-bottom: 4px;
}

.navbar-nav .nav-link.active i {
	display: block;
}

.navbar-nav .nav-link:not(.active):hover {
	color: var(--color-secondary) !important;
	transform: scale(1.05);
}

.navbar-nav .nav-link.active:hover i {
	animation: shake 0.9s ease-in-out;
}

@keyframes shake {
	0% {
		transform: rotate(0deg);
	}
	15% {
		transform: rotate(10deg);
	}
	30% {
		transform: rotate(-10deg);
	}
	45% {
		transform: rotate(7deg);
	}
	60% {
		transform: rotate(-7deg);
	}
	75% {
		transform: rotate(3deg);
	}
	85% {
		transform: rotate(-3deg);
	}
	92% {
		transform: rotate(1deg);
	}
	100% {
		transform: rotate(0deg);
	}
}

/* ========================================
   BOTONES
   ======================================== */
.btn {
	border-radius: 0;
	transition: all 0.3s ease;
}

.btn-primary {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
}

.btn-primary:hover {
	background-color: var(--color-secondary);
	border-color: var(--color-secondary);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Botones del header */
.btn-header {
	padding: 0.5rem 1.2rem;
	font-size: 0.9rem;
	font-weight: 500;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.btn-header i {
	font-size: 0.9rem;
}

.btn-outline-primary.btn-header {
	border: 2px solid var(--color-primary);
	color: var(--color-primary);
	background-color: transparent;
}

.btn-outline-primary.btn-header:hover {
	background-color: var(--color-primary);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary.btn-header {
	border: 2px solid var(--color-primary);
}

.btn-header .fa-plus {
	display: none;
}


/* ========================================
   MENÚ DE USUARIO
   ======================================== */
#user-menu .user-menu-toggle {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 500;
	color: var(--color-text-dark);
	padding: 0.5rem 1.2rem;
	transition: all 0.3s ease;
	border: 2px solid var(--color-primary);
	background-color: transparent;
	border-radius: 0;
}

#user-menu .user-menu-toggle i.fa-user-circle {
	font-size: 1.4rem;
	color: var(--color-primary);
	transition: color 0.3s ease;
	display: block !important;
}

#user-menu .user-menu-toggle:hover,
.navbar-nav .nav-link.user-menu-toggle:hover {
	background-color: var(--color-primary);
	color: white !important;
	text-decoration: none;
}

#user-menu .user-menu-toggle:hover i {
	color: white;
}

#user-menu .user-name {
	font-size: 0.95rem;
	font-weight: 500;
}

#user-menu .user-menu-toggle::after {
	margin-left: 0.3rem;
	border-top-color: var(--color-primary);
	transition: all 0.3s ease;
}

#user-menu .user-menu-toggle:hover::after {
	border-top-color: white;
}

/* Dropdown del menú de usuario */
.user-dropdown {
	border-radius: 0;
	border: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	min-width: 200px;
	margin-top: 0.5rem;
}

.user-dropdown .dropdown-item {
	padding: 0.75rem 1.25rem;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	transition: all 0.2s ease;
}

.user-dropdown .dropdown-item i {
	font-size: 1rem;
	color: var(--color-primary);
	width: 1.2rem;
	text-align: center;
}

.user-dropdown .dropdown-item:hover {
	background-color: var(--color-primary);
	color: white;
}

.user-dropdown .dropdown-item:hover i {
	color: white;
}

.user-dropdown .dropdown-divider {
	margin: 0.5rem 0;
	border-color: #e0e0e0;
}

.user-dropdown.show {
	animation: slideDownMenu 0.3s ease;
}

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

/* ========================================
   FOOTER
   ======================================== */
.footer {
	width: 100%;
	height: 4rem;
	color: white;
	background-color: #152032;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	font-weight: 300;
}

.footer p {
	margin-bottom: 0;
}

/* ========================================
   COMPONENTES COMUNES
   ======================================== */

/* Divider con borde de color */
.divider-title {
	border-left: 4px solid var(--color-primary);
	padding-left: 0.5rem;
	margin-bottom: 2rem;
}

/* ========================================
   BANNER
   ======================================== */


#banner {
	position: relative;
}

#banner img {
	width: 100%;
	object-fit: cover;
	object-position: center 50%;
	height: 25rem;
}

/* Banner con overlay (páginas internas) */
.banner-overlay {
	position: relative;
	overflow: hidden;
}

.banner-overlay img {
	filter: brightness(0.6);
}

.banner-overlay-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(
		135deg,
		rgba(66, 133, 244, 0.7),
		rgba(52, 168, 83, 0.7)
	);
	z-index: 1;
}

.banner-overlay-title {
	color: white;
	font-size: 3rem;
	font-weight: 700;
	text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
	margin: 0;
	animation: fadeInScale 0.6s ease-out;
	margin-top: 4rem;
}


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

/* Título en banners simples (sin overlay) */
#banner h1,
#banner h2 {
	text-align: center;
}

/* Section headers */
.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
}

/* Cards generales */
.card {
	border-radius: 0;
	transition: all 0.3s ease;
}

/* Carousels */
.carousel-item {
	transition: transform 0.6s ease-in-out;
}

/* CTA Sections - Iconos de chevron */
.fa-chevron-right {
	transition: transform 0.3s ease;
}

.btn:hover + span .fa-chevron-right,
.btn:focus + span .fa-chevron-right {
	animation: chevronPulse 0.6s ease-in-out;
}

@keyframes chevronPulse {
	0%,
	100% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(5px);
	}
}

/* ========================================
   BOTÓN HAMBURGUESA
   ======================================== */
.navbar-toggler {
	border: none;
	font-size: 1.5rem;
	color: var(--color-primary);
	padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
	box-shadow: none;
}

em {
	color: var(--color-primary);
	font-weight: 600;
	font-style: normal;
}
#header-placeholder:empty,
#footer-placeholder:empty {
	min-height: 80px;
	background-color: #ffffff;
}

#footer-placeholder:empty {
	min-height: 64px;
	background-color: #152032;
}

/* Animación suave al insertar contenido */
#header-placeholder,
#footer-placeholder {
	animation: fadeIn 0.3s ease-in;
}

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

/* Ocultar skeleton cuando ya hay contenido */
#header-placeholder:not(:empty)::before,
#footer-placeholder:not(:empty)::before {
	display: none;
}

.navbar-nav .nav-link,
.btn-header {
	will-change: transform;
}

.user-dropdown {
	will-change: transform, opacity;
}

.user-menu-toggle:focus,
.btn-header:focus,
.btn:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* Indicador de página activa más visible */
.navbar-nav .nav-link.active {
	position: relative;
}

.navbar-nav .nav-link.active::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background-color: var(--color-primary);
}

/* ========================================
   MEDIA QUERIES - RESPONSIVE
   ======================================== */

/* MOBILE - Menor a 992px */
@media (max-width: 991px) {
	.btn-header {
		width: 100%;
		justify-content: center;
		margin-top: 0.5rem;
	}

	.nav-item.ms-lg-3,
	.nav-item.ms-lg-2 {
		margin-left: 0 !important;
	}

	.navbar-collapse {
		background-color: white;
		padding: 1rem;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	}

	.navbar-nav .nav-link {
		padding: 0.75rem 1rem;
	}

	#user-menu {
		margin-left: 0 !important;
		border-top: 1px solid #e0e0e0;
		margin-top: 0.5rem;
		padding-top: 0.5rem;
	}

	#user-menu .user-menu-toggle {
		padding: 0.75rem 1rem;
		width: 100%;
		justify-content: flex-start;
	}

	.user-dropdown {
		position: static !important;
		transform: none !important;
		width: 100%;
		margin-top: 0;
		border: none;
		box-shadow: none;
		background-color: #f8f9fa;
	}

	.user-dropdown .dropdown-item {
		padding-left: 2rem;
	}

	.footer {
		font-size: 0.8rem;
	}

	#header-placeholder:empty {
		min-height: 60px;
	}
}

/* TABLETS HORIZONTALES - 992px a 1024px */
@media (min-width: 992px) and (max-width: 1024px) {
	.btn-header {
		width: 2.8rem;
		height: 2.8rem;
		padding: 0;
		justify-content: center;
		overflow: hidden;
		transition: width 0.4s ease, padding 0.4s ease, gap 0.4s ease;
		gap: 0;
		margin-top: 0 !important;
	}

	.btn-header i {
		flex-shrink: 0;
	}

	.btn-header .btn-text {
		display: none;
	}

	.btn-header:hover {
		width: auto;
		padding: 0.5rem 1.2rem;
		gap: 0.5rem;
	}

	.btn-header:hover .btn-text {
		display: inline;
	}

	#user-menu .user-name {
		display: none;
	}

	#user-menu .user-menu-toggle {
		width: 2.8rem;
		height: 2.8rem;
		padding: 0;
		justify-content: center;
		transition: all 0.4s ease;
	}

	#user-menu .user-menu-toggle::after {
		display: none;
	}

	#user-menu:hover .user-menu-toggle {
		width: auto;
		padding: 0.5rem 1.2rem;
		gap: 0.6rem;
	}

	#user-menu:hover .user-name {
		display: inline;
	}

	#user-menu:hover .user-menu-toggle::after {
		display: inline-block;
	}
}

/* DESKTOP GRANDE - Mayor a 1025px */
@media (min-width: 1025px) {
	.nav-item.ms-lg-3 {
		margin-left: 1rem !important;
	}

	.nav-item.ms-lg-2 {
		margin-left: 0.5rem !important;
	}
}
