* {
    box-sizing: border-box;
}

a { /* Le quitamos el underline a todos los links */
    text-decoration: none !important;
    color: inherit;
}

body { 
    background-color: #f1f1f1;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
}

nav ul { /* Nav en horizontal usando Flex */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #333;
    list-style-type: none;
    padding: 0;
    margin-bottom: 5px;
    border-radius: 5px;
}

nav li {
    flex-grow: 1;
}

nav li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

nav li a:hover {
    background-color: #111;
}

main p, ul {
    font-family: "Quantico", sans-serif;
}
/* --------------------------------------------------------- */
/* Título + Logo (Header) */ 
.titulo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    margin: 0 auto;
    max-width: 1200px;
    font-size: xx-large;
}

.titulo img {
    max-width: 110px;
    height: auto;
    margin-right: 20px;
}

.titulo h1 {
    font-size: 2em;
    margin: 0;
}
/* --------------------------------------------------------- */
/* Noticias Destacadas (Main) */
#destacados {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #f4f4f4;
}

#destacados section {
    width: 33%;
    padding: 5px;
    border-radius: 10px;
    border: 2px solid black;
    background-color: #e0e0e0;
}

#destacados .destacada-centro-texto {
    height: 700px;
    overflow: hidden;
}
.destacada-izq{ /* Distribición de elementos en una columna uniforme (filas iguales) */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.destacada-izq article {
    min-height: 45%;
    margin: 1%;
}

.destacada-der {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    }

.destacada-der article {
    margin: 1%;
    padding: 1px;
}

#destacados h2 {
    background-color: #e0e0e0;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

#destacados article { 
    border-radius: 8px;
    border: 1px solid black;
    padding: 0 5px;
    background-color: white;
}

#destacados article:hover {
box-shadow: 4px 4px 0 0 grey;
}

#destacados .leer-mas {
    text-align: end;
    margin-right: 5%;
}

#destacados img {
    width: 90%;
    margin: 5%;
    border-radius: 4px;
}
/* --------------------------------------------------------- */
/* Noticias Generales (Main)*/
main h2,
#generales h3 {
    font-family: "Jersey 15", sans-serif;
    font-size: 30px;
    background-color: #e0e0e0;
    border-radius: 1%;
}

#generales {
    display: flex;
    margin-top: 10px;
    color: black;
    background-color: #f1f1f1;
    flex-wrap: wrap;
    justify-content: space-between;
}

h2.ocultar { /* Se oculta el título en el front */
    display: none;
}

.columnas-main {
    width: 33%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    background-color: #e0e0e0;
    padding: 9px;
    border-radius: 10px;
    border: 2px solid black;
}

.columnas-main h2 {
    font-size: 1.5em;
    margin: 5px;
    text-align: center;
}

.cripto-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cripto-news {
    background-color: #f4f4f4;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid black;
}

.cripto-news img {
    margin: 4px;
    width: 100%;
    border-radius: 4px;
}

.cripto-news h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.cripto-news p {
    font-size: 1em;
    line-height: 1.4;
}

.tecnologia-news, .ciber-news {
    background-color: #f4f4f4;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid black;
}

.tecnologia-news img, .ciber-news img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.tecnologia-news h3, .ciber-news h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.tecnologia-news p, .ciber-news p {
    font-size: 1em;
    line-height: 1.4;
}

#generales article:hover {
    box-shadow: 4px 4px 4px 4px grey;
}

.titulos-generales h3 {
    font-size: 25px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bolder;
    margin: 5px 5px;
}

.fotos-tecnologia {
    width: 80%;
    margin: 4px;
    max-height: 150px;
    border-radius: 4px;
}
/* --------------------------------------------------------- */
/* Footer */
footer {
    background-color: #f1f1f1;
    padding: 25px;
    margin-top: 40px;
    color: black;
}

footer h2, h3 { 
    display: flex;
    justify-content: center;
    font-size: 25px;
}

.footer-contenedor { 
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px;
}

.contactos-nosotros {
    width: 45%; /* Mantén el ancho para pantallas grandes */
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 3px solid black;
}

.listas-none {
    list-style: none;
    padding: 0;
    margin: 0;
}

.redes { 
    width: 100%;
    background-color: #ffffff;
    padding: 20px;
    margin-top: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 3px solid black;
}

.redes ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    align-items: center;
    list-style-type: none;
}

.redes li {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 15px; 
}

.redes img {
    width: 20px;
    margin-right: 5px;
}

.redes span {
    font-size: 1em;
}

#copyright { /* Sección Copyright */
    font-family: "Quantico";
    font-style: italic;
    font-size: 15px;
}
/* --------------------------------------------------------- */
/* Fuente (Google Fonts) utilizadas para la web */
.quantico-regular {
    font-family: "Quantico", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
.silkscreen-regular {
    font-family: "Silkscreen", sans-serif;
    font-weight: 400;
    font-style: normal;
  }

.jersey-15-regular {
    font-family: "Jersey 15", sans-serif;
    font-weight: 400;
    font-style: normal;
  }  
/* --------------------------------------------------------- */
/* Responsive probado en Edge y Fireforx */
  @media only screen and (max-width: 768px) {
    .titulo { /* Responsive para el título de la web */
        font-size: medium;
    }
    #destacados section {
        width: 100%;
        padding: 5px;
    }
    .columnas-main {
        width: 100% !important;
        padding: 5px !important; 
    }
    .footer-contenedor {
        width: 100% !important;
        padding: 5px !important; 
    }
    .redes span { /* Decidimos esconder los usuarios de las redes sociales para el responsive */ 
    display: none;
    }
    .redes ul {
    flex-direction: row;
    justify-content: center;
    }
    .footer-contenedor { /* Responsive para "Contactos" y "¿Quiénes somos?" */
        flex-direction: column; 
        margin: 0; 
    }

    .contactos-nosotros {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
  }
  
  /* --------------------------------------------------------- */