#imagen_inicio {
    pointer-events: none;
    user-select: none;
    width: 100%;
    position: absolute;
}

/*
#inicio {
    padding: 3rem 15rem;
    background: var(--fondo);
}

#inicio #ruta {
    color: var(--color_p);  
}

#inicio h1, #inicio p, #inicio #ruta a {
    text-align: center;
    color: var(--color_p);
}

*/

#inicio {
    border-bottom: none;
}

#seccion a {
    background: var(--background_div);
    border-radius: 16px;
    overflow: hidden;
    color: var(--color_p);
    text-decoration: none;
}

#seccion a:hover {
    background: rgba(196, 196, 196, 0.1);
}

.texto_noticia {
    padding: 1rem;
}

#difuminado_uno {
    position: fixed;
    width: 190rem;
    height: 190rem;
    top: -110rem;
    right: -80rem;
    background: radial-gradient(circle, grey 0%, rgba(255, 0, 0, 0) 50%);
    pointer-events: none;
    opacity: 0.4;
    overflow: hidden;
}


.imagen_articulo {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.imagen_noticia_secundaria {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.usuario {
    box-sizing: border-box;
    width: 100%;
    position: absolute;
    bottom: 0rem;
    left: 0rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.3rem;

    background: linear-gradient(to top, var(--background_div) 10%, transparent 100%);
}

.imagen_usuario {
    margin-right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
}

 /* SERVICIOS */
#contenido {
	position: relative;
	background: var(--fondo);
}

#busqueda {
    background: rgba(48, 48, 52, .7);
    backdrop-filter: blur(50px);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 32px 16px, rgba(0, 0, 0, 0.1) 0px 16px 8px, rgba(0, 0, 0, 0.1) 0px 8px 4px, rgba(0, 0, 0, 0.1) 0px 4px 2px, rgba(0, 0, 0, 0.1) 0px 2px 1px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    position: sticky;
    top: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    border: var(--border);
    z-index: 999;
    padding: 1rem;
    border-radius: 16px;
}

#categorias_drones {
    width: 100%;
    overflow-x: auto;
    margin-top: 3rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.a_drones {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    border: var(--border);
    background: var(--background_div);
    text-decoration: none;
}

.a_drones h3 {
    color: var(--color_p);
    text-decoration: none;
}


.imagen_dron {
    width: 8rem;
}

#categorias {
    overflow-x: auto;
    padding-top: 1rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.categoria {
    cursor: pointer;
    border: var(--border);
    background: transparent;
    padding: 0.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 900;
    font-size: 1rem;
}

.categoria:hover {
    background: white;
    color: black;
}

.noticia_categoria {
    width: fit-content;
    margin: 0 0 0.5rem 0;
    display: inline-block;
    border-radius: 16px;
    padding: 0.2rem 0.5rem;
    border: var(--border);
}

#noticias {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 8rem 0 0 0;
}

/* SECCION */
#seccion {
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    /* padding: 0 15rem 4rem 15rem; */
    display: flex;
    flex-direction: column;
}


/* NOTICIAS RELEVANTES */
#noticias_relevantes {
    width: 100%;
    padding-bottom: 4rem;
}

#noticias_relevantes .noticia_categoria {
    border-color: var(--border);
    color: var(--color_p);
}

#crear_noticia {
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: inline-block;
    padding: 2rem;
    color: white;
    text-decoration: none;
    width: 100%;
    height: 10rem;
    border-radius: 16px;
    border: var(--border);
}

#crear_noticia #difuminado {
    z-index: 9999;
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 100%;
    padding: 2rem;
    color: white;
    
    backdrop-filter: blur(8px);
    -webkit-mask-image: radial-gradient(circle at left center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 80%);
    will-change: backdrop-filter, -webkit-mask-image;
}

#difuminado h2, #difuminado p {
    font-size: 1.6rem;
    z-index: 9999;
}

#imagen_crear_noticia {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    position: absolute;
    z-index: 1;
}

