@charset "utf-8";
/* CSS Document */
#contenedorsuperior, #contenedorinferior {
    margin-left: 11.145vw;
    margin-right: 11.145vw;
    display: flex;
    margin-top: 4em;
}
#comotrabajamos {
    width: 31.6666vw;
    padding-right: 6.25vw;
    flex-shrink: 0;
}
#comotrabajamos h2 {
    margin-top: 4.45em;
}
#comotrabajamos h2, #personasadultas h2, #adolescentes h2 {    
    color: var(--amarillo);    
    font-weight: 500;
    font-size: 1.5em;
}
#comotrabajamos > p:nth-of-type(2) {
    text-align: right;
    font-size: 2em;
    margin-bottom: 0px;
    font-weight: 500;
}
#comotrabajamos > p:nth-of-type(3) {
    margin-top: .25em;
    text-align: right;
}
#adolescentes h2 {
    text-align: right;
}


#ventanasecciones {
    flex-grow: 1;
    padding-left: 2em
}

.seccion {    

}
#tituloespecializaciones {
    display: none;
}
#ventanasecciones h2 {
    font-size: 1.5em;
    color: var(--morado); 
    margin: 0px;
    font-weight: 500;
    cursor: pointer;
    transition: color .3s linear 0s;
    position: relative;
}
#ventanasecciones .flechaespecialidad{
    display: none;
}
#ventanasecciones h2 img {
    position: absolute;
    right: 101%;
    top: -.5em;
    height: auto;
    width: 2em;
    transition: opacity .3s linear 0s;
}
#secciones .contenedoranimacion {
    height: auto;
}

#personasadultas, #adolescentes, #contenedorinferior {
    display: flex;
    align-items: flex-start;
    margin-top: 6em;
    opacity: 0;
    transform-origin: left center;
    transform: scale(0,1);
    transition: transform .5s linear 0s,opacity .5s linear 0s;;
}
#personasadultas > img, #adolescentes >img {
    width: 22.3948vw;
    height: auto;
}
#adolescentes {
    transform-origin: right center;
}
#personasadultas > div {
    padding-left: 1em;
    flex-grow: 1;
}
#adolescentes > div {
    flex-grow: 1;
    padding-right: 1em;
}


#contenedorinferior > section {
    width: 50%;
    flex-shrink: 0;
}
#contenedorinferior > section> div {
    display: flex;
}
#contenedorinferior > section:nth-of-type(1) {
    padding-top: 5em;
    padding-right: .5em;
}
#contenedorinferior > section:nth-of-type(2) {
    padding-left: .5em;
}
#contenedorinferior h2 {
    margin-top: .5em;
    font-size: 1.25em;
    font-weight: 500;
    position: relative;
}
#contenedorinferior p {
    position: relative;
}
#contenedorinferior > section:nth-of-type(1) h2 {
    color: var(--verde);
}
#contenedorinferior > section:nth-of-type(1)  p > img {
    position: absolute;
    right: 0%;
    width: 110%;
    height: auto;
    bottom: 95%;
}
#contenedorinferior > section:nth-of-type(2)  h2 > img {
    position: absolute;
    left: 0%;
    width: 100%;
    height: auto;
    top:50%;
    margin-top: 1em;
    transform: rotateZ(-30deg);
}

