/* ========================================
   FONT FACES
======================================== */

/* CCSmash - Heading Font */
@font-face {
	font-family: 'CCSmash';
	src: url('../fonts/CCSmash Regular.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Nekst - Content Font */
@font-face {
	font-family: 'Nekst';
	src: url('../fonts/nekst_light.otf') format('opentype');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Nekst';
	src: url('../fonts/nekst_regular.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Nekst';
	src: url('../fonts/nekst_medium.otf') format('opentype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Nekst';
	src: url('../fonts/nekst_semibold.otf') format('opentype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Nekst';
	src: url('../fonts/nekst_bold.otf') format('opentype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ========================================
   CSS VARIABLES
======================================== */
:root {
	/* Colors */
	--primary-red: #DA352E;
	--primary-blue: #136EBA;
	--primary-black: #1C1D18;
	--primary-white: #F2F2F2;

	/* Typography */
	--font-heading: 'CCSmash', sans-serif;
	--font-content: 'Nekst', sans-serif;
}

/* ========================================
   BASE STYLES
======================================== */
body {
	font-family: var(--font-content);
	color: var(--primary-black);
	background-color: var(--primary-white);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
}

/* ========================================
   HELLO BAR
======================================== */
.hello-bar {
	background-color: #00588B;
	padding: 6px 0;
}

.hello-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.hello-bar__link {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hello-bar__prefix {
	font-family: var(--font-content);
	font-size: 16px;
	font-weight: 500;
	color: #F2F2F2;
}

.hello-bar__link a {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-content);
	font-size: 16px;
	font-weight: 500;
	color: #F2F2F2;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.hello-bar__link a:hover {
	opacity: 0.8;
	color: #F2F2F2;
}

.hello-bar__link a svg {
	flex-shrink: 0;
}

.hello-bar__text {
	font-family: var(--font-content);
	font-size: 16px;
	font-weight: 500;
	color: #F2F2F2;
}

/* ========================================
   HEADER
======================================== */
.site-header {
	background-color: var(--primary-white);
}

.site-header .navbar {
	padding: 16px 0;
}

.site-header .navbar-brand {
	flex-shrink: 0;
}

.site-header .navbar-brand img {
	width: auto;
	max-width: 180px;
	height: auto;
}

/* Logo size adjustment for tablet/small desktop */
@media (min-width: 992px) and (max-width: 1200px) {
	.site-header .navbar-brand img {
		max-width: 140px;
	}
}

/* Main Menu */
.site-header .navbar-nav .nav-link {
	font-family: var(--font-content);
	font-size: 16px;
	font-weight: 700;
	color: var(--primary-black) !important;
	padding: 8px 16px;
	transition: color 0.3s ease;
}

/* Nav Link hover - primary red */
.site-header .navbar-nav .nav-link:hover {
	color: var(--primary-red) !important;
}

/* Dropdown */
.site-header .dropdown-menu {
	border: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border-radius: 0;
	background-color: #fff;
	z-index: 1000;
	min-width: 200px;
	padding-top: 0;
	padding-bottom: 0;
	margin-top: 0;
}

.site-header .dropdown-menu.show {
	display: block;
}

.site-header .dropdown-item {
	font-family: var(--font-content);
	font-size: 14px;
	font-weight: 500;
	color: var(--primary-black);
	padding: 10px 20px;
	transition: all 0.3s ease;
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
	background-color: rgba(218, 53, 46, 0.2); /* primary-red con opacity 0.2 */
	color: var(--primary-red);
}

/* Dropdown Toggle Arrow - Desktop */
.site-header .dropdown-toggle::after {
	display: inline-block;
	margin-left: 6px;
	vertical-align: middle;
	content: '';
	border-top: 5px solid;
	border-right: 5px solid transparent;
	border-bottom: 0;
	border-left: 5px solid transparent;
	transition: transform 0.3s ease;
}

.site-header .nav-item.dropdown.show > .dropdown-toggle::after {
	transform: rotate(180deg);
}

/* Custom Dropdown Arrow Toggle (inyectado por JS para mobile) */
.dropdown-arrow-toggle {
	display: none; /* Oculto en desktop */
}

/* Mobile Dropdown */
@media (max-width: 991px) {
	.site-header .dropdown-menu {
		box-shadow: none;
		border-radius: 0;
		padding-left: 20px;
		position: static;
		background: transparent;
	}

	/* Ocultar flecha Bootstrap en mobile */
	.site-header .dropdown-toggle::after {
		display: none;
	}

	/* Mobile: mostrar el botón de flecha */
	.dropdown-arrow-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 30px;
		height: 30px;
		margin-left: auto;
		cursor: pointer;
		position: relative;
		flex-shrink: 0;
	}

	/* Flecha usando CSS */
	.dropdown-arrow-toggle::before {
		content: '';
		display: block;
		width: 8px;
		height: 8px;
		border-right: 2px solid var(--primary-black);
		border-bottom: 2px solid var(--primary-black);
		transform: rotate(45deg);
		transition: transform 0.3s ease;
	}

	/* Rotar flecha cuando está abierto */
	.nav-item.dropdown.show .dropdown-arrow-toggle::before {
		transform: rotate(-135deg);
	}

	/* Ajustar el nav-link para contener la flecha */
	.site-header .nav-item.dropdown > .nav-link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
	}

	/* Evitar que el dropdown se muestre con hover en mobile */
	.site-header .nav-item.dropdown:hover > .dropdown-menu {
		display: none;
	}

	/* Solo mostrar cuando tiene clase .show */
	.site-header .nav-item.dropdown.show > .dropdown-menu {
		display: block;
	}
}

/* Header CTAs */
.header-ctas {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: 20px;
}

.header-cta {
	display: inline-block;
	font-family: var(--font-heading);
	color: var(--primary-white);
	padding: 12px 20px;
	text-decoration: none;
	border-radius: 7px;
	transition: all 0.3s ease;
}

.header-cta--primary {
	background-color: var(--primary-blue);
	box-shadow: 3px 5px 0 0 var(--primary-red);
}

.header-cta--primary:hover {
	background-color: var(--primary-red);
	color: var(--primary-white);
}

/* Mobile Fixed CTAs - Hidden on desktop */
.mobile-fixed-ctas {
	display: none;
}

/* Header CTAs - Hide on tablet, show mobile fixed CTAs instead */
@media (min-width: 993px) and (max-width: 1200px) {
	.header-ctas {
		display: none;
	}
	
	.mobile-fixed-ctas {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 1000;
		background-color: #F2F2F2;
		padding: 12px 16px;
		gap: 12px;
		box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
	}

	.mobile-cta {
		flex: 1;
		display: inline-block;
		font-family: var(--font-heading);
		color: var(--primary-white);
		padding: 14px 9px;
		text-decoration: none;
		border-radius: 7px;
		text-align: center;
		transition: all 0.3s ease;
	}

	.mobile-cta--primary {
		background-color: var(--primary-blue);
	}

	.mobile-cta--primary:hover {
		background-color: var(--primary-red);
		color: var(--primary-white);
	}

	.mobile-cta--secondary {
		background-color: var(--primary-red);
	}

	.mobile-cta--secondary:hover {
		background-color: var(--primary-blue);
		color: var(--primary-white);
	}
}

/* Header CTAs - Small Desktop */
@media (min-width: 1201px) and (max-width: 1400px) {
	.header-ctas {
		gap: 8px;
		margin-left: 12px;
	}
	
	.header-cta {
		padding: 14px 24px;
		font-size: 14px;
		white-space: nowrap;
	}
	.site-header .navbar-nav .nav-link{
		padding: 8px 12px;
	}
}

/* Header Responsive */
@media (max-width: 992px) {
	/* Hide hello bar link */
	.hello-bar__link {
		display: none;
	}
	.footer-lmh-text{
		text-align: center;
	}

	.footer-cta{
		display: none;
	}

	.hello-bar__inner {
		justify-content: center;
	}

	/* Navbar toggler - no border, no color */
	.site-header .navbar-toggler {
		border: none;
		box-shadow: none;
		padding: 0;
	}

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

	.site-header .navbar-toggler-icon {
		background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231C1D18' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
	}

	/* Hide header CTAs in navbar */
	.header-ctas {
		display: none;
	}

	/* Show mobile fixed CTAs */
	.mobile-fixed-ctas {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 1000;
		background-color: #F2F2F2;
		padding: 12px 16px;
		gap: 12px;
		box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
	}

	.mobile-cta {
		flex: 1;
		display: inline-block;
		font-family: var(--font-heading);
		color: var(--primary-white);
		padding: 14px 9px;
		text-decoration: none;
		border-radius: 7px;
		text-align: center;
		transition: all 0.3s ease;
	}

	.mobile-cta--primary {
		background-color: var(--primary-blue);
	}

	.mobile-cta--primary:hover {
		background-color: var(--primary-red);
		color: var(--primary-white);
	}

	.mobile-cta--secondary {
		background-color: var(--primary-red);
	}

	.mobile-cta--secondary:hover {
		background-color: var(--primary-blue);
		color: var(--primary-white);
	}

	/* Add padding to body so content doesn't hide behind fixed CTAs */
	body {
		padding-bottom: 80px;
	}
}

@media (max-width: 576px) {
	.hello-bar__link {
		flex-direction: column;
		gap: 4px;
	}

	.hello-bar__prefix,
	.hello-bar__link a,
	.hello-bar__text {
		font-size: 14px;
	}
}

/* ========================================
   BUTTONS / CTA
======================================== */
.btn-cta,
.footer-cta a {
	display: inline-block;
	background-color: var(--primary-red);
	border-radius: 7px;
	font-family: var(--font-heading);
	color: var(--primary-white);
	padding: 14px 24px;
	text-decoration: none;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 3px 5px 0 0 var(--primary-blue);
}

.btn-cta:hover,
.footer-cta a:hover {
	background-color: var(--primary-blue);
	color: var(--primary-white);
	box-shadow: 3px 5px 0 0 var(--primary-white);
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 60px 0 40px;
}

/* Footer Top Row - Flex Layout */
.footer-row-top .footer-inner {
	display: flex;
	justify-content: space-between;
	gap: 40px;
}

.footer-left {
	display: flex;
	flex-direction: column;
	gap: 24px;
	flex: 1;
}

.footer-logo img {
	height: auto;
}

.footer-menu {
	display: flex;
	flex-direction: row;
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-menu li a {
	font-family: var(--font-content);
	font-size: 16px;
	font-weight: 700;
	text-decoration: underline;
	color: var(--primary-black);
	transition: opacity 0.3s ease;
}

.footer-menu li a:hover {
	opacity: 0.7;
}

.footer-contact {
	font-family: var(--font-content);
	font-size: 16px;
	font-weight: 400;
	color: var(--primary-black);
}

.footer-contact p {
	margin: 0 0 8px;
}

.footer-contact a {
	color: var(--primary-black);
}

.footer-right {
	flex: 1;
	max-width: 500px;
}

.footer-map {
	box-shadow: 0 0 34px 4px rgba(0, 0, 0, 0.05);
	border-radius: 8px;
	overflow: hidden;
}

.footer-map iframe {
	display: block;
	width: 100%;
	height: 300px;
	border: none;
}

/* Footer Second Row */
.footer-row-bottom {
	padding-top: 60px;
}

.footer-row-bottom .footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
}

.footer-bottom-left {
	flex: 1;
}

.footer-lmh-text {
	font-family: var(--font-content);
	font-size: 14px;
	font-weight: 400;
	color: var(--primary-black);
}

.footer-bottom-center {
	flex: 1;
	display: flex;
	justify-content: center;
}

.footer-bottom-links {
	display: flex;
	flex-direction: row;
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-bottom-links li a {
	font-family: var(--font-content);
	font-size: 14px;
	font-weight: 400;
	color: var(--primary-black);
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.footer-bottom-links li a:hover {
	opacity: 0.7;
}

.footer-bottom-right {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.footer-social-links {
	display: flex;
	flex-direction: row;
	gap: 16px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-social-links li a {
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease;
}

.footer-social-links li a:hover {
	opacity: 0.7;
}

.footer-social-links li a img {
	width: 14px;
	height: 14px;
	object-fit: contain;
}

/* Footer Responsive */
@media (max-width: 768px) {
	/* First Row Mobile: logo, menu, map, contact */
	.footer-row-top .footer-inner {
		flex-direction: column;
		gap: 24px;
	}

	.footer-left,
	.footer-right {
		display: contents;
	}

	.footer-logo {
		order: 1;
	}

	.footer-menu {
		order: 2;
		flex-wrap: wrap;
		justify-content: center;
	}

	.footer-map {
		order: 3;
	}

	.footer-contact {
		order: 4;
	}

	.footer-cta {
		order: 5;
	}

	/* Second Row Mobile */
	.footer-row-bottom .footer-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.footer-bottom-left,
	.footer-bottom-center,
	.footer-bottom-right {
		width: 100%;
		justify-content: center;
	}

	.footer-bottom-links {
		gap: 12px;
	}
}
