
@media (min-width: 768px) {
    #form {
        position: relative;
        width: 500px;
        margin: 50px auto 50px auto;
      }
    
      section:nth-of-type(9) label{
        padding: 1%;
        background-color: #2a384c ;
        margin: 1%;
        width: 50%;
        color: #bb9b6c;
        border-radius: 10px;
        font-weight: bold;
      }
    
      section:nth-of-type(9) label:hover{
        padding: 1%;
        
        color: #2a384c ;
        margin: 1%;
        width: 50%;
        background-color: #bb9b6c;
        border-radius: 10px;
      }
      option,
      select,
      input {
        font-family: "Lato", sans-serif;
        font-size: 0.875em;
        width: 90% !important;
        height: 50px;
        padding: 0px 15px 0px 15px;
    
        background: transparent;
        outline: none;
        color: #726659;
    
        border: solid 1px #b3aca7;
    
        transition: all 0.3s ease-in-out;
        -webkit-transition: all 0.3s ease-in-out;
        -moz-transition: all 0.3s ease-in-out;
        -ms-transition: all 0.3s ease-in-out;
      }
      textarea {
        width: 90% !important;
    
        height: 110px;
        max-height: 110px;
        padding: 15px;
        background: transparent;
        outline: none;
        color: #a0b2c2;
        font-family: "Lato", sans-serif;
        font-size: 0.875em;
        border: solid 1px #b3aca7;
        transition: all 0.3s ease-in-out;
        -webkit-transition: all 0.3s ease-in-out;
        -moz-transition: all 0.3s ease-in-out;
        -ms-transition: all 0.3s ease-in-out;
    }
    
    
    .modal {
        display: none; /* Escondido por defecto */
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0,0,0,0.4);
    }
    .modal2{
        display: none; /* Escondido por defecto */
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0,0,0,0.4);
    }
    .modal-content {
        background-color: #fff;
        margin: 15% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 80%;
        max-width: 500px;
        text-align: center;
    }
    
    .close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
    }
    
    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }
    
    #submit {
        padding: 0;
        margin: -5px 0px 0px 0px;
        font-family: "Lato", sans-serif;
        font-size: 0.875em;
        color: #a0b2c2;
        outline: none;
        cursor: pointer;
        border: solid 1px #b3aca7;
        border-top: none;
    }
    
    h1,h2,h3{
    color: #ff5733 ;
}
    header {
        position: relative;
        border-bottom: 2px solid #4b7aa4;
        height: 800px;
        overflow: hidden;
    }
    
    #cabezal{
        background-color:#ff5733 ;
       color: white;
       
    }
    #cabezal h4{
       margin: 0 !important; 
       padding: 4px;
       
    }
    header div::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("Imagenes/farmaciaFoto.png");
        background-size: cover;
        background-position: center;
        filter: brightness(70%); /* Ajusta este valor para oscurecer la imagen */
        z-index: -1; /* Coloca la imagen detrás del contenido */
    }
    
    nav ul li a{
        color: white;/* Color brillante para los enlaces */
        font-weight: bold;
    }
    
    nav ul li a:hover {
        color: #ffcc33; /* Color diferente al pasar el cursor por encima */
    }
    
    header nav ul li{
        border-radius: 10px;
        border: 1px #ff5733 solid;
        background-color: #ff5733;
    }
    nav a:hover{
        color: white;
        background-color:#ff5733 ;
    }
    
    header nav ul li:hover {
        background-color:#ffcc33 ;
        color: white;
        border: 1px #ffcc33 solid;

      }
    
      header nav ul li:hover a {
        color: white;
        background-color:#ffcc33;
      }
    header .navbar, header .row {
        position: relative;
        z-index: 1; /* Asegura que el contenido esté sobre la imagen */
    }
    
    header figure img{
        width: 90%;
    }
    #estas{
        width: 20%;
        padding: 10px 2px 10px 2px;
        display: unset;
    }
    #estas:hover{
        width: 20%;
        padding: 5px 2px 15px 2px;
        display: unset;
    }
    nav:nth-of-type(1) a img {
        width: 12%;
        padding: 10px 2px 10px 2px;
        display: unset;
    }
    /*
    section:nth-of-type(1){
        background-image: url("Imagenes/local1.jpeg");
        background-size: contain;
        background-repeat: no-repeat ;
    }
    */
    section:nth-of-type(2) figure img{
        height: 50%;
        width: 50%;
    }
    
   
    
    
    #escala .img-fluid {
        margin: auto;
        width: 100%;
        height: auto;
        transition: transform 0.3s ease; /* Añade una transición suave para el efecto de zoom */
    }
    
    #escala .img-fluid:hover {
        transform: scale(1.4); /* Escala la imagen al 110% en hover */
    }
    #botonBajar {
        position: fixed;
        top: 90%;
        left: 93%;
        z-index: 1;
    }

    section:nth-of-type(1) figure img
    {
       height: 700px;
       background-size: cover;
       background-attachment:  fixed;
    }
    footer #estas{
        width: 15% !important;
    }
    section:nth-of-type(4) figure img {
       width: 70%;
    }   
    section:nth-of-type(4) {
    background-color: #4b7aa4;
    padding: 5%;
    border-top-left-radius: 50%;
    border-bottom-right-radius: 50%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }       
    section:nth-of-type(4) article:nth-of-type(1),section:nth-of-type(4) article:nth-of-type(3)
    {
        position: relative;

    }
     section:nth-of-type(4) h2 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0; /* Eliminar el margen por defecto de h2 */
    }
    
}