/* NOTICIA PRINCIPAL */
#noticias_principales {
    display: flex;
    gap: 2rem;
    flex-direction: row;
}

#noticias_principales_dos {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#noticia_principal {
    border: var(--border);
    width: 50%;
    display: flex;
    flex-direction: column;
}

#noticia_principal:hover {
    background: rgba(196, 196, 196, 0.1);
}

#imagen_noticia_principal {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticia_principal_dos {
    border: var(--border);
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 33%;
}

.noticia_texto_principal_dos {
    padding: 1rem;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.imagen_noticia_principal_dos {
    border-left: var(--border);
    overflow: hidden;
    position: relative;
    width: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: -webkit-fill-available;
}

.imagen_noticia_entero {
    border-bottom: var(--border);
    width: 100%;
    object-fit: cover;
    height: 12rem;
}



#texto_noticia_principal {
    width: 30%;
    margin-top: 1rem;
    margin-left: 1rem;
}

#noticia_principal h2 {
    font-size: 2.5rem;
}

#noticia_principal p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    font-size: 1.5rem;
}

/* NOTICIAS SECUNDARIAS */
#noticias_secundarias {
    display: flex;
    flex-direction: row;
    margin: 2rem 0 0 0;
    gap: 2rem;
    justify-content: center;
}

#noticias_secundarias a {
    border: var(--border);
    width: 50%;
    height: 100%;
    text-decoration: none;
    color: var(--color_p);
}

#noticias_secundarias a .imagen_noticia {
    min-height: 30rem;
    max-height: 30rem;
    object-fit: cover;
    width: 100%;
}


/* CADA NOTICIA*/
.noticia {
    background: var(--background_div);
    border: var(--border);
    overflow: hidden;
    border-radius: 16px;
    text-decoration: none;
    color: var(--color_p);
}

.noticia:hover {
    background: rgba(196, 196, 196, 0.1);
}

.noticia a {
    color: var(--color_p);
    text-decoration: none;
}

.noticia_texto {
    padding: 1rem;
}

.noticia .imagen_noticia {
    object-fit: cover;
    width: 100%;
    height: 20rem;
}

.imagen_noticia {
    height: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: var(--border);
}



.paginacion {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

.boton_paginacion {
    padding: 8px 12px;
    text-decoration: none;
    color: var(--color_p);
    border: var(--border);
    border-radius: 16px;
    transition: background-color 0.3s;
}

.boton_paginacion:hover {
    color: black;   
    background-color: white;
}

.boton_paginacion.activo {
    background-color: var(--background_div);
    color: var(--color_p);
    border: var(--border);
}

#fondo_estrellas {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.estrella {
  position: absolute;
  background: grey;
  border-radius: 50%;
  pointer-events: none;
  animation: animate 5s linear infinite;
  z-index: 1;
}

@keyframes animate {
  0% {
    opacity: 0;
  }
  10%, 90% {
    opacity: 1;
  }
  100% {
    transform: scale(1) translateX(-2000%) translateY(-2000%);
    opacity: 0;
  }
}




/* RESPONSIVE */
@media (max-width: 800px) {
    #busqueda {
        top: 5rem;
        padding: 1rem;
    }
    
    #noticia_principal h2 {
        font-size: 2rem;
    }
    
    #noticias_principales {
        flex-direction: column;
    }
    
    #noticia_principal, #noticias_principales_dos {
        width: 100%;
    }
    
    #noticias_secundarias {
        flex-direction: column;
    }
    
    #noticias_secundarias a {
        width: 100%;
    }
    
    #texto_noticia_principal{
        width: 100%;
    }
    
    #buscador, .categoria {
        font-size: 1rem;
    }
    
    #noticias {
        padding: 1rem;
        grid-template-columns: repeat(1, 1fr);
    }
    
    #seccion {
        padding: 1rem;
    }
    
    #drones {
        display: none;
    }
    
    #noticias_relevantes {
        width: 100%;
    }

}