body {
   /* background-image: url(1.png);
    background-size: 100vw 100vh;
    background-attachment: fixed;
   
    Esto es por si se quiere poner una imagen para el fondo
    */
    font-family: sans-serif;
    background-color: #000000;
    margin: 0;
}

html {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

h2 {
    color: #fff;
    font-size: 30px;
    margin: 0;
    margin-bottom: 20px;
    text-align: center;

}

p {
    color: #fff;
    margin: 0;
    text-align: center;

    
}

a
{
	color: currentColor;
	text-decoration: none; 
    cursor: pointer;
}

.marcapag {
    width: 80%;
    margin: 0 auto;
    background-color: darkgreen;
    align-content: center;

}
   
.logo {
    width: 22%;
    margin: auto;
} 

.titulos {
    width: 25%;
    box-sizing: border-box;
    margin-bottom: 20px;

}

.toppag {
    width: 100%;
    margin: 0 auto;
     background-color: #e2e2e2;
}

.toppagal {
    width: 100%;
    margin: 0 auto;
    background-color: #404040;
    
}

.midpag {
    width: 80%;
    margin: 0 auto;
    background-color: #fff;
    align-content: center;
}

.contenido{
    width: 56%;
    margin: 0 auto;
    padding: 0px 20px;  
}

.baseimagen {
    padding-bottom: 30px;
    width: 56%;
    margin: auto auto 0;

}

.formulario {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: #404040;
 
}

.pie {
    width: 100%;
    margin: 0 auto;
    align-content: center;
    box-sizing: border-box;
    background-color: #101010;
    color: #404040;
    font-size: 0.1em;
    padding-left: 23%;
    padding-right: 25%;
    padding-top: 1%;
    padding-bottom: 1%;
  
}

.imagen {
    width: 100%;
    align-content: center;
}


/*Configuración del boton */
#boton {
    background: #437644;
    color: #fff;
    margin-top: 1%;
    padding: 10px;
    width: 20%;

}

#boton:hover {
    cursor: pointer;
}

/*Configuración del boton Galería */
.botong {
    background: #437644;
    color: #fff;
    margin-left: 50%;
    padding: 10px;
    width: 20%;
    text-align: center;

}

.botong:hover {
    cursor: pointer;
}


/*Estilos de la galeria*/

.galeria {
	width: 100%;
	margin: auto;
	list-style: none;
	padding: 10px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
}

.galeria li {
	margin: 25px;
}

/*tamaño de la MIniatura */
.galeria img {
	width: auto;
	height: 100px;
}

/*Estilos del modal*/

.modal {
	display: none;
}

.modal:target {
	
	display: block;
	position: fixed;
	background: rgba(0,0,0,0.8);
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/*.modal h3 {
	color: #fff;
	font-size: 30px;
	text-align: center;
	margin: 15px 0;
}*/

.imagen {
	width: 100%;
	height: 50%;   
	display: flex;
	justify-content: center;
	align-items: top;
}

.imagen a {
	color: #fff;
	font-size: 20px;
	text-decoration: none;
	margin: 0 10px;
   
}

.imagen a:nth-child(2) {
	margin: 0;
	height: 100%;
	flex-shrink: 2;
}

.imagen img {
	width: *;/*500px;*/
	height: 100%;
	max-width: 100%;
    margin-top: 10px;
	border: 3px solid #fff;
	box-sizing: border-box;
}

.cerrar {
	display: block;
	background: #fff;
	width: 15px;
	height: 15px;
	margin: 5px auto;
    margin-top: 20px;
	text-align: center;
	text-decoration: none;
	font-size: 15px;
	color: #000;
	padding: 5px;
	border-radius: 50%;
	line-height: 15px;
}


/* configuración de la galería */
.contenido ul
{
   margin: 0;
   padding: 0;
}

.contenido li
{
    display: inline-block;
    margin: 0.4em; /* 10 */
}

.imageng
{
    width: 100%; /* 140 */
    height: 100%; /* 140 */
    border-color: #eee;
    border: 0.4em solid rgba( 255, 255, 255, .5 ); /* 10 */

    -webkit-box-shadow: 0 0 0.313em rgba( 0, 0, 0, .05 ); /* 5 */
    box-shadow: 0 0 0.313em rgba( 0, 0, 0, .05 ); /* 5 */

    -webkit-transition: -webkit-box-shadow .3s ease, border-color .3s ease;
    transition: box-shadow .3s ease, border-color .3s ease;
}



/*Configuración del formulario*/


form {
    width: 56%;
    margin: auto;
    padding: 10px 20px;
    box-sizing: border-box;   

}

input, textarea, label {
    width: 100%;
    margin-bottom: 20px;
    padding: 7px;
    box-sizing: border-box;
    font-size: 0.5em;
    border: none;

}

label {
    color: #fff;
    width: 100%;
    margin-bottom: 20px;
    padding: 7px;
    box-sizing: border-box;
    font-size: 0.8em;
    border: none;

}

textarea {
    min-height: 100px;
    max-height: 200px;
    max-width: 100%;

}





/*Codigo para responsive*/

@media (max-width:500px){
   form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
    
     .botong {
    width: 30%;
    font-size: 0.5em
}
}

/*Mobile*/

/* ----------- iPhone 4 and 4S ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
      input, textarea {
     font-size: 1.5em;
}
      
 .botong {
    width: 30%;
    font-size: 0.5em;
}

}
      
/* Portrait */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: portrait) {
      form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* Landscape */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}


