/* HERO */
.hero {
	background-image: url("../../images/portada_sobre_nosotros_new.webp");
	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.7);
}

.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 */

section.milestones {
	padding: 50px 0px;
}

.map .item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	margin-bottom: 20px;
	position: relative;
	z-index: 2;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 1s ease-out, transform 1s ease-out;
}

.map .item.visible {
	opacity: 1;
	transform: translateY(0);
}

.counting-numbers {
	opacity: 1;
	transform: none;
	transition: none;
}


/* HISTORY */

section.history {
	background-color: #1a267d;
	border-radius: 38px;
}

.section-description.size-medium.history-text {
	font-size: 1rem;
	line-height: 1.3;
	margin-bottom: 24px;
}

.section-description.size-medium.history-text:last-child {
	margin-bottom: 0;
}

	.section-description.size-medium.history-text .history-text-yellow {
		color: #d6f510;
	}

/* end HISTORY */

/* IDEAS ENGINEERING */

section.ideas-engineering {
	background: #2c2d88;
	border-radius: 38px;
	margin-top: -70px;
}

.ideas-engineering .container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: start;
}

.map-container {
	width: 100%;
}

.map-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: end;
	position: relative;
	z-index: 2;
}

.map-header .left-block {
	flex: 0 0 100%;
}

.map-header .right-block {
	display: none;
}

.map-header .text {
	max-width: 340px;
	width: 90%;
	margin-bottom: 50px;
}

.right-block .logo-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: center;
}

.right-block .logo-list .logo {
	flex: 0 0 15%;
}

.right-block .logo-list .logo img {
	max-height: 41px;
}

.map-container .map  {
	width: 100%;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.map-container .map .map-top-deco {
	position: absolute;
	top: -10px;
	left: 0;
	width: 100%;
	height: 100px;
	background: linear-gradient(90deg, #2C2D88 0%, rgba(44, 45, 136, 0) 100%);
}

.map {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 0;
	position: relative;
	min-height: 400px;
	background-image: url("../../images/svg/map_svg.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-color: transparent;
	background-blend-mode: soft-light;
	background-opacity: 0.3;
}

.map .map-image {
	display: none;
}

.yellow-text {
	color: #d6f510;
	font-size: 1.7rem;
	font-weight: bold;
	margin: 0;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.white-text {
	color: #ffffff;
	font-size: 0.7rem;
	text-transform: uppercase;
	margin: 0;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}


/* end IDEAS ENGINEERING */

/* MILESTONES */

section.milestones {
	background: var(--Gris);
	border-radius: 38px;
	margin-top: -70px;
}

/* end MILESTONES */

/* CERTIFICATIONS */

.certificate-container {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	margin-top: 100px;
}

@media (max-width: 768px) {
    .certificate-container ul {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .certificate-container ul li {
        width: 40%;
		max-width: 160px;
        min-width: auto;
        margin-bottom: 10px;
    }
}

.certificate-container ul li img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.certificate-container .certificates-wrapper {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.certificate-container .policy-link {
	text-align: center;
	margin-top: 20px;
	width: 100%;
}

.certificate-container .policy-link a {
	color: #1a267d;
	font-weight: 500;
	text-decoration: underline;
	font-size: 1.1rem;
}

.certificate-container .policy-link a:hover {
	color: #d6f510;
}

/* CERTIFICATIONS END */



/* DESKTOP STYLES */
@media (min-width: 769px) {
	/* GLOBAL STYLES */
	section {
		padding: 130px 0px;
	}
	/* HERO */
	.hero {
		height: 590px;
		top: 24px;
		padding: 0px;
		margin: 0;
		width: calc(100% - 50px);
	}

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

	/* end HERO */

	/* HISTORY */
	.section-description.size-medium.history-text {
		font-size: 1.125rem;
		line-height: 1.6;
		margin-bottom: 24px;
	}

	.section-description.size-medium.history-text:last-child {
		margin-bottom: 0;
	}
	/* end HISTORY */

	/* IDEAS ENGINEERING */
	.map-header .right-block {
		display: block;
		flex: 0 0 50%;
	}

	.map-header .left-block {
		flex: 0 0 50%;
	}

	.map {
		width: 90%;
		display: block;
		padding: 0;
		background-image: none;
	}

	.map .map-image {
		display: block;
		margin-bottom: 0;
		width: auto;
	}

	.map .item {
		position: absolute;
		margin-bottom: 0;
	}

	/* Posiciones específicas para cada item en el mapa */
	.map .item[class*="1"] {
		top: 30%;
		left: 20%;
	}

	.map .item[class*="2"] {
		top: 59%;
		left: 17%;
	}

	.map .item[class*="3"] {
		top: 31%;
		right: 46%;
	}

	.map .item[class*="4"] {
		bottom: 10%;
		left: 33%;
	}

	.map .item[class*="5"] {
		bottom: 24%;
		right: 43%;
	}

	.map .item[class*="6"] {
		top: 58%;
		right: 28%;
	}

	.map .item[class*="7"] {
		top: 29%;
		right: 24%;
	}

	.map .map-content {
		position: relative;
		width: 100%;
		height: 100%;
	}

	.counting-numbers.yellow-text {
		font-size: 3rem;
		margin: 4px 0px;
	}

	.white-text {
		font-size: 1rem;
	}
	/* end IDEAS ENGINEERING */

	/* MILESTONES */
	.milestones {
		border-radius: 38px;
		margin-top: -70px;
	}
	/* end MILESTONES */

	/* CERTIFICATIONS */
	.certificate-container {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		margin-top: 100px;
	}

	.certificate-container ul {
		display: flex;
		flex-direction: row;
		justify-content: flex-end;
		align-items: center;
		width: 100%;
		gap: 20px;
	}

	.certificate-container ul li {
		width: 10%;
		min-width: 150px;
		margin-bottom: 15px;
	}

	.certificate-container ul li img {
		width: 100%;
		height: auto;
		object-fit: contain;
	}

	.certificate-container .certificates-wrapper {
		display: flex;
		flex-direction: column;
		width: 100%;

	}

	.certificate-container .policy-link {
		text-align: right;
		margin-top: 30px;
	}

	.certificate-container .policy-link a {
		font-size: 1.2rem;
	}
	/* CERTIFICATIONS END */
}
