.info_on_first{
  height: 90vh;
  bottom: 0;
}
.first_info_on_first{
  font-family: "Poppins", sans-serif;
  font-size: 8cqi;
  position: absolute;
  right: 32vh;
  left: 0;
  height: 40vh;
  padding: 0;
  top: calc(9vh + 1px);
  margin-left: 2vw;
  line-height: 115%;
  color: white;
}
.second_info_on_first{
  position: absolute;
  font-family: "Poppins", sans-serif;
  font-size: 5cqi;
  bottom: 0;
  right: 51vh;
  left: 0;
  height: 40vh;
  font-weight: 300;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  line-height: 115%;
  margin-bottom: 5vh;
  margin-left: 2vw;
  color: white;
}
.imagen_pers_div{
  display: inline;
  position: relative;
  height: 90vh;
  justify-content: end;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 50vh;
}
.imagen_pers1,
.imagen_pers2{
  height: 90vh;
  position: absolute;
  bottom: 0;
  right: 3%;
}
.imagen_pers1sol,
.imagen_pers2sol{
  position: absolute;
  display: none;

}

.izquierdo_proceso,
.derecho_beneficios {
  flex: 0.8; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4vw;
  text-align: left; 
}
.derecho_beneficios{
  text-align: right;
}
.titulo_proceso ,
.titulo_beneficios,
.top_faq{
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.5rem, 3vw, 6rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.descripcion_proceso,
.descripcion_beneficios {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 1.5vw, 4rem);
  color: #000000;
  font-weight: 300;
  position: relative; 
}


.derecho_proceso,
.izquierdo_beneficios {
  flex: 2;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  padding: 20px;
}

.tarjeta_proceso,
.tarjeta_beneficios,
.tarjeta_faq {
  background: #E6F0FA;
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  text-align: left;
}

.tarjeta_proceso:hover,
.tarjeta_beneficios:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-color: #000; 
}

.titulo_procesop1,
.titulo_beneficiosp1 {
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1F3A5F; 
  margin-bottom: 0.5rem;
}
.titulo_procesop1S{
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #000000; 
  margin-bottom: 0.5rem; 
}

.titulo_procesop2,
.titulo_beneficiosp2{
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #000000;
  margin: 0;
}
.tarjeta_beneficios {
  position: relative;
  overflow: hidden; 
  height: 200px;    
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.titulo_beneficiosp1 {
  font-size: 1.4rem;
  text-align: center;
  transition: transform 0.4s ease, font-size 0.4s ease;
  margin: 0 0 0 0;
  z-index: 2;
}

.titulo_beneficiosp2 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 10px;
}

.tarjeta_beneficios:hover .titulo_beneficiosp1,
.tarjeta_beneficios.active .titulo_beneficiosp1 {
  transform: translateY(-15px); 
  font-size: 1.1rem;            
}

.tarjeta_beneficios:hover .titulo_beneficiosp2,
.tarjeta_beneficios.active .titulo_beneficiosp2 {
  opacity: 1;
  transform: translateY(0); 
}

#faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8vh 5vw;
  gap: 2.5rem;
}

.top_faq {
  text-align: center;
}

