

#imagen_inicio {
    pointer-events: none;
    user-select: none;
    width: 100%;
    position: absolute;
    opacity: 0.6;
    filter: blur(8px);
}

#inicio {
    border: none;
}

#margen_inicio {
    padding: 7rem 0 3rem 0;
}

#seccion {
    padding-top: 0;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    margin-bottom: 3rem;
}

#noticia_texto {
    height: 100%    ;
    padding: 0 3rem 0 0;
    overflow-wrap: break-word;
    box-sizing: border-box;
    width: 70rem;
    color: #3A3617;
}

#noticia_texto h2 {
    margin-top: 1rem;
    color: var(--color_p);
    font-size: 28px;
}

#noticia_texto p, #noticia_texto ul, #noticia_texto strong, #noticia_texto b, #noticia_texto ul li, #noticia_texto ol, #noticia_texto span, #noticia_texto h3, #noticia_texto h4, #noticia_texto h5  {
	color: var(--color_p);
    font-size: 20px;
}

#div_imagen {
    width: 100%;
    position: relative;
}



#imagen_noticia_fondo {
    object-fit: cover;
    opacity: 0.9;
    filter: blur(200px);
    position: absolute;
    width: 100%;
    z-index: 1;
}

#imagen_noticia {
    position: relative;
    z-index: 11;
    border: var(--border);
    border-radius: 16px 16px 0 0;
    width: 100%;
}

#pie_imagen {
    color: var(--color_p);
    align-items: center;
    padding: 1rem;
    background: var(--background_div);
    border-radius: 0 0 16px 16px;
}


#usuario_noticia {
    padding: 1rem 0;
    border: var(--border);
    color: var(--color_p);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1rem 0;
    gap: 1rem;
    align-items: center;
    display: flex;
    text-decoration: none;
    border-width: 1px 0;
}

.noticia_categoria {
    background: var(--color_p);
    color: var(--background_div);
    width: fit-content;
    margin-top: 1rem;
    display: inline-block;
    border-radius: 16px;
    padding: 0.5rem 1rem;
    border: var(--border);
}

 /* INFO TEXTO DERECHA */
 ul {
     list-style: none;
 }
 
a #fecha {
    font-size: 16px;
}
 
#contenido_texto {
    padding-top: 4rem;
    display: flex;
    flex-direction: row;
    
    position: relative;
}

#info_texto {
    display: block;
    width: 30%;
    border-left: var(--border);
    border-width: 0 0 0 1px;
    padding: 0 0 0 3rem;
}

#info_contenido {
    position: sticky;
    top: 7rem;
}

.oculto {
    width: 3% !important;
}

#info_texto button {
    color: var(--color_p);
    background: transparent;
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    border: none;
    margin-bottom: 1rem;
    cursor: pointer;
}

#info_texto h4 {
    font-weight: 600;
    font-size: 28px;
    color: var(--color_p);
    margin-bottom: 1rem;
    border-bottom: var(--border);
}

#info_texto ul li {
    margin: 1.5rem 0;
}

#noticias_texto ul li:first-child {
    margin: 0 0 1.5rem 0;
}

#info_texto ul, #info_texto li, #info_texto a {
    line-height: 1;
    font-size: 1.3rem;
    color: rgb(146, 146, 146);
    text-decoration: none;
}

ol {
  padding-left: 1.5em; /* o el valor que quieras para la sangría */
}

#info_texto ol, #info_texto li {
    font-size: 1.5rem;
    color: var(--color_p);
}


    
    
