.header-sanifarma {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  background: rgba(11, 16, 32, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: 'Segoe ';
  color: #32b7ec;
}

.header-sanifarma .brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.header-sanifarma .logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #000000, #32b7ec);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1020;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(255, 170, 0, 0.08);
  transition: transform 0.3s ease;
}

.header-sanifarma .logo:hover {
  transform: scale(1.1);
}

.header-sanifarma .menu {
  display: flex;
  gap: 14px;
}

.header-sanifarma .menu a {
  color: #96a6d3;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.header-sanifarma .menu a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.header-sanifarma .title {
  font-weight: 700;
}

.header-sanifarma .subtitle {
  font-size: 12px;
  color: #96a6d3;
}

@media(max-width: 768px) {
  .header-sanifarma {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .header-sanifarma .logo {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .header-sanifarma .menu a {
    font-size: 12px;
    padding: 6px 8px;
  }
}

/*todo lo de arriba es el header*/

/*paralaje*/
.parallax {
    background-image: url('/img/tacna.jpg'); 
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    height: 100vh; 
    width: 100%;
}


/* Header responsive */
    header{
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:18px 28px;
      border-bottom:1px solid rgba(255,255,255,0.03);
      backdrop-filter: blur(6px);
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(0, 60, 255, 0.8);
    }

.parallax-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color:#fdfeff;
    font-family: 'Segoe UI';
}

.parallax-text h1 {
    font-size: 60px; 
    text-shadow: 2px 2px 20px rgb(0, 0, 0), 
                 -2px -2px 20px rgb(0, 0, 0), 
                 2px -2px 30px rgb(0, 0, 0), 
                 -2px 2px 20px rgb(0, 0, 0);
                 
}

/*menu desplegable*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    
}


nav {
    width: 100%;
    position: fixed; 
    top: 0;
}

/*colorizacion de elementos del menu*/
nav a {
    color: rgb(255, 255, 255);
    text-decoration: none;

 
   
    text-shadow: 1px 1px 1px#000000;
}

nav li {
    color: rgb(255, 255, 255);
    text-decoration: none;
    background: linear-gradient(to bottom, black, #1f1f1f);
    display: block;
    padding: 42px;
    font-size: 18px; 
    text-shadow: 1px 1px 1px#000000;
}



nav li:hover {
    background: linear-gradient(to bottom, #4d4d4d, #333); 
}

nav ul {
    list-style: none;
    
}

.menu > li {
    float: left;
    width: 33.33%; 
    text-align: center;
    position: relative; 
}

.menu > li > ul {
    display: none;
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
}

.menu > li:hover > ul {
    display: block;
}

.menu > li > ul > li {
    width: 100%; 
}


/*mods*/
#mods{
    text-align: center;
    font-size: 6vh;
    width: 100%;
    font-family: 'Segoe UI';

    color:#f9fbfc;

    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5), 
                 -2px -2px 2px rgba(0, 0, 0, 0.5), 
                 2px -2px 3px rgba(0, 0, 0, 0.5), 
                 -2px 2px 2px rgba(0, 0, 0, 0.5);


    background-color: #0b1020;
    padding: 8px;

}

#mods2{
    text-align: center;
    font-size: 6vh;
    width: 100%;
    font-family: 'Segoe UI';

    color:#fafbfc;

    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5), 
                 -2px -2px 2px rgba(0, 0, 0, 0.5), 
                 2px -2px 3px rgba(0, 0, 0, 0.5), 
                 -2px 2px 2px rgba(0, 0, 0, 0.5);


    background-color: #0b1020;
    padding: 8px;
    
}


/*tema claro*/
/* Tema claro */
body {
    background: linear-gradient(165deg, #000000, #96c7f0);

}

/*imagenes*/
    

.imagenes-container {
    position: relative;
    width: 100%; /* Ajusta según sea necesario */
    height: 100vh; /* Ajusta la altura según tus imágenes */
    overflow: hidden; /* Esconde las imágenes que se salgan del contenedor */
    margin-top: 1vh;
    
}

.imagenes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Ajusta según sea necesario */
    height: auto; /* Mantiene la proporción */
    display: none; /* Oculta todas las imágenes por defecto */
}

.imagenes.active {
    display: block; /* Muestra solo la imagen activa */
}



