.second-nav {
background-color: var(--azul);
z-index: 3;
position: relative;
}

.second-nav a {
    display: block;
    margin: 0 auto;
    text-align: center;
    border-bottom: 1px solid white;
    width: 70%;
    padding: 20px 0px;
    font-weight: 400;
    color: white;
}   

.second-nav a:last-of-type {
border: none;
}   

.content-wrap {
    max-width: 90%;
    margin: 0 auto;
}

.line {
    margin-top: 40px;
}

.preguntas .fh1 {
    color: var(--azul2);
    text-align: center;
}

.preguntas h2 {
    color: var(--azul2);
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    margin-top: 70px;
}

.dospre p {
    font: var(--h3);
    color: var(--azul);
    text-align: center;
    max-width: 85%;
    margin: 20px auto 70px;
}


/* PARTE FOTO */

.especialistas {
    color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 50,0 0,50 0,0' fill='%23F36E42'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    background-color: var(--azul);
    padding-bottom: 50px;
}
.especialistas .fh1, .especialistas p {
  margin-left: 40px;
  max-width: 60%;
  margin-top: 0;
}

.especialistas .comillas {
margin: 20px 20px 40px 40px;
}

.especialistas p:last-of-type {
margin: 30px 0 20px 40px;
font: var(--h3);
}


.especialistas .antetitulo {
  padding-top: 10px;
  color: white;
  text-align: left;
  margin-left: 40px;
  margin-top: 10px;
}

.especialistas .imagen {
  margin: 40px;
  padding: 30px 0 0;
}

.especialistas .boton {
  display: block;
  margin: 40px;
}

.especialistas img {
  max-width: 100%;
  height: auto;
}

/* SERVICIOS */

.servicios {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='100,0 100,25 75,0' fill='%23303F4B'/%3E%3C/svg%3E");
    padding: 20px 0;
}

.servicios .antetitulo {
    margin-bottom: 50px;
}

.servicios .fh1 {
    color: var(--azul2);
    margin: 20px 30px 50px;
  text-align: center;
}


.servicios .numero {
  font: var(--h1);
  font-size: 64px;
  color: var(--azul2);
  margin: 0 20px;
}

.razon {
  display: flex;
  flex-direction: row;
  margin: 20px;
  border-bottom: 2px solid var(--gris2);
  justify-content: center;
}

.sinbottom {
  border-bottom: none;
}


.elegirnos p:first-of-type {
  font: var(--h3);
  color: var(--naranjo);
  margin: 0;
}

.elegirnos p:last-of-type {
  font: var(--small);
  color: var(--azul);
  max-width: 175px;
  margin: 10px 0 30px;
}


/* FAQ */

.faq {
    padding: 50px 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,100 50,100 0,50' fill='%23F36E42'/%3E%3C/svg%3E");
}

.faq .fh1 {
    color: var(--azul2);
    margin: 20px 30px 50px;
    text-align: center;
}


.faq details p {
   padding-bottom: 10px;
   font: var(--small);
   color: var(--azul);
   max-width: 90%;
   margin:0 20px;
  }

summary{
  font: var(--h3);
font-family: 'Space Grotesk', serif;
  letter-spacing: 0.04em;
  cursor:pointer;
  padding:15px 15px 10px;
  margin: 10px 0;
  color:var(--azul2);
  text-align:left;
  display:flex;
  justify-content:space-between;
  transition: margin 150ms ease-out;
  background-color: white;
}

details {
    background-color: white;
}

summary:after{
  font: var(--h3);
  content: "⮟";
  display: flex;
  align-items: center;
  margin-right: 20px;
  transition: rotate 200ms ease-out;
  color:transparent;
  text-shadow:0 0 0 var(--azul2);
}
details[open] summary::after{
  content:"⮝";
  color:transparent;
  text-shadow:0 0 0 var(--azul2);
}

.faq details .mira-articulo {
  color: var(--naranjo);
  padding:10px 5px;
  margin-left: 20px;
  font: var(--small);
}


/* MEDIA QUERIES FOR TABLET */

@media (min-width: 768px) { 


.preguntas h2 {
    font-size: 28px;
}


.elegirnos p:last-of-type {
  max-width: 400px;
}


}



/* MEDIA QUERIES FOR SMALL DESKTOP */

@media (min-width: 1024px) { 

/* HEADER */

header .hero .titulo {
    max-width: 1000px;
}

header picture img {
    height: 85vh;
}    

header .hero {
    bottom: 120px;
}

.hero-container {
height: 100%;
position: inherit;
}

.second-nav {
text-align: center;
 align-content: center;
 height: 15vh;
}


.second-nav a {
    display: inline;
    margin: 0 auto;
    text-align: center;
    border-bottom: none;
    border-right: 1px solid white;
    width: 100%;
    padding: 20px 40px;
    font-weight: 400;
    text-align: center;
}   

.content-wrap {
    max-width: 80%;
}

/* SECCION DOS PREGUNTAS */

.preguntas .content-wrap {
    max-width: 80%;
}

.dospre {
  display: flex; 
  align-items: center; 
  gap: 40px;
}


.dospre div:nth-child(2) {
  position: relative; 
  padding-left: 20px; 
}

.dospre div:nth-child(2)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%; 
  transform: translateY(-50%); 
  height: 60%;
  width: 2px; 
  background-color: var(--gris2); 
}

/* SECCION CON FOTO */

.especialistas {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='25,0 100,0 100,100 40,100' fill='%23303F4B'/%3E%3Cpolygon points='100,10 80,100 85,100 100,30' fill='white'/%3E%3Cpolygon points='0,0 25,0 40,100 0,100' fill='%23F36E42'/%3E%3C/svg%3E");
  width: 100%;
  height: auto;
  padding: 50px 0;
}


.especialistas .nosotros {
  padding: 20px;
}

.especialistas .imagen {
  flex-shrink: 0;
  flex-basis: 40%; 
  padding: 20px;
  max-width: 35%;
  margin: 40px 0 40px 80px;
}


.especialistas img {
  max-width: 100%; 
  height: auto;
  display: block;
}


/* SERVICIOS */


.servicios {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='100,0 100,90 80,0' fill='%23303F4B'/%3E%3C/svg%3E");
}


.servicios .porque {
    flex-direction: row;
    justify-content: center;
    display: flex;
}

.servicios .mar100 {
    margin-right: 80px;
}

.elegirnos p:first-of-type {
  font-size: 28px;
}

.elegirnos p:last-of-type {
  max-width: 300px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.razon:last-of-type {
    border: none;
}

.servicios .numero {
    margin-right: 30px;
}

.faq {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 20,0 35,100 0,100' fill='%23F36E42'/%3E%3C/svg%3E");
    padding: 150px 50px;
}

.faq .flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 80px;
}

.faq .flex p {
    font: var(--p);
}

.faq .flex .fadeup {
    flex:1;
}

}


/* MEDIA QUERIES FOR BIG DESKTOP */


/* MEDIA QUERIES FOR TABLET */

@media (min-width: 1920px) { 


.preguntas h2 {
    font-size: 32px;
}



}
