body {
    background: var(--fondo_panel);
}

.row {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 1rem; 
}

.row div{
    width: 100%;
}

#inicio {
    background: var(--background_div) ;
}

#inicio h1, #inicio #ruta a {
    color: var(--color_p);
}

.a_post {
    gap: 0.5rem;
    display: flex;
    flex-direction: row;
}

.post_column {
    display: flex;
    flex-direction: column;
}

/* responder */
    #sesion {
        margin-bottom: 2rem;
    }
    
    #chat  {
        background: var(--background_div);
        box-sizing: border-box;
        overflow-y: scroll;
        padding: 1.5rem;
        border-radius: 0.5rem;
        border: var(--border);
        justify-content: space-between;
        flex-direction: column;
        width: 50%;
        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: 0.5rem;
        cursor: pointer;
        font-weight: 900;
    }
    
    form#chat_form button:hover  {
       background: white;
       color: black;
    }
    
    /* MENSAJES */
    #chat_mensajes  {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .mensaje {
        position: relative;

        gap: 1rem;
        border-radius: 0.5rem;
        color: var(--color_p);
    }
    
    .mensaje_row {
        gap: 0.5rem;
        display: flex;
        flex-direction: row;
    }
    
    #respuestas {
        max-height: 15rem;
        overflow-y: auto;
    }
    
    .respuesta {
        margin-left: 2rem;
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
    }
    
    .mensaje_opciones {
        color: var(--color_p);
        font-size: 1.3rem;
        cursor: pointer;
        position: absolute;
        top: 0;
        right: 0;
        background: transparent;
        border: none;
    }
    
    .desplegable_opciones {
        display: none;
        background: var(--background_div);
        border: var(--border);
        color: var(--color_p);
        border-radius: 0.5rem;
        padding: 0.3rem;
        gap: 0.2rem;
        flex-direction: column;
        /* background: red; */
        position: absolute;
        top: 0;
        right: 0;
    }
    
    .desplegable_opciones button {
        cursor: pointer;
        background: transparent;
        border: none;
        color: var(--color_p);
        text-align: left;
        padding: 0.3rem;
        border-radius: 0.2rem;
    }
    
    .desplegable_opciones button:hover {
        background: white;
        color: black;
    }

    .contenido_mensaje {
        flex: 1;
    }

    .cabecera {
        display: flex;
        flex-direction: column;
        margin-bottom: 5px;
        text-decoration: none;
    }
    
    .cabecera:hover {
        text-decoration: underline;
    }

    .cabecera strong {
        font-size: 1.2rem;
        color: orange;
    }

    .fecha {
        font-size: 0.8rem;
        color: #666;
    }

    .texto {
        margin: 10px 0;
        font-size: 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: 0.5rem;
        cursor: pointer;
        font-weight: 900;
    }
    
    .responder_form button:hover {
        background: white;
        color: black;
    }
    


/* CONTENIDO */
#contenido {
    background: var(--fondo);
    position: relative;
    display: flex;
    flex-direction: column;
}

#ruta,  #ruta a {
    color: var(--color_p) !important;
}

#destacados {
    justify-content: space-between;
    height: 20rem;
    display: flex;
    grid-template-columns: repeat(3, 1fr); /* Tres columnas iguales */
    gap: 2rem; /* Opcional: Espacio entre las celdas */
}

.a_destacado {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    
    border-radius: 0.5rem;
    border: var(--border);
    width: 30%;
    overflow: hidden;
    text-decoration: none;
}

.destacado_texto {
    padding: 1rem;
    z-index: 99;
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
}

.destacado_uno {
    color: black;
    background: linear-gradient(to top, #F3EFEB 70%, rgba(0, 0, 0, 0) 100%);
}

.destacado_dos {
    background: linear-gradient(to top, #3A679F 70%, rgba(0, 0, 0, 0) 100%);
}

.destacado_tres {
    background: linear-gradient(to top, #0A3661 70%, rgba(0, 0, 0, 0) 100%);
}

.a_destacado img {
    z-index: 1;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    
    width: 100%;
    height: 100%;
}


/* SECCION */
#crear {
    border-top: var(--border);
}

#seccion {
    position: relative;
    border-top: var(--border);
    padding: 4rem 15rem 15rem 15rem;
    color: var(--color_p);
    font-size: 1.3rem;
}

#titulo_form {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    width: 33%;
    position: relative;
}

.post {
    overflow: hidden;
    gap: 2rem;
    flex-direction: row;
    display: flex;
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
}

.post_contenido {
    flex: 1;

    width: 50%;
}

.post_contenido p {
    margin: 1rem 0;
}

.post_comentarios {
    width: 50%;
}

.categoria {
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    background: var(--background_div);
    border-left: var(--border);
    border-top: var(--border);
    border-right: var(--border);
}

.categoria .boton_categoria {
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    font-weight: normal;
   cursor: pointer;
    width: 33%;
    border: var(--border);
    background: transparent;
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: var(--color_p);
    font-weight: 900;
}

.categoria .boton_categoria:hover {
   background: white;
   color: black;
}

.actividad {
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    background: var(--background_div);
    border-left: var(--border);
    border-bottom: var(--border);
    border-right: var(--border);
}

.actividad a, .actividad i {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--color_p);
}

.actividad i:hover {
    color: grey;
}

.mapa_ubicacion {
    width: 100%;
    height: 30rem;
    border: var(--border);
}

.boton_like {
    color: var(--color_p);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    background: none;
    border: none;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.imagen_post {
    box-sizing: border-box;
    border: var(--border);
    position: relative;
    width: 100%;
    height: auto;
}

.media {
    display: flex;
}

@media (max-width: 800px) {
    #seccion {
        padding: 1rem;
    }
    
    .post {
        flex-direction: column;
    }
    
    .post_contenido {
        width: 100%;
    }
    
    #chat {
        width: 100%;
    }
    
}