section {
	padding: 100px 0px;
}

/* HERO */
.hero {
	background-image: url('../../images/contact_hero_bg.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	top: 12px;
	height: 200px;
	position: relative;
	font-family: "DINPro";
	overflow: hidden;
	left: 50%;
	border-radius: 10px;
	transform: translateX(-50%);
	width: calc(100% - 24px);
}

.hero__color {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(26, 38, 125, 0.70);
}

.hero__container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100%;
	position: relative;
	z-index: 1;
}

.hero__container h1 {
	color: #D6F510;
	text-align: center;
	font-family: 'DINPro';
	font-size: 25px;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 5px;
	text-transform: uppercase;
	z-index: 1;
}

/* end HERO */

/* CONTACT */
.contact {
	background: #FFF;
	border-radius: 38px;
	position: relative;
	z-index: 2;
	margin-bottom: 0;
}

.contact-header-mobile {
	display: block;
}

.contact-header-desktop {
	display: none;
}

.contact-content {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

#contact-form {
	margin-top: 55px;
}

.contact input,
.contact textarea,
.contact select {
	border: none;
	border-bottom: 1px solid rgba(89, 91, 105, 0.75);
	padding: 20px 10px 10px 10px;
	width: 100%;
	background: transparent;
	outline: none;
	box-sizing: border-box;
	font-size: 16px;
	font-weight: 400;
	line-height: 30px;
	color: #242020;
	letter-spacing: 1.6px;
	transition: all 0.2s ease;
	outline: none;
	box-shadow: none;
}

.contact input:focus,
.contact textarea:focus,
.contact select:focus {
	border-bottom: 1px solid #174169;
	outline: none;
}

.contact label {
	position: relative;
	display: block;
	margin-bottom: 20px;
}

.contact label span:first-of-type {
	color: #242020;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 1.6px;
	position: absolute;
	top: 27px;
	left: 10px;
	transition: all 0.3s ease;
	pointer-events: none;
	z-index: 1;
}

.contact label.active span:first-of-type,
.contact input:focus + span:first-of-type,
.contact textarea:focus + span:first-of-type {
	top: -5px;
	left: 0px;
	font-size: 12px;
	color: #174169;
	font-weight: 500;
}

.contact select + span:first-of-type {
	top: -5px;
	left: 0px;
	font-size: 12px;
	color: #174169;
	font-weight: 500;
}

.contact select {
	padding: 20px 10px 10px 10px;
	margin-bottom: 20px;
}

.contact .error-message {
	position: absolute;
	bottom: -20px;
	left: 0;
	font-size: 12px;
	color: #d32f2f;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.contact .error-message:not(:empty) {
	opacity: 1;
}

.button-container {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	width: 100%;
	gap: 10px;
}

.contact small {
	color: #242020;
	font-family: DINPro;
	font-size: .75rem;
	font-weight: 400;
	line-height: 30px;
}

.contact-info-container {
	display: flex;
	flex-direction: column;
}

.contact-info-container ul {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin-top: 55px;
}

.contact-info-container ul li {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: max-content;
}

.contact-info-container ul li .contact-info-title {
	color: #000;
	font-family: "Neue Haas Unica";
	font-size: 1.125rem;
	font-style: normal;
	font-weight: 700;
	line-height: 25px;
}

.contact-info-container ul li .contact-info-email {
	color: var(--Azul-oscuro);
	font-family: 'DINPro';
	font-size: 1rem;
	font-style: normal;
	font-weight: 500;
	line-height: 25px;
	text-decoration: underline;
}

.contact-info-container ul li .contact-info-link {
	color: var(--Azul-oscuro);
	font-family: 'DINPro';
	font-size: 1rem;
	font-style: normal;
	font-weight: 500;
	line-height: 25px;
	text-decoration: underline;
	display: inline-flex;
}

.contact-info-container ul li .contact-info-link:after {
	content: url('../../images/svg/contact_info_link_arrow.svg');
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-left: 5px;
}

/* Redes sociales */
.contact-info-container ul li .socials-container {
	display: flex;
	align-items: center;
}

.contact-info-container ul li .socials-container .social-link {
	display: flex;
	align-items: center;
}

.contact-info-container ul li .socials-container .social-icon {
	display: flex;
	justify-content: center;
	align-items: center;
	transition: all 0.3s ease;
	text-decoration: none;
	cursor: pointer;
	background: none;
	padding: 0;
	box-sizing: border-box;
	width: 50px;
	height: 50px;
}

