* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    margin: 0;
}


header {
    background-color: rgb(255, 255, 255);
    position: fixed;
    margin: 0;
    width: 100%;
    z-index: 1000;
    top: 0;
}

header h1 {
    float: left;
    margin-top: 10px;
    margin-left: 26px;
    font-family: 'Courier Prime', monospace;
    margin-bottom: 1%;
    background-color: #FFF;

}

header h1 a {
    text-decoration: none;
}

h1 {
    color: black;
    text-align: left;
    font-weight: normal;
    font-family: 'Courier New', Courier, monospace;
    padding: 0.1em;

}

h1:hover {
    text-decoration: overline;
}
/* OCULTAR EL MENU */

nav.hidden {
    display: none;
  }
/* padding de las opciones del menú */
.ul_general li {
    padding-bottom: 18px;
}


nav {
    float: right;
    margin-top: 1%;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.3em;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    margin-right: 26px;
}

nav ul li {
    margin: 0 5px;
}

nav ul li a,
ul li a {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.70em;
    text-decoration: none;
    color: #333;
    margin-right: 20px;
}

nav ul li:last-child a {
    margin-right: 0;
}

nav ul li a:hover {
    text-decoration: overline;
}

/* Estilos para el submenú */
nav ul ul {
    display: none;
    position: absolute;
    font-size: 0.75em;
    background: #FFF;
}

nav ul li:hover>ul {
    display: flex;
}

nav ul ul li {
    width: auto;
    float: none;
    position: relative;
}

nav ul ul li a {
    color: #000;
    padding: 0px;
}

nav ul ul ul {
    position: absolute;
    left: 0;
    top: 100%;
}

.ensayos_fotografias {
    margin-left: -14%;
    background-color: #FFF;
}

#padre {

    background-color: #FFF;
    z-index: 11000;
}

#padre1 {
  
    margin-left: 10px;
    background-color: #FFF;
    z-index: 1000;

}
#padre2 {
    padding: 5%;
    background-color: #FFF;
    display: block;
    text-align: left;
    z-index: 1000;

}
#padre3 {
    padding: 5%;

    background-color: #FFF;
    display: block;
    text-align: left;
    z-index: 1000;

}#padre4 {
    padding: 5%;

    background-color: #FFF;
    display: block;
    text-align: left;
    z-index: 1000;

}

.menu_padre2 { position: relative; }

.talleres { display: none; 
    position: absolute; 
    left: 0; 
    list-style-type: none; 
    background-color: #FFF;
}

.menu_padre2:hover .talleres { display: block; }






.hijo {
    width: 100%;
    padding-bottom: 5%;
    padding-top: 1px;
    font-size: 1.2em;
    background-color: #ffffff;
    z-index: 10100;
}

nav ul ul li#padre ul {
    display: flex;
    justify-content: space-between;
    /* Distribuye los elementos horizontalmente */
    display: none;

}

nav ul ul li#padre ul li {
    width: 49%;
    text-align: center;
}

nav ul ul li#padre ul li a {
    display: block;
    padding: 0;
    width: 100%;
}

nav ul ul li#padre:hover>ul {
    display: flex;
}

nav ul ul li#padre ul {
    flex-wrap: wrap;
    /* Hace que los elementos se envuelvan en pantallas más pequeñas */
}

nav ul ul li#padre ul li {
    width: 100%;
    /* Cambia el ancho de los elementos a 100% para que ocupen todo el ancho en pantallas más pequeñas */
}

nav ul ul li#padre ul li a {
    width: auto;
}

a {
    user-select: none;
}

/* mail y nombre en footer de contacto */
h3 {
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    margin-top: 7px;
    margin-bottom: 7px;
    margin-right: 5px;
    margin-left: 5px;
}

main {
    margin: 0;
    padding-bottom: 40px; /* altura del footer */

}

a {
    color: #333;
}

body.home {
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

/*IMAGEN DE INICIO*/
#bg {
    text-align: center;
    position: absolute;
    height: 100vh;
    width: 100vw;
    left: 0;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
    position: fixed;
    object-fit: cover;
    object-position: center;
}

.bgwidth {
    width: 100vw
}

/*GALERIA*/
 .columna img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    object-position: center;
    border-radius: 0px;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
}