#contenedorinferior > section > div > div> img {
    width: 100%;    
    diplay: block;
    height: auto;
}
#contenedorinferior > section:nth-of-type(1) >div  div:nth-of-type(1) {
    padding-top:3em;
}
#contenedorinferior .ancho {
    width: 22.3948vw;
    flex-shrink: 0;
    padding-left: 1em;
}
#contenedorinferior .estrecho {
    flex-grow: 1;
}
#contenedorinferior p:first-of-type {
    margin-top: 0px;
}
#texto1, #texto2 {
    text-align: center;
    font-size: 1.25em;
    opacity:0;
    transform: scale(0,0);
    transition: transform .5s linear 0s,opacity .5s linear 0s;;
}
#texto2 {
    font-size: 1em;
}
#texto1 >p:nth-of-type(1) {
    margin-top: 5em;
    margin-bottom: 0px;
}
#texto1 >p:nth-of-type(2) {
    margin-top: .25em;
    margin-bottom: 5em;
}
#texto2 p {
    margin-top: 5em;
}
@media (max-width: 800px) {
    #contenedorsuperior, #contenedorinferior {
        margin-left: var(--margenmovil);
        margin-right: var(--margenmovil);
        display: flex;
        flex-direction: column;
    }
    #comotrabajamos {
        width: 100%;
        padding-right: 0px;
    }
    #comotrabajamos h2 {
        margin-top: 0em;
    }

    #adolescentes h2 {
        text-align: left;
    }
    #personasadultas > img, #adolescentes >img, #contenedorinferior img {
        display: none;
    }
    #adolescentes > div, #personasadultas > div, #cuerpo #contenedorinferior section {
        flex-grow: 0;
        width: 100%;
        padding-left: var(--rellenomovil);
        padding-right: var(--rellenomovil);
        background-size: 65% auto;
        background-repeat: no-repeat;
        background-position: left top;
    }
    #cuerpo #contenedorinferior section > div > div{
        width: 100%;
    }
    #adolescentes > div {
        background-image:url("../imagenes/servicios/adolescentes.jpg");  
        background-position: right top;
    }
    #personasadultas > div {
        background-image:url("../imagenes/servicios/personas-adultas.jpg");        
    }
    #adolescentes > div > div, #personasadultas > div > div,#contenedorinferior section > div {
        padding: 1em;
        background-color: rgba(255,255,255,.2);
        border-radius: 1em;
        margin-top: 4em;
    }

    #contenedorinferior {
        margin-top: 0px;
    }
    #cuerpo #contenedorinferior section {
        width: 100%;
        margin-top: 4em;
    }
    #cuerpo #contenedorinferior section > div {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        width: 100%;       
        
    }
    #contenedorinferior .ancho {
        padding-left: 0px;
    }
    #contenedorinferior > section:nth-of-type(1) >div div:nth-of-type(1) {
        padding-top: 0em;
    }
    #cuerpo #contenedorinferior section:nth-of-type(1) > div  {
        display: flex;
        flex-direction: column-reverse;
    }
    #contenedorinferior section:nth-of-type(1) {
        background-image:url("../imagenes/servicios/terapia-individual.jpg");
    }
    #cuerpo #contenedorinferior section:nth-of-type(2){
        background-image:url("../imagenes/servicios/terapia-de-pareja.jpg");
        background-position: right top;
    }
   #contenedorinferior h2 {
       margin-top: .83em;
       font-size: 1.5em;
    }

}
@media (max-width: 800px) {
    #adolescentes > div > div, #personasadultas > div > div,#contenedorinferior section > div {
        margin-top: 6em;
    }
}
@media (max-width: 700px) {
    #adolescentes > div > div, #personasadultas > div > div,#contenedorinferior section > div {
        margin-top: 4em;
    }
}
@media (max-width: 500px) {

    #ventanasecciones { 
        padding-left: 0px;
        flex-grow: 0;
        width: 100%;
    }
    #ventanasecciones section {
        padding-left: var(--rellenomovil);
        padding-right: var(--rellenomovil);
    }
    /*#ventanasecciones .flechapc {
        display: none;
    }*/
    #ventanasecciones section h2 {
        margin-top: 1em;
    }
    #comotrabajamos > p:nth-of-type(2) {
        font-size: 1.75em;
    }    
   /* #ventanasecciones section:nth-of-type(2) h2 {
        color: var(--amarillo);
        text-align: right;
    }
    #ventanasecciones section:nth-of-type(3) h2 {
        color: var(--verde);
    }
    #ventanasecciones section:nth-of-type(4) h2 {
        color: var(--morado);
        text-align: right;
    }
    #tituloespecializaciones {
        display: block;
        text-align: right;
        font-size: 1.75em;
        margin-top: .85em;
        margin-bottom: .85em;
        padding-bottom: .25em;
    }
    br.ocultar {
        display: inline-block;
    }
    #ventanasecciones .flechaespecialidad{
        display: block;
        position: absolute;
        top: 0px;
        left: 0px;
        width: 10em;
        height: auto;
    }
    #ventanasecciones section:nth-of-type(1) .flechaespecialidad {
        left: 3em;
        bottom: -.2em;
        width: 9em;
        top: inherit;
    }
    #ventanasecciones #flechaespe2 {
        left: inherit;
        left: -3em;
        width: 4.7em;
        top: .75em;
    }
    #ventanasecciones #flechaespe3 {
        left: 98%;
        width: 2.5em;
        top: 2.5em;
    }
    #ventanasecciones #flechaespe4 {
        left: -2em;
        width: 4.5em;
        top: 2.2em;
    }

    #ventanasecciones section h2 {
        font-size: 1.25em;
    }*/
}