.contact-info-container ul li .socials-container .social-icon:hover {
	transform: scale(1.1);
}

.contact-info-container ul li .socials-container .social-icon-svg {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #174169;
	transition: color 0.3s ease;
}

.contact-info-container ul li .socials-container .social-icon-svg.youtube-icon {
	width: 46px;
	height: 33px;
	margin-right: 10px;
}

.contact-info-container ul li .socials-container .social-icon-svg.linkedin-icon {
	width: 34px;
	height: 34px;
}

.contact-info-container ul li .socials-container .social-icon-svg.instagram-icon {
	width: 40px;
	height: 40px;
}

.contact-info-container ul li .socials-container .social-icon-svg path {
	fill: currentColor;
	transition: fill 0.3s ease;
}

.contact-info-container ul li .socials-container .social-icon-svg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
}

.contact-info-container ul li .socials-container .social-icon-svg.youtube-icon {
	width: 46px;
    height: 33px;
	margin-right: 10px;
}

.contact-info-container ul li .socials-container .social-icon-svg.linkedin-icon {
	width: 34px;
}

.contact-info-container ul li .socials-container .social-icon-svg svg {
	width: 100%;
	height: 100%;
	color: #174169;
	transition: color 0.3s ease;
}

/* end CONTACT */

/* OPERATIONS MAP CONTAINER */
.operations-map-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-top: 30px;
}

.operations-map-container .map-container {
	position: relative;
	padding: 30px 10px;
	border-radius: 30px;
	background: var(--Gris);
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #174169 #f5f5f5;
}

/* Estilos del scrollbar para webkit */
.operations-map-container .map-container::-webkit-scrollbar {
	height: 8px;
}

.operations-map-container .map-container::-webkit-scrollbar-track {
	background: #f5f5f5;
	border-radius: 4px;
}

.operations-map-container .map-container::-webkit-scrollbar-thumb {
	background: #174169;
	border-radius: 4px;
}

.operations-map-container .map-container::-webkit-scrollbar-thumb:hover {
	background: #1A267D;
}

.operations-map-container .map-container .map-content {
	display: block;
	opacity: 1;
	transition: opacity 0.3s ease-in-out;
	position: relative;
	z-index: 1;
}

.operations-map-container .map-container .map-content .title-map {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 1;
}

/* SVG Map Static Styles */
.operations-map-container .map-container svg {
	width: 1477px;
	height: 720px;
	max-width: 1200px;
	min-width: 1477px;
}

/* OFFICE MARKERS */
.offices-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 1477px;
    height: 720px;
    pointer-events: none;
    z-index: 5;
    transform-origin: top left;
}

