/*Eliminamos los margenes y paddings que agrega el
navegador por defecto*/

* {
padding: 0;
margin: 0;
}

/*Estilos generales*/

p {
margin-bottom: 20px;
}


h1 {
font-family: Helvetica, Geneva, Arial, Sunsans-regular, sans-serif;
text-align: center;	
}

h2 {
text-align: center;
}

body {
	padding-left: lem;
	font-family: Georgia, "Times New Roman",
	Times, serif;
	color: black;
	background-color:  #d9d2d7;
	width:100%;
	max-width:1300px;
	margin: 2em;
} 
	
header {
background-color: gray;
color: #274001;
width: 90%;
	max-width:1300px;
	margin: 2em;
	z-index: 100;
}

/*Clases*/

.leyenda1 {
width: 80%;
margin: auto;
overflow:hidden;
}

.caja {
width: 50%;
padding: 100px;
margin: 100px;
}

.wrapper {
width: 100%;
padding: 20px;
margin: 20px;
overflow: hidden;
}



/*desplegable*/
nav {
	background:#528FD5;
	margin-top:20px;
	position:relative;
}

/*desplegable*/
nav ul {
	list-style:none;
	padding:0;
	margin:30px;
	overflow:hidden;
}

/*fijo*/
nav > ul > li {
float: left;
font-family: Arial, sans-serif;
font-size: 16px;
float:left;
}

/*fijo+desplegable*/
nav ul li a {
	text-decoration:none;
	color:#fff;
	display: block; /* Convertimos los elementos a en
elementos bloque para manipular el padding */
padding: 10px 20px;
}

/*desplegable*/
nav ul li a:hover {
	background:#3669A3;
	color:#fff;
}

nav > ul > li:hover div {
	display:table;
}

/*Submenu*/
nav ul li div {
	width:1000px;
	left:0;
	position: absolute;
	background:#ccc;
	box-sizing:border-box;
	/*display:table;*/ 
	display:none;
}

nav ul li div ul {
	width:20%;
	display:table-cell;
	border-right:1px solid rgba(255,255,255,.5);
	box-sizing:border-box;
}

nav ul li div ul:last-child {
	border:none;
}

nav ul li div ul .titulo {
	background:#000;
	color:#fff;
}

nav ul li div ul .titulo a {
	color:#fff;
	padding:10px 20px;
}

.titulo.azul {background:#3498db;}
.titulo.verde {background:#27ae60;}
.titulo.naranja {background:#e67e22;}
.titulo.rojo {background:#c0392b; color:#000;}

nav ul li div ul .titulo a:hover {
	background:none;
}

nav ul li div ul li a {
	color:#000;
}

/*Resto del cuerpo*/

html {
  background: #f5f7f8;
  font-family: 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 20px 0;
}

.band {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  
  display: grid;
  
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-gap: 20px;
  
}

@media only screen and (min-width: 500px) {
  .band {
    grid-template-columns: 1fr 1fr;
  }  
  .item-1 {
  grid-column: 1/ span 2;
  }
  .item-1 h1 {
    font-size: 30px;
  }
}

@media only screen and (min-width: 850px) {
  .band {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

/* card */

.card {
  min-height: 100%;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #444;
  position: relative;
  top: 0;
  transition: all .1s ease-in;
}

.card:hover {
  top: -2px;
  box-shadow: 0 4px 5px rgba(0,0,0,0.2);
}

.card article {
  padding: 20px;
  display: flex;
  
  flex: 1;
  justify-content: space-between;
  flex-direction: column;
  
}
.card .thumb {
  padding-bottom: 60%;
  background-size: cover;
  background-position: center center;
}

.card p { 
  flex: 1; /* make p grow to fill available space*/
  line-height: 1.4;
}

/* typography */
h1 {
  font-size: 20px;
  margin: 0;
  color: #333;
}

.card span {
  font-size: 12px;
  font-weight: bold;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 2em 0 0 0;
}


/*Estilos para el pie de página*/

.footer {
background: rgb(33,71,25);
background: linear-gradient(90deg, rgba(33,71,25,1) 4%, rgba(39,64,1,1) 38%, rgba(89,8,15,1) 77%, rgba(111,20,51,1) 95%);
color: black;
margin: auto;
padding: 20px;
display: grid;
grid-template-columns: repeat( 2, 1fr );
grid-template-rows: repeat( 2, 1fr );
grid-gap: 1em;	
}

.footer-logo {
width: 100px;
}
.footer-al {
	max-width: 1300px;
	z-index: 100;
}
.footer-links a {
color: #666;
text-decoration: none;
margin: 0 10px;
}


.grid-container {
display: grid;
grid-template-columns: repeat(3, 1fr); /* Crea 3 columnas de igual tamaño */
grid-template-rows: repeat(1, 600px); /* Crea 3 filas de altura fija de 100px */
gap: 10px; /* Espacio entre las celdas */
}

.grid-conta-pie {
display: grid;
grid-gap: 1rem;
grid-template-columns: repeat(3, 350px);
grid-template-rows: repeat(3, 150px);
text-align: center;
align-items: center; 
}

.item {
background-color: #3498db;
color: #fff;
text-align: center;
padding: 20px;
}

.item-pie {
grid-column: 1 / -1;
}

.item-ref {
grid-column: 1 / 2;
}

.item-autor {
grid-column: 2 / 3;
}

.item-redes {
grid-column: 3 / -1;
}

.item-contacto {
grid-column: 1 / -1;
}

