
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background-color: #000;
  color: #fff;
}

/* --- HEADER --- */
.encabezado {
  width: 100%;
  padding: 1rem 0;
  background-color: #000;
}

.nav-encabezado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 90%;
  margin: 0 auto;
}

.site-title {
  color: #fff;
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
}

.site-title:hover {
  color: #fff;
}

/* --- MENU HAMBURGUESA --- */
.menu-hamburguesa {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1.2rem;
  cursor: pointer;
  z-index: 100;
}

.menu-hamburguesa::marker,
.menu-hamburguesa::-webkit-details-marker {
  display: none;
}

.linea-hamburguesa {
  width: 100%;
  height: 0.2rem;
  background-color: #fff;
  border-radius: 0.1rem;
}

.boton-hamburguesa {
  position: relative;
  width: 1.5rem;
}

.navegacion {
  background-color: #000;
  width: 100vw;
  position: absolute;
  top: 100%;
  left: -5%; 
  padding: 0.5rem 0;
  margin-top: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.2);
  z-index: 90;
}

.nav-lista {
  list-style: none;
  padding: 0 1.5rem;
}

.nav-item {
  margin: 1rem 0;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
}

.nav-link:hover {
  color: #7c77ff;
}

/* --- ICONO BUSCAR --- */
.lupa-contenedor {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.lupa {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- FEED --- */
.feed {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* NOTICIA INDIVIDUAL */
.noticia {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

/* IMAGEN DE NOTICIA */
.imagen {
  width: 100%;
  height: auto;
  display: block;
}

/* ETIQUETA CATEGORIA */
.categoria1 {
  position: absolute;
  top: 1rem;
  left: 0;
  background-color: #fff;
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-style: italic;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  text-transform: uppercase;
  z-index: 2;
  
}



.descripcion {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 2;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}


.imagen-noticia::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  z-index: 1;
}

/* === SECCIÓN CATEGORÍAS === */
.categorias {
    background-color: #000;
    padding: 1rem 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    overflow: hidden; /* elimina cualquier scroll */
}

.categorias-lista {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* si no caben, pasan a otra línea */
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.categoria-item a {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    text-decoration: none; /* quita subrayado */
    display: inline-block; /* permite transformaciones */
}

.categoria-item a:hover {
    color: #7c77ff;
    transform: scale(1.05);
}

.categoria-item a:active,
.categoria-item a:focus {
    color: #7c77ff; /* cambia al color que quieras */
    transform: scale(0.98); /* efecto sutil al hacer clic */
}


footer {    
    background-color: #000000;
    font-size: 0.6rem;
    color: white;
    display: block;
    padding: 1em;
    text-align: left;
    padding-block-end: 3em;
    margin-block-start: 3em;}

@media (min-width: 768px) {
  .descripcion {
    font-size:

    