.office-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #174169;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Estilos para mostrar nombres de países en el mapa */
.operations-map-projects__project {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.operations-map-projects__project:hover {
    opacity: 0.8;
}

.operations-map-projects__project[data-country]::after {
    content: attr(data-country);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.operations-map-projects__project[data-country]:hover::after {
    opacity: 1;
    visibility: visible;
}

.office-marker:hover {
    background: #1A267D;
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.office-marker.active {
    width: 20px;
    height: 20px;
    background: #D6F510;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(214, 245, 16, 0.4);
}

.office-marker.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #174169;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.office-marker-tooltip {
    position: absolute;
    top: 50%;
    left: 100%;
    margin-left: 15px;
    color: #000;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 20;
}

.office-marker.active .office-marker-tooltip {
    opacity: 1;
    visibility: visible;
}

.office-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.office-popup.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.office-popup-content {
    background: white;
    padding: 0;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(50px);
    transition: transform 0.4s ease 0.1s;
    overflow: hidden;
}

.office-popup.active .office-popup-content {
    transform: translateY(0);
}

.office-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    line-height: 1;
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.office-popup-close:hover {
    color: #D6F510;
}

.office-popup-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.office-popup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.office-popup-info {
    padding: 25px 0px 30px;
}

.office-popup-info p {
    margin: 8px 0;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

.office-popup-country {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: 500;
    font-family: 'Neue Haas Unica', sans-serif;
}

.office-popup-country strong {
	font-weight: 600;
}



.office-popup-address {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.office-popup-postal-code {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.office-popup-phone {
    color: #174169;
    font-weight: 500;
    font-size: 1rem;
}

/* OFFICE POPUP DESKTOP */
.office-popup-desktop {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 350px !important;
    height: 100% !important;
    background: none !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    z-index: 15 !important;
    backdrop-filter: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.office-popup-desktop.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.office-popup-desktop .office-popup-content {
    background: white;
    padding: 0;
    border-radius: 10px;
    width: 100%;
    max-width: 320px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: none;
    transition: none;
    overflow: hidden;
    margin-top: 60px;
}

.office-popup-desktop .office-popup-close {
    color: #FFF;
    text-shadow: none;
	transition: all 0.3s ease;
}

.office-popup-desktop .office-popup-close:hover {
    color: #D6F510;
}

.office-popup-desktop .office-popup-image {
    height: 160px;
}

.office-popup-desktop .office-popup-info {
    padding: 20px 25px 25px;
}

.office-popup-desktop .office-popup-country {
    font-size: 1.2rem;
    margin-bottom: 12px;
}



/* end OFFICE MARKERS */

/* end OPERATIONS MAP CONTAINER */

/* MEDIA QUERIES */
@media (max-width: 768px) {
	/* OPERATIONS */
	.operations-map-container .map-container svg {
		width: 1100px;
		height: 536px;
		min-width: 1100px;
	}

	/* OFFICE MARKERS */
	.offices-container {
		transform: scale(0.7449);
	}

	.operations-map-container .map-container::after {
		content: '← Desliza para explorar →';
		position: absolute;
		bottom: 10px;
		right: 20px;
		background: rgba(23, 65, 105, 0.9);
		color: white;
		padding: 8px 12px;
		border-radius: 20px;
		font-size: 12px;
		font-weight: 500;
		pointer-events: none;
		z-index: 10;
		animation: fadeInOut 3s ease-in-out infinite;
	}

	/* OFFICE MARKERS - Popup */
	.office-popup-content {
		margin: 20px;
	}

	.office-popup-title {
		font-size: 1.3rem;
	}

	.office-popup-info {
		padding: 20px;
	}

	/* Marcadores */
	.office-marker {
		width: 20px;
		height: 20px;
		border: 3px solid #fff;
	}

	.office-marker.active {
		width: 24px;
		height: 24px;
		background: #D6F510;
		border: 3px solid #fff;
		transform: translate(-50%, -50%);
		box-shadow: 0 2px 8px rgba(214, 245, 16, 0.4);
	}

	.office-marker.active::before {
		width: 10px;
		height: 10px;
	}

	.office-marker-tooltip {
		font-size: 13px;
		margin-left: 18px;
	}
}

@media (min-width: 769px) {
	/* GLOBAL STYLES */
	section {
		padding: 130px 0px;
	}

	/* HERO */
	.hero {
		background-image: url('../../images/contact_hero_bg.jpg');
		height: 590px;
		top: 24px;
		padding: 0px;
		margin: 0;
		width: calc(100% - 50px);
	}

	.hero__container h1 {
		font-size: 4.875rem;
	}

	/* CONTACT */
	.contact-header-mobile {
		display: none;
	}

	.contact-header-desktop {
		display: block;
		margin-bottom: 40px;
	}

	.contact-content {
		display: flex;
		flex-direction: row-reverse;
		justify-content: center;
		align-items: flex-start;
		gap: 60px;
	}

	.contact-form-form {
		flex: 1;
	}

	.contact-info-container {
		flex: 1;
	}

	.contact-info-container ul {
		margin-top: 30px;
	}
}

@media (min-width: 769px) and (max-width: 1023px) {
	.offices-container {
		transform: scale(0.85);
	}
}

@media (min-width: 1024px) {
	/* OPERATIONS */
	.operations-map-container .map-container {
		position: relative;
		overflow: hidden;
	}

	.operations-map-container .map-container svg {
		width: 100%;
		height: auto;
		max-width: 100%;
		min-width: auto;
	}

	.offices-container {
		width: 100%;
		height: 100%;
		transform: none;
	}

	/* Ajuste de posiciones de marcadores */
	.office-marker {
		left: calc(var(--office-x) / 1477 * 100%);
		top: calc(var(--office-y) / 720 * 100%);
	}
}

/* ANIMATIONS */
@keyframes fadeInOut {
	0%, 100% { opacity: 0.7; }
	50% { opacity: 1; }
}
