* {
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

@font-face {
    font-family: 'petitaboldregular';
    src: url('petitabold-webfont.eot');
    src: url('petitabold-webfont.eot?#iefix') format('embedded-opentype'),
         url('petitabold-webfont.woff2') format('woff2'),
         url('petitabold-webfont.woff') format('woff'),
         url('petitabold-webfont.ttf') format('truetype'),
         url('petitabold-webfont.svg#petitaboldregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'petitalightregular';
    src: url('petitalight-webfont.eot');
    src: url('petitalight-webfont.eot?#iefix') format('embedded-opentype'),
         url('petitalight-webfont.woff2') format('woff2'),
         url('petitalight-webfont.woff') format('woff'),
         url('petitalight-webfont.ttf') format('truetype'),
         url('petitalight-webfont.svg#petitalightregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'petitamediumregular';
    src: url('petitamedium-webfont.eot');
    src: url('petitamedium-webfont.eot?#iefix') format('embedded-opentype'),
         url('petitamedium-webfont.woff2') format('woff2'),
         url('petitamedium-webfont.woff') format('woff'),
         url('petitamedium-webfont.ttf') format('truetype'),
         url('petitamedium-webfont.svg#petitamediumregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

/** encuadra en una caja*/

body {
 /* gris clarito f1f1f1*/
	background: white;
    font-family: petitamediumregular, Arial;
	color: #5E6970;
	height: 100%;
}

a {
	color: #DA223E;
}

p {
  margin-bottom: 10px;
}
.wrapper {
  width: 80%;
  margin: auto;
  overflow: hidden;
}
header nav {
  background: #5E6970;
  text-align: left;
  overflow: auto;
  width: 100%;
  position: static;
  z-index: 10;
}

nav {
  float: none; /* Desplazamos el nav hacia la izquierda */
}
nav ul {
  list-style: none;
  overflow: hidden; /* Limpiamos errores de float */
}
nav ul li {
  float: left;
  font-family: petitaboldregular, Arial, sans-serif;
  font-size: 16px;
}

nav ul li a {
  display: block; /* Convertimos los elementos a en elementos bloque para manipular el padding */
  padding: 15px;
  color: #fff;
  text-decoration: none;
}

nav ul li:hover {
  /*background-color: */
  text-shadow: 3px 2px #DA223E;
}

.contenido {
  padding-top: 15px;
}

.linkedLogo{
  display: block;
  border-radius: 3px;
  box-sizing: content-box;
  height: 24px;
  width: 24px;
  margin: 0px;
  background-color: #fff;
}

.linkedLogo:hover {
  background-color: red;
}

.linkedImg{
  display: block;
  height: 25px;
}

footer {
  position: static;
  max-width: 48em;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 5px;
  margin-left: auto;
  margin-right: auto;
  background: white;
  }

contacto {
  position: static;
  width: 48em;
  top: 0;
  bottom: 0;
  text-align: justify;
  font-size: 22pt;
}

/*tabla de clientes*/
.tabla {
	display: flex;
	flex-wrap: wrap;
	padding: 20px 20px 20px 20px;
	box-sizing: content-box;
}

.cliente {
	display: flex;
	min-height: 180px;
	margin: auto;
}

.cliente img{
	align-self: center;
	width: 100%;
	background-color: white;
}

.col {
	flex: 20%;
	max-width: 20%;
	padding: 0 25px;
}

.col img {
	margin-top: 0;
	vertical-align: middle;
	/* Filtro escala de grises para los logos -opcional-
	-webkit-filter: grayscale(100%);
	-moz-filter: grayscale(100%);
	filter: grayscale(100%);*/
}

/*centrar main*/
.main {
	max-width: 1200px;
	margin: auto;
}

.main h3{
	margin-top: 10px;
	font-family: petitaboldregular, Arial;
	text-align: center;
	font-size: 14pt;
}

.main-portada {
	background-image: url("../images/portada.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	height: 60vh;
	overflow: hidden;
}

.fila {
	display: table;
	margin: 8px -16px;
	padding: 8px;
}

.filapat {
	display: flex;
	flex-wrap: wrap;
	padding: 20px;
	gap: 8px;
	box-sizing: content-box;
}

/* espacio entre columnas del portafolio*/
.fila > .columna {
	display: table-cell;
	padding: 8px;
}

/*.fila > .columnapat {
	display: table-cell;
	padding: 8px;
}*/

/* creacion de 4 columnas iguales que flotan unas junto a otras */
.columna {
		float: left;
		width: 25%;
}

.columnapat {
		/*float: left;*/
		flex: 1 1 25%;
		width: 25%;
}

.columnapat img {
    width: 100%;
   /* height: 200px; /* O cualquier valor que necesites */*/
    object-fit: cover; /* Ajusta la imagen sin distorsión */
}

/* columna para los patrocinios 
.columnainv {
		float: left;
		width: 13%;
}*/

/* limpiar los floats tras la fila*/
.fila:before,
.fila:after {
	content: "";
	clear: both;
}

/*portafolio*/
.portafolio {
	min-height: 240px; /*ojo con esto que puede descuadrar todo por culpa del texto*/
	background-color: lightgray;
	padding: 12px;
}
.portafolio h3 {
	margin-top: 8px;
	font-family: petitaboldregular, Arial;
	text-align: center;
}
.portafolio h4 {
	margin-top: 10px;
	font-family: petitaboldregular, Arial;
	text-align: center;
}
.portafolio h5 {
	margin-top: 6px;
	font-family: petitaboldregular, Arial;
	text-align: center;
}
/*portafolio invisible para cuadrar patrocinios ahora que solo hay una foto*/
.portafolio2 {
	display: hidden;
	background-color: none;
	min-height: 240px;
	padding: 12px;
}

/* Responsive layout - cambios de columnas y/o tamaños de letra */
@media screen and (max-width: 1570px) {
	nav ul li {
		font-size: 14px;
	}
}

@media screen and (max-width: 1390px) {
	nav ul li {
		font-size: 12px;
	}
}

@media screen and (max-width: 1345px) {
 	/*.columnainv {
		display: none;
	}*/
	.columnapat {
		flex: 1 1 33%;
	}
}

@media screen and (max-width: 1190px) {
	nav ul li {
		font-size: 10px;
	}
	.columna { /*columnas de portafolio*/
        width: 50%;
    }
}

@media screen and (max-width: 1050px) {

	.col { /*columnas de clientes*/
		flex: 33%;
		max-width: 33%;
	}
	footer {
		width: 40em;
	}
	contacto {
	  font-size: 14pt;
	}

}

@media screen and (max-width: 1031px) {
	nav ul li {
		font-size: 9px;
	}

}

@media screen and (max-width: 965px) {
	nav ul li {
		font-size: 25px;
		float: none;
	}
	
	.columnapat{
		flex: 1 1 50%;
		width: 100%;
	}

	.linkedLogo{
	  margin-top: 5px;
	  height: 29px;
	  width: 29px;
	}
	.linkedImg{
	  display: block;
	  height: 30px;
	}
	footer {
		width: 32em;
	}
	contacto {
	  font-size: 14pt;
	  width: 12em;
	}	
}

/* Responsive layout - cambios de columnas menos resolucion */
@media screen and (max-width: 655px) {
	.columna { /*columna de portafolio*/
        width: 100%;
    }
	
	.col { /*columnas de clientes*/
		flex: 100%;
		max-width: 100%;
	}
	.cliente {
		width: 75%;
		min-height: 160px;
	}	
	
	nav ul li {
		font-size: 24px;
	}
	.linkedLogo{
	  margin-top: 5px;
	  height: 20px;
	  width: 20px;
	}
	.linkedImg{
	  display: block;
	  height: 21px;
	}
	footer {
	  max-width: 22em;
	}
	contacto {
	  font-size: 10pt;
	}
}

@media screen and (max-width: 530px) {
	nav ul li {
		font-size: 20px;
	}	
}

@media screen and (max-width: 445px) {
	nav ul li {
		font-size: 14px;
	}
}

@media screen and (max-width: 360px) {
	nav ul li {
		font-size: 14px;
	}
	footer {
	  max-width: 16em;
	}	
	contacto {
		font-size: 6pt;
	}
}

/* abrir imagenes*/
#img11, #img21, #img31, #img41, #img51, #img61, #img71, #img81 {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#img11:hover {opacity: 0.7;}
#img21:hover {opacity: 0.7;}
#img31:hover {opacity: 0.7;}
#img41:hover {opacity: 0.7;}
#img51:hover {opacity: 0.7;}
#img61:hover {opacity: 0.7;}
#img71:hover {opacity: 0.7;}
#img81:hover {opacity: 0.7;}


/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1024px;
    text-align: center;
	font-weight: normal;
	font-size: 28pt;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation */
.modal-content, #caption {    
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

.next:hover,
.next:focus,
.prev:hover,
.prev:focus {
	color: #bbb;
    text-decoration: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* imagenes invisibles para extras*/
.mySlides {
  position: absolute;
  left: -999999px;
  display: none;
}

/* Number text (1/3 etc) */
#numbertext {
  color: #f2f2f2;
  font-size: 40px;
  text-align: center;
  margin-top: 20px;
  position: absolute;
  top: 0;
  width: 100%;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
	#caption {
		max-width: 700px;
		font-size: 14pt;
   }
   #numbertext {
		font-size: 20px;
	}
}