.galeria {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
    margin-right: 20px;
    justify-content: center;
    margin-top: 7%;
}

.columna {
    display: flex;
    flex-wrap: wrap;
    width: 100vww;
}

.columna img {
    vertical-align: middle;
    width: 25%;
    transition: all .3s ease;
    padding: 7px;
    filter: opacity(100%);
}

.columna img:hover {
    cursor: pointer;
    filter: brightness(80%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.103);
    transform: scale(1.03);
}

/*SLIDESHOW*/
.overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(255, 253, 241);
    z-index: 120000;
    visibility: hidden;
}

.slideshow {
    margin: 0;
    width: 100%;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
}


.image_container {
    top: 0;
    flex: none;
    height: 90vh;
    align-items: flex-start;
    width: 100%;
}



#img_slideshow {
    top: 0;
    width: 100%;
    object-fit: contain;
    overflow: auto;
    pointer-events: auto;
    justify-content: center;
    position: absolute;
    height: 90vh;
}

#img_slideshow:hover {
    cursor: grab;
}

.textoslideflex {
    display: flex;
    justify-content: center;
}

.textoslide {
    user-select: none;
    text-align: center;
    font-size: large;
    position: fixed;
    background-color: #ffffff9f;
    padding: 5px;
    bottom: 0px;
    max-width: 50%;
}

.options-container {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: #ffffff;
    width: 100%;
    z-index: 1200000;
    height: 10vh;
}

.navigation-buttons,
.zoom-buttons {
    background-color: #FFF;

}

#zoom_in {
    text-align: center;
    font-size: 30px;
    width: 30px;
    height: 30px;
    right: 20%;
    background-color: #ffffff11;
    border: 3px solid #000000;
    border-radius: 20px;
    position: fixed;
    align-items: center;
    justify-content: center;
    display: flex;
    user-select: none;
    bottom: 13px;
}

#zoom_in:hover {
    transform: scale(1.1);
    cursor: pointer;
    position: fixed;
}

#zoom_out {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    width: 30px;
    height: 30px;
    left: 20%;
    background-color: #ffffff11;
    border: 3px solid #000000;
    position: fixed;
    align-items: center;
    justify-content: center;
    display: flex;
    user-select: none;
    border-radius: 20px;
    bottom: 13px;
}

#zoom_out:hover {
    transform: scale(1.1);
    cursor: pointer;
    position: fixed;
}

.btn_cerrar {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 55px;
    background-color: rgba(255, 255, 255, 0.671);
    color: rgb(0, 0, 0);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: all .2s ease;
    user-select: none;
    z-index: 1000;

}

.btn_cerrar:hover {
    transform: scale(1.2);
    cursor: pointer;
    position: fixed;
}

.botones {
    width: 30px;
    height: 30px;
    border-radius: 0%;
    color: #ffffff00;
    display: flex;
    justify-content: center;
    font-size: 70px;
    position: absolute;
    cursor: pointer;
    background-color: #00000000;
    user-select: none;
    z-index: 1000;
}

.botones:hover>i {
    transform: scale(1.05);
    transition: all .2s ease;
}

.atras {
    left: 10%;
    width: 0;
    height: 0;
    border-top: 20px solid rgba(255, 255, 255, 0);
    border-bottom: 20px solid rgba(255, 255, 255, 0);
    border-right: 20px solid black;
    border-left: 20px solid rgba(255, 255, 255, 0);
    cursor: pointer;
    position: fixed;
    bottom: 7px;
}


.adelante {
right: 10%;    width: 0;
    height: 0;
    border-top: 20px solid rgba(255, 255, 255, 0);
    border-bottom: 20px solid rgba(255, 255, 255, 0);
    border-right: 20px solid rgba(255, 255, 255, 0);
    border-left: 20px solid black;
    cursor: pointer;
    position: fixed;
    bottom: 7px;
}

.mdi {
    pointer-events: none;
}

/*FOOTER*/

footer {
    background-color: #000;
    height: auto;
    position: fixed;
    bottom: 0;
    width: 100%;
}

#footer_colum1 {
    float: left;

}

#footer_colum1 a {
    margin-left: 20px;
    font-size: 20px;
}

