/*****************************************************************************************
******************************************************************************************
                                    ¡¡¡ABOUT US PAGE!!!
******************************************************************************************
******************************************************************************************/
/* Responsive */
@media (max-width: 767px) {
    .About_us_portada{
        padding-top: 80px;
    }
	.About_us_portada{
		padding: 15% 10% 0%;
	}
	.values-button {
		bottom: 35px;
	}
	.content{
		padding: 0.5rem;
	}
	.profile_detail span {
		font-size: 0.85rem;
	}
	.profile_detail p {
		font-size: 0.55rem;
	}
	.container_our_team{
		height: 30dvh;
	}
	.profile_quote p {
		font-size: 0.5rem;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.About_us_portada{
        padding-top: 80px;
    }
	.About_us_portada{
		padding: 10% 10% 0%;
	}
	.values-button {
		bottom: 35px;
	}
	.content{
		padding: 1.5rem;
	}
	.profile_detail span {
		font-size: 1.0rem;
	}	
	.profile_detail p {
		font-size: 0.5rem;
	}
	.container_our_team{
		height: 40dvh;
	}
	.profile_quote p {
		font-size: 1rem;
	}
}

@media (min-width: 1025px) and (max-height: 1080px){
    .About_us_text {
        display: flex;
    }
    .About_us_portada{
        padding-top: 150px;
    }
	.About_us_portada{
		padding: 7% 10% 0%;
	}
	.values-button {
		bottom: 10px;
		width: 2%;
	}
	.content{
		padding: 1.5rem;
	}
	.profile_detail span {
		font-size: 1.5rem;
	}
	.profile_detail p {
		font-size: 0.75rem;
	}
	.container_our_team{
		height: 60dvh;
	}
	.profile_quote p {
		font-size: 1rem;
	}
}


.About_us_portada {
    opacity: 0;
    animation: fadeIn 4s forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.About_us_portada{
    text-align: center;
    align-items: center;
    width: 100vw;
}
.About-us_title{
    padding-top: 6%;
}
.Values-history{
	padding: 5% 0%;
}
.Values {
    align-items: center;
    text-align: center;
    margin: 0 auto;
    position: relative;
    height: 50vh;
    overflow: hidden;
    padding-top: 30px;
}

.Values_Img img {
    width: 100%;
    height: 100%; /* Cambia esto a 100% */
    border-radius: 25px;
    object-fit: cover; /* Agrega esta línea */
}

.Values_Img{
	position: relative;
	width: 100%;
	height: 400px;
	border-radius: 25px;
}
.misionimg{
	background-image: url('../img/About_us_page/Mision.avif');
	background-size: cover;
	background-position: center;
}
.visionimg{
	background-image: url('../img/About_us_page/Vision.avif');
	background-size: cover;
	background-position: center;
}
.Values_name{
    position: absolute;
    top: 20px;
    left: 15px;
    padding-top: 5%;
    width: 50%;
    color: #f2ede4;
}

.Values_name h3 {
	color: #f2ede4;
}
.values-button {
	position: absolute;
    /* bottom: 44px; */
    right: 0;
    margin: 20px;
    border-radius: 50%;
    width: 50px;
	height: 50px;
    align-items: center;
    text-align: center;
    background: none;
    border: 2px solid #f2ede4;
	color: #f2ede4;
}
.popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}




.our_team{
    text-align: center;
    padding-top: 5%;
}

:root {
	--light: #ffe6e6;
	--dark: #0c0c0c;
}

.container_our_team {
	overflow: clip;
	position: relative;

	display: flex;
	justify-content: space-around;
	align-items: center;

	padding: 1rem;

	width: 100%;
}

.category_container {
	--gap: -2.2rem;
display: flex;
justify-content: space-around;
/* align-items: center; */
flex-wrap: nowrap;
/* gap: calc(var(--gap) * 2); */
position: sticky;
width: 100%;
height: 100%;
}

.content {
	--active: 0;

	cursor: pointer;
	overflow: clip;

	position: relative;
	z-index: 10;

	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 1.5rem;



	width: calc((100% / 4) - var(--gap));
	height: 100%;

	border-radius: 1rem;

	transition: width 0.5s ease-in-out;
	text-align: initial;
}
.content:hover {
	--active: 1;
	width: calc(55% - var(--gap));
	filter: brightness(1.5);
}

.content::before {
	content: "";

	position: absolute;
	z-index: -10;
	top: 0;
	left: 0;

	width: 100%;
	height: 100%;
	background-color: var(--dark);

	opacity: 0.6;
}

.content img {
	position: absolute;
	z-index: -20;
	top: 0;
	left: 0;

	width: 100%;
	height: 100%;

	object-fit: revert;
	object-position: center;
}

.content .profile_image {
	opacity: calc(1 - var(--active));

	transition: opacity 0.3s ease-in-out;
}

.profile_detail {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;

	width: 12rem;
	transition: transform 0.5s cubic-bezier(0.23, 0.93, 0.77, 1) 0.01s;
}

.profile_detail span {
	font-weight: 600;
	color: #f2ede4;
	
	text-align: initial;
    margin-right: 60%;
}

.profile_detail p {
	font-weight: 500;
	color: var(--light);
	font-size: 17px;
}

.profile_quote {
	width: 22rem;
	transform: translate(0, calc((1 - var(--active)) * (100% + 2.5rem)));
	display: contents;
}

.profile_quote p {
	font-weight: 600;
	color: var(--light);

	transform: translate(0, calc((1 - var(--active)) * (100% + 2.5rem)));

	transition: transform 0.5s cubic-bezier(0.23, 0.93, 0.77, 1) 0.1s;
}










.wrapper {
	display: grid;
  	grid-template-rows: 0fr;
  	overflow: hidden;
	transition: grid-template-rows 0.5s cubic-bezier(0.23, 0.93, 0.77, 1) 0.01s;
}


.profile_quote { 
	min-height: 0; 
	transform: translateY(50%);
	opacity: 0;
	transition: 
		opacity 0.8s ease-in-out,
		transform 0.8s cubic-bezier(0.23, 0.93, 0.77, 1) 0.01s
	;	
}



.content:hover .wrapper {
  	grid-template-rows: 1fr;
}


.content:hover .profile_quote {
	transform: none;
	opacity: 1;	
}








dialog { position: absolute; z-index: 1; background: none; color: white; border: 0; font-size: .8rem; padding:.5em;}
dialog a { color: whitesmoke; }