/* CSS DEL CHAT DEL FORO */
/* responder */
    #sesion {
        margin-bottom: 2rem;
    }
    
    #chat  {
        margin-top: 3rem;
        box-sizing: border-box;
        max-width: 1200px;
        margin: 0 auto;
        border: var(--border);
        padding: 2rem;
        border-radius: 16px;
        background: var(--background_div);
        max-width: 1200px;
        margin: auto;
        height: auto;
    }
    

    #chat #perfil_comentar  {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        
        font-weight: 800;
        padding-bottom: 1rem;
        font-size: 1.2rem;
        color: orange;
    }

    #chat h2 {
        margin: 1rem 0;
        color: var(--color_p);
    }

    form#chat_form {
        margin-bottom: 2rem;
    }
    
    form#chat_form textarea {
        min-height: 5rem;
        max-height: 20rem;
        resize: vertical;
    }

    form #chat_form button{
        margin: 0.5rem 0;
        width: 100%;
        background-color: transparent;
        color: var(--color_p);
        border: var(--border); 
        padding: 0.5rem;
        border-radius: 16px;
        cursor: pointer;
        font-weight: 600;
    }
    
    form#chat_form button:hover  {
       background: white;
       color: black;
    }
    
    /* MENSAJES */
    .post_contenido {
        gap: 0.5rem;
        flex: 1;
        display: flex;
        width: 100%;
    }
    
    .post_comentarios {
        width: 50%;
    }
        
    #chat_mensajes  {
        padding-top: 1rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .mensaje {
        position: relative;

        gap: 1rem;
        border-radius: 16px;
        color: var(--color_p);
    }
    
    .mensaje_row {
        gap: 0.5rem;
        display: flex;
        flex-direction: row;
    }
    
    #respuestas {
        max-height: 15rem;
        overflow-y: auto;
    }
    
    .respuesta {
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        border-radius: 16px;
        margin-top: 1rem;
    }
    
    .mensaje_opciones {
        color: grey;
        font-size: 1.3rem;
        cursor: pointer;
        position: absolute;
        top: 0;
        right: 0;
        background: transparent;
        border: none;
    }
    
    .desplegable_opciones {
        backdrop-filter: blur(50px);
        background: rgba(48, 48, 52, .7);
        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;
        border: var(--border);
        
        display: none;
        border-radius: 16px;
        padding: 0.3rem;
        gap: 0.2rem;
        flex-direction: column;
        position: absolute;
        top: 0;
        right: 0;
    }
    
    .desplegable_opciones button {
        cursor: pointer;
        background: transparent;
        border: none;
        color: white;
        text-align: left;
        padding: 0.3rem;
        border-radius: 16px;
    }
    
    .desplegable_opciones button:hover {
        background: white;
        color: black;
    }

    .contenido_mensaje {
        flex: 1;
    }

    .cabecera {
        display: flex;
        flex-direction: column;
        text-decoration: none;
    }

    .cabecera strong {
        font-size: 1.2rem;
        color: var(--color_p);
    }

    .fecha {
        font-size: 0.9rem;
        color: #666;
    }

    .texto {
        font-size: 1.1rem;
    }

    .responder_form {
        margin-top: 0.5rem;
        display: flex;
        gap: 0.5rem;
    }

    .responder_form input {
        font-size: 1rem;
    }

    .responder_form button {
        background-color: transparent;
        color: var(--color_p);
        border: var(--border); 
        padding: 0.5rem;
        border-radius: 16px;
        cursor: pointer;
        font-weight: 900;
    }
    
    .responder_form button:hover {
        background: white;
        color: black;
    }
    
    .a_post {
        color: var(--color_p);
        text-decoration: none;
        gap: 0.5rem;
        display: flex;
        flex-direction: row;
    }
    
    .post_column {
        width: 100%;
        justify-content: space-between;
        color: var(--color_p);
        display: flex;
        flex-direction: column;
    }
    
    #chat_form {
        flex-direction: column;
        display: flex;
        gap: 1rem;
    }
    





#noticia_texto a {
    color: #79c0ff;
}

#noticia_texto a:hover {
    background-size: 100% 1px;  /* se expande de izquierda a derecha */
}

.a_relacionados {
    background-image: linear-gradient(#79c0ff, #79c0ff);
    background-size: 0% 1px;     /* ancho inicial: 0% */
    background-repeat: no-repeat;
    background-position: 0 100%; /* pegado abajo del texto */
}
    
@media (max-width: 800px) {
    #info_texto {
        display: none;
    }
    
    #noticia {
        padding: 1rem;
    }
    
    #noticia_texto {
        padding: 1rem;
        width: 100%;
    }
    
    #chat {
        padding: 1rem;
    }
}