#footer_colum2 {
    font-size: 20px;
    float: right;
    margin-right: 20px;
}

.nombre a {
    color: #FFF;
    text-decoration: none;
    user-select: none;
}

.nombre a:hover {
    text-decoration: solid;
}

.mail {
    color: #FFF;
    text-decoration: none;
}


/*CLINICA*/

.img_clinica {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 90%;    
    padding: 100px;
overflow: hidden;
} 
 


/*LECTURAS*/

.img_lecturas {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 90%;    padding: 100px;
} 


/*ENSAYO*/

.img_ensayo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100vh;
    padding: 100px;
} 

.img_ensayo img {
    height: 90%;
}


/*CONTACTO*/
.contenedorcontacto {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 10%;
    height: 100%;
}

.contacto {
    width: 60%;
    margin: auto;
    text-align: center;
}

form {
    text-align: left;
    padding: 7px;
    border: 1px solid #ccc;
    border-radius: 5px;
    justify-content: center;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    padding: 5px 5px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

input[type="submit"] {
    background-color: #000000;
    color: white;
    padding: 10px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #242424;
}


/*MEDIA RESPONSIVE*/

@media only screen and (max-width: 301px) {

    nav {
        margin-top: 36% !important;
    }
  
}

@media only screen and (max-width: 370px) {
    .btn_cerrar {
        top: 10px;
        right: 10px;
        font-size: 40px;
        width: 20px;
        height: 20px;
    }

    .contenedorcontacto {
        padding-top: 31% !important;
    }

    .ensayos_fotografias {
        margin-left: -25% !important;
    }

    .textoslide {
        max-width: 70%;
    }

}

@media only screen and (max-width: 415px) {
    .ensayos_fotografias {
        margin-left: -15%;
    }

    .contenedorcontactodos {
        padding-top: 5%;
    }

}

@media only screen and (max-width: 500px) {


    header h1 {
        margin-left: 0px;
    }
  

}

@media screen and (max-width: 590px) {
    #columnalcien {
        width: 100% !important;
    }
}


@media screen and (max-width: 630px) {

    #bg {
        top: 10%;
    }

    .contenedorcontacto {
        padding-top: 20%;
    }
 
             
                
            /*LECTURAS*/
            
  
}


@media screen and (max-width: 704px) {
    .galeria {
        margin-top: 200px !important;
    }
    .img_clinica img{
        width: 50vh;            
                    } 
    .img_lecturas img{
           width: 50vh;            
                      } 
    .img_ensayo img{
        width: 50vh; height: auto;

                      } 
}

@media screen and (max-width: 850px) {
    .botones {
        font-size: 45px;
    }

    .atras {
        left: 5px;
    }

    .adelante {
        right: 5px;
    }

    #bg {
        top: 15%;
    }

    .contenedorcontacto {
        margin-top: 30% !important;
    }

    header nav {
        text-align: center;
        justify-content: center;
        margin-top: 70px;
    }

    #columnalcien {
        width: 50%;
    }

    /*CLINICA*/
    .img_clinica {
margin-top: 120px;
    
    } 
     
        
    /*LECTURAS*/
    
    .img_lecturas {
        margin-top: 140px;
    } 
    
    .img_ensayo{
        margin-top: 40px;
    } 
    
    


    
}

@media screen and (max-width: 1200px) {

    #img_slideshow {
        display: block;
        height: 90%;
    }

    .botones {
        font-size: 45px;
    }

    .atras {
        left: 5px;
    }

    .adelante {
        right: 5px;
    }

    #bg {
        top: 15%;
    }

    header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    header h1 {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        font-size: 1.8em;
        text-align: center;
    }

    nav {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.85em;
    }

    nav .ul_general {
        flex-wrap: wrap;
        justify-content: center;
    }

    #padre {
        padding-bottom: 5%;
    }

    #hijo {
        width: 100%;
        padding-bottom: 5%;
        padding-top: 10%;
        font-size: 1.2em;
    }

    nav {
        margin-top: 10%;
    }

    .contenedorcontacto {
        margin-top: 20%;
    }

    .galeria {
        margin-top: 150px;
    }

    .columna {

        width: 100%;
    }

    .columna img {
        width: 33%;
    }
}