/*descripcion*/


.container0{
    text-align: center;
}


#enunciado{
    font-size: 100vh;
}

#boton1{
    text-align: right;
}

#modSelection {
   text-align: center;
    appearance: none; /* Elimina el estilo predeterminado del navegador */
    width: 25%; /* Ancho completo */
    padding: 15px; /* Espaciado interno */
    font-size: 16px; /* Tamaño de fuente */
    font-family: 'Segoe UI';
    border: 2px solid #4A90E2; /* Color y grosor del borde */
    border-radius: 5px; /* Esquinas redondeadas */
    background-color: #fff; /* Color de fondo */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 20,0 10,10" fill="%234A90E2"/></svg>'); /* Flecha personalizada */
    background-repeat: no-repeat; /* No repetir la imagen de fondo */
    background-position: right 10px center; /* Posición de la flecha */
    background-size: 12px; /* Tamaño de la flecha */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Sombra */
    transition: border-color 0.3s; /* Transición suave para el borde */
}

#modSelection:focus {
    border-color: #007BFF; /* Color del borde al enfocar */
    outline: none; /* Elimina el contorno predeterminado */
}

input[type="submit"] {
    padding: 10px 20px; /* Espaciado interno */
    font-size: 25px; /* Tamaño de fuente */
    background-color: #4A90E2; /* Color de fondo del botón */
    color: #fff; /* Color del texto del botón */
    border: none; /* Sin borde */
    border-radius: 5px; /* Esquinas redondeadas */
    cursor: pointer; /* Cursor de mano al pasar el mouse */
    transition: background-color 0.3s; /* Transición suave para el color de fondo */
}

input[type="submit"]:hover {
    background-color: #007BFF; /* Color de fondo al pasar el mouse */
}

label {
    font-size:3.5vh; /* Tamaño de fuente para la etiqueta */
    margin-bottom: 10px; /* Espaciado inferior */
}



/*grid de imagenes*/

  .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas de igual ancho */
    gap: 2vh; /* Espacio entre las figuras */
    max-width: 100%;
    margin: auto;
    transform: scale(0.9);
    margin-left: -2vh;
    margin-top: -3vh;
}


.picture img {
    max-width: 100%;
    width: 50vw; 
    height: auto; 
    border-radius: 8px;
    transition: all 400ms ease-out; 
}


figcaption h3 {
    font-size: 1.2rem;
    margin: 0;
}

figcaption p {
    font-size: 1.6rem;
    color: #ffffff;
}


.picture {
    position: relative;
    overflow: hidden;
    text-align: center;
    max-width: 100%; /* Limita el ancho al 90% de su contenedor */
    width: 50vw; /* Usar vw para que sea proporcional al ancho de la ventana */
    height: auto; /* Mantiene la proporción */
    border-radius: 8px;
}

/* Efectos */
.picture .texto {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    transition: all 400ms ease-out;
    opacity: 0;
    visibility: hidden;
    text-align: center;
  
}

.picture:hover .texto {
    opacity: 1;
    visibility: visible;

}

.picture:hover img {
    transform: scale(1.2);
    filter: blur(8px);
    max-width: 100%;
    
}

.picture:hover .texto h3 {
    margin-top: 90px;
    margin-bottom: 15px;
    text-shadow: 3px 3px 3px #000000;
}


.picture .texto h3 {
    color: #fff;
    font-size: 4vh;
    margin-bottom: 160px;
    transition: all 400ms ease-out;
    margin-top: 50px;
    transform: scale(1.6); /* Tamaño del texto */
    max-width: 100%;
}

/*DISEÑO MOVIL*/
@media screen and (max-width: 600px) {
    img {
        max-width:100%; 
    }
    form {
        max-width:100%; 
    }
    body{
        max-width:100%; 
    }
    
    header{
        max-width:100%; 
    }
    
    footer{
        max-width:100%; 
    }

    .grid-container {
        margin-left: -0.9vh;
        margin-top: 2vh;
    }

    #modSelection {
        width: 90%; /* Ancho completo */
        text-align: center;
     
    }

    input[type="submit"] {
        margin-top: 3vh;
    }

    #mods{
        margin-top: -80vh;
        
    }
    

   
    
    

}