/* ----------- iPhone 5 and 5S ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
  and (-webkit-min-device-pixel-ratio: 2) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* Portrait */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: portrait) {
      form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* Landscape */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) {
      form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* ----------- iPhone 6 ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2) { 
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* Portrait */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: portrait) { 
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* Landscape */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) { 
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* ----------- iPhone 6+ ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 414px) 
  and (max-device-width: 736px) 
  and (-webkit-min-device-pixel-ratio: 3) { 
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* Portrait */
@media only screen 
  and (min-device-width: 414px) 
  and (max-device-width: 736px) 
  and (-webkit-min-device-pixel-ratio: 3)
  and (orientation: portrait) { 
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* Landscape */
@media only screen 
  and (min-device-width: 414px) 
  and (max-device-width: 736px) 
  and (-webkit-min-device-pixel-ratio: 3)
  and (orientation: landscape) { 
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}









/* ----------- Galaxy S3 ----------- */

/* Portrait and Landscape */
@media screen 
  and (device-width: 320px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 2) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
     }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* Portrait */
@media screen 
  and (device-width: 320px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 2) 
  and (orientation: portrait) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* Landscape */
@media screen 
  and (device-width: 320px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 2) 
  and (orientation: landscape) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* ----------- Galaxy S4 ----------- */

/* Portrait and Landscape */
@media screen 
  and (device-width: 320px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* Portrait */
@media screen 
  and (device-width: 320px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) 
  and (orientation: portrait) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* Landscape */
@media screen 
  and (device-width: 320px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) 
  and (orientation: landscape) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* ----------- Galaxy S5 ----------- */

/* Portrait and Landscape */
@media screen 
  and (device-width: 360px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* Portrait */
@media screen 
  and (device-width: 360px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) 
  and (orientation: portrait) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* Landscape */
@media screen 
  and (device-width: 360px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) 
  and (orientation: landscape) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}


/* ----------- Galaxy S6 ----------- */

/* Portrait and Landscape */
@media screen 
  and (device-width: 360px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* Portrait */
@media screen 
  and (device-width: 360px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) 
  and (orientation: portrait) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}

/* Landscape */
@media screen 
  and (device-width: 360px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) 
  and (orientation: landscape) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 30%;
    font-size: 0.5em;
}
}







/* ----------- iPad mini ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (-webkit-min-device-pixel-ratio: 1) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 20%;
    font-size: 1em;
}
}

/* Portrait */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: portrait) 
  and (-webkit-min-device-pixel-ratio: 1) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 20%;
    font-size: 1em;
}
}

/* Landscape */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: landscape) 
  and (-webkit-min-device-pixel-ratio: 1) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1.5em;
}
 .botong {
    width: 20%;
    font-size: 1em;
}
}

/* ----------- iPad 1 and 2 ----------- */
/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (-webkit-min-device-pixel-ratio: 1) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1em;
}
 .botong {
    width: 20%;
    font-size: 1em;
}
}

/* Portrait */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: portrait) 
  and (-webkit-min-device-pixel-ratio: 1) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1em;
}
 .botong {
    width: 20%;
    font-size: 1em;
}
}

/* Landscape */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: landscape) 
  and (-webkit-min-device-pixel-ratio: 1) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1em;
}
 .botong {
    width: 20%;
    font-size: 1em;
}
}

/* ----------- iPad 3 and 4 ----------- */
/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (-webkit-min-device-pixel-ratio: 2) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1em;
}
 .botong {
    width: 20%;
    font-size: 1em;
}
}

/* Portrait */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: portrait) 
  and (-webkit-min-device-pixel-ratio: 2) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1em;
}
 .botong {
    width: 20%;
    font-size: 1em;
}
}

/* Landscape */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: landscape) 
  and (-webkit-min-device-pixel-ratio: 2) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1em;
}
 .botong {
    width: 20%;
    font-size: 1em;
}
}









/* ----------- Galaxy Tab 10.1 ----------- */

/* Portrait and Landscape */
@media 
  (min-device-width: 800px) 
  and (max-device-width: 1280px) {
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1em;
}
 .botong {
    width: 20%;
    font-size: 1em;
}
}

/* Portrait */
@media 
  (max-device-width: 800px) 
  and (orientation: portrait) { 
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1em;
}
 .botong {
    width: 20%;
    font-size: 1em;
}
}

/* Landscape */
@media 
  (max-device-width: 1280px) 
  and (orientation: landscape) { 
form{
        width: 100%;
    }
    .formulario {
        width: 100%;
    }
    img {
        width: 100%;
    }
       }
      input, textarea {
    font-size: 1em;
}
 .botong {
    width: 20%;
    font-size: 1em;
}
}