@media (max-width: 768px){
    #botonBajar {
        position: fixed;
        top: 90%;
        left: 80%;
        z-index: 1;
        width:10%;
    }
    footer #estas{
        width: 8% !important;
    }
    footer p
    {
        width: 90% !important;
        margin: auto;
    }
    h1,h2,h3{
        color: #4b7aa4 ;
    }
     section:nth-of-type(4) article:nth-of-type(1),section:nth-of-type(4) article:nth-of-type(2){
        background-color: #ff5733 ;
        padding: 5%;
    
    }   
}

nav a{
    display: contents;
    font-weight: bold;
    transition: background-color 0.1s, color 0.3s;
    color: #4b7aa4;
}
nav figure img{
    margin-top: 20%;
    margin-left: 10%;
}
 
section:nth-of-type(3) article:nth-of-type(2),section:nth-of-type(3) article:nth-of-type(4),section:nth-of-type(3) article:nth-of-type(5),section:nth-of-type(3) article:nth-of-type(7) {
    background-color: #4b7aa4;
    padding: 5%;
}
section:nth-of-type(3) article:nth-of-type(1),section:nth-of-type(3) article:nth-of-type(3),section:nth-of-type(3) article:nth-of-type(6),section:nth-of-type(3) article:nth-of-type(8) {
    padding: 5%;
}



footer{
    background-color: #ff5733;
    color: white;
}

section:nth-of-type(4) article iframe {
    border-radius: 10px;
    border: #ff5733 solid 3px;
}
section:nth-of-type(4) article h2 {
    color: white;
}

section:nth-of-type(5) video{
    border-radius: 10px;

}  

#form2 {
    position: relative;
    margin: 50px auto 50px auto;
  }
  @media (max-width: 576px) {
#form {
    position: relative;
    width: 500px;
    margin: 50px auto 50px auto;
  }

  section:nth-of-type(9) label{
    padding: 1%;
    background-color: #2a384c ;
    margin: 1%;
    width: 50%;
    color: #bb9b6c;
    border-radius: 10px;
    font-weight: bold;
  }

  section:nth-of-type(9) label:hover{
    padding: 1%;
    
    color: #2a384c ;
    margin: 1%;
    width: 50%;
    background-color: #bb9b6c;
    border-radius: 10px;
  }
  option,
  select,
  input {
    font-family: "Lato", sans-serif;
    font-size: 0.875em;
    width: 90% !important;
    height: 50px;
    padding: 0px 15px 0px 15px;

    background: transparent;
    outline: none;
    color: #726659;

    border: solid 1px #b3aca7;

    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
  }
  textarea {
    width: 90% !important;

    height: 110px;
    max-height: 110px;
    padding: 15px;
    background: transparent;
    outline: none;
    color: #a0b2c2;
    font-family: "Lato", sans-serif;
    font-size: 0.875em;
    border: solid 1px #b3aca7;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
}


.modal {
    display: none; /* Escondido por defecto */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#submit {
    padding: 0;
    margin: -5px 0px 0px 0px;
    font-family: "Lato", sans-serif;
    font-size: 0.875em;
    color: #a0b2c2;
    outline: none;
    cursor: pointer;
    border: solid 1px #b3aca7;
    border-top: none;
}


}
#openModalBtn {
    border-radius: 10px;
    border: 1px #ff5733 solid;
    color: white;
    font-weight: bold;
    background-color: #ff5733;
    
}
#openModalBtn:hover {
    background-color:#ffcc33 ;
    color: white;
    border: 1px #ffcc33 solid;
}
#openModalBtn2 {
    border-radius: 10px;
    border: 1px #ff5733 solid;
    color: white;
    font-weight: bold;
    background-color: #ff5733;
    
}
#openModalBtn2:hover {
    background-color:#ffcc33 ;
    color: white;
    border: 1px #ffcc33 solid;
}