.bottom_faq {
  width: 100%;
  max-width: 850px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.tarjeta_faq {
  background: #E6F0FA;
  padding: 1.8rem 2.2rem;
  border-radius: 15px;
  border: 1px solid #eee;
  cursor: pointer;
  transition: all 0.4s ease;
  text-align: center;
  position: relative; 
  padding-right: 50px;
}


.flecha_indicador {
  width: 12px;
  height: 12px;
  position: absolute;
  right: 15px;
  top: 20px;
  border-right: 2px solid #1F3A5F;
  border-bottom: 2px solid #1F3A5F;
  transform: rotate(45deg); 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
}

.tarjeta_faq.active .flecha_indicador {
  transform: rotate(-135deg);
  top: 25px; 
  border-color: #000;
}

.titulo_faqp1 {
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1F3A5F;
  margin: 0;
  transition: color 0.3s ease;
}

.titulo_faqp2 {
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tarjeta_faq.active {
  background: #ffffff;
  border-color: #000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.tarjeta_faq.active .titulo_faqp2 {
  max-height: 300px;
  opacity: 1;
  margin-top: 1rem;
}

.tarjeta_faq.active .titulo_faqp1 {
  color: #000; 
}

.tarjeta_beneficios .titulo_beneficiosp2,
.tarjeta_faq .titulo_faqp2 {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.tarjeta_faq.active .titulo_faqp2 {
  max-height: 300px;
  opacity: 1;
  margin-top: 1rem;
}

.tarjeta_beneficios:hover .titulo_beneficiosp2,
.tarjeta_beneficios.active .titulo_beneficiosp2 {
  max-height: 300px;
  opacity: 1;
}

.tarjeta_beneficios:hover .flecha_indicador,
.tarjeta_beneficios.active .flecha_indicador {
  transform: rotate(-135deg);
  opacity: 1;
}
.titulo_beneficiosp2 {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.tarjeta_beneficios:hover .titulo_beneficiosp2,
.tarjeta_beneficios.active .titulo_beneficiosp2 {
  max-height: 200px;
  margin-top: 15px;
}
#contacto {
  display: flex;
  gap: 40px;
  padding: 8vh 5vw;
}

.izquierdo_contacto {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.derecho_contacto {
  flex: 1.2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.tarjeta_contacto {
  background: #ffffff;
  border: 2px solid #000000; 
  border-radius: 15px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  text-align: center;
}

.tarjeta_contacto:hover {
  transform: scale(1.02);
}
.tarjeta_contacto.sin_borde {
  border: none;
  background: transparent;
}
.titulo_contactop1 {
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1F3A5F;
  margin-bottom: 10px;
}

.texto_centro {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  color: #000;
  font-weight: 500;
  margin-bottom: 15px;
}

.titulo_contactop2 {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  color: #666;
  margin-top: auto; 
}
.tarjeta_contacto.whatsapp .imagen_centro {
  width: 50px;
  margin: 15px 0;
}
.tarjeta_contacto.centrada .titulo_contactop1 {
  margin-bottom: 5px;
}

@media (max-aspect-ratio: 4/3) {
  .second_seccion_intro {
    display: flex;
    flex-direction: column;
    height: auto;
    padding-bottom: 50px;
  }
  #beneficios {
    flex-direction: column-reverse;
  }
  
  .izquierdo_proceso,
  .derecho_beneficios {
    text-align: center;
    padding-top: 5vh;
  }
  #contacto {
    flex-direction: column;
  }
  .derecho_contacto {
    grid-template-columns: 1fr;
  }
}


@media (min-aspect-ratio: 6/3) and (max-aspect-ratio: 7/3){
  .first_info_on_first{
    font-size: 8cqi;
    top: 20vh;
  }
  .second_info_on_first{
    font-size: 4cqi;
  }
}
@media (min-aspect-ratio: 5/3) and (max-aspect-ratio: 6/3){
  .first_info_on_first{
    font-size: 8cqi;
    top: 20vh;
    width: 70vw;
  }
  .second_info_on_first{
    font-size: 4cqi;
  } 
}
@media (min-aspect-ratio: 4/3) and (max-aspect-ratio: 5/3){
  .first_info_on_first{
    font-size: 8cqi;
    top: 20vh;
    width: 70vw;
  }
  .second_info_on_first{
    font-size: 4.3cqi;
    width: 60vw;
  } 
}
@media (min-aspect-ratio: 1001/1000) and (max-aspect-ratio: 4/3){
  .first_info_on_first{
    font-size: 8cqi;
    top: 20vh;
    width: 60vw;
  }
  .second_info_on_first{
    font-size: 4.8cqi;
    width: 50vw;
  }
}
@media (min-aspect-ratio: 2/3) and (max-aspect-ratio: 1000/1000){
  .info_on_first{
  display: flex;
  align-content: center;
  align-items: center;
  text-align: center;
}
.first_info_on_first{
  font-size: 8vw;
  height: min-content;
  width: calc(100% - 8vh);
  margin-left: 4vh;
  margin-right:4vh;
  margin-top: 10vh;
  align-content: center;

}
.second_info_on_first{
  font-size: 6vmin;
  font-weight: 300;
  height: min-content;
  margin-left: 4vh;
  margin-right:4vh;
  width: calc(100% - 8vh);
  margin-bottom: 38vh;
}

.imagen_pers_div{
  height: 30vw;
  position: absolute;
  display: grid;
  grid-template-rows: 1fr 1fr;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  width: 90%;
}

.imagen_pers1{
  display: none;
}
.imagen_pers2{
  display: none;
}
.imagen_pers1sol{
  display: inline;
  position: absolute;
  left: 4vw;
  width: 50%;
  bottom:20%;
}
.imagen_pers2sol{
  display: inline;
  position: absolute;
  height: 140%;
  right: 4vw;
  bottom: 0;
}
}
@media (min-aspect-ratio: 1/2) and (max-aspect-ratio: 2/3){
  .info_on_first{
  display: flex;
  align-content: center;
  align-items: center;
  text-align: center;
}
.first_info_on_first{
  font-size: 9vw;
  height: min-content;
  width: calc(100% - 8vh);
  margin-left: 4vh;
  margin-right:4vh;
  margin-top: 9vh;
  align-content: center;

}
.second_info_on_first{
  font-size: 7vmin;
  font-weight: 300;
  height: min-content;
  margin-left: 4vh;
  margin-right:4vh;
  width: calc(100% - 8vh);
  margin-bottom: 36vh;
}

 .imagen_pers_div{
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 90vh;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
}

.imagen_pers1{
  display: none;
}
.imagen_pers2{
  display: none;
}
.imagen_pers1sol{
  display: inline;
  position: absolute;
  left: 4vw;
  height: 17vh;
  bottom:15%;
}
.imagen_pers2sol{
  display: inline;
  position: absolute;
  height: 28vh;
  right: 4vw;
  bottom: 0;
}
}
@media screen and (max-aspect-ratio: 1/2){
   .info_on_first{
  display: flex;
  align-content: center;
  align-items: center;
  text-align: center;
}
.first_info_on_first{
  font-size: 10vw;
  height: min-content;
  width: calc(100% - 8vh);
  margin-left: 4vh;
  margin-right:4vh;
  margin-top: 6vh;
  align-content: center;

}
.second_info_on_first{
  font-size: 7.5vmin;
  font-weight: 300;
  height: min-content;
  margin-left: 4vh;
  margin-right:4vh;
  width: calc(100% - 8vh);
  margin-bottom: 31vh;
}
  .imagen_pers_div{
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 90vh;
  justify-content: end;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
}
.imagen_pers1{
  display: none;
}
.imagen_pers2{
  display: none;
}
.imagen_pers1sol{
   display: inline;
  position: relative;
  height: 16vh;
  bottom: 20%;
}
.imagen_pers2sol{
  display: inline;
  position: relative;
  height: 35%;
  right: 4vw;
  bottom: 0;
}
}



